grants@syacus.acus.oz.au (Grant Sayer) (02/05/91)
Can anyone recommend a suitable delivery agent to be used for the 'Mlocal' specification in sendmail that will handle the From lines. Presently, I'm using the following specification in sendmail.cf - Mlocal, P=/bin/mail, F=lsDFMmn, S=10, R=20, A=mail $u The problem is that the delivered mail contains the 'From_' line with the sender as 'root' instead of the person that actually sent the mail. Using the 'n' flag to stop insertion of the 'Unix From line' doesn't appear to work. There is an 'escaped' From line (as in >From ) which contains the sender's address. Have I missed something in the mailer flags or setup of sendmail ? Any suggestions would be most welcome. Thanks In Advance ------------------ Grant Sayer ACSnet : grants@syacus.acus.oz Ph : +61 2 390-1339 Internet : grants@syacus.acus.OZ.AU Fax: +61 2 390-1391 UUCP : uunet!munnari!syacus.acus.oz.au!grants
kyle@uunet.UU.NET (Kyle Jones) (02/06/91)
In article <1991Feb5.060707.24400@syacus.acus.oz.au> grants@syacus.UUCP (Grant Sayer) writes: > Can anyone recommend a suitable delivery agent to be used for the 'Mlocal' > specification in sendmail that will handle the From lines. Presently, > I'm using the following specification in sendmail.cf - > > Mlocal, P=/bin/mail, F=lsDFMmn, S=10, R=20, A=mail $u On every system I've used, /bin/mail needs to be passed a -d flag when it is used as a final delviery agent in this way. I.e. Mlocal, P=/bin/mail, F=lsDFMmn, S=10, R=20, A=mail -d $u
bruce@balilly.UUCP (Bruce Lilly) (02/07/91)
In article <121467@uunet.UU.NET> kyle@uunet.UU.NET (Kyle Jones) writes: >In article <1991Feb5.060707.24400@syacus.acus.oz.au> grants@syacus.UUCP (Grant Sayer) writes: > > Can anyone recommend a suitable delivery agent to be used for the 'Mlocal' > > specification in sendmail that will handle the From lines. Presently, > > I'm using the following specification in sendmail.cf - > > > > Mlocal, P=/bin/mail, F=lsDFMmn, S=10, R=20, A=mail $u > >On every system I've used, /bin/mail needs to be passed a -d flag >when it is used as a final delviery agent in this way. I.e. > > Mlocal, P=/bin/mail, F=lsDFMmn, S=10, R=20, A=mail -d $u Hmm? Not my /bin/mail (based on AT&T SVR2). For good measure, I also checked the man pages for SVR3.2, SVR4, and Version 10 -- no -d flags in any of those man pages. Now, back to the original poster's question. First, two observations: 1) sendmail usually runs suid root, which explains why one may get mail "From root..." (refer to original posting). 2) Many mail reading programs (e.g. Elm) will choke and die if the first characters in a mailbox are not "From ". #2 means that you probably need a "From " line at the head of the message. #1 means you should NOT include the 'S' mailer flag to avoid "root". e.g.: Mlocal, P=/bin/mail, F=CDFMhlmsu, S=10/50, R=20/60, A=rmail $u Also make sure that /bin/mail isn't run suid root (it should be sgid mail). The "From " line will the contain the sender's logname (if sent from the same machine) or the uucp login (if from a remote uucp site). In any event, the RFC822 From: header should contain the sender's address. If your mail reading program ignores this header and only looks at the "From " line, it's time to switch to a new reader (or live with the deficiencies of your current one). Bruce Lilly blilly!balilly!bruce@sonyd1.Broadcast.Sony.COM -- Bruce Lilly blilly!balilly!bruce@sonyd1.Broadcast.Sony.COM