Re: smtp-out: Address family mismatch
Hi, I don't know what this error entails but I took a peek at the source and found this in mta.c around lines 1575: if ((c->source->sa && c->source->sa->sa_family != mx->host->sa->sa_family) || (l->family && l->family != mx->host->sa->sa_family)) { log_debug("debug: mta-routing: skipping host %s: AF mism atch", mta_host_to_text(mx->host)); family_mismatch = 1; continue; } notice there is a DEBUG level log with a conversion indicating which host it has problems with. Not saying you need to run it in debug mode, but you can to see this message. Best Regards, -peter On 2020-07-23 09:45, Harald Dunkel wrote: The Network error on destination MX has been resolved. The Address family mismatch is still open. smtpctl show queue gives me a9f755dd88e88083|inet4|mta||u...@example.com|cont...@bugs.debian.org|cont...@bugs.debian.org|1595227438|1595227438|0|27|pending|29446|Address family mismatch on destination MXs ebbe485d057fa820|inet4|mta||u...@example.com|xxx...@bugs.debian.org|xxx...@bugs.debian.org|1595227386|1595227386|0|27|pending|29394|Address family mismatch on destination MXs Please note the "inet4" and % host bugs.debian.org bugs.debian.org has address 140.211.166.212 bugs.debian.org has address 209.87.16.39 bugs.debian.org has IPv6 address 2605:bc80:3010:b00:0:deb:166:212 bugs.debian.org has IPv6 address 2607:f8f0:614:1::1274:39 bugs.debian.org mail is handled by 10 buxtehude.debian.org. % host buxtehude.debian.org. buxtehude.debian.org has address 209.87.16.39 buxtehude.debian.org has IPv6 address 2607:f8f0:614:1::1274:39 buxtehude.debian.org mail is handled by 10 mailly.debian.org. buxtehude.debian.org mail is handled by 10 muffat.debian.org. Currently telnet 140.211.166.212 smtp fails with Connection refused, but where is the address family mismatch between inet4 and 209.87.16.39 ? Regards Harri
Re: smtp-out: Address family mismatch
The Network error on destination MX has been resolved. The Address family mismatch is still open. smtpctl show queue gives me a9f755dd88e88083|inet4|mta||u...@example.com|cont...@bugs.debian.org|cont...@bugs.debian.org|1595227438|1595227438|0|27|pending|29446|Address family mismatch on destination MXs ebbe485d057fa820|inet4|mta||u...@example.com|xxx...@bugs.debian.org|xxx...@bugs.debian.org|1595227386|1595227386|0|27|pending|29394|Address family mismatch on destination MXs Please note the "inet4" and % host bugs.debian.org bugs.debian.org has address 140.211.166.212 bugs.debian.org has address 209.87.16.39 bugs.debian.org has IPv6 address 2605:bc80:3010:b00:0:deb:166:212 bugs.debian.org has IPv6 address 2607:f8f0:614:1::1274:39 bugs.debian.org mail is handled by 10 buxtehude.debian.org. % host buxtehude.debian.org. buxtehude.debian.org has address 209.87.16.39 buxtehude.debian.org has IPv6 address 2607:f8f0:614:1::1274:39 buxtehude.debian.org mail is handled by 10 mailly.debian.org. buxtehude.debian.org mail is handled by 10 muffat.debian.org. Currently telnet 140.211.166.212 smtp fails with Connection refused, but where is the address family mismatch between inet4 and 209.87.16.39 ? Regards Harri
Re: smtp-out: Address family mismatch
Currently I have 100+ EMails queued with "Network error on destination MX". This is a severe regression since OpenBSD 6.6. Every insightful comment is highly appreciated Please show your complete config file. Maybe it has an error. My current (new-style) smtpd.conf has a line action "relay_external" relay src 192.168.1.1 helo "mail.example.com" Does your original config has a private IP-address too? Maybe you are behind a janky NAT router?
Re: smtp-out: Address family mismatch
Hi, I had these when I changed my secrets password, smtpd needs to be restarted after. Regards, -peter On 2020-07-20 11:14, Harald Dunkel wrote: Currently I have 100+ EMails queued with "Network error on destination MX". This is a severe regression since OpenBSD 6.6. Every insightful comment is highly appreciated Harri On 7/6/20 9:01 AM, Harald Dunkel wrote: 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
Re: smtp-out: Address family mismatch
Currently I have 100+ EMails queued with "Network error on destination MX". This is a severe regression since OpenBSD 6.6. Every insightful comment is highly appreciated Harri On 7/6/20 9:01 AM, Harald Dunkel wrote: 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
Re: smtp-out: Address family mismatch
Hi Thomas, On 7/7/20 2:12 AM, Thomas Bohl wrote: 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.) Sorry to say, but thats pretty unlikely. IPv4 is much more common than IPv6 (still), especially for EMail. I would guess thats a bug. Somebody didn't care about the old-style limit mta inet4 for the new config file syntax. Regards Harri
Re: smtp-out: Address family mismatch
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
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