On Sunday, November 23, 2008 at 17:34 CET,
     sharad kanekar <[EMAIL PROTECTED]> wrote:

> I am working as system administrator of postfix-2.3.3-2 on CentOS 5.
> One of our group ID is getting spam mails from  one hotmail user.
> My question is that can I block this particular e-mail ID of hotmail?
> If yes please suggest how can I do it?

/etc/postfix/main.cf:
smtpd_sender_restrictions = check_sender_access hash:/path/to/file

/path/to/file:
[EMAIL PROTECTED]             REJECT

More reading:
http://www.postfix.org/access.5.html
http://www.postfix.org/postconf.5.html#check_sender_access
http://www.postfix.org/SMTPD_ACCESS_README.html
http://www.postfix.org/DATABASE_README.html

You can place the restriction under smtpd_recipient_restrictions if
you like, but make sure you place it after reject_unauth_destination
to avoid becoming an open relay if you mistakenly add a line returning
OK to the access table.

-- 
Magnus Bäck
[EMAIL PROTECTED]

Reply via email to