[comp.mail.sendmail] Mailer description

aggarwal@jvnc.net (Vikas Aggarwal) (05/10/91)

I had earlier asked:

> What exactly is the '$[name$]' rule supposed to do ? The paper (written
> sometime in 1987) says that it replaces the `name' with the cname, and
> I was hoping that it would do the same for the MX entries.

To which Neil W. Rickert had replied:

>> when your mailer selection rules say to forward the message to domain
>> 'foo.bar.domain', sendmail at that time looks up MX records, and attempts
>> to send to the best preference MX host..

Well, I was trying to set up my configuration file so that mail to
abc@foo.domain would resolve to user 'foo' on my host (the user's
account acts like a MBOX). So I defined a class of the 'foo's that I
want to accept mail for, etc and have a ruleset like:

CT arpa com edu gov mil net org
CM usl meckler

# In rule S0...
R$*<@$=M.$=T>           $#local$:$2        @user.TopDomains -> user local

The one major problem being that my host is supposed to be the MX record
for usl.com and *not* usl.edu. Thus, if mail originates from a remote
host, it will make it to my host and this ruleset will deliver the mail
to the proper account. However, for mail *originating* from my host for
usl.edu will also get delivered to my local host.

Is there a way that I could process each message twice- first send it
out to the proper host and if the message comes back (since my host is
has the MX record for the message), *then* I process the message and
deliver it ?

Any help anyone ? Perhaps a mailer description ?

The reason that I am doing this is that I want to accept mail for other
domains and deliver them to accounts on my system- that way my host can
act like a mail storage area. Also, to avoid having a table where each
domain maps into an account name, I just wanted to grab the first word
of the destination domain and use it as the account name- the
destination account is then embedded in the mail address.

Also, the BSD version of sendmail does not handle muilti-token class
matches (so I can't define CM usl.edu pumaat.com) and hope to match
it. I know that the Sun version of MX does, but I don't want to start
all over unless I am absolutely sure that the present BSD sendmail
cannot do what I want it to...


 -vikas
 vikas@jvnc.net						(609) 258-2403
--------------------------------------------------------------------------

rickert@mp.cs.niu.edu (Neil Rickert) (05/10/91)

In article <1991May9.184833.4186@jvnc.net> aggarwal@r2d2.jvnc.net (Vikas Aggarwal) writes:
>Well, I was trying to set up my configuration file so that mail to
>abc@foo.domain would resolve to user 'foo' on my host (the user's
>account acts like a MBOX). So I defined a class of the 'foo's that I
>want to accept mail for, etc and have a ruleset like:
>
>CT arpa com edu gov mil net org
>CM usl meckler
>
># In rule S0...
>R$*<@$=M.$=T>           $#local$:$2        @user.TopDomains -> user local

  What you are doing is very strange.  I really think this is a case where you
need to go back to the drawing board and rethink your strategy.  What you are
trying to do will probably lead to a lot of misdirected or lost mail.

  Perhaps you need to pose a more general view of the problem you are trying
to solve, rather than to ask for help with they particular way you are
trying to solve that problem.


-- 
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
  Neil W. Rickert, Computer Science               <rickert@cs.niu.edu>
  Northern Illinois Univ.
  DeKalb, IL 60115                                   +1-815-753-6940