On 2019-02-02 17:52:50, Pierre-Elliott Bécue wrote: > 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) t...@example.com and t...@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 t...@anarc.at instead of >> t...@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:t...@lists.anarc.at >> lmtp:[127.0.0.1]:8024 >> /var/spool/postfix/mailman3/postfix_lmtp:test-boun...@lists.anarc.at >> lmtp:[127.0.0.1]:8024 >> /var/spool/postfix/mailman3/postfix_lmtp:test-conf...@lists.anarc.at >> lmtp:[127.0.0.1]:8024 >> /var/spool/postfix/mailman3/postfix_lmtp:test-j...@lists.anarc.at >> lmtp:[127.0.0.1]:8024 >> /var/spool/postfix/mailman3/postfix_lmtp:test-le...@lists.anarc.at >> lmtp:[127.0.0.1]:8024 >> /var/spool/postfix/mailman3/postfix_lmtp:test-ow...@lists.anarc.at >> lmtp:[127.0.0.1]:8024 >> /var/spool/postfix/mailman3/postfix_lmtp:test-requ...@lists.anarc.at >> lmtp:[127.0.0.1]:8024 >> /var/spool/postfix/mailman3/postfix_lmtp:test-subscr...@lists.anarc.at >> lmtp:[127.0.0.1]:8024 >> /var/spool/postfix/mailman3/postfix_lmtp:test-unsubscr...@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 "t...@anarc.at", even though >> the footer clearly reads: >> >> To unsubscribe send an email to test-le...@lists.anarc.at >> >> When I write an email there, I get a reply saying to reply to: >> >> test-confirm+14ea1ffec9434c30b983e1d5ab071b4988af4...@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.3083806269187387...@marcos.anarc.at> >> >> ==> /var/log/mailman3/smtp.log <== >> Feb 01 20:22:12 2019 (746) >> <154907053190.742.3083806269187387...@marcos.anarc.at> smtp to >> t...@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-boun...@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.3083806269187387...@marcos.anarc.at> post to >> t...@lists.anarc.at from test-requ...@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.3083806269187387...@marcos.anarc.at> for >> <anar...@example.net> ORCPT=rfc822;anar...@example.net >> Feb 1 20:22:14 marcos spampd[24505]: clean message >> <154907053190.742.3083806269187387...@marcos.anarc.at> (-1.31/5.00) from >> <test-boun...@anarc.at> for <anar...@example.net> >> ORCPT=rfc822;anar...@example.net in 1.10s, 1087 bytes. >> Feb 1 20:22:14 marcos postfix/cleanup[5789]: EAED510E1DA: >> message-id=<154907053190.742.3083806269187387...@marcos.anarc.at> >> Feb 1 20:22:14 marcos postfix/qmgr[31811]: EAED510E1DA: >> from=<test-boun...@anarc.at>, size=1583, nrcpt=1 (queue active) >> Feb 1 20:22:14 marcos postfix/smtp[5799]: DD2E510E1D8: >> to=<anar...@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=<anar...@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 te...@lists.anarc.at but then >> goes creating an email from test-boun...@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?
Which config files specifically? Here's a bunch of mailman/postfix configs, with some passwords redacted.
etc.tgz
Description: application/gtar-compressed
A. -- Si les triangles avaient un Dieu, ils lui donneraient trois côtés. - Montesquieu, Lettres persanes