On Sun, May 25, 2008 at 11:43 PM, Alexey Vlasov <renton(_at_)renton(_dot_)name>
On Sun, May 25, 2008 at 09:27:54AM -0700, Bart Schaefer wrote:
What do you mean by "several different copies of sendmail"? They're
listening on different ports? The same port on different virtual IPs?
Yes, you guessed what I meant.
Which guess? Virtual IPs? It's important because there might be a
different approach possible if the sendmail value of $h (the host) is
different for each copy of sendmail. That would probably not be the
case for different ports, but it might be for virtual IPs.
If $h is different each time, then instead of recompiling you could
place in the single common /etc/procmailrc the line
(where $1 will be the host name because of your "-a $h" option in
local_procmail). Then you can have one file named for each virtual
host located in the /etc/procmailrcs/ directory. That directory also
has special semantics depending on the user who owns each file, in
case you need to make use of that feature.
You might even be able to do
but I'm less confident of that.
However, if recompiling procmail is workable for you, I'm glad my
earlier post was helpful.
procmail mailing list Procmail homepage: http://www.procmail.org/