I don't see any x-spam headers in incoming mail.
If I execute
zmantispamctl status
I got empty result.
How do I know if anti spam is running ?
After zmantispamctl restart I see is running but I don't see mails in my spam/junk folder and mails in INBOX don't have x-spam headers
antispam Running
antivirus Running
directory-server Running
mailbox Running
memcached Running
mta Running
opendkim Running
proxy Running
service webapp Running
service-discover Running
stats Running
config service Running
Hi @sharif,
You have any idea where I can find more info about this topic?
@max_s
Hi,
Have you done any modification or else the X-Spam headers should be there? I did a new installation and received a test mail from gmail. The email I received has X-Spam headers.
root@mail:~# su - zextras -c "zmcontrol status" Host mail.zextras.xyz amavis Running antispam Running antivirus Running directory-server Running mailbox Running memcached Running mta Running opendkim Running proxy Running service webapp Running service-discover Running stats Running config service Running root@mail:~#
and
Return-Path: <imsilsa26112@gmail.com> Received: from mail.zextras.xyz (LHLO mail.zextras.xyz) (185.213.27.93) by mail.zextras.xyz with LMTP; Fri, 10 May 2024 19:46:41 +0600 (BDT) Received: from localhost (localhost [127.0.0.1]) by mail.zextras.xyz (Postfix) with ESMTP id 5F5741C32DD for <zextras@zextras.xyz>; Fri, 10 May 2024 19:46:41 +0600 (+06) X-Virus-Scanned: amavis at zextras.xyz X-Spam-Flag: NO X-Spam-Score: -0.559 X-Spam-Level: X-Spam-Status: No, score=-0.559 required=3.2 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, DMARC_PASS_NONE=-0.6, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no Authentication-Results: mail.zextras.xyz (amavis); dkim=pass (2048-bit key) header.d=gmail.com Received: from mail.zextras.xyz ([127.0.0.1]) by localhost (mail.zextras.xyz [127.0.0.1]) (amavis, port 10024) with ESMTP id g5AGGAUSZB45 for <zextras@zextras.xyz>; Fri, 10 May 2024 19:46:40 +0600 (+06) Received: from mail-io1-f47.google.com (mail-io1-f47.google.com [209.85.166.47]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.zextras.xyz (Postfix) with ESMTPS id 32B441C32D7 for <zextras@zextras.xyz>; Fri, 10 May 2024 19:46:40 +0600 (+06) Received: by mail-io1-f47.google.com with SMTP id ca18e2360f4ac-7e1b4f96994so50108539f.2 for <zextras@zextras.xyz>; Fri, 10 May 2024 06:46:40 -0700 (PDT)
Regards,
Sharif
No I cannot remember changing anything from spam.
If I run
systemctl list-unit-files "carbonio*"
carbonio-avdb-updater.service disabled enabled
carbonio-prometheus.service disabled enabled
but everything else is enabled.
If I run zmcontrol status I get
Host mail1.x.x
antispam Running
antivirus Stopped
zmfreshclamctl is not running
directory-server Running
mailbox Running
memcached Running
mta Running
opendkim Running
proxy Running
service webapp Running
service-discover Running
stats Running
config service Running
but if I run zmclamdctl status I get
clamd is running.
running zmamavisdctl status I get
amavisd is running.
amavisd-mc is running.
Hi @sharif
output of: carbonio prov gs $(hostname -f) zimbraServiceEnabled
zimbraServiceEnabled: antispam
output of: zmcontrol status
amavis Running
antispam Running
I noticed a zextras document that says to look at /opt/zextras/conf/salocal.cf.in but this file does not exists.
I don't see any X-SPAM headers in my mails.
All spam/junk folders of al users/mailaccounts are empty except for some mailaccounts on one specific domain.
What is the output of:
zextras@mail:~$ carbonio prov gacf | grep -i zimbraSpamHeader
Regards,
Sharif
zimbraSpamHeader: X-Spam-Flag
zimbraSpamHeaderValue: YES
It looks like if the mail is not checked since there is nothing in the junk/spam folders
But I see 1 domain with one mailaccount that is working fine. Can it be the way the domains/accounts are imported when migrating from zimbra to carbonio ?
Could you please elaborate the scenario a bit more for our better understanding?
also, I have the salocal.cf.in in my system.
zextras@mail:~/conf$ pwd /opt/zextras/conf zextras@mail:~/conf$ zextras@mail:~/conf$ ls -ll *.in -rwxr-xr-x 1 zextras zextras 41425 Jul 29 10:20 amavisd.conf.in -rwxr-xr-x 1 zextras zextras 4711 Jul 29 10:20 cbpolicyd.conf.in -rwxr-xr-x 1 zextras zextras 27718 Jul 29 10:20 clamd.conf.in -rwxr-xr-x 1 zextras zextras 28045 Jul 29 10:20 dspam.conf.in -rwxr-xr-x 1 zextras zextras 7209 Jul 29 10:20 freshclam.conf.in -rwxr-xr-x 1 zextras zextras 9601 Jul 17 11:20 log4j.properties.in -rwxr-xr-x 1 zextras zextras 154 Jul 17 11:20 mta_milter_options.in -rwxr-xr-x 1 zextras zextras 31 Jul 29 10:20 opendkim-localnets.conf.in -rwxr-xr-x 1 zextras zextras 1794 Jul 29 10:20 opendkim.conf.in -rwxr-xr-x 1 zextras zextras 488 Jul 29 10:20 postfix_header_checks.in -rwxr-xr-x 1 zextras zextras 4438 Jul 29 10:20 salocal.cf.in -rw-r----- 1 zextras zextras 103 Jul 29 10:20 saslauthd.conf.in -rwxr-xr-x 1 zextras zextras 74 Jul 17 11:19 spnego_java_options.in -rwxr-xr-x 1 zextras zextras 45 Jul 17 11:20 stats.conf.in -rwxr-xr-x 1 zextras zextras 7851 Jul 29 10:20 zmssl.cnf.in zextras@mail:~/conf$
Regards,
Sharif
Hi Sharif,
Sorry for late reply. My problem is now solved. I think by solving the amavis problem all of my spam problems were solved.
- Got my x-spam headers back
- Mails assigned to SPAM is in junk folder
- Far less spam now
For now thanks for the help.