home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!Germany.EU.net!rt!hera!grant
- From: grant@iva.k8.rt.bosch.de (Joseph C. Grant K8/IVA3 Tel. ++49-7121-35-2981)
- Newsgroups: comp.mail.sendmail
- Subject: Re: SunOS sendmail and OR flag
- Message-ID: <2169@osiris.bosch.de>
- Date: 13 Nov 92 09:21:18 GMT
- References: <1992Nov4.223112.26521@newsgate.sps.mot.com>
- Sender: news@rt.bosch.de
- Reply-To: grant@iva.k8.rt.bosch.de
- Organization: Robert Bosch GmbH., Reutlingen, Germany.
- Lines: 45
- Nntp-Posting-Host: tdvgt
-
- In article 26521@newsgate.sps.mot.com, embry@chdasic.sps.mot.com (Mike Embry) writes:
- >Does anybody know what process sendmail is going through on a Sun when using the OR
- >flag? I'd like to have all mail from root in the form root@hostname. This is
- >the default if you are running sendmail in the background daemon mode and are
- >using sendmail.subsidiary.cf as your sendmail.cf. However, when the OR flag (relay
- >all mail to another host) is used sendmail seems to ignore the sendmail.cf file so
- >all mail from daemons, etc is simply addressed to root.
- >
- >Any ideas, anyone? Short of stop using the OR option?
- >
-
- As I understand it, the R option instucts SunOS sendmail to forward all mail
- to the machine where the /usr/spool/mail directory is mounted from once it has
- finished all other processing. So even if sendmail resolves the mail to the
- local mailer agent, SunOS takes the end product and forwards it to the machine
- name it finds in the mount command.
-
- I would imagine that in your case, sendmail is resolving the mail to the local
- mailer agent, and therfore only writing From: root in the header. It then hits
- the R option and dutifully sends the message to the mail server and ignores the
- program (P=) and argument vector template (A=) for the local agent - at least
- that is what I think happens here :-).. One possible solution might be to add
- a line to the S rule for the local agent telling it that if the mail is from
- root, then add @machinename i.e.
-
- Mlocal, P=/bin/mail, F=rlsDFMmnP, S=10, R=20, A=mail -d $u
-
- S10
- Rroot root<@$w>
-
- Ruleset 4 should then defocus this to root@$w and just before /bin/mail -d $u
- is called, the R option kicks in, grabs the mail, and sends the message to the
- mail server.
-
- It works for me, however one thing I have learnt is that no two sendmail
- environments are identical :-)...
-
- Joe.
-
- ---
- Joe Grant. Bosch Postmaster
- Robert Bosch GmbH. Tel: +49-7121-352981
- K8/IVA3, Postfach 1342, Fax: +49-7121-352687
- 7410 Reutlingen. Germany. E-mail: grant@rt.bosch.de
-
-