ListPrune does not remove dead addresses from mailing list
-
\Logs\BadAddress.txt file is created with a large number of emails, but ListPrune does not remove dead addresses from the mailing list at midnight.
Option Settings – Remove undeliverable email addresses from list membership is enabled.
What is wrong?
-
Arron Staff
What version of MDaemon are you using?
Have you configured the "List's SMTP Bounce address"? (Mailing list manager / Select the list / Edit / Notifications)
The badaddress.txt can be used to help manually clean up the mailing lists, but is not used by the list pruner. You can find information on the badaddress.txt file in help file at https://help.mdaemon.com/MDaemon/en/log_mode.html
The option for "Remove undeliverable email addresses from list membership" now has "after this many consecutive failures" and defaults to 3. So by default, the list must see 3 failures in a row before the feature will remove the member from the list.
You'll also find that in order for list pruner to work, you must have also specified a local mailbox as the List's SMTP 'Bounce' address on the Notifications dialog. Each day MDaemon attempts to parse the bounce messages found in the bounce address configured to identify the address that bounced, and then it attempts to remove those members from the list.
You can find more information in the help file at https://help.mdaemon.com/MDaemon/en/ml_options.html
Lastly, what does the list prune log show is happening? It can be found in the MDaemon\Logs directory.
-
Thanks for reply.
MDaemon version 23.5.0 64 bit is used. The same was observed in previous versions.
"List's SMTP Bounce address" is of course configured to a local mailbox.
The example of the BadAddress.txt file is provided only to show that dead addresses are actually present in the mailing list and are detected by MDaemon.
Since version 23.5.0 is used, the "after this many consecutive failures" option does not exist.
Daily ListPrune log is empty:
[Wed 2025-01-15 00:00:33]---------- Opening Log----------
[Wed 2025-01-15 00:01:33]---------- Closing Log----------
-
Arron Staff
>"List's SMTP Bounce address" is of course configured to a local mailbox.
Are any bounce messages in the root of the mailbox?
Is the listprune log empty every day?
What values are set in the [ListPrune] section of the MDaemon\app\listprune.ini file?
If there are bounce messages in the root of the mailbox, open a command prompt and go to the MDaemon\app directory and run listprune.exe /d /s
Does it log anything?
-
At the root of the mailbox are thousands of bounced messages with the subject:
WARNING: Message delivery failedListprune log is empty every day.
[ListPrune] section of the MDaemon\app\listprune.ini file is:
[ListPrune]
PruneFolder=No
NotificationFolder=No
Delete=NoYes, it log something:
[Sun 2025-01-19 12:35:37] CheckFileSize = false
[Sun 2025-01-19 12:35:37] Error message list: delivery to the following recipients failed.
[Sun 2025-01-19 12:35:37] Error message list: action: failed
[Sun 2025-01-19 12:35:37] Error message list: action-field: failed
[Sun 2025-01-19 12:35:37] Error message list: had permanent fatal delivery errors
[Sun 2025-01-19 12:35:37] Error message list: the following addresses had permanent fatal errors
[Sun 2025-01-19 12:35:37] Error message list: invalid final delivery userid:
[Sun 2025-01-19 12:35:37] Error message list: unknown user
[Sun 2025-01-19 12:35:37] Error message list: sorry, no mailbox here by that name. (#5.1.1)
[Sun 2025-01-19 12:35:37] Error message list: sorry, i couldn't find any host named mx-222.fsnet.co.uk. (#5.1.2)
[Sun 2025-01-19 12:35:37] Error message list: recipient unknown
[Sun 2025-01-19 12:35:37] Error message list: user not known
[Sun 2025-01-19 12:35:37] Error message list: user unknown
[Sun 2025-01-19 12:35:37] Error message list: does not exist on this system.
[Sun 2025-01-19 12:35:37] Error message list: 5.6.0 all recipients discarded by mail filter
[Sun 2025-01-19 12:35:37] Error message list: this is a permanent error. the following address(es) failed:
[Sun 2025-01-19 12:35:37] Error message list: The recipient name is not recognized
[Sun 2025-01-19 12:35:37] Prune following list: list@domain.com
[Sun 2025-01-19 12:35:37] Source directory: C:\MDaemon\Users\domain.com\sale\
[Sun 2025-01-19 12:35:37] Fixing to scan: C:\MDaemon\Users\domain.com\sale\md5001000000001.msg
[Sun 2025-01-19 12:35:37] Prune following list: manager@domain.com
[Sun 2025-01-19 12:35:37] Source directory: C:\MDaemon\Users\domain.com\sale\
[Sun 2025-01-19 12:35:37]---------- Closing Log----------
-
Arron Staff
Are the thousands of messages in the mailboxes all the bounce messages since this has been configured? By default, listprune.exe does not remove the messages from the mailbox after the messages have been used. If they are all the bouncees since this was setup, or even bounces over a long period of time, lets start by cleaning up the old messages. You can keep them if you want, but move them out of the root of the mailbox. Then lets watch for new bounce messages being delivered to the mailbox. When a new bounce is delivered to the mailbox, what does the log show for its next run?
Is "list@domain.com" and "manager@domain.com" in the listprune log file the correct mailing lists that you are trying to have pruned?
I notice the source directory for both lists is set the same, is that correct, bounces for both lists are going to the same user mailbox?