OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: access file : DISCARD vs REJECT

From: mouss (usebsdfree.fr)
Date: Fri Apr 07 2006 - 09:46:13 CDT


Pascal Maes wrote:
> hello,
>
> In main.cf, I have a rule for smtpd_recipient_restrictions which says :
>
> check_sender_access hash:/etc/postfix/access
>
> In the file access, I have the following line :
>
> namedomain.be REJECT
>
> and it works !
>
> mail from: namedomain.be
> 250 2.1.0 Ok
> rcpt to: pascal.maeselec.ucl.ac.be
> 554 5.7.1 <namedomain.be>: Sender address rejected: Access denied
>
>
> If I replace REJECT by DISCARD, it doesn't work anymore (I receive the
> mail)
>
> mail from: namedomain.be
> 250 2.1.0 Ok
> rcpt to: pascal.maeselec.ucl.ac.be
> 250 2.1.5 Ok
>
>
> What's wrong ?

do not discard unless you know why.