Jump to: navigation, search
MithiWiki Home > ConnectXf Home > ConnectXf Administration > Configuration > Mails are marked as spam though Spam Check is disabled at domain level


Troubleshooting Icon.png
Troubleshooting
Product ConnectXf
Version All
Applies to Administrators
Level Advanced



Mails are marked as spam though Spam Check is disabled at domain level

Symptoms

  • Mails are marked as spam though Spam check is disabled at domain level.

Diagnosis

1. Make sure the Spam Assassin Status is Stopped

Use following command to verify spam assassin status of the domain.

/etc/init.d/spamassassin status

Output of the above command:

Not Daemon Stopped


2. Make sure if spam check is disabled at domain level

a) Using getdomainproperties command

Check the status of spam check using following command.

/mithi/mcs/bin/getdomainproperties.sh --domain acmecorp.com --output spamcheck

Output of the above command:

Domain||Enable or disable spamcheck for the domain (spamcheck)
||acmecorp.com||False||


b) Verify the pre-queue log

View pre-queue log using following command

cat /var/log/mithi/mcs/prequeue.cpp.log | grep '"Subject"="<Subject of the mail>"
Following is a sample pre-queue log showing entry spam check disabled at domain level

[05-Dec-2013_12:12:48] 20109.1386225768.315376 [prequeue] [INFO] - [PreQueue] - <Details :: ["Status"="[Message acceptance status:Accepted for prequeue processing][Mail queue status:Message successfully queued]"]["IP"="202.137.235.220"]["Sender"="ravindersharma.372@rediffmail.com"]["Envelope Sender"="ravindersharma.372@rediffmail.com"]["Recipients"="rajeev@acmecorp.com"]["Date"="Thu, 5 Dec 2013 06:30:23 +0000"]["MessageID"="20131205063023.32245.qmail@f4mail-235-220.rediffmail.com"]["Subject"="test mail"]["Size(KB)"="3"]["AttachmentCount"="0"]["AttachmentList"=""]["ReturnCode"="0"]["ProcessingTime"="0.040"]["ProcessedSteps"="{Mail sent Successfully to destination "local"[rajeev@acmecorp.com]} {Validate email ids - allow (EmailId validation was successful.)} { Spoof check - allow (Mail is not a spoof mail.)} {Domain Spoof check - allow (Mail is not a spoof mail.)} {Quota check - allow (Sender's used quota is below than the allocated limit.)} { Mail Policy - allow( For the recipient : rajeev@acmecorp.com( Policy type=Mail policy for recipient, Matched default action, Action=allow, Entity=User/Group, Id=rajeev, Domain=acmecorp.com)} {SpamCheck : SC : AntiSpamCheck disabled (Action: Allow)} { Attachment Stripping - Do not strip (Disabled at server level) }{ Mail processed footer is disabled at server level }"]>


  • If you find the spam check is disabled at domain level and still mails are marked as spam then you need to verify the value of spam filter property for the domain. For this, Check MDC log to verify if mails are marked as spam and moved to spam folder


3. Check MDC log to verify if mails are marked as spam and moved to Spam folder.

Verify MDC log using following command

cat /var/log/mithi/mcs/mithiMDC.cpp.log | grep '"MessageID"="20131205063023.32245.qmail@f4mail-235-220.rediffmail.com"'
  • If log shows mails are marked as spam and moved to spam folder indicates spam mail filter is enabled which is the cause for the issue.
Following is a sample MDC log showing spam mail is filtered and moved to the spam folder

[05-Dec-2013_12:12:48] 20112.1386225768.370946 [mithiMDC] [INFO] - [MithiMDC] - <Details :: Details:: Successfully executed desired MDC["Status"="Success"]["Sender"="ravindersharma.372@rediffmail.com"]["Recipient"="rajeev@acmecorp.com"]["Date"="Thu, 5 Dec 2013 06:30:23 +0000"]["MessageID"="20131205063023.32245.qmail@f4mail-235-220.rediffmail.com"]["Subject"="test mail"]["SizeinKB"="4"]["AttachmentCount"="0"]["AttachmentList"=""]["ReturnCode"="99"]["ProcessingTime"="0.030"]["FOLDER"="/mailstore/acmecorp.com/r001/user_26_11_2012_15_38_52_87//Maildir/.spam"]["SPAM_MAIL"="true"]["ProcessedSteps"="{ForwardToMailBoxMDC:: Info: mailbox location 'ACMECORPMAIL=192.9.200.242' is local, skipping forwarding., }{:: Recipient: rajeev@acmecorp.com mailsystem is connectxf, }{SpamMailFiltersMDC:: (WL:1), Applied spam filter and Moving mail to /mailstore/acmecorp.com/r001/user_26_11_2012_15_38_52_87//Maildir/.spam. [SPAM_MAIL=true=SPAM_MAIL] [FOLDER=/mailstore/acmecorp.com/r001/user_26_11_2012_15_38_52_87//Maildir/.spam=FOLDER]., SpamMailFilter executed successfully, }{INFO: Skipping other MDCs on request}"]>

Cause

The mail is marked as spam if

i) The Auto-Bulk feature is enabled.

  • Auto bulk feature treats a mail received as a spam if the sender id is not present in his whitelist.
  • The whitelist for the user could be his personal white list, his address book or the white list at domain level.

ii) If spam mail filter is enabled at domain level, mails are marked as spam and moved to respective folder even though spam check is disabled.

Spam mail filter should be disabled whenever spam check is disabled to stop filtering spam mails.


Use following command to check the status of the spam mail filter property

/mithi/mcs/bin/getdomainproperties.sh --domain acmecorp.com  --output mdcspammailfilterstatus

Solution

  • Disable spam filter at domain level using following command.
/mithi/mcs/bin/setdomainproperties.sh --domain <domain-name> --mdcspammailfilterstatus disabled --replace --callerid <id>--callerpassword <pswd>
  • Disable the Auto Bulk feature.
/mithi/mcs/bin/setuserproperties.sh --domain <domain-name> --allusers --autobulk f --replace --callerid <id>--callerpassword <pswd>