Sendmail can't resolve names outside local network
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Sendmail can't resolve names outside local network
Hi All
I have set up a server for our local network. Server offers mail, dhcp and DNS services. All have been configured and work correctly. Network users can successfully send and recieve local network mail. The server is not connected to the internet directly. The network gateway is a dedicated router device. All computers on the network can connect and resolve names external to our network. So as far as I can tell there are no obvious DNS issues with our network.
PROBLEM: I want to let local network users send outward bound mail via the mail server (remember up until now the server only sends and recieves local mail). I added the network subnet address to the '/etc/mail/access' file. The mail server now accepts mail for relaying. However, a problem is that after the message is accepted by the server, it just sits in the mail queue. The messages that sit in the queue all say 'lookup (name.com): deferred'.
There is a list of the things I have done to try and solve this problem:
1. I ran 'sendmail -v -q' and got the following message:
2. If I use the IP address instead of 'name.com' and run 'sendmail -v -q' I get the following error:
<name@[64.58.79.230]>... connecting to [64.58.79.230] via esmtp...
<name@[64.58.79.230]>... deferred: [64.58.79.230]: No route to host
3. If I use 'nslookup -type=MX -timeout=60 yahoo.com' I get the following:
Server: 192.168.1.1
Address: 192.168.1.1#53
I have read a good portion of the batbook, look at the sendmail site, read many sendmail tutorials, but am still baffled by this one. I know it is possible, as our old linux server (which we retired recently) did everything just fine (no I didn't set that one up). It would also relay mail to yahoo.com and anyother address one cared to use.
I really hope someone can help me out with this one.
Worked out what the problem was. The gateway address wasn't entered correctly. Didn't notice it before as up until now all of the server functions are all within the LAN. I kind of feel a bit stupid, don't know why I didn't look at this one earlier.
I have the same problem too. I upgraded to RedHat 8 a Redhat 7.3 box,
which was a client of the enterprise mail-hub whith sendmail-8.11.6-15.
This box IS NOT CONNECTED TO THE NET (no route),
THEREFORE has no DNS resolving.
So it is usually configured to send ALL the mail to the mailhub (which can , in turn resolve domain names, and send to my ISP smtp server.
But now with Red Hat 8 and sendmail-8.12.8-5.80 I have :
# echo aaa| mail -v -s tyty4 jerome@mydomain
mydomain: Name server timeout
jerome@mydomain... Transient parse error -- message queued for future delivery
and that , too :
# echo aaaa | mail -v -s trial this-could-be-a-user
this-could-be-a-user... Connecting to [127.0.0.1] via relay...
220 panthere.netinternal. ESMTP Sendmail 8.12.8/8.12.8; Wed, 16 Jul 2003 00:24:28 +
0200
>>> EHLO panthere.netinternal
250-panthere.netinternal Hello localhost.localdomain [127.0.0.1], pleased to meet
you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
>>> MAIL From:<root@panthere.netinternal> SIZE=46
250 2.1.0 <root@panthere.netinternal>... Sender ok
>>> RCPT To:<this-could-be-a-user@panthere.netinternal>
>>> DATA
250 2.1.5 <this-could-be-a-user@panthere.netinternal>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 h6FMOSZu003608 Message accepted for delivery
this-could-be-a-user... Sent (h6FMOSZu003608 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 panthere.netinternal closing connection
So it means that on my mail client "panthere" for any recipient
without @, the mail is forwarded throw the mailhub
and with a @, it searches to resolve the hostname to reach itself
instead of the mail hub !
How can I tell this new sendmail packahe THAT IT MUST NOT RESOLVE HOSTNAMEs!
just forward all the mail to the mailhub!
I tried : service.switch,
FEATURE(`accept_unresolvable_domains'),
I've this problem, I'm testing my sendmail.cf configuration using sendmail -bt and I'm able to send mails to our company's mail accounts. (our mail server is on another machine), but when i try an outside account what i get is
canonify input: ricardo_sada @ yahoo . com . mx
Canonify2 input: ricardo_sada < @ yahoo . com . mx >
yahoo.com.mx: Name server timeout
Canonify2 returns: ricardo_sada < @ yahoo . com . mx >
canonify returns: ricardo_sada < @ yahoo . com . mx >
== Ruleset 3,0 (3) status 75
blablabla
messages are left in /var/spool/clientmqueue
I cannot traceroute to yahoo.com.mx but I definitly can ping and even browse from the internal linux server Im trying to setup...
How can I configure the DNS sendmail uses to resolve outside names..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.