corecode / dma

The DragonFly Mail Agent, a small Mail Transport Agent (MTA), designed for home and office use.
Other
231 stars 50 forks source link

mailer-deamon spam with endless "Mail delivery failed" #111

Open eoli3n opened 2 years ago

eoli3n commented 2 years ago

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
corecode commented 2 years ago

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

eoli3n commented 2 years ago

Thanks ! The last version of latest freebsd

emaste commented 2 years ago

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.

eoli3n commented 2 years ago

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 2 years ago

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.

corecode commented 2 years ago

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.

eoli3n commented 2 years ago

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 ?

corecode commented 2 years ago

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

eoli3n commented 2 years ago
$ pgrep dma
$ 
corecode commented 2 years ago

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.