procmail
[Top] [All Lists]

Re: if from mydomain.com pass on

2006-05-15 20:22:05
i'm looking for a rule in procmail that says, 'If from
*(_at_)mydomain(_dot_)com then
don't pass it onto spamassassin, just send it to the users inbox'.

You might want to be careful about this.

I would check for my Received: header instead.

Well I have thought about that, I'm trying to get postfix to add an extra
header 'X-trusted-domain: yes' or something like that and then add the
following rule into postfix in replace of my old rule.

change:

:0:
* ^From:(_dot_)*(_at_)cathedral\(_dot_)qld\(_dot_)edu\(_dot_)au
$DEFAULT

to

:0:
* ^X-Trusted-localdomain: yes
$DEFAULT

So it only bypasses spamassassin if it comes from my e-mail server.

But i'm having a bit of trouble doing that at the moment, i've added the
following lines into my /etc/postfix/main.cf file

smtpd_data_restrictions = check_client_access
       cidr:/etc/postfix/add_local_header

But it seams to add the header information located in
/etc/postfix/add_local_header file on every e-mail that comes into or
leaves the system, not only the e-mails that are sent.

I know this isn't the postfix mailing list, but does anyone have any
idea's on that?

1) how I could get it to only add on send, not recieve
2) Is that a good idea, or is there a secuirty flaw in that too?



____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>