Madeleine Birkemose wrote:
I have a very simple problem. I have a small /28 network and I want my
postfix host (mose.fekiworld.dk, 87.48.217.12) to relay ALL mail for
all my other machines in this network. However, even if I set
mynetworks right, and I still get 554-rejections like this (from
mail.log):

Mar 21 17:25:50 mose postfix/smtpd[14019]: NOQUEUE: reject: RCPT from
ippenutt.fekiworld.dk[87.48.217.3]: 554 5.7.1 <madeb...@gmail.com>:
Relay access denied; from=<madeb...@ippenutt.fekiworld.dk>
to=<madeb...@gmail.com> proto=SMTP helo=<ippenutt.fekiworld.dk>

How is this possible?

The error suggests the client is not listed in mynetworks.


mose.fekiworld.dk has ip 87.48.217.12.

Names has been changed to protect the innocent.

This was so simple with qmail.

Any new system requires a learning curve. In this case, the curve isn't too steep and well worth the effort.


-- Madeleine



My postconf -n looks like this:

mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128

This shows the setting in main.cf, ie. what postfix will use. The client IP from the log snippet is not included here.


postconf -d | grep -i mynetwork looks like this:

mynetworks = 127.0.0.0/8 87.48.217.0/28

postconf -d shows compiled-in defaults, which are overridden by settings in main.cf. In particular, postconf -d does NOT show what settings postfix will use.

To fix the problem, change the setting of mynetworks in your main.cf to include the networks authorized to relay. Maybe all you need to do is remove the explicit setting and let postfix use the default... can't get easier than that.

  -- Noel Jones

Reply via email to