Amira Othman:
> Hi all
> 
> I want to know which ip postfix is using to send mails as I am configuring
> it (inet_interfaces = all) and also I need to assign each domain on my
> server different ip address .how can I implement that?

To give each domain its own personality, use multiple Postfix
instances. Configure in each Postfix instance's main.cf file a
unique inet_interfaces setting that binds the Postfix instance to
its own IP address.

> I am using postfix 2.3 

Support to manage multiple Postfix instances was introduced with
Postfix 2.6. You can roll your own, with some effort.

List the "other" instances in the default Postfix instance.

/etc/postfix/main.cf:
    alternate_config_directories = 
        /etc/postfix-example.com,
        /etc/postfix-example.net,
        ...

To distinguish between the logging of instances:

/etc/postfix-example.com:
    syslog_name = postfix-example.com

/etc/postfix-example.net:
    syslog_name = postfix-example.net

To start each instance:

    postfix -c /etc/postfix-example.com start
    postfix -c /etc/postfix-example.net start

Stopping, reloading etc. happens in similar ways.

        Wietse

Reply via email to