I have a sendmail server on a Solaris 10 server that's stopped working. I can't seem to find anything about failed messages in /var/adm/sendmail. Here's what I'm seeing when I try to debug:
[(root)/var/adm]$ sendmail -v me@myemail.com < testmessage
me@myemail.com... queued
[(root)/var/adm]$ /usr/ucb/mail -v me@myemail.com
Subject: Test message
Here is a test message
.
EOT
[(root)/var/adm]$ me@myemail.com... queued
[(root)/var/adm]$ mailq
/var/spool/mqueue is empty
Total requests: 0
So, it doesn't look like it's doing anything. Sometimes when I try the debug, I get a '127.0.0.1 Connection Refused' back, but it doesn't do it constantly. Note: I've substituted my personal gmail address with 'me@myemail.com' above. There's no procmail or anything set up for this address, and I am continually checking the Spam folder.
Any other things I can try to figure out why this isn't working?
Edit: Output of mailq -C includes lines and lines of this:
q0AFMJwG026997X 1629 Tue Jan 10 10:22 MAILER-DAEMON
(Deferred: Connection refused by [127.0.0.1])
Could have sworn I tried this yesterday, but neither telnetting to localhost 25 from the machine nor telnetting to the machine from my desktop works:
[(root)/]$ telnet 127.0.0.1 25
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
[(root)/]$
and
[~]$ telnet 192.168.129.50 25
Trying 192.168.129.50...
telnet: connect to address 192.168.129.50: Connection refused
telnet: Unable to connect to remote host
Sendmail is running:
[(root)/]$ ps -ef |grep sendmail
smmsp 18616 1 0 16:22:18 ? 0:00 /usr/lib/sendmail -Ac -q15m
root 18614 1 0 16:22:18 ? 0:03 /usr/lib/sendmail -bd -q15m
But I don't see it listening on port 25 with 'netstat -an'.
EDIT: Thank you all for sticking around and helping. I have sendmail listening now on port 25 (it was refusing due to the high load average and the 'QueueLA' and 'RefuseLA' values). I can telnet to port 25 now and send email using SMTP commands. But, any mail I try to send with sendmail or /usr/ucb/mail still gets queued and disappears. What else do I need to check?
EDIT: I'm going to go ahead and close this, because I've moved on to a new set of problems now. The QueueLA and RefuseLA settings helped sendmail get up and running on port 25, but now I'm having a queueing issue. I've opened a new question here.