On Wed, May 25, 2016 at 02:43:09PM -0700, David Benfell wrote: > I'm getting relay access denied when my main web server attempts to > relay mail through my main mail server to outside domains. The web > server also functions as a secondary MX (and this seems to work). > Here is the main mail server configuration: > > [root@home ~]# postconf -nf
A lot of junk in there, but I won't comment on that stuff for now. > mynetworks = 127.0.0.0/8, [::1]/128, 192.168.1.0/24, 10.8.0.0/16, > 50.250.218.0/28, [2001:470:67:119::]/64 ----->^^^^^^^^^^^^^^^ > smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated > defer_unauth_destination > Here is the configuration on the web server: > relayhost = mail.parts-unknown.org (That means it does a MX lookup first for "mail.parts-unknown.org" before falling back to A/AAAA.) > smtp_bind_address = 50.250.218.164 > A sample log entry on the web server (with email address obscured): > May 25 07:52:18 vegan postfix/smtp[33049]: 17457F040DA9: > to=<x...@gmail.com>, relay=mail.parts-unknown.org[50.250.218.162]:25, > delay=241020, delays=241020/0.04/0.59/0.02, dsn=4.7.1, status=deferred > (host mail.parts-unknown.org[50.250.218.162] said: 454 4.7.1 > <x...@gmail.com>: Relay access denied (in reply to RCPT TO command)) > > The corresponding entry on the mail server: > May 25 07:52:18 home postfix/smtpd[55825]: NOQUEUE: reject: RCPT from > unknown[50.250.218.164]: 454 4.7.1 <x...@gmail.com>: Relay access > denied; from=<w...@vegan.parts-unknown.org> to=<x...@gmail.com> > proto=ESMTP helo=<vegan.parts-unknown.org> > What other information do I need to supply? What is wrong? 50.250.218.164 is not in 50.250.218.0/28 ... not in $mynetworks -- http://rob0.nodns4.us/ Offlist GMX mail is seen only if "/dev/rob0" is in the Subject: