Le 21/07/2012 14:32, Naval saini a écrit : > I have changed it with smtp_bind_address = y.y.y.y > now i want to know how i can check it by sending a mail or should i > configure a null client also.? >
postfix comes with a sendmail command. $ sendmail -f sender@yoursytem recipient@someotherplace Subject: test test . then check the headers of received message. PS. please: - do not top post. put your reply after the text you replay too. Google for "top posting" to see why etc. - keep the discussion on the list. this will give you more chances to get an answer from the so many members > > On Sat, Jul 21, 2012 at 3:56 PM, mouss <mo...@ml.netoyen.net> wrote: > >> 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). >> >> >> >