LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-04-2004, 09:14 PM   #1
familyman
LQ Newbie
 
Registered: May 2004
Distribution: Redhat/Debian
Posts: 10

Rep: Reputation: 0
Angry Can't send mail with Sendmail


It all started in my Debian box when MON was trying to send an alert via email. I set up sendmail for the express purpose of allowing MON to send email. I didn't get an emailed alert, but I found the message in /var/mail/root. the message included the following error:

*** START ERROR ***

The original message was received at Mon, 2 Aug 2004 17:01:52 -0700
from root@localhost

----- The following addresses had permanent fatal errors -----
me@domain.com
(reason: 553 5.1.8 <root@dns1>... Domain of sender address root@dns1 does no
t exist)
(expanded from: me@domain.com)

----- Transcript of session follows -----
... while talking to [127.0.0.1]:
>>> MAIL From:<root@dns1> SIZE=700
<<< 553 5.1.8 <root@dns1>... Domain of sender address root@dns1 does not exist
501 5.6.0 Data format error

*** END ERROR ***

I looked in the mail.alert file and saw that the perl script was calling sendmail, so I tried to execute the command directly from the command line and got:

*** START ERROR ***

dns1:~# sendmail -v me@domain.com
testing
.
WARNING: local host name (dns1) is not qualified; fix $j in config file
me@domain.com... Connecting to [127.0.0.1] port 587 via relay...
me@domain.com... Deferred: Connection refused by [127.0.0.1]

*** END ERROR ***

Is it telling me that I must have a domain name resolving to my server? I know my server can resolve domain names, I can ping yahoo. I've been working for 2 days now on this and I'm not getting anywhere. Sorry if it's something stupid. Any help would be appreciated.
 
Old 09-15-2004, 09:29 AM   #2
paul316
LQ Newbie
 
Registered: Sep 2004
Distribution: Debian
Posts: 3

Rep: Reputation: 0
I think you have the problem discussed here:

***
http://www.mailarchive.ca/lists/comp...3-07/0873.html
***
Basically the newer version of sendmail stops listen to port 587. I had the same issue upgrading from 8.11 to 8.12 or 8.13

I just added the following to enable listening on the port and everything seems to work.

DAEMON_OPTIONS(`Port=587,Name=MSA,M=E')dnl

If you find a better way to do the same thing in sendmail.mc post it back here.
Hope this helps
 
Old 09-15-2004, 09:31 AM   #3
paul316
LQ Newbie
 
Registered: Sep 2004
Distribution: Debian
Posts: 3

Rep: Reputation: 0
PS - forgot to mention you need to comment out the line with no_default_msa like this:

# FEATURE(`no_default_msa',`dnl')dnl

this was mentioned in the link I put in on the last post.
 
Old 09-15-2004, 10:30 AM   #4
paul316
LQ Newbie
 
Registered: Sep 2004
Distribution: Debian
Posts: 3

Rep: Reputation: 0
Just noticed when I did this that local mail was ok send/receive but other systems couldn't send me mail.
I'm not an expert in DAEMON-OPTIONS and apparently when I explicitly configured port 587 this shutdown port 25.
My system currently seems to be listen on both 587 and 25 - after I added the line below:

DAEMON_OPTIONS(`Port=smtp,Addr=xx.xx.xx.xx, Name=MTA')dnl

Where the 'xx' address is the IP address of local box - not 127.0.0.1.

If there is a better way to get everything working at the same time post it.
 
  


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 - will not send mail ekrumm Linux - Software 1 08-15-2005 11:23 AM
Sendmail doesnt actually send mail ipcn Red Hat 5 12-29-2004 11:59 AM
Using sendmail to send mail from your ISP nrmx Linux - Software 2 12-16-2004 12:43 PM
sendmail can send mail but not receive exper Linux - Software 0 12-02-2003 04:45 AM
sendmail.. how do i login externally so I can send mail ? BaerRS Linux - Networking 3 05-17-2002 07:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:34 PM.

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