Linux Addict a écrit :
> Unfortuantly that hosts also sends some legitimate mails. I just want to
> block those two mail ids for now.
unfortunately for you, if the host is owned, it will find other sender
addresses...
>
> smtpd_sender_restrictions = hash:/etc/postfix/sender_access
>
put the name of the check explicitely:
smtpd_sender_restrictions =
check_sender_access hash:/etc/postfix/sender_access
don't forget to postmap the hash map.
> sender_access has following entries, but not working.
>
> [EMAIL PROTECTED] REJECT
> [EMAIL PROTECTED] REJECT
>
>
> Anything wrong here?
>
it's ok, but see note above (a sender address is easily forged unless
you use reject_sender_login_mismatch).