Learn from the Junk folder (IMAPSieve → Rspamd) and smarthost settings for providers that block port 25.