Thanks *so* much! :-)
The help (and also general guidance) is *profoundly* appreciated
And yes, grabbing Cc's would be a highly desireable ability I would
although to be candid I didn't ask. It's a safe assumption! :-)
* ^To: .+(.+\.)*customer_domain.com
Will this *leave* mail for site3 in the spool to be grabbed
servers' fetchmail/(or whatever_form_of_retrieval)??
To my eyes procmail simply dumps a *copy* of all mail into
mail directory and does nothing else since it sees the recipe as a
Should a lockfile be used here in case there is any
for the site and several instances of procmail might be running
You're about right. Yes, you do want to use a lockfile - even with
insignificant traffic the laws of the universe insist that
two mails to
that domain will arrive at the same time.
It will deliver a copy to that mailbox and deliver another copy to
wherever the mail would have gone if you didn't have any recipes.
In your regular expression the '(.+\.)*' is redundant as the previous
bit '.+' will already match against anything!
Do you *only* want to take copies of mails that have that domain
explicitly in a 'To:' header, or do you want to include 'Cc:'
well? If the latter, you probably want to use the '^TO_' macro. And
whilst it is unlikely to matter, you probably want to escape
period in the domain name. I'd suggest:
procmail mailing list