Hello! I have a server running FreeBSD 8.1 with FreeBSD 8.1 jails running on it. I have ipv6 running on both the main server and jails and that is all fine.
I'm running into a strange problem when it comes to postfix though and was wondering if anyone has any clues. What's happening is that postfix will not start automatically when the jail is started when 'inet_protocols' is set to either 'all' or 'ipv4, ipv6'. The error in the logs is: fatal: bind :: port 25: Can't assign requested address. The odd thing is that I can enter the jail right away and start postfix from the command line and it works fine. Also, if I specify the '-D' flag in rc.conf and set the debug command in main.cf to 'sleep 3' then postfix will start automatically when the jail is started. I've also tried setting 'inet_interfaces = loopback-only' in main.cf which gives the following error in the log: fatal: /usr/local/etc/postfix/master.cf: line 22: no valid IP address found: smtp And setting '127.0.0.1:smtp ...' in master.cf works but then postfix only listens on ipv4: tcp4 0 0 jailhost.ssh *.* LISTEN tcp6 0 0 jailhost.ssh *.* LISTEN tcp46 0 0 *.http *.* LISTEN tcp4 0 0 jailhost.smtp *.* LISTEN Setting '[::1]:smtp ...' in master.cf does not work. This is the error in the mail log: fatal: bind :: port 25: Can't assign requested address I've read through the postfix manual, looked around online and tried many different settings but nothing works (besides that hack of running with the -D flag). I'd super appreciate any help or any ideas anyone may have. If more info is needed please let me know and I will post. Below is the output of 'postconf - n' Thank you for your time and help! command_directory = /usr/local/sbin config_directory = /usr/local/etc/postfix content_filter = scan:blocker:10025 daemon_directory = /usr/local/libexec/postfix data_directory = /var/db/postfix debug_peer_level = 2 html_directory = /usr/local/share/doc/postfix inet_protocols = ipv4, ipv6 mail_owner = postfix mailq_path = /usr/local/bin/mailq manpage_directory = /usr/local/man myhostname = example.com mynetworks_style = host newaliases_path = /usr/local/bin/newaliases queue_directory = /var/spool/postfix readme_directory = /usr/local/share/doc/postfix receive_override_options = no_address_mappings sample_directory = /usr/local/etc/postfix sendmail_path = /usr/local/sbin/sendmail setgid_group = maildrop smtpd_client_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_rbl_client sbl.spamhaus.org smtpd_helo_required = yes smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_non_fqdn_recipient, reject_unlisted_recipient, reject_unauth_destination, reject_unknown_recipient_domain, check_policy_service inet:blocker:10031 smtpd_sender_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_non_fqdn_sender, reject_rbl_client sbl.spamhaus.org, reject_unknown_sender_domain soft_bounce = no unknown_local_recipient_reject_code = 550