You need to add it to class w in the config.  This is either a file
(/etc/mail/sendmail.cw or /etc/mail/local-host-names usually) or it's just
a definition in the sendmail.cf (look for a line beginning with "Cw" in
sendmail.cf).

On 16 Jun 2003, Tom Penney wrote:

> I'm having a problem that I am just not smart enough to figure out.
> 
> I have a redhat 7.3 "mail" machine running sendmail which handles
> internet mail just fine. My problem is when I send mail from another
> linux host ("anothermachine") on the local network it wont go. 
> 
> I have DNS set up for "mydomain.com". In order to resolve names on the
> local network I have also set up DNS for "mpls.mydomain.com". So
> "mail.mydomain.com" from the internet gets you to my "mail" machine. To
> get to my "mail machine On the local 192.168.1.x network I must use
> "mail.mpls.mydomain.com".
>   
> Here is my sendmail error:
> > The original message was received at Mon, 16 Jun 2003 15:17:39 -0500
> > from anothermachine [192.168.1.2]
> > 
> >    ----- The following addresses had permanent fatal errors -----
> > <tomp at mail.mpls.mydomain.com>
> >     (reason: 553 5.3.5 system config error)
> > 
> >    ----- Transcript of session follows -----
> > 553 5.3.5 mail.mpls.mydomain.com. config error: mail loops back to me
> > (MX problem?)
> > 554 5.3.5 Local configuration error
> 
> mail loops back because you are its final destination. So how do I tell
> sendmail to accept mail addressed to mail.mpls.mydomain.com? I have
> added it to /etc/mail/virtusertable (@mpls.circussoftware.com  %1)
> 
> My Private network dns:
> 
> 
> > [root at mail root]# dig mpls.mydomain.com mx
> >  
> > ; <<>> DiG 9.2.1 <<>> mpls.mydomain.com mx
> > ;; global options:  printcmd
> > ;; Got answer:
> > ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 22345
> > ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2
> >  
> > ;; QUESTION SECTION:
> > ;mpls.maydomain.com.       IN      MX
> >  
> > ;; ANSWER SECTION:
> > mpls.mydomain.com. 10800  IN      MX      10 mail.mpls.mydomain.com.
> >  
> > ;; AUTHORITY SECTION:
> > mpls.mydomain.com. 10800  IN      NS      routerbox.mpls.mydomain.com.
> >  
> > ;; ADDITIONAL SECTION:
> > mail.mpls.maydomain.com. 10800 IN  A       192.168.1.3
> > routerbox.mpls.maydomain.com. 10800 IN A   192.168.1.4
> >  
> > ;; Query time: 5 msec
> > ;; SERVER: 192.168.1.4#53(192.168.1.4)
> > ;; WHEN: Mon Jun 16 15:43:39 2003
> > ;; MSG SIZE  rcvd: 118
> 
> Thanks in advance for your help.
> 
> -- 
> Tom Penney <blots at visi.com>
> 
> 
> _______________________________________________
> TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
> http://www.mn-linux.org tclug-list at mn-linux.org
> https://mailman.real-time.com/mailman/listinfo/tclug-list
> 


_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list