[SOLVED] IP 1.2.3.4/30 in Networks = Relay access denied 5.7.1

Mar 26, 2023
68
10
8
Hi there,

I have added a client single IP like 1.2.3.4/30 in Configuration > Mail Proxy > Netowks, and I can see it in file /etc/pmg/mynetworks on any node in the cluster.

The client has set his mail server to relay to my PMG on port 26.

However, the client receives 'Relay access denied 5.7.1' when trying to smart host to me.

Example log:

Code:
Oct 12 09:02:29 node2 postfix/smtpd[3336182]: NOQUEUE: reject: RCPT from mail.example.com[1.2.3.4]: 554 5.7.1 <user@gmail.com>: Relay access denied; from=<info@example.com> to=<user@gmail.com> proto=ESMTP helo=<mail.example.com>

Any ideas on what I can check to fix this?

Mail Gateway 7.3-8

Thanks,
C.
 
Last edited:
please restart postfix for good measure - and if this does not help - share the logs
 
  • Like
Reactions: kez
Glad to hear - was the postfix restart what's missing?