IPFire attempting to send email and failing

My email provider, Xfinity, is blocking all mail sent from any of my email addresses via SMTP mail with “Excessive failed authentication, ESMTP server temporarily not available”.

After 18 hours on the phone with Xfinity support I finally got to Level 3 support and was told that the only way to clear this error is to eliminate all outgoing SMTP traffic for 24 hours.

Using TCPDUMP on IPFire, I have found and fixed multiple sources of outgoing email but I’m left with IPFire itself attempting to send mail. I have turned off the Mail Service (which was on and may have been the source) and rebooted (and upgraded from 203 to 204) but I’m still seeing traffic from IPFire.

Where are these attempts coming from and how do I stop them permanently?

I think these processes probably have something to do with it:

mail      5326     1  0 06:59 ?        00:00:00 /usr/sbin/dma -q
mail      5327     1  0 06:59 ?        00:00:00 /usr/sbin/dma -q
mail      5329     1  0 06:59 ?        00:00:00 /usr/sbin/dma -q
mail      5331     1  0 06:59 ?        00:00:00 /usr/sbin/dma -q
mail      5333     1  0 06:59 ?        00:00:00 /usr/sbin/dma -q
mail      5337     1  0 06:59 ?        00:00:00 /usr/sbin/dma -q
mail      5342     1  0 06:59 ?        00:00:00 /usr/sbin/dma -q

How do I get rid of them for good?

Those look like queued mails sends that have probably failed to be sent.

Go to the Logs - System Logs and in the drop down box select Mail and you will see the dma mail logs and can see what errors are reported.

You can kill each of the process id’s but that would likely lose those mail submissions but it sounds like that might not be an issue.

Do you have mail sending enabled on your IPS page? Although I am not sure that should be a problem because as far as I am aware it uses the dma mail server for sending its alert, daily, weekly monthly reports. So if the Mail Server has been disabled then the IPS won’t be able to send anything anyway.

I suspect you have those queued mails that failed to get sent and while in the queue they will periodically be tried to be sent again and only stop after a certain number of failure attempts.

You can also check in /var/spool/dma/ and if there are any files in there besides the flush file then those are likely to be the queued mail files. From checking up on dma I believe there will be files starting with M which are the message files and others starting with a Q which hold the queue metadata.

You can read the fil;es starting with an M and see what content they have which will give you a clue what is trying to send them.

You can then delete all the M… and Q… files and probably kill all those mail processes.
Ensure that you have disabled the mail server on IPFire before doing this so that page only has a checkbox for enabling and a Save button and nothing else. If dma is running while you delete the spooled files then it can leave the mail queue in an inconsistent state.

Thanks for the insight. I believe I have successfully cleaned up the backlog. I found /var/ipfire/dma/auth.conf which had outdated credentials. I just removed the bad line (leaving no lines). Not sure if that was the right solution but so far no more attempts at sending mail.

When you want to enable it again, you will need to re-enter the password, the user name and the mail server name on the WUI page as those will now be empty when you re-enable it as you cleared the auth.conf file but that won’t be a problem.