Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucsd!ucbvax!CIM-TUNE.HONEYWELL.COM!bergum From: bergum@CIM-TUNE.HONEYWELL.COM (Dave Bergum) Newsgroups: comp.sys.apollo Subject: Re: Sendmail Problem Message-ID: <9012062003.AA03840@tune.honeywell.com> Date: 6 Dec 90 20:03:11 GMT References: <1990Dec5.025234.27675@monu6.cc.monash.edu.au> Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 52 You will have to change your /usr/lib/sendmail.cf to include a rewriting rule that adds your domain to your sender address. One place you can do this is in the sender rule for the smtp mailer. Sendmail.cf is a hairy thing and much more than can be described in a short message. I can show you what I have as an example and you can look at yours and see if you can see a similar thing to modify. In mine, smtp mail invokation is specified by the rule: Msmtp, P=[IPC], F=LmsDFMPuX, S=11, R=21, A=IPC $h, E=\r\n You might se a rule like Mtcp or something like that. The S=11, part of the specification says that rule 11 is used to rewrite the sender address. I have a rule that looks like: S11 # Convert sender field (From) to acceptable user@host syntax. No # explicit routing allowed. R$*<@$+> $@$1<@$2> If host specif, OK R$*<$*>$* $1$2$3 defocus R$*:$*@$* $2@$3 and strip route ifany R$+@$+ $@$1<@$2> ##R$+<@$=A> $@$1<@$E.$F> R$+ $@$1<@$P.$E.$F> tack on our hostname The last rule rewrites my address by adding my localhost and domain as the sedning host. The macros are defined as follows: P - primary hostname, E - level two domain name, F - root domain name. With my sendmail all addresses are reformated for processing so the the host is in "<>" and the final rewriting rule removes the "<>" focus. Your sendmail may be different. But generally, what you need to do is add a rule in one of the sender rewriting rules to fully qualify your host name. You might see something like: R$+ $1@$w In many cases $w is your simple host or node name. If you just redefine w to your domain name, that will fix the problem. At the top of your sendmail put: Dwhost.domain.name If you can't figure it out, I can send you my sendmail.cf or you can mail me yours and I'll take a look at it. A -----/|\---------------------------------------+ - / | \ Bergum@CIM-VAX.Honeywell.COM | - /__|__\ Dave Bergum [MN26-3190] | - j---'---/ 2701 4-th Ave. S., Mpls, MN 55408 | -~~~~~~~~~~ (612)870-5839 | -----------------------------------------------+