enable spf check on zimbra 8.8

Ask questions about your setup or get help installing ZCS server (ZD section below).
Post Reply
gullio
Posts: 13
Joined: Sat Sep 13, 2014 2:01 am

enable spf check on zimbra 8.8

Post by gullio »

hello guys,

i want to enable incoming spf check on zimbra opensource 8.8.15, i have followed the wiki and enabled sfp check with those commands:

Code: Select all

zmlocalconfig -e cbpolicyd_module_checkspf=1
and on sqlite3

i have enabled:

Code: Select all

sqlite> select * from checkspf;
1|6|SPF Policy|1|1|1|Zimbra CheckSPF Policy|0
sqlite>
with this command:

Code: Select all

BEGIN TRANSACTION;
INSERT INTO "checkspf" (PolicyID,Name,UseSPF,RejectFailedSPF,AddSPFHeader,Comment,Disabled) VALUES (6,"SPF Policy",1,1,1,"Zimbra CheckSPF Policy",0);
COMMIT;
but when i try to check if spf check is working correct, i cannot find any log and if i sent a mail without spf it will not blocked...... what i need to check or insert in sqlite3 to enable this check?

thanks a lot for your help
BR
User avatar
king0770
Outstanding Member
Outstanding Member
Posts: 242
Joined: Fri Sep 12, 2014 10:44 pm
Contact:

Re: enable spf check on zimbra 8.8

Post by king0770 »

Try setting zimbraCBPolicydCheckSPFEnabled to TRUE

zmprov mcf zimbraCBPolicydCheckSPFEnabled TRUE

OR

zmprov ms mta.example.com zimbraCBPolicydCheckSPFEnabled TRUE

zmconfigdctl restart

zmcbpolicydctl restart
--
Rick King
gullio
Posts: 13
Joined: Sat Sep 13, 2014 2:01 am

Re: enable spf check on zimbra 8.8

Post by gullio »

thanks for reply,

but when i enable it the check will work but also on the authorized domain, infact in the webmail i cannot send any mail to anyone because it fail spf check.

any help about?

BR
imanudin11
Outstanding Member
Outstanding Member
Posts: 304
Joined: Sat Sep 13, 2014 2:23 am
ZCS/ZD Version: Release 8.8.15.GA.3829.UBUNTU16.64
Contact:

Re: enable spf check on zimbra 8.8

Post by imanudin11 »

gullio wrote:thanks for reply,

but when i enable it the check will work but also on the authorized domain, infact in the webmail i cannot send any mail to anyone because it fail spf check.

any help about?

BR
Hello,
I am wrote some information about the SPF check on Zimbra using PolicyD. Maybe you interest with that :) : https://imanudin.net/2017/03/23/zimbra- ... ing-email/

In my environment, I am disable SPF check for a local domain. And using Sender Must Login to check local domain if come from outside : https://imanudin.net/2014/09/07/how-to- ... imbra-8-5/
Post Reply