procmail
[Top] [All Lists]

Re: QU: Filtering by fake Domains names?

1996-03-07 02:22:59
On Tue, 05 Mar 1996 18:57:46 PST , Soren Dayton writes:

name(_at_)domain1(_dot_)com  user1
name(_at_)domain2(_dot_)com  user2
name(_at_)damain3(_dot_)com  user3

Sendmail on our system does not recognize to different domains, this the
.procmailrc that i have in a dummy account of 'name'

    13  :0Eh
    14  *  ^Toname(_at_)domain2(_dot_)com
    15  ! user2(_at_)bway(_dot_)net

 I repeat.  This fails.  This will fail because what youare doing is
assuming that information about who the mail goes to is in the headers.
This is _false_.  The way to do this is in the transport agent.
Sendmail has a very nice databse mechanism for doing this.  use that.
it actually has a prayer of succeeding.


Could you elaborate more?  I have read large chunks of the sendmail book but I
haven't seen any database mechanisms for routing virtual domains to common
aliases.  Does sendmail support multiple alias files or LHS domain matching?

If the information is not in the header then I don't see how it could work.  
How
does sendmail figure it out?  Does my version work because I have only been
testing with intellegent mailers?