LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-24-2009, 12:39 PM   #1
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 70
I can't seem to get sendmail working...


I have BT3 Slackware 12.0 installed. I have edited the /etc/mail/sendmail.cf and changed this line
# SMTP daemon options
O DaemonPortOptions=Port=smtp,Addr=192.168.8.143, Name=MTA

I want to send a message to user amigo085 at 192.168.9.85. I can ping 192.168.9.85 and the ports 25 and 110 on 192.168.9.85 are open and each have the appropriate services running behind them. I have sendmail running on 192.168.8.143, not 0.0.0.0, so my port 25 is not open to the public but is open to 192.168.9.85. There is a valid route between the two ips. So I access my smtp server by

nc -v 192.168.8.143 25 and do the following
helo 192.168.8.143
mail from:<root@192.168.8.143>
rcpt to:<amigo085@192.168.9.85>
data
testing 1 2 3
.

Then I check pop3 server at 192.168.9.85 and it never receives the message. I check sendmail -bp on my server and I get operating system error mailer-daemon. Is there a setting in my /etc/mail/sendmail.cf that I have to change to send the message to the pop3 server on 192.168.9.85? Also, I have edited my /etc/hosts and put a domain name like sweet.com for 192.168.9.85 and have tried repeating the same process above but instead of putting
rcpt to:<amigo085@192.168.9.85> I put rcpt to:<amigo085@sweet.com> but there's no change.

What am I doing wrong?
 
Old 05-25-2009, 06:05 PM   #2
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Can you send a message to yourself or a user on the same box as sendmail is running on? Might help to see if sendmail is doing anything at all. Or perhaps you can send externally?

Also (no idea if this makes any difference) I have never tested sendmail with the addresses between < >.
 
Old 05-25-2009, 06:24 PM   #3
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 231Reputation: 231Reputation: 231
put square brackets around the ip like this amigo085@[192.168.9.85]

See if that helps.

Also check /var/log/maillog on both boxes to see what's going on.
 
Old 05-25-2009, 10:07 PM   #4
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,052

Original Poster
Rep: Reputation: 70
The brackets around the ip solved the problem, awesome. However, I can't sendmail out to the public like hotmail. I tried changing the line in /etc/mail/sendmail.cf

O DaemonPortOptions=Port=smtp,Addr=192.168.8.143, Name=MTA

to

O DaemonPortOptions=Port=smtp,Addr=0.0.0.0, Name=MTA so it could be public.

I can still send mail to 192.168.9.85, however, if i try sending mail to my hotmail email account it won't work. I've tried both rcpt to:xxx@hotmail.com and rcpt to:xxx@[hotmail.com]. Here are some of the logs for this error
Code:
May 25 22:16:39 (none) sm-mta[25004]: n4PMEqES024891: to=XXXX@hotmail.com, ctladdr=root@[192.168.8.143] (0/0), delay=00:00:05, xdelay=00:00:00, mailer=esmtp, pri=120011, relay=mx4.hotmail.com. [65.55.92.152], dsn=5.0.0, stat=Service unavailable
May 25 22:16:39 (none) sm-mta[25004]: n4PMEqES024891: n4PMGdEQ025004: DSN: Service unavailable
May 25 22:16:39 (none) sm-mta[25005]: n4PMGdEQ025004: Warning: program /usr/bin/procmail unsafe: No such file or directory
May 25 22:16:39 (none) sm-mta[25005]: n4PMGdEQ025004: SYSERR(root): Cannot exec /usr/bin/procmail: No such file or directory
May 25 22:16:39 (none) sm-mta[25004]: n4PMGdEQ025004: to=root@[192.168.8.143], delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31352, dsn=4.0.0, stat=Operating system error
Or is it because hotmail doesn't take mail by smtp?

Last edited by trist007; 05-25-2009 at 10:23 PM.
 
Old 09-04-2009, 11:36 PM   #5
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,052

Original Poster
Rep: Reputation: 70
bump
 
Old 09-05-2009, 12:05 AM   #6
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,052

Original Poster
Rep: Reputation: 70
I found that some web based email applications don't accept emails from dynamic ip's. It's their policy. Anyhow, I finally did get it working.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sendmail not working RMLinux Linux - Newbie 2 02-16-2009 01:00 AM
Changing port in sendmail, sendmail not working. flschou Linux - Newbie 4 01-16-2008 09:03 AM
Sendmail not working quite right kerinism1 Linux - Server 3 09-04-2007 11:50 AM
sendmail is not working & on $prompt the cmd sendmail hangs Pavan mahoorker Linux - Software 1 04-04-2006 03:57 PM
Sendmail not working at all. EL3CTRO Linux - Networking 13 05-03-2003 06:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration