[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 268
  • Last Modified:

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?
0
tstuardo
Asked:
tstuardo
  • 5
  • 2
1 Solution
 
tstuardoAuthor Commented:
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
0
 
NopiusCommented:
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
0
 
ygouthamCommented:
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
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
tstuardoAuthor Commented:
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
0
 
tstuardoAuthor Commented:
[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
0
 
tstuardoAuthor Commented:
[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

0
 
tstuardoAuthor Commented:
help anyone?
0
 
ygouthamCommented:
you do not seem to have an entry for your own server name.  or is your server called RT???

my /etc/hosts

127.0.0.1           localhost.localdomain        localhost

#my ip address

10.0.1.10      myserver   myserver.mydomain.com
10.0.1.100    somemachine           somemachine.mydomain.com

#### end of file #####

you can have any number of such entries in your hosts file.  ideal would be to minimise on such huge lists.

what do the commands

hostname

domainname

return when you run it from your machine???
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 5
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now