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

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

Hi,

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
================================================

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

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

wdbacker wrote:

Are my assumptions correct?

All are correct. big_smile