Problem sending mail over internal network. Slackware 13.37
SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Problem sending mail over internal network. Slackware 13.37
Hi folks,
I'm having a problem trying to send internal email from one slackware machine to another.
I have used domainname to set both computer's domain name to 'brambles', then I go to mail, compose a message to root@a.brambles and it returns it saying Host unknown. Same happens when I try it the other way around:
Code:
N 2 Mail Delivery Subs Wed Dec 7 20:44 67/2209 Returned mail: see transcript for details
? 2
Message 2:
From MAILER-DAEMON@HapticThreek Wed Dec 7 20:44:12 2011
Return-Path: <MAILER-DAEMON@HapticThreek>
Date: Wed, 7 Dec 2011 20:44:12 GMT
From: Mail Delivery Subsystem <MAILER-DAEMON@HapticThreek>
To: <bism@HapticThreek>
Content-Type: multipart/report; report-type=delivery-status;
boundary="pB7KiCWp012303.1323290652/HapticThreek"
Subject: Returned mail: see transcript for details
Auto-Submitted: auto-generated (failure)
Status: R
Part 1:
The original message was received at Wed, 7 Dec 2011 20:44:11 GMT
from localhost [127.0.0.1]
----- The following addresses had permanent fatal errors -----
<root@192.168.0.11>
(reason: 550 Host unknown)
----- Transcript of session follows -----
550 5.1.2 <root@192.168.0.11>... Host unknown (Name server: 192.168.0.11: host not found)
Part 2:
Content-Type: message/delivery-status
Part 3:
Content-Type: message/rfc822
From bism@HapticThreek Wed Dec 7 20:44:11 2011
Return-Path: <bism@HapticThreek>
From: bism@HapticThreek
Date: Wed, 07 Dec 2011 20:43:11 +0000
To: root@192.168.0.11
Subject: Test with ip
User-Agent: Heirloom mailx 12.4 7/29/08
Content-Type: text/plain; charset=us-ascii
I even tried sending it to root@192.168.0.11 (the internal IP addy) and it still bounced back. Any ideas?
Thanks for the suggestion. I added 'test.brambles' to the local-host-names file and restarted the sendmail daemon and went to send an email to it (its the other machine on my network) and it just bounced back once again:
Code:
From MAILER-DAEMON@HapticThreek.brambles Thu Dec 8 23:59:55 2011
Return-Path: <MAILER-DAEMON@HapticThreek.brambles>
Date: Thu, 8 Dec 2011 23:59:54 GMT
From: Mail Delivery Subsystem <MAILER-DAEMON@HapticThreek.brambles>
To: <bism@HapticThreek.brambles>
Content-Type: multipart/report; report-type=delivery-status;
boundary="pB8NxsaN003436.1323388794/HapticThreek.brambles"
Subject: Returned mail: see transcript for details
Auto-Submitted: auto-generated (failure)
Status: R
Part 1:
The original message was received at Thu, 8 Dec 2011 23:59:54 GMT
from localhost [127.0.0.1]
----- The following addresses had permanent fatal errors -----
<root@test.brambles>
(reason: 550 Host unknown)
----- Transcript of session follows -----
550 5.1.2 <root@test.brambles>... Host unknown (Name server: test.brambles: host not found)
Part 2:
Content-Type: message/delivery-status
Part 3:
Content-Type: message/rfc822
From bism@HapticThreek.brambles Thu Dec 8 23:59:54 2011
Return-Path: <bism@HapticThreek.brambles>
From: bism@HapticThreek.brambles
Date: Thu, 08 Dec 2011 23:59:54 +0000
To: root@test.brambles
Subject: pleeeeeeease
User-Agent: Heirloom mailx 12.4 7/29/08
Content-Type: text/plain; charset=us-ascii
sdfsd
Someone told me that if i created a DNS zone on my home network then that would enable nmap to resolve local hostnames, which i'm guessing would help this along the way? no idea how to set up a dns zone though, my /etc/resolv.conf contains the lines
The local-host-names file needs to contain the name of the server from which you are sending.
Your receiving server will need to be configured to accept mail from external sources.
For a simple setup, it is probably easiest just to add entries to /etc/hosts on both servers, so they can find each other. Include both the local server and the remote server in /etc/hosts.
The local-host-names file needs to contain the name of the server from which you are sending.
Your receiving server will need to be configured to accept mail from external sources.
For a simple setup, it is probably easiest just to add entries to /etc/hosts on both servers, so they can find each other. Include both the local server and the remote server in /etc/hosts.
I did add the names of the machine I'm sending from to the local-host-names file, and I have added both machines to entries on the hosts file. I'm not getting the mail returned instantly now, but nothing is getting through either. :-(
Yeah, I am using sendmail, the config file is huge though, do you want me to paste it all here or just a certain part of it?
If you modified one of the .mc files found in /usr/share/sendmail/cf/cf to create your sendmail.cf file like you're really supposed to do, the contents of that .mc file should be short enough to post here in its entirety. (The README files in /usr/share/sendmail/cf and /usr/share/sendmail/cf/cf do a pretty fair job of explaining the whole process.)
The last time I messed around with sendmail, I found that easier to do than to deal with the .cf file that looks like modem line noise or an awk script.
If you modified one of the .mc files found in /usr/share/sendmail/cf/cf to create your sendmail.cf file like you're really supposed to do, the contents of that .mc file should be short enough to post here in its entirety. (The README files in /usr/share/sendmail/cf and /usr/share/sendmail/cf/cf do a pretty fair job of explaining the whole process.)
The last time I messed around with sendmail, I found that easier to do than to deal with the .cf file that looks like modem line noise or an awk script.
I haven't edited any of those mc files, wouldn't even know where to begin! Any pointers?
Oops I forget that config above for client works in one way (messages from clients to server)
For setting sendmail for lan and make each machine send and receive, it is even simpler than that
On all machines, do :
Code:
cd /usr/share/sendmail/cf/cf/
cp sendmail-slackware.mc config.mc
sh Build config.mc
cp config.cf /etc/mail/sendmail.cf
/etc/rc.d/rc.sendmail restart
Now on each machine, open xterm (rxvt etc...)
and do
Code:
tail -f /var/log/maillog
then open other xterm and test mail
Code:
mail -s 'subject of message: test' 'youruser@hostname'
Test of message
.
Thanks for this suggestion, it looked very promising. I followed your instructions but unfortunately mail is still getting bounced back to me. This is what the log says:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.