Skip to content

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

Open

Description

@eoli3n

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

Activity

  1. corecode commented on Oct 14, 2022

    @corecode
    Owner

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

  2. eoli3n commented on Oct 14, 2022

    @eoli3n
    Author

    Thanks !
    The last version of latest freebsd

  3. emaste commented on Oct 14, 2022

    @emaste
    Collaborator

    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.

  4. eoli3n commented on Oct 17, 2022

    @eoli3n
    Author

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

    $ ls /var/spool/dma
    flush
    $

    So from where could it come from ?

  5. bapt commented on Oct 17, 2022

    @bapt
    Collaborator

    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.

  6. corecode commented on Oct 17, 2022

    @corecode
    Owner
  7. eoli3n commented on Oct 18, 2022

    @eoli3n
    Author

    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 ?

  8. corecode commented on Oct 19, 2022

    @corecode
    Owner

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

  9. eoli3n commented on Oct 19, 2022

    @eoli3n
    Author
    $ pgrep dma
    $ 
    
  10. corecode commented on Oct 19, 2022

    @corecode
    Owner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions