DevHeads.net

Postfix does not authenticate to relayhost

Hello,

I run two postfix servers. One on my server, which just runs fine and is used to sent mail directly. The other one on my local machine which should relay mail to other one. Problem is that the desktop MTA does not seem to authenticate to its relayhost:

The server says:

May 15 22:10:04 venus postfix/smtpd[20438]: connect from host[x.x.x]
May 15 22:10:04 venus postfix/smtpd[20438]: NOQUEUE: reject: RCPT from host[x.x.x]: 450 4.1.8 < ... at horus dot localdomain>: Sender address rejected: Domain not found; from=< ... at horus dot localdomain> to=<florian. ... at xgm dot de> proto=ESMTP helo=<horus.localdomain>

xgm.de is local to the server. Of course it's right about domain not found, but my relay settings should allow that is sasl_authenticated:

smtpd_relay_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_unauth_destination

smtpd_sender_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_non_fqdn_sender,
reject_unknown_sender_domain,
permit

on the local site it says just the same error message, nothing error like else.

Local configuration is

% postconf -n
[...]
mynetworks_style = host
relayhost = [venus.centershock.net]
smtp_sasl_password_maps = hash:/etc/postfix/relay
smtp_sasl_security_options = noanonymous
smtpd_tls_security_level = encrypt

# cat relay
venus.centershock.net ... at xgm dot de:passwd

and of course "postmap hash:/etc/postfix/relay" ran without errors.

What could be wrong here?

Thanks!
Florian

Comments

Re: Postfix does not authenticate to relayhost

By Benny Pedersen at 05/15/2018 - 16:29

Florian Lindner skrev den 2018-05-15 22:17:

its a dns problem to solve, not postfix

# /etc/hosts

127.0.0.1 horus.localdomain horus

Re: Postfix does not authenticate to relayhost

By Bastian Blank at 05/15/2018 - 16:26

On Tue, May 15, 2018 at 10:17:40PM +0200, Florian Lindner wrote:
'[venus.centershock.net]' != 'venus.centershock.net'. The name needs to
match in full.

Bastian