Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
I am sending a email from one Linux host to another on the same 192.168.0.0/14 LAN. On the source host, I have define(`SMART_HOST',`192.168.0.15')dnl, where 192.168.0.15 is the mail server for the LAN, also running sendmail. On the source host I get the maillog messages shown below. In particular is the message, "DSN: Host unknown (Name server: 192.168.0.15: host not found)." I don't understand why this host is not found, especially since I've specified the SMART_HOST by IP. I can ssh to this host by IP and hostname (server) and generally access it otherwise.
In the SMART_HOST /etc/mail/access I have "192.168.0 RELAY".
No messages whatsoever show up in the smart host's maillog, so it's not getting that far.
I am sending a email from one Linux host to another on the same 192.168.0.0/14 LAN. On the source host, I have define(`SMART_HOST',`192.168.0.15')dnl, where 192.168.0.15 is the mail server for the LAN, also running sendmail.
Make sure that the nameserver defined in client's /etc/resolv.conf can resolve 192.168.0.15 to a valid hostname.
Or you can enclose the smarthost IP in square brackets, so sendmail doesn't do a dns lookup for it:
Code:
define(`SMART_HOST',`[192.168.0.15]')dnl
Don't forget to build sendmail.cf and restart the service.
I have a similar installation where users on one server needed mail forwarded to another server for either users on that mail server or to be sent off the LAN via the Internet.
One thing I had to do that you do not mention you have done is put an entry in the source server's /etc/hosts file pointing to the destination server which is also the main mail server for the domain. If you do not have an entry like the following in your /etc/hosts file you might give it a try.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.