I can understand using RBLs for inbound mail, but it’s causing enormous problems for many of my users because it also blocks outbound mail sent by authenticated users, which seems completely nonsensical. I have removed all traces of spamhaus and rbls from my postfix config (which seems like a silly thing to have to do to fix this), but senders are still being rejected like this:
Client host [x.x.x.x] blocked using zen.spamhaus.org; https://www.spamhaus.org/sbl/query/SBLCSS
There are some other differences, so I’ve restored this original config and will see how it goes.
I’m confused by the naming though - I would have expected the “sender” restrictions to apply to outbound, and the “recipient” ones to apply to inbound, but it looks like it’s the reverse, because there is no auth permission for the “sender” restrictions. Is that right?
Whenever I’ve decided to go out on my own and configure postfix, I’ve only been successful after spending a couple of hours reviewing Postfix official documents (i.e., not some blog some place or any place), as I have determined that changing one thing usually changes other things, and there is separately some different configuration to deal with those other things.
Eep, well it looks like doing that was a mistake… I’m immediately deluged with error messages complaining that this config is broken, and everything is rejected, saying:
NOQUEUE: reject: RCPT from unknown[x.x.x.x]: 451 4.3.5 Server configuration error;
so it looks like postfix doesn’t like the double quotes around those things. I got these lines from here. I see that this isn’t a config file itself, but a script that alters a config file - so I guess it may not result in the same values. I’ve removed all the quotes and it’s no longer complaining, but I can’t test the original problem from where I am because I’m not on the blacklists.
As I recall, both sets of restrictions are applied to all connections. The difference is nominally at what point in the connection the restriction is applied, although reading the docs again I think they’re all applied at the same time.
Having reverted to the default config, I’m still having the same problem. It’s even failing to allow sending from one local user to another. In the logs I can see that it’s also rejecting real sources of spam, as it should, but it’s also blocking authenticated users. How can I turn off the spamhaus check altogether?
I’ve done some more experiments with this. It seems that it may be a problem with Apple Mail on a brand new MacBook Air M1. I can see (from both ends) that it attempts to connect over TLS, but just hangs on the initial connection, it doesn’t even get as far as showing a welcome banner. Oddly, using openssl s_client from the same machine connects just fine using both SMTPS on port 465 and SMTP+STARTTLS on 587, though I noticed that it selected a ChaCha20-Poly1305 cipher suite even though that is listed relatively late in the cipher suite list. Is that perhaps selected because M1 doesn’t have hardware acceleration of AES? What was then happening is that it was attempting to send despite the authentication failing, and so the rejection due to spamhaus is then understandable.
More weirdly, another MacBook air M1 using the same OS and IP has no problem at all.