On 1/16/21 4:04 PM, Jaroslaw Rafa wrote:
Dnia 16.01.2021 o godz. 15:11:58 Gary Aitken pisze:
1. Why is it attempting to send mail on port 25 and not 587?
Because that's the usual port MTA tries to connect to when sending mail. You
didn't specify anywhere in your configuration that there should be a
connection to port 587.
On 16.01.21 21:14, Gary Aitken wrote:
I thought the changes to master.cf (commenting out smtp and uncommenting
submission) changed that?
this way, you have closed port 25 which is why yor postfix can't connect to
itself.
If not, how do I set outgoing to 587 only?
by using relayhost, default_transport, transport_maps or other feature.
2. Why is it trying to connect to itself (xxx.com)?
Because you are trying to send mail to u...@xxx.com, MX for xxx.com is
aaa.xxx.com and your server knows from the "myhostname" entry in the config
file that it is aaa.xxx.com. So it tries to connect to itself.
note that xxx.com domain is registered, I guess not to you.
domain names reserved for this are example.com, example.net and example.org
Somehow I would have thought it would use the loopback / localhost for that?
only if you set it so. If the mail is to be processed locally, postfix
doesn't send it via SMTP to itself.
simply put aaa.xxx.com to $mydestinations
3. If I add the line:
relayhost = [ok.relay.com]:587
mail gets delivered
although mail to valid-u...@relay.com does not get delivered
without the relayhost directive. Why not?
And what is the error message? Is the domain "relay.com" not resolved? Then
again, it may be due to DNS working differently from inside Google cloud
than from outside. But it's hard to tell without the exact error message
with which the message was rejected.
I don't see any incoming traffic on port 587 at all.
I wonder, internet bots try port 587 on any hosts within minutes.
--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
I drive way too fast to worry about cholesterol.