On 02.05.23 09:19, Kolusion K via Postfix-users wrote:
So I have just had another look at my e-mail server regarding my situation, and
I found something very odd.
Postfix seems to be unable to send e-mail to IPv4 addresses, but it can send
e-mail to IPv6 addresses.
This is odd because Postfix is configured to use an IPv4 interface only, and
its even more odd that the interface is a PPTP VPN tunnel which PPTP doesn't
even support IPv6!
What the ?!?!?!?!
Here is an extract of my mail log, demonstrating what I mean:
Apr 12 23:05:39 generalpurpose postfix/smtpd[3557]: warning: hostname
generalpurpose does not resolve to address 192.168.2.2
Apr 12 23:05:39 generalpurpose postfix/smtpd[3557]: connect from
unknown[192.168.2.2]
Apr 12 23:05:39 generalpurpose postfix/smtpd[3557]: 2616D80098:
client=unknown[192.168.2.2]
Apr 12 23:05:39 generalpurpose postfix/cleanup[3568]: 2616D80098:
message-id=<13a7d177-u778-3a84-3egd-19283c859...@example.com>
Apr 12 23:05:39 generalpurpose postfix/qmgr[2241]: 2616D80098:
from=<kolus...@example.com>, size=1966, nrcpt=1 (queue active)
Apr 12 23:05:39 generalpurpose postfix/smtpd[3557]: disconnect from
unknown[192.168.2.2] ehlo=2 starttls=1 mail=1 rcpt=1 data=1 quit=1 commands=7
Apr 12 23:06:16 generalpurpose postfix/smtp[3569]: connect to
pechora1.icann.org[192.0.33.71]:25: Connection timed out
Apr 12 23:06:42 generalpurpose postfix/smtp[3569]: 2616D80098:
to=<some...@icann.org>, relay=pechora3.icann.org[2620:0:2830:201::1:73]:25,
delay=64, delays=0.04/0.04/62/1.2, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as
0463C7002623)
Apr 12 23:06:42 generalpurpose postfix/qmgr[2241]: 2616D80098: removed
you have in your main.cf:
inet_interfaces = 192.168.2.2
this is private IP address. This address is apparently not properly NATted
on your or your ISPs firewall.
According to:
https://marc.info/?l=postfix-users&m=168294384808797&w=2
E-mail server enp0s3 interface IP address: 192.168.1.2
E-mail server ppp0 interface IP address: 192.168.2.2
VPS enp6s18 interface IP address: 1.2.3.4
these commands don't do what you mean them to do:
iptables -t nat -A PREROUTING -d 1.2.3.4 -p tcp --dport 25 -j DNAT --to
192.168.2.2
iptables -t nat -A PREROUTING -d 192.168.2.2 -p tcp --dport 25 -j DNAT --to
1.2.3.4
...your problem is at network/firewall level.
--
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.
A day without sunshine is like, night.
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org