mailman3 does not send to the members of the lists
Goodmorning everyone, I'm setting up a mail server to manage a mailinglist. I installed mailman3-full and configured everything. I can create a list, add members to the list, but when I create a new thread, I only get it on the email from the same domain as the list. While all the other members of the list, they do not receive the thread. I tried to check the logs, but I don't see anything significant. What can I check? Thank you in advance Max
On 7/12/20 2:41 PM, maszap@tin.it wrote:
I can create a list, add members to the list, but when I create a new thread, I only get it on the email from the same domain as the list. While all the other members of the list, they do not receive the thread. I tried to check the logs, but I don't see anything significant. What can I check?
This is most likely because the outgoing MTA can't deliver/relay to external domains. Check the MTA configuration and logs.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Thank you, but using roundcube, i can send email to all domains. These are just the lines I added to /etc/postfix/main.cf
owner_request_special = no transport_maps = hash:/var/lib/mailman3/data/postfix_lmtp local_recipient_maps = proxy:unix:passwd.byname $alias_maps hash:/var/lib/mailman3/data/postfix_lmtp
Max
On 7/12/20 3:01 PM, maszap@tin.it wrote:
Thank you, but using roundcube, i can send email to all domains.
That doesn't mean Mailman can.
These are just the lines I added to /etc/postfix/main.cf
owner_request_special = no transport_maps = hash:/var/lib/mailman3/data/postfix_lmtp local_recipient_maps = proxy:unix:passwd.byname $alias_maps hash:/var/lib/mailman3/data/postfix_lmtp
You may need to add relay_domains = hash:/var/lib/mailman3/data/postfix_domains
to your postfix main.cf. See <https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/docs/mta.html#postfix>
Look in Mailman's smtp.log. You are looking for messages like:
<timestamp> (pid) <message-id > post to <list-id> from <poster> nnn bytes
and
<timestamp> (pid) <message-id > smtp to <list-id> for nn recips, completed in nn.nnn seconds
If the 'nn recips' matches the expected number of list members, the message was delivered to the MTA for all the recipients. If it then wasn't delivered to some of them, that's an issue with the MTA. Check the MTA's logs.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Hi,
I added the line to the main.cf file
owner_request_special = no transport_maps = hash:/var/lib/mailman3/data/postfix_lmtp local_recipient_maps = hash:/var/lib/mailman3/data/postfix_lmtp relay_domains = hash:/var/lib/mailman3/data/postfix_domains
In my log MTA mail.warn I get: Jul 13 00:44:56 gamelia postfix/trivial-rewrite[8317]: warning: do not list domain pratico.work in BOTH virtual_mailbox_domains and relay_domains
I check my /var/log/mailman3/smtp.log but is empty
Max
On 7/12/20 3:53 PM, maszap@tin.it wrote:
Hi,
I added the line to the main.cf file
owner_request_special = no transport_maps = hash:/var/lib/mailman3/data/postfix_lmtp local_recipient_maps = hash:/var/lib/mailman3/data/postfix_lmtp relay_domains = hash:/var/lib/mailman3/data/postfix_domains
In my log MTA mail.warn I get: Jul 13 00:44:56 gamelia postfix/trivial-rewrite[8317]: warning: do not list domain pratico.work in BOTH virtual_mailbox_domains and relay_domains
What's in your mail.log for a message to and from the list?
I check my /var/log/mailman3/smtp.log but is empty
If Mailman is sending any mail at all, there should be entries in smtp.log unless the log level is higher than info. What does
mailman conf -s logging.smtp
show?
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Hi My mail.log
Jul 13 01:15:12 gamelia postfix/smtpd[1973]: connect from localhost[127.0.0.1] Jul 13 01:15:12 gamelia postfix/trivial-rewrite[1974]: warning: do not list domain pratico.work in BOTH virtual_mailbox_domains and relay_domains Jul 13 01:15:12 gamelia postfix/trivial-rewrite[1974]: warning: do not list domain pratico.work in BOTH virtual_mailbox_domains and relay_domains Jul 13 01:15:12 gamelia postfix/smtpd[1973]: 276C0C202B7: client=localhost[127.0.0.1] Jul 13 01:15:12 gamelia postfix/cleanup[1975]: 276C0C202B7: message-id=<20200712231512.1546.30031@mail.pratico.work> Jul 13 01:15:12 gamelia opendkim[726]: 276C0C202B7: DKIM-Signature field added (s=mail2020, d=pratico.work) Jul 13 01:15:12 gamelia postfix/qmgr[1533]: 276C0C202B7: from=<admin@pratico.work>, size=586, nrcpt=2 (queue active) Jul 13 01:15:12 gamelia postfix/smtpd[1973]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5 Jul 13 01:15:12 gamelia postfix/smtpd[1978]: connect from localhost[127.0.0.1] Jul 13 01:15:12 gamelia postfix/trivial-rewrite[1974]: warning: do not list domain pratico.work in BOTH virtual_mailbox_domains and relay_domains Jul 13 01:15:12 gamelia postfix/trivial-rewrite[1974]: warning: do not list domain pratico.work in BOTH virtual_mailbox_domains and relay_domains Jul 13 01:15:12 gamelia postfix/smtpd[1978]: C3A57C20D52: client=localhost[127.0.0.1] Jul 13 01:15:12 gamelia postfix/trivial-rewrite[1974]: warning: do not list domain pratico.work in BOTH virtual_mailbox_domains and relay_domains Jul 13 01:15:12 gamelia postfix/cleanup[1975]: C3A57C20D52: message-id=<20200712231512.1546.30031@mail.pratico.work> Jul 13 01:15:12 gamelia opendkim[726]: C3A57C20D52: DKIM-Signature field added (s=mail2020, d=pratico.work) Jul 13 01:15:12 gamelia postfix/qmgr[1533]: C3A57C20D52: from=<admin@pratico.work>, size=1610, nrcpt=2 (queue active) Jul 13 01:15:12 gamelia postfix/smtpd[1978]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=2 data=1 quit=1 commands=6 Jul 13 01:15:12 gamelia postfix/trivial-rewrite[1974]: warning: do not list domain pratico.work in BOTH virtual_mailbox_domains and relay_domains Jul 13 01:15:12 gamelia postfix/trivial-rewrite[1974]: warning: do not list domain pratico.work in BOTH virtual_mailbox_domains and relay_domains Jul 13 01:15:12 gamelia amavis[1566]: (01566-01) Passed CLEAN {RelayedInbound}, [127.0.0.1]:36322 <admin@pratico.work> -> <admin@pratico.work>,<info@pratico$ Jul 13 01:15:12 gamelia postfix/smtp[1976]: 276C0C202B7: to=<admin@pratico.work>, orig_to=<max@pratico.work>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.76, $ Jul 13 01:15:12 gamelia postfix/smtp[1976]: 276C0C202B7: to=<info@pratico.work>, orig_to=<max@pratico.work>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.76, d$ Jul 13 01:15:12 gamelia postfix/qmgr[1533]: 276C0C202B7: removed Jul 13 01:15:12 gamelia dovecot: lmtp(1980): Connect from local Jul 13 01:15:12 gamelia dovecot: lmtp(admin@pratico.work)<1980><wZyjNoCZC1+8BwAA0Fextg>: sieve: msgid=<20200712231512.1546.30031@mail.pratico.work>: stored $ Jul 13 01:15:12 gamelia dovecot: lmtp(info@pratico.work)<1980><wZyjNoCZC1+8BwAA0Fextg:2>: sieve: msgid=<20200712231512.1546.30031@mail.pratico.work>: stored$ Jul 13 01:15:12 gamelia postfix/lmtp[1979]: C3A57C20D52: to=<admin@pratico.work>, relay=mail.pratico.work[private/dovecot-lmtp], delay=0.13, delays=0.09/0.0$ Jul 13 01:15:12 gamelia postfix/lmtp[1979]: C3A57C20D52: to=<info@pratico.work>, relay=mail.pratico.work[private/dovecot-lmtp], delay=0.13, delays=0.09/0.01$ Jul 13 01:15:12 gamelia postfix/qmgr[1533]: C3A57C20D52: removed Jul 13 01:15:12 gamelia dovecot: lmtp(1980): Disconnect from local: Client has quit the connection (state=READY) Jul 13 01:15:16 gamelia dovecot: imap-login: Login: user=<admin@pratico.work>, method=PLAIN, rip=173.249.18.220, lip=173.249.18.220, mpid=1983, TLS, session$ Jul 13 01:15:16 gamelia dovecot: imap(admin@pratico.work)<1983><IiFCv0aqJoyt+RLc>: Logged out in=297 out=5915 deleted=0 expunged=0 trashed=0 hdr_count=11 hd$
sudo mailman conf -s logging.smtp
[logging.smtp] datefmt: %b %d %H:%M:%S %Y [logging.smtp] every: $msgid smtp to $listname for $recip recips, completed in $time seconds [logging.smtp] failure: $msgid delivery to $recip failed with code $smtpcode, $smtpmsg [logging.smtp] format: %(asctime)s (%(process)d) %(message)s [logging.smtp] level: info [logging.smtp] path: smtp.log [logging.smtp] propagate: no [logging.smtp] refused: $msgid post to $listname from $sender, $size bytes, $refused failures [logging.smtp] success: $msgid post to $listname from $sender, $size bytes
On 7/12/20 4:16 PM, maszap@tin.it wrote:
Hi My mail.log
Jul 13 01:15:12 gamelia postfix/smtpd[1973]: connect from localhost[127.0.0.1] Jul 13 01:15:12 gamelia postfix/trivial-rewrite[1974]: warning: do not list domain pratico.work in BOTH virtual_mailbox_domains and relay_domains Jul 13 01:15:12 gamelia postfix/trivial-rewrite[1974]: warning: do not list domain pratico.work in BOTH virtual_mailbox_domains and relay_domains Jul 13 01:15:12 gamelia postfix/smtpd[1973]: 276C0C202B7: client=localhost[127.0.0.1] Jul 13 01:15:12 gamelia postfix/cleanup[1975]: 276C0C202B7: message-id=<20200712231512.1546.30031@mail.pratico.work> Jul 13 01:15:12 gamelia opendkim[726]: 276C0C202B7: DKIM-Signature field added (s=mail2020, d=pratico.work) Jul 13 01:15:12 gamelia postfix/qmgr[1533]: 276C0C202B7: from=<admin@pratico.work>, size=586, nrcpt=2 (queue active) Jul 13 01:15:12 gamelia postfix/smtpd[1973]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5 Jul 13 01:15:12 gamelia postfix/smtpd[1978]: connect from localhost[127.0.0.1] Jul 13 01:15:12 gamelia postfix/trivial-rewrite[1974]: warning: do not list domain pratico.work in BOTH virtual_mailbox_domains and relay_domains Jul 13 01:15:12 gamelia postfix/trivial-rewrite[1974]: warning: do not list domain pratico.work in BOTH virtual_mailbox_domains and relay_domains Jul 13 01:15:12 gamelia postfix/smtpd[1978]: C3A57C20D52: client=localhost[127.0.0.1] Jul 13 01:15:12 gamelia postfix/trivial-rewrite[1974]: warning: do not list domain pratico.work in BOTH virtual_mailbox_domains and relay_domains Jul 13 01:15:12 gamelia postfix/cleanup[1975]: C3A57C20D52: message-id=<20200712231512.1546.30031@mail.pratico.work> Jul 13 01:15:12 gamelia opendkim[726]: C3A57C20D52: DKIM-Signature field added (s=mail2020, d=pratico.work) Jul 13 01:15:12 gamelia postfix/qmgr[1533]: C3A57C20D52: from=<admin@pratico.work>, size=1610, nrcpt=2 (queue active) Jul 13 01:15:12 gamelia postfix/smtpd[1978]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=2 data=1 quit=1 commands=6 Jul 13 01:15:12 gamelia postfix/trivial-rewrite[1974]: warning: do not list domain pratico.work in BOTH virtual_mailbox_domains and relay_domains Jul 13 01:15:12 gamelia postfix/trivial-rewrite[1974]: warning: do not list domain pratico.work in BOTH virtual_mailbox_domains and relay_domains Jul 13 01:15:12 gamelia amavis[1566]: (01566-01) Passed CLEAN {RelayedInbound}, [127.0.0.1]:36322 <admin@pratico.work> -> <admin@pratico.work>,<info@pratico$ Jul 13 01:15:12 gamelia postfix/smtp[1976]: 276C0C202B7: to=<admin@pratico.work>, orig_to=<max@pratico.work>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.76, $ Jul 13 01:15:12 gamelia postfix/smtp[1976]: 276C0C202B7: to=<info@pratico.work>, orig_to=<max@pratico.work>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.76, d$ Jul 13 01:15:12 gamelia postfix/qmgr[1533]: 276C0C202B7: removed Jul 13 01:15:12 gamelia dovecot: lmtp(1980): Connect from local Jul 13 01:15:12 gamelia dovecot: lmtp(admin@pratico.work)<1980><wZyjNoCZC1+8BwAA0Fextg>: sieve: msgid=<20200712231512.1546.30031@mail.pratico.work>: stored $ Jul 13 01:15:12 gamelia dovecot: lmtp(info@pratico.work)<1980><wZyjNoCZC1+8BwAA0Fextg:2>: sieve: msgid=<20200712231512.1546.30031@mail.pratico.work>: stored$ Jul 13 01:15:12 gamelia postfix/lmtp[1979]: C3A57C20D52: to=<admin@pratico.work>, relay=mail.pratico.work[private/dovecot-lmtp], delay=0.13, delays=0.09/0.0$ Jul 13 01:15:12 gamelia postfix/lmtp[1979]: C3A57C20D52: to=<info@pratico.work>, relay=mail.pratico.work[private/dovecot-lmtp], delay=0.13, delays=0.09/0.01$ Jul 13 01:15:12 gamelia postfix/qmgr[1533]: C3A57C20D52: removed Jul 13 01:15:12 gamelia dovecot: lmtp(1980): Disconnect from local: Client has quit the connection (state=READY) Jul 13 01:15:16 gamelia dovecot: imap-login: Login: user=<admin@pratico.work>, method=PLAIN, rip=173.249.18.220, lip=173.249.18.220, mpid=1983, TLS, session$ Jul 13 01:15:16 gamelia dovecot: imap(admin@pratico.work)<1983><IiFCv0aqJoyt+RLc>: Logged out in=297 out=5915 deleted=0 expunged=0 trashed=0 hdr_count=11 hd$
The issue here is the message is being delivered to Dovecot via LMTP rather than to Mailman via LMTP. See this thread <https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/thread/FNVRI6DJBWFZAY4NGZTRAEA3S2JKAXXU/>.
sudo mailman conf -s logging.smtp
[logging.smtp] datefmt: %b %d %H:%M:%S %Y [logging.smtp] every: $msgid smtp to $listname for $recip recips, completed in $time seconds [logging.smtp] failure: $msgid delivery to $recip failed with code $smtpcode, $smtpmsg [logging.smtp] format: %(asctime)s (%(process)d) %(message)s [logging.smtp] level: info [logging.smtp] path: smtp.log [logging.smtp] propagate: no [logging.smtp] refused: $msgid post to $listname from $sender, $size bytes, $refused failures [logging.smtp] success: $msgid post to $listname from $sender, $size bytes
With these settings, posts should be logged. They aren't because no mail is delivered to Mailman at all. The Mail that local users receive doesn't come from the list. It comes from Dovecot.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Mark Sapiro
-
maszap@tin.it