1 (edited by razi 2020-09-29 23:51:33)

Topic: legitimate mails goes to spam folder roundcube

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3.1 MARIADB edition
- Deployed with iRedMail Easy or the downloadable installer?downloadable installer
- Linux/BSD distribution name and version: Centos 8.2
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MARIADB
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro? yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

legitimate mails goes to spam folder in roundcube. How to mark them not spam and why mails are detected as spam.

2

Re: legitimate mails goes to spam folder roundcube

- To figure out why it's considered as spam, you have to check Postfix log file (/var/log/maillog) to figure out the tagged SpamAssassin rules for this email.
- For the "not spam" feature, you need these 2 tutorials:

https://docs.iredmail.org/dovecot.imapsieve.html
https://docs.iredmail.org/store.spamass … n.sql.html

Note: this is enabled by default for the server deployed with iRedMail Easy platform:
https://www.iredmail.org/easy.html

----

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

buy me a cup of coffee

3

Re: legitimate mails goes to spam folder roundcube

mail amavis[4164736]: (4164736-13) Passed SPAMMY {RelayedTaggedInbound}, [ip]:14697 [ip] ESMTP/ESMTP <i@f.co> -> <e@p.co>, (ESMTP://[ip]:14697 < SMTP://ip), Queue-ID: 4C3qTb4Vnhz35rNJx, Message-ID: <551702601.16402829.1601783321220.J@f.co.>, mail_id: mQ6VdodiNtAx, b: kg0qRJkoi, Hits: 6.431, size: 57074, queued_as: 4C3qTd3ClZz35rNJW, Subject: "F :-) 00.00 paid from 5:48", From: <inC@f.co> (dkim:AUTHOR), helo=relay.m.w, Tests: [DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1,DKIM_VALID_EF=-0.1,HTML_IMAGE_ONLY_12=1.629,HTML_MESSAGE=0.001,SPF_FAIL=5,URIBL_BLOCKED=0.001], autolearn=no autolearn_force=no, autolearnscore=6.43, dkim_i=@f.co, dkim_sd=frg:f.co, 1705 ms
Oct  4 05:48:53 mail amavis[4164736]: (4164736-13) Passed SPAMMY, <i@f.co> -> <e@p.co>, Hits: 6.431, tag=2, tag2=6.2, kill=6.9, queued_as: 4C3qTd3ClZz35rNJW, L/Y/Y/0
Oct  4 05:48:53 mail postfix/amavis/smtp[4186607]: 4C3qTb4Vnhz35rNJx: to=<e@p.co.bw>, relay=127.0.0.1[127.0.0.1]:10024, delay=2.1, delays=0.32/0.06/0.01/1.7, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 4C3qTd3ClZz35rNJW)
Oct  4 05:48:53 mail postfix/qmgr[2411363]: 4C3qTb4Vnhz35rNJx: removed


This the log. Is it something to do with  SPF_FAIL=5,URIBL_BLOCKED=0.001

4

Re: legitimate mails goes to spam folder roundcube

razi wrote:

This the log. Is it something to do with  SPF_FAIL=5...

Yes. You should add SPF record for your mail domain name, also make sure your server is using a working DNS server in /etc/resolv.conf (and /var/spool/postfix/etc/resolv.conf).

----

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

buy me a cup of coffee

5 (edited by razi 2020-10-15 02:14:16)

Re: legitimate mails goes to spam folder roundcube

my spf record and dns is ok


SPF_FAIL=5 shows as per below log (may be I am not able to read log correctly) from sender and mails goes to junk folder.

Mails marked as spam goes to Roundcube's junk and does not show up in outlook . User has to login on webmail to check the junk folder.

Is it possible to disable spam option only so it will not go to junk folder.



Passed SPAMMY {RelayedTaggedInbound}, [ip]:65445 [ip] ESMTP/ESMTP <linkedin@e.linkedin.com> -> <d@m.b>, Tests: [DKIMWL_WL_HIGH=0.001,DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1,FROM_EXCESS_BASE64=0.105,HTML_MESSAGE=0.001,RCVD_IN_DNSWL_LOW=-0.7,SPF_FAIL=5,THIS_AD=0.001,URIBL_BLOCKED=0.001], autolearn=no autolearn_force=no, autolearnscore=6.308, dkim_i=linkedin@e.linkedin.com, dkim_sd=linkedin:e.linkedin.com, 1889 ms

6

Re: legitimate mails goes to spam folder roundcube

You can disable this behaviour in file /var/vmail/sieve/dovecot.sieve. It puts detected SPAM to the Junk folder by default.

NOTE: this is global setting and it will affect all users.

----

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

buy me a cup of coffee