MTA authentication and smtpd_sender_login_maps
Hi,
I installed Mailman3 successfully and would like to change the default smtp settings to an authenticated connection (smtp_user, smtp_pass). But my Postfix configuration restricts sending messages via the smtpd_sender_login_maps directive (which points to a hashed file I created years ago) and correctly refuses connections for messages with the test mailing list's From header.
I obviously do not want to add an entry to the map file for each mailing list created by someone on the server. Is there a way to programmatically create a sender login map with Mailman?
Thanks, Jan
On 11/25/22 11:00, Jan Eden via Mailman-users wrote:
I obviously do not want to add an entry to the map file for each mailing list created by someone on the server. Is there a way to programmatically create a sender login map with Mailman?
You could modify mailman/src/mailman/mta/postfix.py to create a smtpd_sender_login_maps file with the desired content or you could create a script that creates the file using data in the generated var/data/postfix_lmtp. If the latter, you might be able to create a plugin <https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/plugins/docs/intro.html> to run the script whenever a list is created or deleted
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On 2022-11-25 11:44, Mark Sapiro wrote:
On 11/25/22 11:00, Jan Eden via Mailman-users wrote:
I obviously do not want to add an entry to the map file for each mailing list created by someone on the server. Is there a way to programmatically create a sender login map with Mailman?
You could modify mailman/src/mailman/mta/postfix.py to create a smtpd_sender_login_maps file with the desired content or you could create a script that creates the file using data in the generated var/data/postfix_lmtp. If the latter, you might be able to create a plugin <https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/plugins/docs/intro.html> to run the script whenever a list is created or deleted
Thanks! I feel rather stupid, but the obvious and really simple solution is a wildcard entry for the SASL user in controlled_envelope_senders:
@lists.domain.org mailman_sender@domain.org
Sorry for realizing this *after* bothering you.
- Jan
participants (2)
-
Jan Eden
-
Mark Sapiro