Debian Bug report logs - #921137
emails sent from /etc/mailname, ignoring configured domain

version graph

Package: mailman3; Maintainer for mailman3 is Debian Mailman Team <pkg-mailman-hackers@lists.alioth.debian.org>; Source for mailman3 is src:mailman3 (PTS, buildd, popcon).

Reported by: Antoine Beaupre <anarcat@debian.org>

Date: Sat, 2 Feb 2019 01:27:01 UTC

Severity: grave

Found in version mailman3/3.2.0-4~bpo9+1

Done: Antoine Beaupré <anarcat@debian.org>

Bug is archived. No further changes may be made.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian Mailman Team <pkg-mailman-hackers@lists.alioth.debian.org>:
Bug#921137; Package mailman3. (Sat, 02 Feb 2019 01:27:04 GMT) (full text, mbox, link).


Acknowledgement sent to Antoine Beaupre <anarcat@debian.org>:
New Bug report received and forwarded. Copy sent to Debian Mailman Team <pkg-mailman-hackers@lists.alioth.debian.org>. (Sat, 02 Feb 2019 01:27:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Antoine Beaupre <anarcat@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: emails sent from /etc/mailname, ignoring configured domain
Date: Fri, 01 Feb 2019 20:26:07 -0500
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@example.com and test@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@anarc.at instead of
test@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@lists.anarc.at lmtp:[127.0.0.1]:8024
/var/spool/postfix/mailman3/postfix_lmtp:test-bounces@lists.anarc.at lmtp:[127.0.0.1]:8024
/var/spool/postfix/mailman3/postfix_lmtp:test-confirm@lists.anarc.at lmtp:[127.0.0.1]:8024
/var/spool/postfix/mailman3/postfix_lmtp:test-join@lists.anarc.at lmtp:[127.0.0.1]:8024
/var/spool/postfix/mailman3/postfix_lmtp:test-leave@lists.anarc.at lmtp:[127.0.0.1]:8024
/var/spool/postfix/mailman3/postfix_lmtp:test-owner@lists.anarc.at lmtp:[127.0.0.1]:8024
/var/spool/postfix/mailman3/postfix_lmtp:test-request@lists.anarc.at lmtp:[127.0.0.1]:8024
/var/spool/postfix/mailman3/postfix_lmtp:test-subscribe@lists.anarc.at lmtp:[127.0.0.1]:8024
/var/spool/postfix/mailman3/postfix_lmtp:test-unsubscribe@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@anarc.at", even though
the footer clearly reads:

    To unsubscribe send an email to test-leave@lists.anarc.at

When I write an email there, I get a reply saying to reply to:

    test-confirm+14ea1ffec9434c30b983e1d5ab071b4988af4347@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@marcos.anarc.at>

==> /var/log/mailman3/smtp.log <== 
Feb 01 20:22:12 2019 (746) <154907053190.742.3083806269187387996@marcos.anarc.at> smtp to test@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@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@marcos.anarc.at> post to test@lists.anarc.at from test-request@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@marcos.anarc.at> for <anarcat@example.net> ORCPT=rfc822;anarcat@example.net 
Feb  1 20:22:14 marcos spampd[24505]: clean message <154907053190.742.3083806269187387996@marcos.anarc.at> (-1.31/5.00) from <test-bounces@anarc.at> for <anarcat@example.net> ORCPT=rfc822;anarcat@example.net in 1.10s, 1087 bytes. 
Feb  1 20:22:14 marcos postfix/cleanup[5789]: EAED510E1DA: message-id=<154907053190.742.3083806269187387996@marcos.anarc.at>
Feb  1 20:22:14 marcos postfix/qmgr[31811]: EAED510E1DA: from=<test-bounces@anarc.at>, size=1583, nrcpt=1 (queue active)
Feb  1 20:22:14 marcos postfix/smtp[5799]: DD2E510E1D8: to=<anarcat@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@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@lists.anarc.at but then
goes creating an email from test-bounces@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.

-- System Information:
Debian Release: 9.7
  APT prefers stable
  APT policy: (500, 'stable'), (1, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-8-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_CA.UTF-8 (charmap=UTF-8), LANGUAGE=fr_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages mailman3 depends on:
ii  dbconfig-sqlite3            2.0.11~bpo9+1
ii  debconf [debconf-2.0]       1.5.61
ii  logrotate                   3.11.0-0.1
ii  lsb-base                    9.20161125
ii  python3                     3.5.3-1
ii  python3-aiosmtpd            1.1-6~bpo9+1
ii  python3-alembic             0.8.8-2
ii  python3-click               6.6-1
ii  python3-dnspython           1.15.0-1
ii  python3-falcon              1.0.0-2
ii  python3-flufl.bounce        2.3-4
ii  python3-flufl.i18n          2.0.1-1~bpo9+1
ii  python3-flufl.lock          3.2-1~bpo9+1
ii  python3-lazr.config         2.1-1
ii  python3-passlib             1.7.0-2
ii  python3-psycopg2            2.6.2-1
ii  python3-public              0.5-1
ii  python3-pymysql             0.7.10-1
ii  python3-requests            2.12.4-1
ii  python3-sqlalchemy          1.2.8+ds1-1~bpo9+1
ii  python3-zope.component      4.3.0-1
ii  python3-zope.configuration  4.0.3-3
ii  python3-zope.event          4.2.0-1
ii  python3-zope.interface      4.3.2-1
ii  ucf                         3.0036

Versions of packages mailman3 recommends:
ii  postfix [mail-transport-agent]  3.1.8-0+deb9u1

Versions of packages mailman3 suggests:
ii  chromium [www-browser]                      71.0.3578.80-1~deb9u1
ii  epiphany-browser [www-browser]              3.22.7-1
ii  firefox-esr [www-browser]                   60.5.0esr-1~deb9u1
ii  lynx [www-browser]                          2.8.9dev11-1
pn  mailman3-doc                                <none>
ii  mariadb-server-10.1 [virtual-mysql-server]  10.1.37-0+deb9u1
ii  w3m [www-browser]                           0.5.3-34+deb9u1

-- debconf information:
* mailman3/mysql/admin-user: debian-sys-maint
  mailman3/remove-error: abort
  mailman3/dbconfig-remove: true
  mailman3/missing-db-package-error: abort
  mailman3/db/dbname: mailman3
  mailman3/remote/newhost:
  mailman3/remote/host: localhost
  mailman3/mysql/method: Unix socket
  mailman3/internal/skip-preseed: false
  mailman3/purge: false
  mailman3/pgsql/changeconf: false
* mailman3/config_hyperkitty: true
  mailman3/db/app-user: mailman3@localhost
  mailman3/pgsql/authmethod-admin: ident
  mailman3/passwords-do-not-match:
  mailman3/dbconfig-upgrade: true
  mailman3/pgsql/authmethod-user: password
  mailman3/upgrade-error: abort
* mailman3/init_service_failed:
  mailman3/pgsql/admin-user: postgres
  mailman3/pgsql/manualconf:
  mailman3/upgrade-backup: true
* mailman3/database-type: mysql
  mailman3/remote/port: 3306
* mailman3/dbconfig-reinstall: false
  mailman3/install-error: abort
  mailman3/pgsql/method: TCP/IP
  mailman3/db/basepath: /var/lib/mailman3/data
* mailman3/dbconfig-install: true
  mailman3/pgsql/no-empty-passwords:
  mailman3/internal/reconfiguring: false



Information forwarded to debian-bugs-dist@lists.debian.org, Debian Mailman Team <pkg-mailman-hackers@lists.alioth.debian.org>:
Bug#921137; Package mailman3. (Sat, 02 Feb 2019 16:57:03 GMT) (full text, mbox, link).


Acknowledgement sent to Pierre-Elliott Bécue <peb@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Mailman Team <pkg-mailman-hackers@lists.alioth.debian.org>. (Sat, 02 Feb 2019 16:57:03 GMT) (full text, mbox, link).


Message #10 received at 921137@bugs.debian.org (full text, mbox, reply):

From: Pierre-Elliott Bécue <peb@debian.org>
To: Antoine Beaupre <anarcat@debian.org>, 921137@bugs.debian.org
Subject: Re: [Pkg-mailman-hackers] Bug#921137: emails sent from /etc/mailname, ignoring configured domain
Date: Sat, 2 Feb 2019 17:52:50 +0100
[Message part 1 (text/plain, inline)]
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@example.com and test@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@anarc.at instead of
> test@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@lists.anarc.at lmtp:[127.0.0.1]:8024
> /var/spool/postfix/mailman3/postfix_lmtp:test-bounces@lists.anarc.at lmtp:[127.0.0.1]:8024
> /var/spool/postfix/mailman3/postfix_lmtp:test-confirm@lists.anarc.at lmtp:[127.0.0.1]:8024
> /var/spool/postfix/mailman3/postfix_lmtp:test-join@lists.anarc.at lmtp:[127.0.0.1]:8024
> /var/spool/postfix/mailman3/postfix_lmtp:test-leave@lists.anarc.at lmtp:[127.0.0.1]:8024
> /var/spool/postfix/mailman3/postfix_lmtp:test-owner@lists.anarc.at lmtp:[127.0.0.1]:8024
> /var/spool/postfix/mailman3/postfix_lmtp:test-request@lists.anarc.at lmtp:[127.0.0.1]:8024
> /var/spool/postfix/mailman3/postfix_lmtp:test-subscribe@lists.anarc.at lmtp:[127.0.0.1]:8024
> /var/spool/postfix/mailman3/postfix_lmtp:test-unsubscribe@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@anarc.at", even though
> the footer clearly reads:
> 
>     To unsubscribe send an email to test-leave@lists.anarc.at
> 
> When I write an email there, I get a reply saying to reply to:
> 
>     test-confirm+14ea1ffec9434c30b983e1d5ab071b4988af4347@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@marcos.anarc.at>
> 
> ==> /var/log/mailman3/smtp.log <== 
> Feb 01 20:22:12 2019 (746) <154907053190.742.3083806269187387996@marcos.anarc.at> smtp to test@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@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@marcos.anarc.at> post to test@lists.anarc.at from test-request@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@marcos.anarc.at> for <anarcat@example.net> ORCPT=rfc822;anarcat@example.net 
> Feb  1 20:22:14 marcos spampd[24505]: clean message <154907053190.742.3083806269187387996@marcos.anarc.at> (-1.31/5.00) from <test-bounces@anarc.at> for <anarcat@example.net> ORCPT=rfc822;anarcat@example.net in 1.10s, 1087 bytes. 
> Feb  1 20:22:14 marcos postfix/cleanup[5789]: EAED510E1DA: message-id=<154907053190.742.3083806269187387996@marcos.anarc.at>
> Feb  1 20:22:14 marcos postfix/qmgr[31811]: EAED510E1DA: from=<test-bounces@anarc.at>, size=1583, nrcpt=1 (queue active)
> Feb  1 20:22:14 marcos postfix/smtp[5799]: DD2E510E1D8: to=<anarcat@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@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@lists.anarc.at but then
> goes creating an email from test-bounces@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.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Mailman Team <pkg-mailman-hackers@lists.alioth.debian.org>:
Bug#921137; Package mailman3. (Sat, 02 Feb 2019 17:33:03 GMT) (full text, mbox, link).


Acknowledgement sent to Antoine Beaupré <anarcat@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Mailman Team <pkg-mailman-hackers@lists.alioth.debian.org>. (Sat, 02 Feb 2019 17:33:03 GMT) (full text, mbox, link).


Message #15 received at 921137@bugs.debian.org (full text, mbox, reply):

From: Antoine Beaupré <anarcat@debian.org>
To: Pierre-Elliott Bécue <peb@debian.org>, 921137@bugs.debian.org
Subject: Re: [Pkg-mailman-hackers] Bug#921137: emails sent from /etc/mailname, ignoring configured domain
Date: Sat, 02 Feb 2019 12:29:27 -0500
[Message part 1 (text/plain, inline)]
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) test@example.com and test@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@anarc.at instead of
>> test@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@lists.anarc.at lmtp:[127.0.0.1]:8024
>> /var/spool/postfix/mailman3/postfix_lmtp:test-bounces@lists.anarc.at lmtp:[127.0.0.1]:8024
>> /var/spool/postfix/mailman3/postfix_lmtp:test-confirm@lists.anarc.at lmtp:[127.0.0.1]:8024
>> /var/spool/postfix/mailman3/postfix_lmtp:test-join@lists.anarc.at lmtp:[127.0.0.1]:8024
>> /var/spool/postfix/mailman3/postfix_lmtp:test-leave@lists.anarc.at lmtp:[127.0.0.1]:8024
>> /var/spool/postfix/mailman3/postfix_lmtp:test-owner@lists.anarc.at lmtp:[127.0.0.1]:8024
>> /var/spool/postfix/mailman3/postfix_lmtp:test-request@lists.anarc.at lmtp:[127.0.0.1]:8024
>> /var/spool/postfix/mailman3/postfix_lmtp:test-subscribe@lists.anarc.at lmtp:[127.0.0.1]:8024
>> /var/spool/postfix/mailman3/postfix_lmtp:test-unsubscribe@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@anarc.at", even though
>> the footer clearly reads:
>> 
>>     To unsubscribe send an email to test-leave@lists.anarc.at
>> 
>> When I write an email there, I get a reply saying to reply to:
>> 
>>     test-confirm+14ea1ffec9434c30b983e1d5ab071b4988af4347@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@marcos.anarc.at>
>> 
>> ==> /var/log/mailman3/smtp.log <== 
>> Feb 01 20:22:12 2019 (746) <154907053190.742.3083806269187387996@marcos.anarc.at> smtp to test@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@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@marcos.anarc.at> post to test@lists.anarc.at from test-request@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@marcos.anarc.at> for <anarcat@example.net> ORCPT=rfc822;anarcat@example.net 
>> Feb  1 20:22:14 marcos spampd[24505]: clean message <154907053190.742.3083806269187387996@marcos.anarc.at> (-1.31/5.00) from <test-bounces@anarc.at> for <anarcat@example.net> ORCPT=rfc822;anarcat@example.net in 1.10s, 1087 bytes. 
>> Feb  1 20:22:14 marcos postfix/cleanup[5789]: EAED510E1DA: message-id=<154907053190.742.3083806269187387996@marcos.anarc.at>
>> Feb  1 20:22:14 marcos postfix/qmgr[31811]: EAED510E1DA: from=<test-bounces@anarc.at>, size=1583, nrcpt=1 (queue active)
>> Feb  1 20:22:14 marcos postfix/smtp[5799]: DD2E510E1D8: to=<anarcat@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@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@lists.anarc.at but then
>> goes creating an email from test-bounces@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 (application/x-gtar-compressed, attachment)]
[Message part 3 (text/plain, inline)]
A.

-- 
Si les triangles avaient un Dieu, ils lui donneraient trois côtés.
                        - Montesquieu, Lettres persanes

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Mailman Team <pkg-mailman-hackers@lists.alioth.debian.org>:
Bug#921137; Package mailman3. (Sat, 02 Feb 2019 17:33:04 GMT) (full text, mbox, link).


Acknowledgement sent to Antoine Beaupré <anarcat@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Mailman Team <pkg-mailman-hackers@lists.alioth.debian.org>. (Sat, 02 Feb 2019 17:33:04 GMT) (full text, mbox, link).


Message #20 received at 921137@bugs.debian.org (full text, mbox, reply):

From: Antoine Beaupré <anarcat@debian.org>
To: Pierre-Elliott Bécue <peb@debian.org>, 921137@bugs.debian.org
Subject: Re: [Pkg-mailman-hackers] Bug#921137: emails sent from /etc/mailname, ignoring configured domain
Date: Sat, 02 Feb 2019 12:30:44 -0500
Oh, and I forgot to mention I document the steps I took to configure
mailman here:

https://anarc.at/services/mail/

There are other configurations there, naturally, in particular spamd
integration, dkim and other stuff, which might create problems...

a.
-- 
Advertisers, not governments, are the primary censors of media content 
in the United States today.
                        - C. Edwin Baker



Reply sent to Antoine Beaupré <anarcat@debian.org>:
You have taken responsibility. (Mon, 04 Feb 2019 03:45:03 GMT) (full text, mbox, link).


Notification sent to Antoine Beaupre <anarcat@debian.org>:
Bug acknowledged by developer. (Mon, 04 Feb 2019 03:45:04 GMT) (full text, mbox, link).


Message #25 received at 921137-done@bugs.debian.org (full text, mbox, reply):

From: Antoine Beaupré <anarcat@debian.org>
To: Pierre-Elliott Bécue <peb@debian.org>, 921137-done@bugs.debian.org
Subject: Re: [Pkg-mailman-hackers] Bug#921137: emails sent from /etc/mailname, ignoring configured domain
Date: Sun, 03 Feb 2019 22:43:03 -0500
Control: forwarded -1 https://gitlab.com/mailman/mailman/issues/539

Well this is embarrassing. As I described in the upstream bug report
above, the problem was between keybaord and chair: I had
`masquerade_domains` enabled in my main.cf, which simply rewrote those
emails.

Go figure. I probably enabled it years ago and forgot about it. Goes to
show servers should die every once in a while so you remember how
they're built.

Or use config management. Or Docker. Or carrier pigeons.

Whatever works, right? :)

Thanks for the hand-holding, again, and sorry for the noise.

A.
-- 
I would defend the liberty of consenting adult creationists to practice
whatever intellectual perversions they like in the privacy of their own
homes; but it is also necessary to protect the young and innocent.
                        - Arthur C. Clarke



Message #26 received at 921137-done@bugs.debian.org (full text, mbox, reply):

From: Pierre-Elliott Bécue <peb@debian.org>
To: Antoine Beaupré <anarcat@debian.org>,921137-done@bugs.debian.org
Subject: Re: [Pkg-mailman-hackers] Bug#921137: emails sent from /etc/mailname, ignoring configured domain
Date: Mon, 04 Feb 2019 10:18:52 +0100
Le 4 février 2019 04:43:03 GMT+01:00, "Antoine Beaupré" <anarcat@debian.org> a écrit :
>Control: forwarded -1 https://gitlab.com/mailman/mailman/issues/539
>
>Well this is embarrassing. As I described in the upstream bug report
>above, the problem was between keybaord and chair: I had
>`masquerade_domains` enabled in my main.cf, which simply rewrote those
>emails.
>
>Go figure. I probably enabled it years ago and forgot about it. Goes to
>show servers should die every once in a while so you remember how
>they're built.
>
>Or use config management. Or Docker. Or carrier pigeons.
>
>Whatever works, right? :)
>
>Thanks for the hand-holding, again, and sorry for the noise.
>
>A.

Yes, sorry for the delay in my replies but I was at FOSDEM. :/

Happy to see that this issue isn't a big one ! :)

Best, 
-- 
PEB from my phone.



Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 05 Mar 2019 07:28:09 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Nov 21 22:40:55 2024; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.