[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PostFix: Refuse 'spam' mail ?
Michael Kaaber writes:
> I run OpenBSD 2.8 and PostFix Snapshot-20001005
>
> In the main.cf I have setup:
>
> maps_rbl_domains = rbl.maps.vix.com, dul.maps.vix.com
>
> I receive spam from 'hahaha@sexyfun.net' with a virus 'W32/Hybris-B' in the
> Attachment.
>
> How did I setup PostFix refuse mail from 'sexyfun.net' ?
/etc/postfix/main.cf:
header_checks = pcre:/etc/postfix/badheaders
(or use regexp if your postfix has no pcre support; postconf -m will tell)
/etc/postfix/badheaders:
/From:.*@sexyfun\.net/ REJECT
> I is possible to send a 'refuse' mail back to the user ?
Why? This would be pretty useless.