From: Chad Glynn <cytroic(_at_)netaxs(_dot_)com>
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.
It might be doable. I manage 13 domains from one .procmailrc. If you
reply to my Reply-To: address on this this and remove the "+noacks" I've
inserted, you'll get an auto-reply from one of them. If you reply to
others, you get the same auto-reply (it could have have been a different
one) but with the "fill-in-the-blanks" admin and domain addresses
altered.
I'm not using a global, as I'm just a user on my virtual host.
I don't know whether such a thing is wise or not. I suspect you'll get
comments from people on the list that sendmail is a better way to go.
But I'd like, myself, to see what people say.
If you go to the procmail list archives - searchable through a link at
procmail.org - and look for "virtual domains", you'll find a lot of
discouraging remarks. It's not an easy way to go. And there are some
serious "gotchas" that could indicate that You Really Ought To Be
Using Sendmail. (Bcc's? Cc's to users across domains, all on your
system? A mixture of alias addresses and real addresses coming in?
Etc., etc.)
Anyway, easy enough to tell formail to reset the "From:" address, if
that's your main goal, e.g., to "postmaster(_at_)domain1(_dot_)com".
--
\ .-. .-. .-. .-. .-. .-. .-. /
\-d-/-m-\-a-/-n-\-(_at_)-/-n-\-e-/-t-\-c-/-o-\-m-/-.-\-c-/-o-\-m-/
'-' '-' '-' '-' '-' '-' '-' '-'
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail