Oh wow.. so that was special.
Sorry for the massive logs and back and forth. It turns out all I was missing was that I needed to re-run
sudo mailman aliases before restarting the service. I have a different set of issues right now but I need to debug that a bit more to figure out what is going on.
Thanks for all the help Mark, much appreciated.
-- Samir Faci
On Mon, May 4, 2020 at 11:49 AM Mark Sapiro <mark@msapiro.net> wrote:
On 5/4/20 11:07 AM, Samir Faci wrote:
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
which includes
May 4 17:50:09 lists postfix/lmtp[2600677]: connect to lists.domain.org[198.199.98.177]:8024: Connection refused
So the question is, why is Postfix trying to connect to lists.domain.org[198.199.98.177] and not to localhost[127.0.0.1]
smtp_host: 127.0.0.1 lmtp_host: 127.0.0.1
#fail
But it should work.
smtp_host: lists.domain.org lmtp_host: lists.domain.org
# success.
And this should not be necessary.
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)
This is what is expected if port 8024 is not open and you are connecting to lists.domain.org.
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.
You need to get Postfix to use localhost[127.0.0.1] and not lists.domain.org[198.199.98.177].
One issue is when you change
lmtp_host: lists.domain.org
to
lmtp_host: 127.0.0.1
you need to run
mailman aliases
to change the settings in var/data/postfix_lmtp. I think if you go back tosmtp_host: 127.0.0.1 lmtp_host: 127.0.0.1
and run
mailman aliases
, restart mailman and reload Postfix, it should all work without opening port 8024 and probably without needing to put 198.199.98.177 explicitly in mynetworks in Postfix.I suspect you will have issues with mail not being accepted or treated as spam by some recipient ISPs however. See <https://en.wikipedia.org/wiki/Forward-confirmed_reverse_DNS>
-- 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