Click to See Complete Forum and Search --> : sendmail issues
djdman2000
03-20-2004, 06:57 PM
i am trying to setup sendmail. i've got the domain tommcgrath.net and am able to check email using a pop3 client (outlook). if i send an email to said account, i get:
This message was created automatically by mail delivery software (Exim).
A message that you sent has not yet been delivered to one or more of its
recipients after more than 24 hours on the queue on backupmx.
The message identifier is: 1B3wnm-0008ML-00
The subject of the message is: test
The date of the message is: Thu, 18 Mar 2004 18:39:52 -0600
The address to which the message has not yet been delivered is:
tom@tommcgrath.net
If anybody has an idea about what I can do to fix it, please drop a line.
Thanks.
djdman2000
03-20-2004, 10:59 PM
here is an error i found in the maillog...
Mar 20 09:38:42 servername sendmail[513]: daemon MSA: problem creating SMTP socket
Mar 20 09:38:47 servername sendmail[513]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MSA:
cannot bind: Address already in use
it consistantly pops up...
thanks
posterboy
03-21-2004, 09:11 AM
Perhaps you are running TWO MTA's? Kill off exim, and try again. Also, be aware that sendmail, as shipped, will not take email off the net, only locally. There's some jiggling that must be done with it's .cf file to make it do that. This is widely documented, here and many other places. HTH, Ray
djdman2000
03-21-2004, 11:11 PM
where can i find said documentation?
thanks.
d.
PS exim is not running (i did a ps to check).
posterboy
03-22-2004, 07:54 AM
Here's how you do it:
If you have a domain defined and are trying to accept email off the 'net, then edit /etc/ mail/sendmail.mc and comment out the following line.
dnl This changes sendmail to only listen on the loopback device 127.0.0.1
dnl and not on any other network devices. Comment this out if you want
dnl to accept email over the network.
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')
Then do:
# m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
then do:
# /etc/init.d/sendmail restart
and you should be in business.
HTH, Ray
posterboy
03-22-2004, 07:58 AM
However, re-reading all this, while that above MUST be done, it may not be your only problem. Kill off sendmail, and then run an nmap on yourself. Perhaps something is already using port 25, and if so, sendmail will never start.
djdman2000
03-24-2004, 01:26 AM
no such luck trying all the above. any other ideas?
thanks for your help.
djdman2000.
posterboy
03-24-2004, 07:01 AM
When sendmail is NOT running, what does nmap show for port 25?
djdman2000
03-24-2004, 10:39 AM
nmap would reveal no service on port 25. however, i was able to setup sendmail to listen on my ip address (which i had not done) with the line:
DAEMON_OPTIONS(`Port=smtm,Addr=my.IP.Add.ress, Name=MTA')dnl
after that, nmap reveals that port 25 is running a service. however, my account test messages keep getting bounced... any ideas?
thanks.
djdman2000.
linnov
03-24-2004, 10:58 AM
Whats the error your getting??
Have a look @ the maillog
tail /var/log/maillog
djdman2000
03-24-2004, 11:01 AM
it works now... i did not have the localhost lines included in my access file...
thanks for all your help!
djdman2000.
posterboy
03-24-2004, 11:02 AM
OK, we narrow in on the problem, perhaps. Sendmail should NOT need to be told your address. Upon startup, he goes out to the DNS, and finds the name he should have. Is your box named within your domain? You do not NEED any MX records, but, if you have chosen to have them, are they correct? Look carefully at sendmails logs. Also, try this:
echo Hello |sendmail -v myuser@mydomain
Often the -v (verbose) will point you someplace. Does he play nicely with local mail from one user to another? Does he only fail from your real email address? If so, that's some kind of DNS issue.
May take 5,6 of us, but we'll get it. :)
posterboy
03-24-2004, 11:04 AM
WHEEEEEEEE!!!