• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Mail isn't working / responding / ...? Big problem.

T

thastudio

Guest
Hello

My clients were complaining that there mail wasn't working correctly. Some mails only arrived after three days...

What did I do:
- reinstalled qmail rpm's
- reinstalled courier-imap rpm's
- removed watchdog
- removed drweb

Result? All the mail services are running, you can connect to check mail, but no single mail is handled by the server.

On dnsreport.com I can see he can't connect to my mail server.

What is wrong? All services are running, I just can't find it...


Thanks in advance
Niels
 
You say you can connect to download mail, but dnsreport says it can't connect to your mailserver. Small contradiction, but it gives us a good place to start.

What mail server address are you using to successfully connect? If its mail.somedomain.com and there is an A Record for this in the domains DNS zone, then that explains how you can connect OK.

However, if mail is not being routed to the defined mail server it sounds like a problem with the MX Record.

If this is no help, post what you have in the DNS Zone and indicate what dnsreport can't connect to.

This is always assuming that you are managing dns locally.
 
I have one MX record that is directing to the IP of my server, and everything looks fine on dnsreport only the last step: connecting to mail servers.

The dnsreport result: click here

But if I look in my log file, I see the times I connected to my server but I don't see errors:
Feb 14 22:28:40 as pop3d: 1139952520.963380 LOGOUT, user=abcdef, ip=[81.242.126.217], top=0, retr=0, time=0, rcvd=12, sent=39, maildir=/var/qmail/mailnames/barnoir.be/abcdef/Maildir
Feb 14 22:28:52 as pop3d: Connection, ip=[81.242.126.217]
Feb 14 22:28:53 as pop3d: IMAP connect from @ [81.242.126.217]INFO: LOGIN, user=abcdef, ip=[81.242.126.217]
Feb 14 22:28:53 as pop3d: 1139952533.470881 LOGOUT, user=abcdef, ip=[81.242.126.217], top=0, retr=0, time=0, rcvd=12, sent=39, maildir=/var/qmail/mailnames/barnoir.be/abcdef/Maildir
Feb 14 22:29:40 as pop3d: Connection, ip=[81.242.126.217]
Feb 14 22:29:40 as pop3d: IMAP connect from @ [81.242.126.217]INFO: LOGIN, user=abcdef, ip=[81.242.126.217]
Feb 14 22:29:40 as pop3d: 1139952580.941207 LOGOUT, user=abcdef, ip=[81.242.126.217], top=0, retr=0, time=0, rcvd=12, sent=39, maildir=/var/qmail/mailnames/barnoir.be/abcdef/Maildir
Feb 14 22:34:23 as pop3d: Connection, ip=[81.242.126.217]
Feb 14 22:34:24 as pop3d: IMAP connect from @ [81.242.126.217]INFO: LOGIN, user=abcdef, ip=[81.242.126.217]
Feb 14 22:34:24 as pop3d: 1139952864.564462 LOGOUT, user=abcdef, ip=[81.242.126.217], top=0, retr=0, time=0, rc
 
Very strange, this is what I get after a forced reinstallation of qmail:

[root@as root]# /etc/init.d/qmail start
Starting qmail: [ OK ]
[root@as root]# /etc/init.d/qmail status
qmail is stopped

First he sais that qmail is started: 'ok', but the status is 'stopped'?! But in Plesk it looks like everything is running.


Thanks
 
Try this command:

/var/qmail/bin/qmail-qstat

If there is much more than 100 or so messages in queue then I would suspect you have a big problem. Let us know the result.
 
It looks like your SMTP and POP3 server is running on barnoir.be (87.230.2.119).

Keep in mind downloading mail and sending mail are seperate daemons and seperate protocols. Qmail specifically handles SMTP which is your outbound client mail (if you allow them to relay through your server -- probably not) and inbound server-to-server mail. Clients (Outlook) typically pull mail using POP3 and send it using SMTP.

Are you still having problems with your mail? Also take a look at /usr/local/psa/var/log/maillog and look for "qmail:" entries, not "pop3d:" entries. See if there is anything unusual there.
 
This is the result after changing the names of: smtp.psa and smtps.psa to smtp_psa and smtps_psa AND a reboot:

[root@as root]# /etc/init.d/qmail status
qmail is running

The mails are slowly coming in so I hope that stupid name was the problem. But very strange that I never edited it to a point and still it's renamed...

One last strange fact is that dnsreport still can't connect to the mail server... But I'm receiving mail, so I can ignore that, can't I?


Thanks
 
That's odd, they are normally named smtp_psa on Plesk 7.5.4. Are you using an older version of Plesk? Perhaps there is a compatibility issue there with xinetd
 
No I'm using the last version of Plesk. But I've read in the forum that watchdog changes the name sometimes... That's also why I had conflicts with mail when watchdog was installed (I suppose)...
 
I'm glad I didn't install watchdog then :). It seems to me that if your services are dying you have a bigger issue. I rarely have seen issues that warrant a watchdog process, oh well.
 
Back
Top