Re: Postfix question: How to reject email with a certain subject header

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Gilbert Sebenste wrote:
> Hello everyone,
>
> Occasionally I get emails which have a subject header of "Rejected posting 
> to Blah", from a listserv I am on. Without going into a 10 page diatribe 
> of why, I'd like to reject these automatically, sending them to /dev/null. 
> I used to run Sendmail and that was pretty easy to do. How can I do this 
> under Postfix under CentOS 5.3?
>
> Any help is appreciated. Thanks!
>   

are you using procmail as the delivery agent?  if so, you'd add 
something like the following to your ~/.procmailrc  ...

    :0:
    * ^Subject:.*Rejected posting to Blah.*
        /dev/null


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux