Procmail help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Apr 25 2004  5:58 AM, Saqib Shaikh wrote:
> HI
> 
> I've read the procmail and procmailrc man pages but am still having problems
> configuring procmail.  Hoping someone here could help:
> 
> I run a domain, and I want email forwarded to one person sent to their ISP
> email address, and likewise for the other users.  The .procmailrc file is
> below:

You may want to use the special form for the expression

* ^TO_user1 at domain.com

This will cause your recipe to apply to all the To: CC: ETC. fields that the mail could be sent to.

> :0
> * ^to: .*user1 at domain.com
> ! user1 at isp.com
> 
> :0
> * ^to: .*user2 at domain.com
> ! user2 at isp.com
> 
> :0
> * ^to: .*all at domain.com
> ! user1 at isp.com,user2 at isp.com
> 
> :0
> * ^to: .*@domain.com
> ! user1 at isp.com

What is happening to the messages? Are they going anywhere? You probably want to log what procmail is doing, and you may want to use the example recipe in the procmailex man page that makes sure that procmail doesn't lose messages, but keeps a backup copy of all the messages it has processed recently.

- -- 
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan

Thomas Stivers	e-mail: stivers_t at tomass.dyndns.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAi0eY5JK61UXLur0RAk8xAJ47cCAbf6/hgJ7KFVkYccJR2dPzEACfdQXT
nhGYbPTePP8VepqOnqZereY=
=rkp7
-----END PGP SIGNATURE-----




[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux