[Pkg-mailman-hackers] Bug#921137: Bug#921137: emails sent from /etc/mailname, ignoring configured domain

Pierre-Elliott Bécue peb at debian.org
Sat Feb 2 16:52:50 GMT 2019


Le vendredi 01 février 2019 à 20:26:07-0500, Antoine Beaupre a écrit :
> Package: mailman3
> Version: 3.2.0-4~bpo9+1
> Severity: grave
> 
> I'm finding it difficult to use the "domain" feature of Mailman 3. From
> what I understand, it allows you to have two distinct mailing lists
> named "test" on (say) test at example.com and test at example.net.
> 
> Here I'm specifically using the feature to host my mailing lists on
> lists.anarc.at instead of plain anarc.at. Yet I don't know what I'm
> doing wrong, but all outgoing email comes from test at anarc.at instead of
> test at lists.anarc.at. This makes replies obviously fail as the LTMP maps
> don't have that domain:
> 
> # grep ^[^#] /var/spool/postfix/mailman3/postfix_domains
> # /var/spool/postfix/mailman3/postfix_lmtp
> /var/spool/postfix/mailman3/postfix_domains:lists.anarc.at lists.anarc.at
> /var/spool/postfix/mailman3/postfix_lmtp:    
> /var/spool/postfix/mailman3/postfix_lmtp:test at lists.anarc.at lmtp:[127.0.0.1]:8024
> /var/spool/postfix/mailman3/postfix_lmtp:test-bounces at lists.anarc.at lmtp:[127.0.0.1]:8024
> /var/spool/postfix/mailman3/postfix_lmtp:test-confirm at lists.anarc.at lmtp:[127.0.0.1]:8024
> /var/spool/postfix/mailman3/postfix_lmtp:test-join at lists.anarc.at lmtp:[127.0.0.1]:8024
> /var/spool/postfix/mailman3/postfix_lmtp:test-leave at lists.anarc.at lmtp:[127.0.0.1]:8024
> /var/spool/postfix/mailman3/postfix_lmtp:test-owner at lists.anarc.at lmtp:[127.0.0.1]:8024
> /var/spool/postfix/mailman3/postfix_lmtp:test-request at lists.anarc.at lmtp:[127.0.0.1]:8024
> /var/spool/postfix/mailman3/postfix_lmtp:test-subscribe at lists.anarc.at lmtp:[127.0.0.1]:8024
> /var/spool/postfix/mailman3/postfix_lmtp:test-unsubscribe at lists.anarc.at lmtp:[127.0.0.1]:8024
> 
> I've tried various things to fix this: I recreated the "domain" in the
> Posterious interface. I have changed the "mailname" when running
> dpkg-reconfigure mailman3-web, restarting it, which gave me this diff:
> 
> --- a/mailman3/mailman-web.py
> +++ b/mailman3/mailman-web.py
> @@ -130,7 +130,7 @@ USE_TZ = True
> 
> 
>  # Set default domain for email addresses.
> -EMAILNAME = 'localhost.local'
> +EMAILNAME = 'anarc.at'
>  
>  # If you enable internal authentication, this is the address that the emails
>  # will appear to be coming from. Make sure you set a valid domain name,
> 
> Still, "mass subscribe" emails come out as "test at anarc.at", even though
> the footer clearly reads:
> 
>     To unsubscribe send an email to test-leave at lists.anarc.at
> 
> When I write an email there, I get a reply saying to reply to:
> 
>     test-confirm+14ea1ffec9434c30b983e1d5ab071b4988af4347 at anarc.at
> 
> ... which is still wrong and will (obviously) bounce.
> 
> What's going on here?
> 
> Here's a log of an admin mass-subscribing a user:
> 
> ==> /var/log/mailman3/web/mailman-web.log <== 
> [pid: 2680|app: 0|req: 5/5] 192.168.0.7 () {82 vars in 1587 bytes} [Sat Feb  2 01:22:11 2019] POST /mailman3/postorius/lists/test.lists.anarc.at/mass_subscribe/ => generated 9458 bytes in 468 msecs (HTTP/2.0 200) 6 headers in 317 bytes (3 switches on core 0) 
> 
> ==> /var/log/mail.log <== 
> Feb  1 20:22:12 marcos postfix/smtpd[4889]: connect from localhost[127.0.0.1] 
> Feb  1 20:22:12 marcos postfix/smtpd[4889]: DD2E510E1D8: client=localhost[127.0.0.1]
> Feb  1 20:22:12 marcos postfix/cleanup[5789]: DD2E510E1D8: message-id=<154907053190.742.3083806269187387996 at marcos.anarc.at>
> 
> ==> /var/log/mailman3/smtp.log <== 
> Feb 01 20:22:12 2019 (746) <154907053190.742.3083806269187387996 at marcos.anarc.at> smtp to test at lists.anarc.at for 1 recips, completed in 0.03175711631774902 seconds 
> 
> ==> /var/log/mail.log <== 
> Feb  1 20:22:12 marcos postfix/qmgr[31811]: DD2E510E1D8: from=<test-bounces at anarc.at>, size=581, nrcpt=1 (queue active)
> Feb  1 20:22:12 marcos postfix/smtpd[5791]: connect from localhost[127.0.0.1] 
> 
> ==> /var/log/mailman3/smtp.log <== 
> Feb 01 20:22:12 2019 (746) <154907053190.742.3083806269187387996 at marcos.anarc.at> post to test at lists.anarc.at from test-request at lists.anarc.at, 362 bytes 
> 
> ==> /var/log/mail.log <== 
> Feb  1 20:22:12 marcos postfix/smtpd[4889]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 commands=4 
> Feb  1 20:22:12 marcos postfix/smtpd[5791]: EAED510E1DA: client=localhost[127.0.0.1]
> Feb  1 20:22:13 marcos spampd[24505]: processing message <154907053190.742.3083806269187387996 at marcos.anarc.at> for <anarcat at example.net> ORCPT=rfc822;anarcat at example.net 
> Feb  1 20:22:14 marcos spampd[24505]: clean message <154907053190.742.3083806269187387996 at marcos.anarc.at> (-1.31/5.00) from <test-bounces at anarc.at> for <anarcat at example.net> ORCPT=rfc822;anarcat at example.net in 1.10s, 1087 bytes. 
> Feb  1 20:22:14 marcos postfix/cleanup[5789]: EAED510E1DA: message-id=<154907053190.742.3083806269187387996 at marcos.anarc.at>
> Feb  1 20:22:14 marcos postfix/qmgr[31811]: EAED510E1DA: from=<test-bounces at anarc.at>, size=1583, nrcpt=1 (queue active)
> Feb  1 20:22:14 marcos postfix/smtp[5799]: DD2E510E1D8: to=<anarcat at example.net>, relay=127.0.0.1[127.0.0.1]:10025], delay=1.2, delays=0.02/0/0.03/1.2, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as EAED510E1DA)
> Feb  1 20:22:14 marcos postfix/smtpd[5791]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5 
> Feb  1 20:22:14 marcos postfix/qmgr[31811]: DD2E510E1D8: removed 
> Feb  1 20:22:15 marcos postfix/smtp[5790]: EAED510E1DA: to=<anarcat at example.net>, relay=mx1.example.net[...]:25], delay=2.6, delays=1.2/0/0.82/0.66, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as C47C11A042F)
> Feb  1 20:22:15 marcos postfix/qmgr[31811]: EAED510E1DA: removed 
> 
> Notice how the smtp.log still thinks it's for tests at lists.anarc.at but then
> goes creating an email from test-bounces at anarc.at?
> 
> What's up with that? Did I misconfigure something?
> 
> I'm using postfix, hyperkitty, posterious and I don't know what else. 
> Let me know if you n eed more info.

I use a subdomain, too, and got no issue.

Can you provide me with your MTA and mailman configurations?

Cheers!

-- 
Pierre-Elliott Bécue
GPG: 9AE0 4D98 6400 E3B6 7528  F493 0D44 2664 1949 74E2
It's far easier to fight for one's principles than to live up to them.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-mailman-hackers/attachments/20190202/2a41cb71/attachment.sig>


More information about the Pkg-mailman-hackers mailing list