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

2009-06-20 Thread Gilbert Sebenste
On Wed, 17 Jun 2009, John R Pierce wrote: > nate wrote: >> 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 t

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

2009-06-17 Thread Michael A. Peters
John R Pierce wrote: > > The problem with that approach is that its global to the server.I > dislike putting filtering rules like that in the system, and prefer to > do them on a per user basis, hence my postmailrc suggestion (except I > don't know if CentOS uses postmail as the delivery a

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

2009-06-17 Thread John R Pierce
nate wrote: > 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. >>

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

2009-06-17 Thread Gilbert Sebenste
Hello Nate, On Wed, 17 Jun 2009, nate wrote: > Do you want to reject them or eat them and send them to /dev/null ? Eat them and send them to /dev/null. > If you want to reject them something like this would work: > > header_checks = regexp:/etc/postfix/regexp_table > > and in /etc/postfix/regex

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

2009-06-17 Thread Filipe Brandenburger
Hi, On Wed, Jun 17, 2009 at 19:48, nate wrote: > header_checks = regexp:/etc/postfix/regexp_table > > and in /etc/postfix/regexp_table something like: > /^Subject: This is the subject I want to reject             REJECT 554 Custom > rejection message You missed a "/" to close the regexp... If y

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

2009-06-17 Thread John R Pierce
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 Sendmai

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

2009-06-17 Thread nate
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 a

[CentOS] Postfix question: How to reject email with a certain subject header

2009-06-17 Thread Gilbert Sebenste
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. H