I have the following question concerning setup for multiple domains on
the same host machine:

Let us say that in /etc/postfix/main.cf we have the following:
mydestination = a.domain.com, b.domain.com, c.domain.com

We have setup DNS so that all mx records for the above domains resolve
to our host's ip address.

We would like postfix, when contacted as one of the above domains, to
reply to the helo smtp directive, with its respective x.domain.com name.

...e.g. like this:

 $ telnet a.domain.com 25
Trying xx.xx.xx.xxx...
Connected to a.domain.com.
Escape character is '^]'.
220 a.domain.com ESMTP
helo from me
250 a.domain.com

...but if contacted as b.domain.com:

$ telnet b.domain.com 25
Trying xx.xx.xx.xxx...
Connected to b.domain.com.
Escape character is '^]'.
220 b.domain.com ESMTP
helo from me
250 b.domain.com

Is this possible to setup, with one host ip address?

Reply via email to