How to let mailman log every single email that it sends out?
I'm curious about the configuration required to have Mailman record logs for every individual email it sends. I see that it sends to the entire list, but I'm interested in obtaining log entries for each email sent to every individual subscriber on the list. How can I access this information?
Is it a postfix setting, or a Mailman3 setting? I have checked /var/log/mail.log and all the logs under /var/log/Mailman3/* Mailman is running on Ubuntu 18.3
Thank you! Mohsen
On 9/8/23 12:41, Mohsen Masoudfar wrote:
I'm curious about the configuration required to have Mailman record logs for every individual email it sends. I see that it sends to the entire list, but I'm interested in obtaining log entries for each email sent to every individual subscriber on the list. How can I access this information?
Is it a postfix setting, or a Mailman3 setting? I have checked /var/log/mail.log and all the logs under /var/log/Mailman3/* Mailman is running on Ubuntu 18.3
You should see the information about the mail being sent an delivered to recipient MX servers in /var/log/mail.log.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Thank you, Mark, but Sorry, I don't see them there. I read that the mta log level should be set to debug in order to see them. When I send an email to a list with +3000 subscribers and need to see in the log email has been sent to each of those email addresses
Thanks Mohsen
From: Mark Sapiro <mark@msapiro.net> Sent: Friday, September 8, 2023 3:58:10 PM To: mailman-users@mailman3.org <mailman-users@mailman3.org> Subject: [MM3-users] Re: How to let mailman log every single email that it sends out?
[EXTERNAL EMAIL]
On 9/8/23 12:41, Mohsen Masoudfar wrote:
I'm curious about the configuration required to have Mailman record logs for every individual email it sends. I see that it sends to the entire list, but I'm interested in obtaining log entries for each email sent to every individual subscriber on the list. How can I access this information?
Is it a postfix setting, or a Mailman3 setting? I have checked /var/log/mail.log and all the logs under /var/log/Mailman3/* Mailman is running on Ubuntu 18.3
You should see the information about the mail being sent an delivered to recipient MX servers in /var/log/mail.log.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.mailman3.org%2Fmailman3%2Flists%2Fmailman-users.mailman3.org%2F&data=05%7C01%7Cmmasoudf%40aaas.org%7Cb4860564ed29431a22a308dbb0a5eae3%7C2eebd8ff9ed140f0a15638e5dfb3bc56%7C0%7C0%7C638297998900876324%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=%2B%2Behp%2BwG5kdO6iqqDgNPCXFtKcHimgWFH5LouYjknGw%3D&reserved=0<https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/> Archived at: https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.mailman3.org%2Farchives%2Flist%2Fmailman-users%40mailman3.org%2Fmessage%2FA6CGPTE76FTWBL5XMCYL7RRAI3CTO6EI%2F&data=05%7C01%7Cmmasoudf%40aaas.org%7Cb4860564ed29431a22a308dbb0a5eae3%7C2eebd8ff9ed140f0a15638e5dfb3bc56%7C0%7C0%7C638297998900876324%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Z4mg1nIvacgYGcBREsTewHGWsyAgffK0a78cp9H8uqU%3D&reserved=0<https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/A6CGPTE76FTWBL5XMCYL7RRAI3CTO6EI/>
This message sent to mmasoudf@aaas.org
On 9/9/23 09:13, Mohsen Masoudfar wrote:
Thank you, Mark, but Sorry, I don't see them there. I read that the mta log level should be set to debug in order to see them. When I send an email to a list with +3000 subscribers and need to see in the log email has been sent to each of those email addresses
If you want to see individual recipient emails in /var/log/mail.log, the best way is to enable VERP in mailman. I.e., set
verp_delivery_interval: 1
in the [mta] section of mailman.cfg. Then you should see entries like:
Sep 9 16:14:31 mail postfix/qmgr[1158516]: 7561EFC0A5: from=<mailman-users-bounces+mmasoudf=aaas.org@mailman3.org>, size=1276, nrcpt=1 (queue active) Sep 9 16:14:33 mail postfix/smtp[1831181]: 7561EFC0A5: to=<mmasoudf@aaas.org>, relay=aaas-org.mail.protection.outlook.com[104.47.59.138]:25, delay=1.6, delays=0.01/0/0.35/1.2, dsn=2.6.0, status=sent (250 2.6.0 <169427602883.1158168.2180174954874478353@mail.mailman3.org> [InternalId=4823248279498, Hostname=IA1PR20MB6503.namprd20.prod.outlook.com] 10538 bytes in 0.177, 58.037 KB/sec Queued mail for delivery)
in /var/log/mail.log for each recipient.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
I actually also see them without special settings. Postfix should log all outgoing connections and whether the mail has been sent or not, obviously. Regards.
Am 09.09.23 um 18:43 schrieb Mark Sapiro:
If you want to see individual recipient emails in /var/log/mail.log, the best way is to enable VERP in mailman. I.e., set
verp_delivery_interval: 1
in the [mta] section of mailman.cfg. Then you should see entries like:
in /var/log/mail.log for each recipient.
Jens Günther writes:
I actually also see them without special settings. Postfix should log all outgoing connections and whether the mail has been sent or not, obviously. Regards.
I think what Mohsen is seeing is SMTP batching where multiple RCPT TOs are sent for one DATA. Any personalization will force individual SMTP transactions, although they may be pipelined for each remote MX.
Mark's suggestion of VERP is the best of course because (as much as is possible) it gives the most information about returned emails as well as delivered emails.
participants (4)
-
Jens Günther
-
Mark Sapiro
-
Mohsen Masoudfar
-
Stephen J. Turnbull