procmail
[Top] [All Lists]

Re: Why implicit lockfile from "/usr/sbin/sendmail

2003-12-03 05:35:03
At 12:35 2003-12-03 +0100, Sjaak Nabuurs wrote:

:0 H:
*^From:.*(domain.com|domain2.com|domain3.com)
/var/spool/mail/user-jos

H flag is unnecessary here - it's the default. you should escape the dots, and really should consider putting in a check for an @ delimiter and host. $DEFAULT might suffice, depending upon whether this is the user's own procmailrc or not.

:0:
* ^From:.*@([-_a-z0-9}+\.)?(domain\.com|domain2\.com|domain3\.com)\
        ([^-_a-z0-9]|$)
/var/spool/mail/user-jos

:0c:
! second(_at_)user(_dot_)com

Lose the trailing colon flag - you're not writing to a file. You should also consider putting in some anti-loop code so that when there's a delivery problem with that user, you don't compound it. Why are you specifying a 'c' here - where does the remaining copy get delivered?

---
 Sean B. Straw / Professional Software Engineering

 Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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