Hi, We have disabled spam filters on a domain and all mailboxes under last ispconfig 3 (ISPConfig Version: 3.2.7p1), but when one internal mail from same domain is sending a mail to another email of the same domain is going to spam folder. We can't disable spam filter on same domain. Please help. thanks, Jordi. www.servidoresadmin.com
Can you post example logs? Eg. I'm wondering what spam filter you are using, and what port you are sending on.
You must choose uncensored spamfilter policy for the domain. Not selecting a policy means the server wide defaults get applied (at least for amavis systems) which means that spam get's filtered (with a less strict level).
We have put domain uncensored and mail accounts uncensored. We have put in the white list. We restart amavis. But mails sended from same domain are going to spam folder: Dec 23 16:41:12 ns322 postfix/qmgr[13628]: 224E3C6036D: from=<[email protected]>, size=2167, nrcpt=1 (queue active) Dec 23 16:41:12 ns322 amavis[8636]: (08636-15) Passed CLEAN {RelayedInternal}, ORIGINATING LOCAL [127.0.0.1] <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: OV_QQjjl2y0m, Hits: -2.898, size: 1066, queued_as: 224E3C6036D, dkim_new=default:domain.es, 182 ms Dec 23 16:41:12 ns322 postfix/lmtp[13904]: E0224C60360: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10026, delay=0.24, delays=0.06/0/0/0.18, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10027): 250 2.0.0 Ok: queued as 224E3C6036D) Dec 23 16:41:12 ns322 postfix/qmgr[13628]: E0224C60360: removed Dec 23 16:41:12 ns322 dovecot: lda([email protected]): msgid=<[email protected]>: saved mail to INBOX Dec 23 16:41:12 ns322 postfix/pipe[14496]: 224E3C6036D: to=<[email protected]>, relay=dovecot, delay=0.03, delays=0.01/0/0/0.02, dsn=2.0.0, status=sent (delivered via dovecot service) Dec 23 16:41:12 ns322 postfix/qmgr[13628]: 224E3C6036D: removed Dec 23 16:41:12 ns322 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=15348, secured, session=<liVvEdLT8LEAAAAAAAAAAAAAAAAAAAAB> Dec 23 16:41:12 ns322 dovecot: imap([email protected]): Logged out in=70 out=1126 Dec 23 16:41:13 ns322 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=15350, secured, session=<vxB4EdLT8rEAAAAAAAAAAAAAAAAAAAAB> Dec 23 16:41:13 ns322 dovecot: imap([email protected]): Logged out in=610 out=31513 Dec 23 16:41:13 ns322 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=15352, secured, session=<CSR5EdLT9LEAAAAAAAAAAAAAAAAAAAAB> Dec 23 16:41:13 ns322 dovecot: imap([email protected]): Logged out in=120 out=1262 Jordi www.servidoresadmin.com
Are you sure that the mail is put into spam folder by ISPConfig and not by the email client that you use to view the emails? The spam score is already negative, so it should not trigger any spam action in ISPConfig. Or maybe you use custom sieve scripts that do it or your sieve templates in ispconfig are customized?
Hello Till, We send from roundcube on localhost. We don't have any custom sieve script. We delete the mail account and recreate to test. But we send from [email protected] to [email protected] from localhost in roundcube and mails are going to spam folder ( /var/vmail/domain.es/mail2/Maildir/.Junk/cur ) We upgrade ispconfig and delete and recreate mail account, but same results: mails are going to junk folder.... Thanks, Jordi. www.servidoresadmin.com
As @till indicated, this message was saved into INBOX, not Junk. Try sending a new message and confirm that it is in the INBOX before accessing the mail2 account in any mail client, and work from there. I believe roundcube has some 'scan for junk' type features, though I don't use them and am not familiar with them, but if it seems to be roundcube moving your message, examine your roundcube config and post it here if needing further assistance.
Hello we are investigating and we can't understand who is moving mail to spam folder. If we move the file from spam directory to /cur of the mailbox, the file is returned to spam folder. We configure in ispconfig "Do not move spam to Junk folder" and we have move to a new server with last ispconfig and debian 10. But same issue. We are out of roundcube, but file is moved to spam folder and we do not know who is doing. We are 90% thinking it is a ispconfig issue. Thanks
ISPConfig is not moving delivered emails from one folder to another, there is no function in ISPConfig that can do this. The only way that ISPConfig can filter emails is when they get handed from postfix to dovecot, then dovecot filters get applied. But this never happens to an email that is already in a mail folder. Most likely another mail client is connected to the same mailbox via IMAP which moves the email based on its local filter system and rules.
You can identify from your mail.log the ip address of the client which does this. IMAP sessions can be long-running, so you might want to restart dovecot as you recreate this test, so you readily have all ip addresses logged which are accessing the mailbox in question.
Hello, I want to explain the solution of this enigma to help someone in the future. The server is not moving mails at all to spam. The client is who moves it. It was very difficult to investigate, because after we change the password on mail account, the client don't stop to be able to move mails to spam folder. We need to change the password of the mail account, and then we have to restart services. After this we can verify the root cause of moving mails is from the client. Thanks to all and I hope to help someone in the future.