The only way I've gotten it to work so far is by using the FQN. I can switch back to 127.0.0.1 but that wasn't working.
Here's the configuration I have.
incoming: mailman.mta.postfix.LMTP outgoing: mailman.mta.deliver.deliver smtp_host: 127.0.0.1 smtp_port: 25 smtp_user: smtp_pass:
lmtp_host: 127.0.0.1 lmtp_port: 8024
and the end result:
https://gist.github.com/safaci2000/b1c91f936df1c0d5668250cf1d503494
I tried setting the smtp_host to 127.0.0.1 and list.domain.org both result in the same issue. ie:
Here's the combinations I've tried:
smtp_host: 127.0.0.1 lmtp_host: 127.0.0.1
#fail
smtp_host: lists.domain.org lmtp_host: 127.0.0.1
#fail
Finally I even tried the exact copy from the documentation:
incoming: mailman.mta.postfix.LMTPoutgoing: mailman.mta.deliver.deliverlmtp_host: 127.0.0.1lmtp_port: 8024smtp_host: localhostsmtp_port: 25configuration: python:mailman.config.postfix
## Fail.
smtp_host: lists.domain.org lmtp_host: lists.domain.org
# success.
The error I get if I don't open port 8024 is below and in the gist i linked earlier.
May 4 17:50:09 lists postfix/lmtp[2600677]: D98A21473D5: to=< testing@lists.domain.org>, relay=none, delay=0.05, delays=0.03/0.01/0/0, dsn=4.4.1, status=deferred (connect to lists.domain.org[198.199.98.177]:8024: Connection refused)
The only way I've gotten it to work so far is by binding both the smtp_host and lmtp_host to be lists.domain.org and opening up port 8024.
I'd rather not have that port open but I'm open to suggestions on what else to try.
Locally on the server:
PING lists.domain.org (198.199.98.177) 56(84) bytes of data. 64 bytes from 198.199.98.177 (198.199.98.177): icmp_seq=1 ttl=64 time=0.071 ms 64 bytes from 198.199.98.177 (198.199.98.177): icmp_seq=2 ttl=64 time=0.048 ms 64 bytes from 198.199.98.177 (198.199.98.177): icmp_seq=3 ttl=64 time=0.069 ms
-- Samir Faci
On Mon, May 4, 2020 at 9:45 AM Mark Sapiro <mark@msapiro.net> wrote:
On 5/3/20 10:04 PM, Samir Faci wrote:
# Where the LMTP server listens for connections. Use 127.0.0.1 instead
of
# localhost for Postfix integration, because Postfix only consults DNS # (e.g. not /etc/hosts). lmtp_host: lists.domain.org lmtp_port: 8024
Why, in spite of the comment, do you have
lmtp_host: lists.domain.org
and not
lmtp_host: 127.0.0.1
Note that
lmtp_host: 127.0.0.1 lmtp_port: 8024
are the defaults.
So, now it's finally working but here's a question. Does 8024 need to be publically accessible from the outside?
No. Port 8024 is only for LMTP delivery from Postfix to Mailman.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
-- Thank you Samir Faci https://keybase.io/csgeek