Emails not being sent [RESOLVED]

modem7
Posts: 215
Joined: Tue Mar 20, 2012 6:00 pm

Emails not being sent [RESOLVED]

Postby modem7 » Wed Apr 11, 2012 5:08 pm

Hey guys,

Just noticed that my logwatch hasn't been sent this morning, and decided to check it out.

Logged into webmin and saw that I have 25 mails pending to be sent.

Next to each is: Deferred: Connection refused by hda.home.com


Was working yesterday, so no idea what the heck is going on.

Sendmail is up and running, tried restarting it, still no go.


As a Linux noob, now totally stumped.




edit: tried doing a flush and got the following:

Forcing the attempted delivery of 1 selected messages ..

WARNING: local host name (AlexServer) is not qualified; see cf/README: WHO AM I?

Running /var/spool/mqueue/q3B07Sim003079 (sequence 1 of 1)
<m*****7@gmail.com>... Connecting to hda.home.com. via relay...
<m*****7@gmail.com>... Deferred: Connection refused by hda.home.com.

(I omitted the email address for security reasons)
Last edited by modem7 on Mon Apr 23, 2012 5:44 am, edited 1 time in total.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Emails not being sent

Postby bigfoot65 » Wed Apr 11, 2012 6:59 pm

Check to see that postfix is running as well. They work together.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

modem7
Posts: 215
Joined: Tue Mar 20, 2012 6:00 pm

Re: Emails not being sent

Postby modem7 » Thu Apr 12, 2012 10:03 am

Both started, still no go.

/etc/hosts:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

#host localhost:
localhost.home.com mail is handled by 10 hda.home.com.

#ps aux|grep postfix
root 8730 0.0 0.0 103376 796 pts/0 S+ 17:46 0:00 grep --color=au to postfix

#ps aux|grep sendmail
ps aux|grep sendmail
root 9504 0.0 0.0 96392 2580 ? Ss 17:54 0:00 sendmail: accepting connections
smmsp 9512 0.0 0.0 78044 1932 ? Ss 17:54 0:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue
root 10484 0.0 0.0 103376 792 pts/0 S+ 18:01 0:00 grep --color=auto sendmail



Unsure if these help?


edit:

Just as an FYI, I did ​"service smartd start​" and that sends emails.
(my config for that is ​/dev/sda -n standby -a -I 194 -W 6,45,55 -R 5 -M daily -M test -m m****7@gmail.com)

Greyhole --fsck -e also sends emails.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Emails not being sent

Postby bigfoot65 » Thu Apr 12, 2012 3:20 pm

How do you have the email set up? Are you using your ISP or Google?
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

modem7
Posts: 215
Joined: Tue Mar 20, 2012 6:00 pm

Re: Emails not being sent

Postby modem7 » Thu Apr 12, 2012 3:35 pm

How do you have the email set up? Are you using your ISP or Google?
ISP. Could never get google smtp to work (problems with the certificate creation - but that's another problem for another thread).


ISP smtp server over p25, sending to my google account.

Does this help at all?

Code: Select all

tcp 0 0 127.0.0.1:48590 0.0.0.0:* LISTEN 18525/html off (0.00/0/0) tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1346/rpcbind off (0.00/0/0) tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN 3251/perl off (0.00/0/0) tcp 0 0 0.0.0.0:8081 0.0.0.0:* LISTEN 1719/python off (0.00/0/0) tcp 0 0 127.0.0.1:7634 0.0.0.0:* LISTEN 1953/hddtemp off (0.00/0/0) tcp 0 0 192.168.1.254:53 0.0.0.0:* LISTEN 28681/named off (0.00/0/0) tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 28681/named off (0.00/0/0) tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1739/sshd off (0.00/0/0) tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 1545/cupsd off (0.00/0/0) tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 28681/named off (0.00/0/0) tcp 0 0 127.0.0.1:34265 0.0.0.0:* LISTEN 5089/html off (0.00/0/0) tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 2134/master off (0.00/0/0) tcp 0 0 0.0.0.0:25915 0.0.0.0:* LISTEN 7838/python off (0.00/0/0) tcp 0 0 0.0.0.0:28742 0.0.0.0:* LISTEN 5147/ruby off (0.00/0/0) tcp 0 0 0.0.0.0:35334 0.0.0.0:* LISTEN 1366/rpc.statd off (0.00/0/0) tcp 0 0 0.0.0.0:5000 0.0.0.0:* LISTEN 1694/python off (0.00/0/0) tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 1890/mysqld off (0.00/0/0) tcp 0 0 0.0.0.0:5901 0.0.0.0:* LISTEN 2318/Xvnc off (0.00/0/0) tcp 0 0 :::111 :::* LISTEN 1346/rpcbind off (0.00/0/0) tcp 0 0 :::80 :::* LISTEN 2204/httpd off (0.00/0/0) tcp 0 0 ::1:53 :::* LISTEN 28681/named off (0.00/0/0) tcp 0 0 :::22 :::* LISTEN 1739/sshd off (0.00/0/0) tcp 0 0 ::1:631 :::* LISTEN 1545/cupsd off (0.00/0/0) tcp 0 0 ::1:953 :::* LISTEN 28681/named off (0.00/0/0) tcp 0 0 ::1:25 :::* LISTEN 2134/master off (0.00/0/0) tcp 0 0 :::443 :::* LISTEN 2204/httpd off (0.00/0/0) tcp 0 0 :::445 :::* LISTEN 2283/smbd off (0.00/0/0) tcp 0 0 :::46378 :::* LISTEN 1366/rpc.statd off (0.00/0/0) tcp 0 0 :::139 :::* LISTEN 2283/smbd off (0.00/0/0)

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Emails not being sent

Postby bigfoot65 » Thu Apr 12, 2012 5:30 pm

Not sure what the issue could be. Check log files in /var/log folder.

[ Post made via Android ] Image
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

modem7
Posts: 215
Joined: Tue Mar 20, 2012 6:00 pm

Re: Emails not being sent

Postby modem7 » Thu Apr 12, 2012 5:52 pm

Not sure what the issue could be. Check log files in /var/log folder.

[ Post made via Android ] Image
Only thing I can see that looks weird is:

Code: Select all

Apr 13 01:49:20 AlexServer sendmail[9112]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use Apr 13 01:49:20 AlexServer sendmail[9112]: daemon MTA: problem creating SMTP socket Apr 13 01:49:25 AlexServer sendmail[9112]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use Apr 13 01:49:25 AlexServer sendmail[9112]: daemon MTA: problem creating SMTP socket Apr 13 01:49:30 AlexServer sendmail[9112]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use Apr 13 01:49:30 AlexServer sendmail[9112]: daemon MTA: problem creating SMTP socket Apr 13 01:49:35 AlexServer sendmail[9112]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use Apr 13 01:49:35 AlexServer sendmail[9112]: daemon MTA: problem creating SMTP socket Apr 13 01:49:40 AlexServer sendmail[9112]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use Apr 13 01:49:40 AlexServer sendmail[9112]: daemon MTA: problem creating SMTP socket Apr 13 01:49:45 AlexServer sendmail[9112]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use Apr 13 01:49:45 AlexServer sendmail[9112]: daemon MTA: problem creating SMTP socket Apr 13 01:49:50 AlexServer sendmail[9112]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use Apr 13 01:49:50 AlexServer sendmail[9112]: daemon MTA: problem creating SMTP socket Apr 13 01:49:55 AlexServer sendmail[9112]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use Apr 13 01:49:55 AlexServer sendmail[9112]: daemon MTA: problem creating SMTP socket Apr 13 01:50:00 AlexServer sendmail[9112]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use Apr 13 01:50:00 AlexServer sendmail[9112]: daemon MTA: problem creating SMTP socket Apr 13 01:50:05 AlexServer sendmail[9112]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use Apr 13 01:50:05 AlexServer sendmail[9112]: daemon MTA: problem creating SMTP socket Apr 13 01:50:05 AlexServer sendmail[9112]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: server SMTP socket wedged: exiting

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Emails not being sent

Postby bigfoot65 » Thu Apr 12, 2012 6:17 pm

You might consider redoing the mail setup. That would fix anything that might be broken I would think. Have you rebooted? It indicates the address is already is use which often is corrected with a reboot.

Is there something you did recently on the HDA that might affect the email? Seems odd that it was working, then all of a sudden quit.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

modem7
Posts: 215
Joined: Tue Mar 20, 2012 6:00 pm

Re: Emails not being sent

Postby modem7 » Fri Apr 13, 2012 4:12 am

You might consider redoing the mail setup. That would fix anything that might be broken I would think. Have you rebooted? It indicates the address is already is use which often is corrected with a reboot.

Is there something you did recently on the HDA that might affect the email? Seems odd that it was working, then all of a sudden quit.
Uninstalled + reinstalled postfix + sendmail, redid the setup, and it now seems emails are getting through (emails in the queue aren't, but I deleted those and will see how things go).


Thank you very much for all your help!

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Emails not being sent

Postby bigfoot65 » Fri Apr 13, 2012 4:57 am

Great! Hard to say what was broken, but at least you have it going again. Email is such a complicated thing with a server for some reason.

BTW, we have a mail server application in testing that works well. If you would be interested in testing some time, please let me know.

http://www.amahi.org/apps/amahi-mail-system

Not sure if it will ever make it live, but it has served me well in the past. The key to it's success is ensuring you have a valid host name, not localhost.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 20 guests