Re: smtp-out: Address family mismatch

2020-07-06 Thread Thomas Bohl

Hello,


I see a lot of outgoing EMails queued with a message "smtp-out:
Address family mismatch" in the log file. My colleagues don't like
EMails being put on hold at all.



My current (new-style) smtpd.conf has a line

 action "relay_external" relay src 192.168.1.1 helo "mail.example.com"



My guess would be that the target domain, at the time of the DNS query, 
only returned a IPv6 address.



I have a similar problem. My config is

action "relay2Internet" relay \
helo $hostn \
src {$v4adr, $v6adr}

as I want to allow IPv4 and IPv6. Since the src-adresses are getting 
alternated I often get "Address family mismatch" because the target 
doesn't have IPv6 yet. (At least I believe that is what's happening.)




smtp-out: Address family mismatch

2020-07-06 Thread Harald Dunkel

Hi folks,

I see a lot of outgoing EMails queued with a message "smtp-out:
Address family mismatch" in the log file. My colleagues don't like
EMails being put on hold at all.

Prior to 6.4 there was a

limit mta inet4

The upgrade guide to the new smtpd.conf syntax 
(https://www.openbsd.org/faq/upgrade64.html)
mentioned "set and limit removed as main keywords" and a new
"mta namespace", but smtpd.conf(5) is insufficient in this aspect.
It doesn't tell. 
https://poolp.org/posts/2018-05-21/switching-to-opensmtpd-new-config/
doesn't tell, either.

My current (new-style) smtpd.conf has a line

action "relay_external" relay src 192.168.1.1 helo "mail.example.com"

i.e. the AF is implicitly defined, but as the AF mismatch messages indicate
this is not sufficient.

Could you please elaborate?


Regards
Harri