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 to
smtp_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