Le 26/01/2023 à 23:15, Pete Long a écrit :
On Thu, Jan 26, 2023 at 10:58:18PM +0100, Joel Carnat wrote:
Hi,
When using smtpd as a mail gateway and authenticating from various
desktop/mobile clients, the first Received header always references the
client host, ip, fqdn, etc. Some (maybe stupid) SMTP servers seem to
consider these information when doing SPAM checks so you end getting
blacklisted because the mail comes from a user IP-range and IP is not
referenced in SPF...
Not sure it even makes sense and/or break SMTP RFCs but, is there a way to
tell smtpd to not include that first "user connection" in the mail headers?
Hi Joel,
listen on bge0 port submission tls-require pki mydomain.tld auth \
hostname mydomain.tld mask-src
The mask-src option does the trick for me.
Pete.
Ah yes, that does not remove the whole header but the mobile information
are gone now. I've tested this with a bunch of Big Tech test accounts
and they keep getting my email. So I'll go for this trick.
Thanks a lot.