procmail
[Top] [All Lists]

Re: Recipies

2001-04-02 08:47:46
On  2 Apr, Andrew Kenna wrote:
| I have a procmail recipie that I want to make run on 5 different domains
| that are configurd under sendmail... What steps will I need to take so this
| will happen ? 

You haven't given much information to work with.  The only safe answer
I can think of is to suggest you put it in an rc file that is sure to
be used by procmail no matter which of the 5 domains the message is
delivered to.

Just so you don't think I'm trying to be a wise guy, I'll add the
following.  *If* you mean the 5 domains are hosted by the same sendmail
server(s), and you have a fairly typical setup with procmail as LDA,
procmail should read /etc/procmailrc before going to any individual
users ~/.procmailrc files.  So that would be a likely place to put it.
Or maybe better, in another rcfile that's called via an INCLUDERC=
statement in /etc/procmailrc.  For example, I have two mail servers that
each receive mail for 3 different domains. My /etc/procmailrc includes:

RCDIR=/etc/procmailrcs
INCLUDERC=$RCDIR/autopassrc
INCLUDERC=$RCDIR/.varsrc
INCLUDERC=$RCDIR/.xlooprc

Each of those rcfiles is processed by procmail regardless of which of
the domains the message is for. If that's not what your after, you'll
probably need to offer a couple more clues about your setup and what it
is you're trying to do.

-- 
                         /"\
Don Hammond              \ /     ASCII RIBBON CAMPAIGN
Raleigh, NC US            X        AGAINST HTML MAIL,
                         / \      AND NEWS TOO

_______________________________________________
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>
  • Recipies, Andrew Kenna
    • Re: Recipies, Don Hammond <=