dma icon indicating copy to clipboard operation
dma copied to clipboard

mailer-deamon spam with endless "Mail delivery failed"

Open eoli3n opened this issue 3 years ago • 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 <[email protected]>.

SMTP login to smtp.gmail.com failed

Message headers follow.

Received: from root (uid 0)
	(envelope-from [[email protected]](mailto:[email protected]))
	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: <[[email protected]](mailto:[email protected])>
From: <[[email protected]](mailto:[email protected])>

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

eoli3n avatar Oct 14 '22 07:10 eoli3n

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

corecode avatar Oct 14 '22 17:10 corecode

Thanks ! The last version of latest freebsd

eoli3n avatar Oct 14 '22 18:10 eoli3n

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.

emaste avatar Oct 14 '22 19:10 emaste

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

$ ls /var/spool/dma
flush
$

So from where could it come from ?

eoli3n avatar Oct 17 '22 07:10 eoli3n

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.

bapt avatar Oct 17 '22 08:10 bapt

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

On October 17, 2022 2:42:31 AM CDT, Jonathan Kirszling @.***> wrote:

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

$ ls /var/spool/dma
flush
$

So from where could it come from ?

-- Reply to this email directly or view it on GitHub: https://github.com/corecode/dma/issues/111#issuecomment-1280426392 You are receiving this because you commented.

Message ID: @.***> -- Sent from my Android device with K-9 Mail. Please excuse my brevity.

corecode avatar Oct 17 '22 15:10 corecode

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 ?

eoli3n avatar Oct 18 '22 07:10 eoli3n

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

corecode avatar Oct 19 '22 02:10 corecode

$ pgrep dma
$ 

eoli3n avatar Oct 19 '22 08:10 eoli3n

i cannot explain why old mails keep arriving.

On October 19, 2022 3:01:58 AM CDT, Jonathan Kirszling @.***> wrote:

$ pgrep dma
$ 

-- Reply to this email directly or view it on GitHub: https://github.com/corecode/dma/issues/111#issuecomment-1283592301 You are receiving this because you commented.

Message ID: @.***> -- Sent from my Android device with K-9 Mail. Please excuse my brevity.

corecode avatar Oct 19 '22 15:10 corecode