2009/3/23 Madeleine Birkemose <madeb...@gmail.com>: > 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>
Your setup sounds okay, but the postconf says otherwise. From the docs: "$mynetworks_style (default: subnet)" "If you specify the mynetworks list by hand, Postfix ignores the mynetworks_style setting." > postconf -d | grep -i mynetwork looks like this: > > mynetworks = 127.0.0.0/8 87.48.217.0/28 > mynetworks_style = subnet That looks correct to me. > My postconf -n looks like this: > > <snip> > myhostname = mose.fekiworld.dk > mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 > myorigin = /etc/mailname > <snip> It looks like you (or something else) have set $mynetworks to localhost addresses and no subnet addresses (IPv6, too!). Check your main.cf and check. You should be able to remove mynetworks and restart postfix, I think it should Just Work then.