[H-GEN] Procmail receipe

Harry Phillips hphillips at 4ward.com.au
Wed Jan 15 23:44:09 EST 2003


[ Humbug *General* list - semi-serious discussions about Humbug and     ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]

Ok here is the setup.

1. Mail sent to the clients domain goes to a service provider that checks it
for viruses and gets put into the one account.
2. The linuxbox (10.0.0.1) at the client's site collects the mail from
there, using fetchmail to the only user account on the box (user1).
3. The procmail rules then send the mail to the appropriate accounts on the
Exchange server (10.0.0.3)
4. In case one mail message is sent to multiple people all the rules use :0c
at the start
5. This causes the mail to fall out the bottom and get stored in the IMAP
account of user1 (the default).
6. Mail that doesn't match any user doesn't get sent to the exchange server,
only stored in the IMAP account.

What I would like to do is if the mail doesn't match any particular person
then it gets sent to the a particualar Exchange user (say userx).

I tried setting 'DEFAULT=!userx at exchangeserver' to the .procmailrc of the
user1 on the linuxbox but that failed.

I tried having a rule at the end;
:0
!userx at exchangeserver

But because all messages end up going through the rule then
userx at exchangeserver ends up getting ALL mail coming in.

Has anybody got any ideas on how to get procmail to send userx the mail if
it doesn't match one of the other rules but not all the mail?

Regards
Harry Phillips
4ward Computer Services
Director
3881 2355

ICQ: 152412783
MSN: msn at 4ward.com.au
AOL: fourwardcomp
Yahoo: fourwardcomp
Linux counter project ID #177176


--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.  See http://www.humbug.org.au/



More information about the General mailing list