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

Re: Re: [cobalt-users] Two mail servers with copy of mails



>George K Cyriac wrote:
>> NFS/Samba may not work. Two servers are in two locations (1500 kms away)
>> 
>
>Hi,
>
>According to "man procmail":
>If  no  rcfiles  and  no  -p have been specified on the command
>line, procmail will, prior to reading $HOME/.procmailrc,
>interpret commands from /etc/procmailrc (if present). Care must
>be taken when  creating  /etc/procmailrc,  because,  if
>circumstances permit, it will be executed with root privileges
>(contrary to the $HOME/.procmailrc file of course).
>
>So... you can have a /etc/procmailrc instead of the 1000s of
>..procmailrc in each user directory.

But in procmailrc, we should specifiy the complete destination address. With a single procmailrc, I may need to specify that if user1@xxxxxxxxxxx  then send to user1@xxxxxxxxxxx and if user2@xxxxxxxxxxx, then send to user2@xxxxxxxxxxx etc.  Specifying 1000s of rules in a single procmailrc also  is a laborious work. Can I extract just the username from the incoming mails and send create email addresses like username@xxxxxxxxxxx on the fly.

George K Cyriac