I didn't find any way to set postfix with spamd to check outgoing email from webmail/localhost for attempt to ward off possible spam.

  • Duplicates is older 7 years. – Pol Hallen Aug 20 '17 at 14:27
  • Yes. And has answers that still applies. – Esa Jokinen Aug 20 '17 at 14:28
  • Thanks but I'd like use spamd, your suggests is about amavis-new. – Pol Hallen Aug 20 '17 at 15:14

The spamassassin daemon is not itself a Postfix content-filter (SMTP proxy), nor a milter for directly processing email content.

If you want to use spamassassin as a content filter, install amavisd-new instead of spamd, and configure Postfix to send whatever mail you want through it and pick up the returning email. See www.postfix.org/FILTER_README.html.

It's a less common or supported approach, but if you want to use spamd as a milter, look at the SpamAssassin wiki and choose a wrapper for spamd like MIMEDefang or milter-spamd and look at www.postfix.org/MILTER_README.html.

Not the answer you're looking for? Browse other questions tagged or ask your own question.