corecode/dma

mailer-deamon spam with endless "Mail delivery failed"

eoli3n opened this issue · 10 comments

For 3 month, I got a smtp authentication error that I didn't solve.

This is the DragonFly Mail Agent v0.11+ at domain.tld.

There was an error delivering your mail to <x@domain.tld>.

SMTP login to smtp.gmail.com failed

Message headers follow.

Received: from root (uid 0)
	(envelope-from [root@domain.tld](mailto:root@domain.tld))
	id 4235e
	by domain.tld (DragonFly Mail Agent v0.11+);
	Thu, 30 Jun 2022 03:55:57 +0200
To: root
Subject: nas daily security run output
Date: Thu, 30 Jun 2022 03:55:57 +0200
Message-Id: <[62bd02ad.4235e.74e18fbb@domain.tld](mailto:62bd02ad.4235e.74e18fbb@domain.tld)>
From: <[root@domain.tld](mailto:root@domain.tld)>

For each failed mail, dma now spam me with ~15 mail per day, everyday since 2 weeks.

This is what I got yesterday for exemple :
mail

How to empty the queue ? I can't find anything with mail command

$ mail
No mail for root
$ ls /var/spool/mqueue
mail.core

spool dir is in /var/spool/dma. You seem to be running an old version of dma?

Thanks !
The last version of latest freebsd

Note that we have a few changes in FreeBSD's copy of dma - primarily related to splitting over-long body lines, and we may not have any very-recent changes from this repo. It's probably best to open a bug in FreeBSD's bugzilla.

I rm /var/spool/dma/* but I still receive those mails...

$ ls /var/spool/dma
flush
$

So from where could it come from ?

bapt commented

Note that we have a few changes in FreeBSD's copy of dma - primarily related to splitting over-long body lines, and we may not have any very-recent changes from this repo. It's probably best to open a bug in FreeBSD's bugzilla.

In current we are up to date, with the latest patches + yours, it is not the case for releases.

something is producing mail locally, but the Gmail smtpd rejects the mails.

No, let's reexplain well what happens.

From June 2022, my smtp connection to gmail stopped working. I let this as is for few month, and then lately, solved the problem.
Since the problem is solved, I receive everyday, ~15 mails which are dated from the moment it start to fail to connect to smtp, to the date I solved it.

The screen I posted in the first message, is what I get every day. Check dates.
For exemple, this is what I found this morning in my inbox
screen

SMTP is now working, so I guess freebsd is sending me all the spool during the failing period. I cleaned the spool, so where does those mails come from ?

there might be dma processes active, trying to deliver spool. do a killall dma and see if it stops.

$ pgrep dma
$