Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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'm sorry if that's not a very descriptive title, let me try to explain in more detail and perhaps someone can help me figure out what the problem is and of course, resolve the issue!
We have an OpenSuse server which can happily send out emails using /usr/bin/mail to external addresses - for example @hotmail.com or @gmail.com. The problem comes when we try to send to our own domain (for this thread, I will call it @home.com).
The computers / network is configured like so:-
DNS Server 192.168.1.1
Suse box 192.168.1.5
Exchange server 192.168.1.10
We thought that because mails were going "out" OK that we needed to edit the /etc/hosts on the Suse box to include:
192.168.1.10 home.com
192.168.1.10 mail.home.com
By performing a PING/Traceroute/Telnet onto mail.home.com, we get replies from 192.168.1.10 as expected.
Now, I'm not a mail expert by any long shot but I wonder if someone's come across this before and can help us find a solution to why /usr/sbin/mail refuses to send to me@home.com (which is a valid address as I am getting emails OK from everyone else!)
Thanks for reading, hope someone can help us find a solution!!
Distribution: Ubuntu 14.04, Windows 8, Windows Server 2012. Ubuntu Server 14.04
Posts: 196
Rep:
Just a guess, since there are no other replies, but I would assume you would have to have a mail server program set up to process internal mail...Make sense? Let me know if that helped.
Just a guess, since there are no other replies, but I would assume you would have to have a mail server program set up to process internal mail...Make sense? Let me know if that helped.
Hi
Thanks for the reply; yes, we have Microsoft Exchange to process emails here. I did mention that on my original post:-
Distribution: Ubuntu 14.04, Windows 8, Windows Server 2012. Ubuntu Server 14.04
Posts: 196
Rep:
I found this that a previous user said fixed there problem same as yours...
I had done what you suggested and it didn't seem to help but then I uncommented the mynetworks = and added my network range and everything seems to be working now. Thanks for your help though. The SUSE postfix config file is a little wierd with a lot of the config at the very end of the file. Here was my working main.cf file. Hope this might help if anyone else has problems.
Hi
Thanks for the quick reply; My /usr/lib/postfix/main.cf was:-
#inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost
Changing it to
inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost
and restarting the service, has made no difference ... other than seemingly stopping emails going out to hotmail and gmail now
Please bear in mind that the Nagios / Suse machine is NOT my main company webserver, all our emails go through Microsoft Exchange which is on a different server - I mention this because right above the setting is a comment which reads:-
# RECEIVING MAIL
# The inet_interfaces parameter specifies the network interface
# addresses that this mail system receives mail on.
I am no expert in mailing systems, but here is my understanding:
-when you ping mail.home.com or home.com the IPs are resolved correctly
-when you resolve it using your DNS server, you get the wrong IPs
-your mail daemon can resolve internet addresses, but when it comes to mail.home.com or home.com it treats it as an internet address (and resolves it using the internet top DNS servers) rather than something on your network.
maybe it is something wrong with your DNS server?
if it is then you can modify /etc/named.conf and /var/lib/named or where ever the zone files are. Maybe you're gonna need to read RFCs 1033 and 1034.
Hello to everyone who tried to help
I never did get to the bottom of why it wasn't working but I found a work-around which is just as good and that is to:-
Add an entry to "myhome.local" in my /etc/hosts file
Change the email target address to me@myhome.local.
It now works, thanks for reading and I hope this work-around may be useful to someone else!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.