procmail
[Top] [All Lists]

Re: Mailing Lists vs. Virtual Domains

1997-06-27 14:32:00
    Our Problem: When a client signs up for a
Mailing List/Listserv, using an email address with their
virtual domain name, the mail comes to us instead of
them. How do we tell procmail to redirect this mail to
our clients?

Short of having your ISP include procmail as a local delivery
agent in sendmail.cf, create a mailertable entry for each of
these virtual domains, and then not use the headers (Note,
Philip, I now have religion), but the values passed by
sendmail to procmail, you can't create a filter that will
work in all instances.

Trust me. I've tried. The mail headers just aren't all that
reliable in all cases. And, in the case of BCC's, you're
scrod, because by the time you get the email, this information
is gone.

Procmail, if set up as I've described above, is amazingly
simple. The filter looks something like:

SENDER = $1
RECIPT = $2

:0
* RECIPT ?? ^^username@
! newname(_at_)domain(_dot_)com

I'm not the greatest sendmail hack, trust me. But, now that
I've got the sendmail stuff working, I'm not going back.

---
Bob Gahl KD6KMX Bicycle (Ryan Vanguard) Mobile  ||      @
      ARPA/INTERNET: bgahl(_at_)thesphere(_dot_)com        ||   !_ \
    WWW: http://www.thesphere.com/~bgahl/       ||   (*)-~--+--(*)
"If you're trying to be politically correct you're like a chameleon
 in front of a mirror. What can you say that won't be offensive to
 somebody?"                                        Robin Williams

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