Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Try this:
# Define mailbox
SUPPORT=$HOME/mail/support
# Start recipe
:0
# Match all To and CC's
* $^(To|Cc|CC):.*@mydomain.com
# Don't deliver to $DEFAULT
$SUPPORT
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
I'm not sure if unSpawn answered your question or not, but from the
amount of info you posted about the message header, it should be
delivered to your inbox, since your regex matches "To" and "CC", but
your header says the message is "From". . .
Here's an example of what I've got, it's been working like a dream for
years:
Soz, that $ wasn't needed, it would be if you'd use:
DOMAIN_0="mydomain.com"
* $^(To|Cc|CC):.*@${DOMAIN_0}
...so you can delete it w/o probs.
Btw, this is in the procmailrc man page (alas w/o example).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.