1 (edited by wdbacker 2011-11-29 23:17:10)

Topic: How to remove or disable SPF and/or DKIM


If iRedMail has been installed completely (with SPF and DKIM), it is possible to disable these post-install.

For DKIM, see the FAQ on this subject.

However, for disabling SPF, I didn't find a topic about this. I think there are two modifications to be done:

First, comment out the SPF plugin in the Spamassassin initialisation file (in /etc/mail/spamassassin/init.pre on RHEL/CentOS):

#loadplugin Mail::SpamAssassin::Plugin::SPF

According to this discussion thread, this should disable SPF (restart amavisd).

If you want to be sure (because the SPF module is still loaded in memory), you can also remove the two perl SPF packages and restart the amavisd daemon:

In RHEL/CentOS this can be done with:

$ rpm -e --nodeps perl-Mail-SPF perl-Mail-SPF-Query

and restarting amavisd.

When you want to enable SPF again, just re-install these two packages, uncomment the Spamassassin plugin and restart amavisd

Are my assumptions correct?

- iRedMail version: 0.7.3
- Linux/BSD distribution name and version: CentOS 6.0


Re: How to remove or disable SPF and/or DKIM

wdbacker wrote:

Are my assumptions correct?

All are correct. big_smile


Buy me a cup of coffee ($5) to support iRedMail:

buy me a cup of coffee