Wade Williams a écrit : > I'm having a problem where an installation of Mantis bug tracking > software cannot send mail to external addresses. It sends mail to me > (w...@dogwatchsw.com <mailto:w...@dogwatchsw.com>) fine. However, it > will not send to external email addresses. I've done a lot of google > searching, but not come up with a fix. > > All other mail operations including email to/from my mail client via > courier-imap work fine. > > > >> Apr 23 10:27:43 anagram postfix/smtpd[21916]: connect from unknown[::1] >> Apr 23 10:27:43 anagram postfix/smtpd[21916]: NOQUEUE: reject: RCPT >> from unknown[::1]: 554 5.7.1 <wwill...@cisco.com >> <mailto:wwill...@cisco.com>>: Relay access denied; >> from=<w...@dogwatchsw.com <mailto:w...@dogwatchsw.com>> >> to=<wwill...@cisco.com <mailto:wwill...@cisco.com>> proto=ESMTP >> helo=<www.dogwatchsw.com <http://www.dogwatchsw.com>> >>
the message is sent using IPv6. either configure mantis/apache/whatever to use IPv4 or add ::1 to mynetworks. > > Relevant portions of main.cf: > > myhostname = anagram.dogwatchsw.com > #mydomain = domain.tld > myorigin = $mydomain > proxy_interfaces = 10.1.1.2 > mydestination = /etc/postfix/local-host-names > #local_recipient_maps > #mynetworks_style > mynetworks = 10.0.0.0/24, 10.1.1.0/24,127.0.0.0/8 > relay_domains = $mydestination > relayhost = [smtp.comcast.net] > #relay_recipient_maps = hash:/etc/postfix/relay_recipients > > > > Contents of /etc/postfix/local-host-names: > > localhost > localhost.dogwatchsw.com > anagram > anagram.dogwatchsw.com > dogwatchsw.com > www.dogwatchsw.com <http://www.dogwatchsw.com> > > > One google search suggested that the problem might be IPv6 host names in > /etc/hosts, so I removed those and rebooted with no effect. > > Contents of /etc/hosts: > 127.0.0.1 localhost.dogwatchsw.com localhost > 10.1.1.2 anagram.dogwatchsw.com anagram > > > Any thoughts? > > Wade