rand@hwcae.cfsat.honeywell.com (Douglas K. Rand) (02/14/91)
I'm having a problem with sendmail (v5.65) and having two different mailers defined as "local". We have 95% of our users that want thier mail delivered into something called "Mentor mail". (This is a piece of garbage, but the users think it is easy to use.) To get the user's mail into Mentor mail, a program called mailgate must be run. (Mentor mail does not use the standard /usr/spool/mail directory. It stores all mail under the user's home directory. Thus it requires a special delivery agent.) There are a few of us who want thier mail delivered the traditional Unix way. Easy enough I thought. Define a class with all the user names that wish delivery via Unix and define a mailer called "unix" to pump the mail into /bin/mail. This works fine, except for one small, trivial thing, that bothers me to no end. If the person sending mail (through sendmail) is in the class that wishes Unix style delivery, the From: line will not have a full name. It will look like: From: rand@hwcae.cfsat.honeywell.com But, if someone who is not in the "unix" class sends mail (again through sendmail) the from line will have the full name: From: root@hwcae.cfsat.honeywell.com (The Root) Switching the names of the mailers around, and making the name of the mailer that delivers to /bin/mail "local" reverses the situtation. My question comes down to this: Can I have two mailers defined as local mailers? Can they be equal? Here are some fragements from my sendmail.cf file: [...] # # These are the foolish people who want to get their mail # through Unix mail instead of that brain dead Mentor mail. # CCrand CCclark CCtimsc CCchrisa CCrogers [...] # # Mail for everything else is local delivery. First check to see if # they want it via Unix. # R$=C $#unix$:$1 deliver via Unix mail # # Not Unix deliver, so send it to them through Mentor mail (Yuck!) # R$+ $#unix$:$1 local delivery via Mentor mail [...] Mlocal, P=/idea/sys/lib/mailgate, F=lsDFMmx, S=10, R=20, A=mailgate -f $g -t $u Mprog, P=/bin/sh, F=lsDFMeu, S=10, R=20, A=sh -c $u S10 R$+<@$+.UUCP> $@$2!$1 u@h.uucp => h!u R$-<@$Q.$D.$E.$F> $@$1 user@thishost => user R$-<@$-.$D.$E.$F> $@$1@$2 user@host.thisdom => user@host S20 R$+<@$+.UUCP> $@$2!$1 u@h.uucp => h!u R$-<@$Q.$D.$E.$F> $@$1 user@thishost => user R$-<@$-.$D.$E.$F> $@$1@$2 user@host.thisdom => user@host [...] Munix, P=/bin/mail, F=SlsDFMPpmnr, S=11, R=21, A=mail -d $u Mprog, P=/bin/sh, F=lsDFMpxehu, S=11, R=21, A=sh -c $u S11 R$-<@$Q.$D.$E.$F> $@$1 user@thishost => user S21 R$-<@$Q.$D.$E.$F> $@$1 user@thishost => user [...] PS: Since I'm doing the post any way, is there a way to remove the host name from local deliverys? When I send mail to someone locally, the From line will have the domain name appended on to it. Is there a way to strip that off hand have it just the user name? Thanks... -- Douglas Keenan Rand Honeywell -- Air Transport Systems Division Phone: +1 602 436 2814 US Snail: P.O. Box 21111 Phoenix AZ 85036 Internet: @cim-vax.honeywell.com:rand@hwcae.cfsat.honeywell.com -or- drand@hi-csc.honeywell.com UUCP: ...!uunet!asuvax!apciphx!hwcae!rand