Skip to content

Whitelist SMTP Authorized users

  • by

Common setup used at many mailservers is postfix with amavis. It is possible to be less restrictive to emails sent by our clients using our server without turning off antispam itself for sent emails.

Tell postfix to add header for authenticated users, add to /etc/postfix/

smtpd_sasl_authenticated_header = yes

Change score for spamassasin rule by creating /etc/spamassassin/

score ALL_TRUSTED -99

Reload to apply changes:

/etc/init.d/amavis restart
postfix reload

If all works, header will look like this

X-Spam-Status: No, score=-100.9 tagged_above=-999 required=6.2
	tests=[ALL_TRUSTED=-99, BAYES_00=-1.9] autolearn=ham
Received: from ([])
	by ( []) (amavisd-new, port 10024)
	with LMTP id CLbfm6Yfb7pi for ;
	Thu, 27 May 2010 18:55:31 +0200 (CEST)
Received: from [] ( [])
	(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	(Authenticated sender:
	by (VNETMail) with ESMTPSA id 9C3C8131C19
	for ; Thu, 27 May 2010 18:55:31 +0200 (CEST)
Message-ID: <>

Leave a Reply

Your email address will not be published. Required fields are marked *