Re: smtpd returns 'TempFail' and 'No route to destination' when using localhost as source behind NAT

2020-08-19 Thread Martin
As I know, table sources is needed to bind smtpd to an interface while mail sending, but table helonames is for session IP=name. sorces != helonames in my particular configuration. So it doesn't work for me. smtpd should bind to local interface like localhost or another interface on local

Re: smtpd returns 'TempFail' and 'No route to destination' when using localhost as source behind NAT

2020-08-15 Thread Kastus Shchuka
On Sat, Aug 15, 2020 at 07:49:28AM +, Martin wrote: > It is worth to mention smtpd works absolutely fine for outgoing/incoming mail > if local machine has static IP address when: > ... > table sources {1.2.3.4} equivalent to > table helonames {1.2.3.4 = smtp.domain.tld} > ... > > And yes, I

Re: smtpd returns 'TempFail' and 'No route to destination' when using localhost as source behind NAT

2020-08-15 Thread Martin
It is worth to mention smtpd works absolutely fine for outgoing/incoming mail if local machine has static IP address when: ... table sources {1.2.3.4} equivalent to table helonames {1.2.3.4 = smtp.domain.tld} ... And yes, I have exactly the same action in /etc/mail/smtpd.conf ... table sources

smtpd returns 'TempFail' and 'No route to destination' when using localhost as source behind NAT

2020-08-13 Thread Martin
OpenSMTPd 6.7.0 OpenBSD 6.7-current on local machine. All machine's traffic redirected trough iked IPsec VPN to remote gateway machine and uses PF NAT rule first: match out log on enc0 from 0.0.0.0/0 to 0.0.0.0/0 nat-to 10.100.0.2 where 10.100.0.2 is virtual IP to NAT all local machine's

Re: smtpd returns 'TempFail' and 'No route to destination' when using localhost as source behind NAT

2020-08-13 Thread Kastus
On Thu, Aug 13, 2020 at 10:35:32AM +, Martin wrote: > OpenSMTPd 6.7.0 OpenBSD 6.7-current on local machine. All machine's traffic > redirected trough iked IPsec VPN to remote gateway machine and uses PF NAT > rule first: > > match out log on enc0 from 0.0.0.0/0 to 0.0.0.0/0 nat-to