Hello Postfix Experts, I have a FreeBSD 10.1-STABLE system with postfix-2.11.5,1.
# ifconfig lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6> inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 inet 127.0.0.1 netmask 0xff000000 nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> xn0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=503<RXCSUM,TXCSUM,TSO4,LRO> ether 00:16:3e:7f:3b:d8 inet 162.217.113.30 netmask 0xfffffffc broadcast 162.217.113.31 inet 199.233.231.176 netmask 0xffffffff broadcast 199.233.231.176 inet 199.233.231.177 netmask 0xffffffff broadcast 199.233.231.177 inet 199.233.231.178 netmask 0xffffffff broadcast 199.233.231.178 inet 199.233.231.179 netmask 0xffffffff broadcast 199.233.231.179 I want Postfix send mail from 199.233.231.177, so I set: # postconf inet_interfaces inet_interfaces = 199.233.231.177, localhost But, the mail log on the destination server says: Jun 5 13:43:52 barrida postfix/smtpd[54769]: connect from gtxd.x.rootbsd.net[162.217.113.30] So, I added to the main.cf file: # postconf smtp_bind_address smtp_bind_address = 199.233.231.177 And now Postfix sends mail from the desired IP address, 199.233.231.177. Jun 5 16:24:47 barrida postfix/smtpd[56193]: connect from unknown[199.233.231.177] But I should not need smtp_bind_address set to 199.233.231.177 as according to http://www.postfix.org/postconf.5.html#inet_interfaces "When inet_interfaces specifies just one IPv4 and/or IPv6 address that is not a loopback address, the Postfix SMTP client will use this address as the IP source address for outbound mail." Evidently, I'm missing something, would you please help? # postconf -n bounce_queue_lifetime = 24h command_directory = /usr/local/sbin config_directory = /usr/local/etc/postfix daemon_directory = /usr/local/libexec/postfix data_directory = /var/db/postfix debug_peer_level = 2 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5 disable_vrfy_command = yes html_directory = /usr/local/share/doc/postfix inet_interfaces = 199.233.231.177, localhost inet_protocols = ipv4 mail_owner = postfix mailbox_size_limit = 0 mailq_path = /usr/local/bin/mailq manpage_directory = /usr/local/man maximal_queue_lifetime = 24h message_size_limit = 67108864 mydestination = $myhostname, localhost, $mydomain myhostname = smtpd.telissant.net mynetworks = 127.0.0.0/8, 199.102.77.99/32, 199.233.230.156/32, 199.233.231.177/32 newaliases_path = /usr/local/bin/newaliases notify_classes = 2bounce, resource, software queue_directory = /var/spool/postfix readme_directory = /usr/local/share/doc/postfix sample_directory = /usr/local/etc/postfix sendmail_path = /usr/local/sbin/sendmail setgid_group = maildrop smtp_bind_address = 199.233.231.177 smtpd_tls_CAfile = /etc/ssl/startssl.ca-bundle.pem smtpd_tls_cert_file = /etc/ssl/smtpd.telissant.net.startssl.crt smtpd_tls_key_file = /etc/ssl/private/smtpd.telissant.net.key smtpd_tls_loglevel = 1 smtpd_tls_received_header = yes smtpd_tls_security_level = may strict_rfc821_envelopes = yes unknown_local_recipient_reject_code = 550 -- Janos Dohanics