On Tue, May 21, 2002 at 08:29:35PM -0700, Bill Moseley wrote:
I have sendmail and procmail is my MDA on one of my machines. I'm hosting
a few domains. For a given domain, for example, "foo.com" I have sendmail
deliver to all messages to local user "foo".
Now, I want to forward on message sent to admin(_at_)foo(_dot_)com to one
person (on
another domain), webmaster(_at_)foo(_dot_)com to someone else, and so on.
Basically,
create mail aliases.[1]
I set and X-Envelope-To:, and then I use that to match the domain's valid
address and forward onto the right person. For example:
# -- (Webmaster: Bill Moseley )
: 0
* ^X-Envelope-To:.*webmaster
! moseley(_at_)hank(_dot_)org
Simple enough.
The problem is bounces. If moseley(_at_)hank(_dot_)org is a bad address the
bounce
comes back to "foo" on this machine, not back to the *original* sender.
You're trying to swat a fly with a hammer. Far easier to use sendmail's
virtusertable feature to redirect user(_at_)foo(_dot_)com to the proper person.
--
Andrew Edelstein - http://andrew.pure-chaos.com
Please do not reply directly to me, or Cc: me on a reply to a list message.
Replies sent back to the list are more effective, as the discussion remains in
front of the eyes of the rest of the list.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail