tstuardo
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.thedomainofmycom pany.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?
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.thedomainofmycom
*.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?
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
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
/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
ASKER
here is the log when sending
Jul 24 13:59:05 rt sendmail[1615]: l6OHx5ns001615:
from=operator@rt.thedomain ofmycompan y.com, size=424, class=0, nrcpts=1, msgid=<1185299945.
1613@rt.thedomainofmycompa ny.com>, relay=root@localhost
Jul 24 13:59:07 rt sendmail[1615]:
l6OHx5ns001615: to=blah@gmail.com, ctladdr=operator@rt.thedom ainofmycom pany.com (11/0), delay=00:00:02,
xdelay=00:00:02, mailer=relay, pri=30424, relay=localhost.thedomaino fmycompany .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.thedomainof mycompany. com, delay=00:00:01, xdelay=00:00:01, mailer=relay, pr
i=31448, relay=localhost.thedomaino fmycompany .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
Jul 24 13:59:05 rt sendmail[1615]: l6OHx5ns001615:
from=operator@rt.thedomain
1613@rt.thedomainofmycompa
Jul 24 13:59:07 rt sendmail[1615]:
l6OHx5ns001615: to=blah@gmail.com, ctladdr=operator@rt.thedom
xdelay=00:00:02, mailer=relay, pri=30424, relay=localhost.thedomaino
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.thedomainof
i=31448, relay=localhost.thedomaino
Jul 24 13:59:08 rt sendmail[1615]:
l6OHx5nt001615: l6OHx5nu001615: return to sender: User unknown
ASKER
[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
search thedomainofmycompany.com
nameserver 192.168.xx.xx ///ip of my dns server (the sendmail doesnt run dns)
# domain localhost
# ppp temp entry
ASKER
[root@rt etc]# more hosts
127.0.0.1 localhost
192.168.200.3 ns3.thedomainofmycompany.c om
192.168.200.52 rt.thedomainofmycompany.co m rt
127.0.0.1 localhost
192.168.200.3 ns3.thedomainofmycompany.c
192.168.200.52 rt.thedomainofmycompany.co
ASKER
help anyone?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
weird