From: mouss (no email)
Date: Thu Feb 01 2007 - 16:34:04 EST
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.
|
|
|