OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Invalid address and bounce from Exchange

From: mouss (mlist.onlyfree.fr)
Date: Thu Feb 01 2007 - 15:34:04 CST


Eray Aslan wrote:
>
>
> For the record, I added the following to the main.cf:
>
> smtpd_recipient_restrictions =
> ...
> check_sender_access regexp:/etc/postfix/empty_local
> ...
>
> /etc/postfix/empty_local:
> /^.+/ REJECT No empty local part in email addresses please
>
> Any caveats I should be aware of?
>
>

.+ at the end or beginning of regular expressions is useless. so /^/
should do.

Mark's suggestion (strict_rfc821_envelopes) is a better solution.