Le 20/07/2012 14:52, Naval saini a écrit : > > I have created postfix-out1 instance on centos 6.3 server which has 3 > different IP-address 3 different Hostname now both default postfix and > postfix-out1 instance running. > Hostname=r09.example.com which have IP=x.x.x.x and i want postfix-out1 > instance send all mails from Hostname=r09a.example.com which have > IP=y.y.y.y. > my server currently showing hostname=r09.example.com with IP=x.x.x.x > In /etc/postfix-out1/main.cf > hostname=r09a.example.com > domainname=example.com > inet_interfaces =y.y.y.y > relay_domains =example.com > multi_instance_group = mta > multi_instance_name = postfix-out1 > multi_instance_enable = no > master_service_disable = " " > authorized_submit_users =root > smtpd_authorized_xforward_hosts = $mynetworks > smtpd_client_connection_count_limit = 0 > smtpd_client_event_limit_exceptions = $mynetworks > smtp_bind_address = 0.0.0.0 > local_header_rewrite_clients = > alias_maps = > alias_database = > local_recipient_maps = > local_transport = error:5.1.1 Mailbox unavailable > recipient_delimiter = + > smtpd_recipient_restrictions = permit_mynetworks > smtpd_timeout = 1200s > smtpd_client_port_logging = no > > > /etc/postfix-out1/master.cf > 127.0.0.1:10026 inet n - n - - smtpd > > Now please tell me what configuration i have to make to send mails from > r09a.example.com with IP=y.y.y.y ? >
remove smtp_bind_address. or set it to y.y.y.y if it is set to 0.0.0.0., then it is your kernel which selects the source IP (based on the destination IP).
