procmail
[Top] [All Lists]

help needed: global procmailrc vs ~/.procmailrc

2000-08-02 22:45:06

Hello everone!

I've been researching for a solution to this problem off and on the last
few months, and now its becomming a more and more important issue where I
need to make something work or not. I'm hoping one of you experts on here
could help me out or at least push me in the right direction. 

Not sure how much to describe the problem, so I'll explan the setup I am
trying to obtain. 

My company manages a number of virtual sites. We provided email, and
for each virtual site we have a few default sendmail aliases that get sent
or will be sent in the future to a central server, where further sendmail
aliases either drop the email in a users inbox or into a file in the mail
spool directory not associated with a particular user. For example,
webmaster mail went to any of the viraul sites will go to our companys
webmaster, and postmaster and root mail go to a file called virt-root and
virt-postmaster. 

My goal is to set up a specialized autoresponder for most of this aliases,
where the autoresponce will not look like its coming 
alias(_at_)mycompany(_dot_)com,
but rather from alias(_at_)virtualdomain1(_dot_)net , 
alias(_at_)virtualdomain2(_dot_)net, etc. 
For mailboxes such as webmaster (where the user exists on that system) I
such a autoresponder written in procmail that does it very well. However,
I'm having trouble setting up this autoresponder to "drop-boxes" as I call
them such as virt-root and virt-postmaster (where no such user is on the
system). I believe it can be done, via a global procmail filter
(/etc/procmailrc), however, all the reading I am done in the procmail help
files, man pages, and faq's, little is talked about the procmail filter,
or at least some examples that would help me out in this situation.
Specificily, I want to tell the global procmail filter to be run for
incoming mail to a particular drop-box. 

I'm between two choices- either get the global procmail filter figured
out, or change all the incoming sendmail aliases to go to existing user
account on that system, and have the ~/.procmailrc that I am used to. 

so, two questions I have here: 

1. is it possible to have a global procmail filter to run multiple filters
against a number of dropboxes, for every incoming mail like the
~/.procmailrc does? if so, how would I go about doing it? 

and, more importantly... 

2. Is it really feasible (having a global procmailrc filter)? it seems
like no-one is uses a global procmailrc filter like this, and its just as
easy to just set up a user on the system for that. 

thanks in advance for any help anyone can give me! :) 

                        Chad :)



_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>