OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Re: Problem when using Postfix as SMTP
From: Ralf Hildebrandt (R.Hildebrandttu-bs.de)
Date: Mon Feb 07 2000 - 11:24:08 CST


On Mon, Feb 07, 2000 at 03:54:59PM +0100, Roman ?trobl wrote:

> it rejects any recipient's address when the address
> isn't listed in $mydestination, in $relay_domains or in $virtual_domains.

Log entries please.
main.cf please

> It reports the 554 error (recepient's address rejected).
> I want Postfix to deliver mail to ANY user/domain.

But only FROM machines in $mynetworks -- otherwise you end up with an open
relay, a machine that will be abused for spamming.

> Now my configuration is
> smtpd_recepient_restrictions = permit, reject
> because only then Postfix sends mail to anyone. Then Postfix

Please: You don't know what you're doing, read the manual.

> reports a warning - 'reject after permit is ignored'.

That is because the first match (permit) wins.
"permit" permits ANY host for smtpd_recepient_restrictions

> Is there some normal way how to configure Postfix in such a manner that
> it delivers mail as SMTP to anyone?

Why don't you just use the default main.cf that is installed and set
$mynetworks and $mydestination correctly?

-- 
Ralf Hildebrandt <R.Hildebrandttu-bs.de> www.stahl.bau.tu-bs.de/~hildeb
Yea, tho I walk thru the valley of the shadow of clues, I shall fear
no luser, for Thou lart with me, Thy chicken and Thy manual, they
comfort me.