Link to home
Start Free TrialLog in
Avatar of tstuardo
tstuardoFlag for United States of America

asked on

mandrake sendmail relay and dns /hosts problem

hi i cannot send emails to outside domain from my sendmail anymore
for some crazy reason when i send to outside domains it tries to relay through localhost
the problem is that i goes to dns and tries to resolve the name localhost and this points to localhost.thedomainofmycompany.com and points to the address to which we direct one can help?
*.thedomainofmycompany.com
this box does not relay so it doesnt work
i tried to add a host for local host but nothing to do sendmail goes outside
any help?
Avatar of tstuardo
tstuardo
Flag of United States of America image

ASKER

by the way i tried to change the sendmail.cf and sendmail.mc files change relay domains from localhost.localdomain to my own ip but for some reason sendmail still tries to relay through localhost which points outside...same thing if i add a host in the host file for the locahost
weird
Avatar of Arty K
Please provide any logfile entries related your problem, they may be in /var/log/maillog
Also provide the content of /etc/resolv.conf and /etc/hosts
include a name for your server in the

/etc/hosts

file.  edit it and have a valid name other than localhost.  check the sendmail.mc file to see if masquerade options are specified or if you are re-writing the envelope / masquerade envelope etc options.  

but as NOPIUS says the log file has more info
here is the log when sending
Jul 24 13:59:05 rt sendmail[1615]: l6OHx5ns001615:
from=operator@rt.thedomainofmycompany.com, size=424, class=0, nrcpts=1, msgid=<1185299945.
1613@rt.thedomainofmycompany.com>, relay=root@localhost
Jul 24 13:59:07 rt sendmail[1615]:
l6OHx5ns001615: to=blah@gmail.com, ctladdr=operator@rt.thedomainofmycompany.com (11/0), delay=00:00:02,

 xdelay=00:00:02, mailer=relay, pri=30424, relay=localhost.thedomainofmycompany.com. [12.34.56.78],
 dsn=5.1.1, stat=User unknown
Jul 24 13:59:07 rt sendmail[1615]:
l6OHx5ns001615: l6OHx5nt001615: DSN: User unknown
Jul 24 13:59:08 rt sendmail[1615]:
l6OHx5nt001615: to=operator@rt.thedomainofmycompany.com, delay=00:00:01, xdelay=00:00:01, mailer=relay, pr
i=31448, relay=localhost.thedomainofmycompany.com. [12.34.56.78], dsn=5.1.1, stat=User unknown
Jul 24 13:59:08 rt sendmail[1615]:
l6OHx5nt001615: l6OHx5nu001615: return to sender: User unknown
[root@rt etc]# more resolv.conf
search thedomainofmycompany.com
nameserver 192.168.xx.xx              ///ip of my dns server (the sendmail doesnt run dns)
# domain localhost

# ppp temp entry
[root@rt etc]# more hosts
127.0.0.1       localhost
192.168.200.3   ns3.thedomainofmycompany.com
192.168.200.52  rt.thedomainofmycompany.com rt

help anyone?
ASKER CERTIFIED SOLUTION
Avatar of ygoutham
ygoutham
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial