Giter Site home page Giter Site logo

mailcleaner / mailcleaner Goto Github PK

View Code? Open in Web Editor NEW
85.0 13.0 33.0 42.74 MB

MailCleaner Community Edition

Home Page: https://www.mailcleaner.org/

License: GNU General Public License v3.0

Shell 2.83% Perl 6.64% Makefile 0.01% HTML 2.50% PHP 86.78% CSS 0.81% JavaScript 0.43% TSQL 0.01%

mailcleaner's Introduction

MailCleaner

Translation status

Official website : https://www.mailcleaner.org

This is the repository for sources of MailCleaner Community Edition.

MailCleaner is a business anti spam gateway installed between your mail infrastructure and the Internet. It offers professional protection against viruses and eliminates up to 99% of spam.

Help out by becoming an Alpha tester for the next release

After a long period of development which has seen updates to almost every file in every component of the system, the MailCleaner team is approaching an initial release of the next major version of MailCleaner. This will rebase the system on the latest stable version of Debian - version 12 (Bookworm).

In order to have the best roll-out possible for new appliances, we are seeking Alpha testers for the Community Edition release.

Evaluate MailCleaner Enterprise Edition

You can ask for an evaluation licence of Mailcleaner Enterprise Edition, providing you with the following benefits:

  • An update of the SpamAssassin rules, ClamAV signatures, ClamSpam signatures and Newsletters detection rules every 15 minutes
  • Access to all MailCleaner RBLs and partner's RBLs
  • Regular updates of Bayesian databases
  • Access to our technical support (Basic or Premium offers)
  • Access to optional modules including Kaspersky, spamhaus, SURBL and MessageSniffer

To start your free trial, please go to https://www.mailcleaner.net/antispam/test.html and choose the option that fits you best

Getting started

To start using MailCleaner on your own machines, you will need to download one of our virtual appliances at https://www.mailcleaner.org/download/.

You can find the installation guide at https://www.mailcleaner.net/downloads/MailCleaner-installation.pdf

You can also try MailCleaner on the cloud for 30 days for free by registering at https://www.mailcleaner.net/antispam/test.html.

Translations

We use weblate to translate the MailCleaner interface. If you want to contribute, you can go to https://www.mailcleaner.org/translations/.

PULL REQUESTS TRANSLATING THE INTERFACE WILL NOT BE ACCEPTED

MailCleaner community

To get some help from the community, you can check out the forum at http://forum.mailcleaner.org/

Social media

mailcleaner's People

Contributors

0xmentornotapseudo avatar alan201618 avatar ameli-s19 avatar andrle avatar atomusiak avatar bogdankruszewski avatar champct avatar comradekingu avatar d-jorg avatar fbillebault avatar huzhanrong avatar johnmertz avatar louies0623 avatar miran68 avatar mrngilles avatar mrtayung avatar nsafira11 avatar oersen avatar orgeat avatar paulohecko avatar plivox avatar razvan-cmd avatar reivilob avatar rezaalmanda avatar santossi avatar sebras avatar sutoiuoana avatar weblate avatar weibel73 avatar xendez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mailcleaner's Issues

Exim spool stage4

My mailcleaner stopped this morning and when I restart the services it can't start exim stage 4

I'm trying to find the cause, no success

Help in activating SSL (HTTPS)

Hello guys, good afternoon.

I just installed mailcleaner and made my tests. Everything was fine and fast until I checked the option for enabling SSL in the "Configuration > Services > Web Interfaces" page. After that, the system went crazy and became very slow.

Not only slow, but looking in the logs, I found the following messages:

May 27 10:40:14 localhost httpd: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://127.0.0.1:5132/soap/index.php?wsdl' : failed to load external entity "http://127.0.0.1:5132/soap/index.php?wsdl"#012 in /usr/mailcleaner/www/framework/Zend/Soap/Client/Common.php on line 51
May 27 12:24:01 localhost httpd: PHP Warning: SoapServer::SoapServer(http://localhost:5132/soap/index.php?wsdl): failed to open stream: HTTP request failed! in /usr/mailcleaner/www/framework/Zend/Soap/Server.php on line 762
May 27 12:24:01 localhost httpd: PHP Warning: SoapServer::SoapServer(): I/O warning : failed to load external entity "http://localhost:5132/soap/index.php?wsdl" in /usr/mailcleaner/www/framework/Zend/Soap/Server.php on line 762
May 27 12:24:01 localhost httpd: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://localhost:5132/soap/index.php?wsdl' : failed to load external entity "http://localhost:5132/soap/index.php?wsdl"#012 in /usr/mailcleaner/www/framework/Zend/Soap/Server.php on line 762
May 27 12:24:41 localhost httpd: PHP Warning: SoapServer::SoapServer(http://localhost:5132/soap/index.php?wsdl): failed to open stream: HTTP request failed! in /usr/mailcleaner/www/framework/Zend/Soap/Server.php on line 762
May 27 12:24:41 localhost httpd: PHP Warning: SoapServer::SoapServer(): I/O warning : failed to load external entity "http://localhost:5132/soap/index.php?wsdl" in /usr/mailcleaner/www/framework/Zend/Soap/Server.php on line 762
May 27 12:24:41 localhost httpd: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://localhost:5132/soap/index.php?wsdl' : failed to load external entity "http://localhost:5132/soap/index.php?wsdl"#012 in /usr/mailcleaner/www/framework/Zend/Soap/Server.php on line 762
May 27 12:24:42 localhost httpd: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://127.0.0.1:5132/soap/index.php?wsdl' : failed to load external entity "http://127.0.0.1:5132/soap/index.php?wsdl"#012 in /usr/mailcleaner/www/framework/Zend/Soap/Client/Common.php on line 51

Can someone provide some information about those errors? Keep in mind, that after disabling the "Enable SSl(HTTPS)" option, the above erros stop.

Delivery to Google fails with timeout after end of data.

Originally reported in January last year on the forum, behavioural changes in Exim have caused delivery to Google servers to fail when the email has an attachment. When this issue originally materialised, Exim was reverted back to the previous version and the root cause of the issue wasn't addressed.

With the Exim update to 4.94, this issue has reappeared. With the RCE vulnerabilities in versions prior to 4.94 it's not viable to revert back this time.

Disabling TCP window scaling seems to resolve the issue, as does turning off iptables.

Original forum post: https://forum.mailcleaner.org/viewtopic.php?f=2&t=3017

OVA/OVF Issues & Installation Script

So I know there is a place on your website where you can go and download the most recent verison of the OVA, but ESXi doesn't allow OVA/OVF import without a VMDK, so that's somewhat useless unless you're using VMWare Workstation. Additionally, is there a way, or can you easily create a way to use a newer version of Debian?

I'd like to see an actual install script or ISO (that's less than 6 years old), to setup a physical server or VM.

How likely is any of this to happen, it's kind of a massive hindrance to deploy your community software...

No tracing and no log search possible, if someone tries to login with ASCII \023

Sometimes there are some brute force SMTP logins seen, where the username contains the ASCII sign \023 (Log entry: 535 Incorrect authentication data (set_id=AB\023)). ASCII code 023 means: "end of transport block".

If this happens, it's not possible to search the tracing log for this day for this domain in the admin web interface anymore. You will see an empty result.

If you also search in the 1-exim_stage1-mainlog via admin web interface for this domain, you will get the following error: "Unexpected answer or timeout from xxx.xxx.xxx.xxx" in the Log view window.

Security bug - Reflected XSS

Hi,

I tried registering on your forum to report this bug, but my registration request didn't respond.
So:

Bug Title: Reflected XSS

Product(s): MailCleaner CE 2018.08 & MailCleaner CE 2018.09

Tested on: Centos7/Firefox & Win10/Firefox

PoC URI: https://[IP]/admin/login/user/message/%3Csvg%20onload=alert(%22@darknetguy%22)%3E

BR,

Milad Fadavvi

API - Not able to set User attribute at Users authentication at domain

I noticed that I am not able to set the value of field User attribute of Users authentication from a domain via API.

I checked the API source code to find out what's wrong and I found the issue.

In file www/api/application/api/models/DomainAPI.php exists the following source code, beginning with line 345:

                 foreach (array(
                        'auth_server' => 'auth_server',
                        'auth_use_ssl' => 'use_ssl', 
                        'a_base_dn' => 'basedn', 
                        'a_bind_user' => 'binddn', 
                        'a_bind_pass' => 'bindpass',
                        'a_user_attr' => 'userattr',
                        'a_protocol_version' => 'ldapversion') as $key => $value) {
                    if (isset($params[$key])) {
                        $data[$value] = $params[$key];
                    }
                 } 

In function getParamsString() in file www/guis/admin/application/forms/Domain/UserAuthentication/Ldap.php it says:
$fields = array('basedn', 'userattribute', 'binddn', 'bindpass', 'use_ssl', 'ldapversion');

So the userattr value from DomainAPI.php doesn't math userattribute from Ldap.php and it get's removed.

Fix for this issue:
Replace userattr in file DomainAPI.php with userattribute.

New domain names not accepted as EHLO/HELO indentity

Hi there!

I came across a little bug in the "Force HELO" configuration in Base system > DNS settings that I felt like reporting here, because it seems like something relatively simple that could be fixed in a next update.

The page does not allow you to enter a domain like .services. Now we have available an infinity of domains like .energy, .cloud, .solutions and I see how these could be easily mistaken by internal domains like .local and .corp.

image

We're in the process of migrating our domain to a .services for example.

Thank you,

Victor.

High memory usage after upgrade exim

After upgrading to the latest version of exim the memory usage grows without limits, even crashing the host.

Seleção_022

I was forced to downgrade to continue using.

Are there any related reports in this new version related to this excessive use of memory? the host has 8gb of ram and I believe it's more than necessary...

mailcleaner behind apache reverse proxy

Hi,

i use mailcleaner behind an apache reverse proxy, but i encounter several errors in /var/log/messages:

Oct 6 14:32:48 antispam httpd: PHP Notice: Undefined variable: myfile in /usr/mailcleaner/www/soap/application/MCSoap/Config.php
Oct 6 14:33:32 antispam httpd: PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2002] No such file or directory' in /usr/mailcleaner/www/framework/Zend/Db/Adapter/Pdo/Abstract.php:129#012Stack trace:#12#0 /usr/mailcleaner/www/framework/Zend/Db/Adapter/Pdo/Abstract.php(129): PDO->__construct('mysql:host=loca...', 'mailcleaner', '********', Array)#12#1 /usr/mailcleaner/www/framework/Zend/Db/Adapter/Pdo/Mysql.php(109): Zend_Db_Adapter_Pdo_Abstract->_connect()#12#2 /usr/mailcleaner/www/framework/Zend/Db/Adapter/Abstract.php(459): Zend_Db_Adapter_Pdo_Mysql->_connect()#12#3 /usr/mailcleaner/www/framework/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('DESCRIBE admin...', Array)#012#4 /usr/mailcleaner/www/framework/Zend/Db/Adapter/Pdo/Mysql.php(169): Zend_Db_Adapter_Pdo_Abstract->query('DESCRIBE admin...')#12#5 /usr/mailcleaner/www/framework/Zend/Db/Table/Abstract.php(834): Zend_Db_Adapter_Pdo_Mysql->describeTable('administrator', NULL)#12#6 /usr/mailcleaner/www/framework/Zend/Db/Table/Abstract.php(856): Zend_Db_Table_Abstr in /usr/mailcleaner/www/framework/Zend/Db/Adapter/Pdo/Abstract.php on line 144
Oct 6 13:09:55 antispam httpd: PHP Warning: Invalid argument supplied for foreach() in /usr/mailcleaner/www/guis/admin/public/templates/default/scripts/forms/domaingeneralForm.phtml on line 19
Oct 6 13:09:55 antispam httpd: PHP Warning: Invalid argument supplied for foreach() in /usr/mailcleaner/www/guis/admin/public/templates/default/scripts/forms/domaingeneralForm.phtml on line 19
Oct 6 13:09:59 antispam httpd: PHP Warning: Invalid argument supplied for foreach() in /usr/mailcleaner/www/guis/admin/public/templates/default/scripts/forms/domaingeneralForm.phtml on line 19
Oct 6 13:11:02 antispam httpd: PHP Warning: Invalid argument supplied for foreach() in /usr/mailcleaner/www/guis/admin/public/templates/default/scripts/forms/domaingeneralForm.phtml on line 19

Oct 6 19:43:33 antispam httpd: PHP Warning: Invalid argument supplied for foreach() in /usr/mailcleaner/www/guis/admin/public/templates/default/scripts/forms/domaingeneralForm.phtml on line 19
Oct 6 19:43:38 antispam httpd: PHP Warning: Invalid argument supplied for foreach() in /usr/mailcleaner/www/guis/admin/public/templates/default/scripts/forms/domaingeneralForm.phtml on line 19
Oct 6 19:43:38 antispam httpd: PHP Warning: Invalid argument supplied for foreach() in /usr/mailcleaner/www/guis/admin/public/templates/default/scripts/forms/domaingeneralForm.phtml on line 19

I can logon to web gui, but i cannot make any changes to domains.

Can you please tell me, which config i have to change?

Thank you

Errors in /usr/mailcleaner/www/soap/application/MCSoap/Config.php

Hello guys, greetings from Brazil.

I just installed mailcleaner and and realized some php erros in logs.

There are two messages that says:
"undefined variable: myfile in /usr/mailcleaner/www/soap/application/MCSoap/Config.php on line 357"
"fclose() expects parameter 1 to be resource, null given in /usr/mailcleaner/www/soap/application/MCSoap/Config.php on line 357"

Looking in the file, the error should be resolved after the variable $myfile is changed for $rdata.

Newslist + Whitelist from spam quarantine broken

After the latest commit (855bae2) whitelisting for both spam and newsletters from the block page is now broken.

image

Clicking on Newlist works fine, but clicking "Newslist + Whitelist" returns an HTTP 500 error.

Looking in system logs, I can see this is failing with localhost httpd: PHP Fatal error: Call to undefined function extractSender() in /usr/mailcleaner/www/user/htdocs/newswhitelist.php on line 132

Looking at the source of the file, It appears an include is missing for utils.php which contains the missing function.

Why blacklist and what is the reason?

I am having this problem with some email, despite being whitelisted, for some reason it says blacklisted and quarantines it

source email

`Contents of the message (Identifier: 1jWlJY-0005og-E1)

Received: from a8-126.smtp-out.amazonses.com ([54.240.8.126])
by xxxx.xxxxx.xxxx stage1 with esmtps
(Exim MailCleaner)
id 1jWlJQ-0005mO-Ly
for [email protected]
from 01000171f067f692-741f6c2b-9d1d-46ba-ab05-0033e362f4ac-000000@amazonses.com; Thu, 07 May 2020 13:32:08 -0500
X-MailCleaner-SPF: pass
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple;
s=q4go33brjx4v5s4e4l46iko4rupbtqln; d=cen.biz; t=1588876277;
h=MIME-Version:From:To:Date:Subject:Content-Type:Message-ID;
bh=BPnAMpW5rZJU1K29qjRLZwI1pRYOguiuKsVNbR6o/1k=;
b=CCVZXeGF/5rmOgBtRbdjb1HYNRVPWs28/XUjWoV4+YISkFLijZoyKn4UhtQ+cHoL
y/B1UgZNaubKI4xAy9qGoRcW4N6PznFL0YsgzONyXiLhvPxQe8Xh315P5C5dKcApynU
rBK0fztuw5Lzcvk5Oo0UgcemDIIzhvJioANvEtYQ=
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple;
s=224i4yxa5dv7c2xz3womw6peuasteono; d=amazonses.com; t=1588876277;
h=MIME-Version:From:To:Date:Subject:Content-Type:Message-ID:Feedback-ID;
bh=BPnAMpW5rZJU1K29qjRLZwI1pRYOguiuKsVNbR6o/1k=;
b=SD3pB2VPlruwLVuJk6q81bwpR4p/ZZRtzwqu9rQ8DRe1ebb1Dlm7AJXEQBxqa27n
5VkDrx1u4Km7//7jONZioPuSBts4JJYqTY0xZoGTgQghXVHAVWH6l49aWIwuCf+Pbfk
S1iwOxSi+vkFRvkwcsj8ZPDlVDelBbaFD9XcIlQU=
X-Sender: [email protected]
X-Receiver: [email protected]
MIME-Version: 1.0
From: [email protected]
To: [email protected]
Date: Thu, 7 May 2020 18:31:17 +0000
Subject: =?utf-8?B?Tm90aWZpY2FjacOzbiBDb21wcm9iYW50ZSBO4oGwIFRFNDUzOTcgZW1pdGlkbyBwb3IgU0lFTUVOUyBIRUFMVEhDQVJFIFMuQS5TLg==?=
Content-Type: multipart/mixed;
boundary=--boundary_218695_39868a69-66b5-4d20-a2a2-e711cfb62dff
Message-ID: 01000171f067f692-741f6c2b-9d1d-46ba-ab05-0033e362f4ac-000000@email.amazonses.com
X-SES-Outgoing: 2020.05.07-54.240.8.126
Feedback-ID: 1.us-east-1.xCzgCNYhi8hKtKe1wbsMD2wC7YxeHmk0s2kl5AcD4V8=:AmazonSES
X-Newsl: is not newsletter (0.0/5.0)
X-NiceBayes: is not spam (49.99%)
X-MailCleaner-Information: Please contact for more information
X-MailCleaner-ID: 1jWlJY-0005og-E1
X-MailCleaner: Found to be clean
X-MailCleaner-SpamCheck: not spam, Newsl (score=0.0, required=5.0, )
X-MailCleaner-Status: Blacklisted (cc98730b43e60c9e2ed8d4dbec36f94f)`

X-MailCleaner-Status: Blacklisted (cc98730b43e60c9e2ed8d4dbec36f94f)

domain from is *@amazonses.com, IPs 54.240.8.0/21 this included in whitelist.

old sa-learn (or Razor2.pm) bug

./learn_ham.sh
Use of uninitialized value $type in numeric eq .....

see here:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=784649

and here:
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7018

--- /usr/local/share/perl/5.20.2/Mail/SpamAssassin/Plugin/Razor2.pm_o   2014-02-07 09:36:27.000000000 +0100
+++ /usr/local/share/perl/5.20.2/Mail/SpamAssassin/Plugin/Razor2.pm     2020-04-28 10:27:00.953411000 +0200
@@ -115,7 +115,7 @@
     setting => 'razor_timeout',
     is_admin => 1,
     default => 5,
-    type => $Mail::SpamAssassin::Conf::CONF_TYPE_DURATIION,
+    type => $Mail::SpamAssassin::Conf::CONF_TYPE_DURATION,
   });
 
 =item razor_config filename

My install is based on the MailCleaner_OVA_2019022601

dump_firewall.pl does not take the protocol as a key to build etc/firewall/start

Hi,
trying to add a rule for udp+tcp on the same port in mailcleaner firewall, I added two lines in the table external_access, one for each protocol, same service and same IP (0.0.0.0/0). But when I did a firewall restart, only the last line was kept. I've found that the key "$description" of the 2-dimensional array "%rules" in dump_firewall.pl is build only on host+port, so the last line host+port overwrites the preceding ones, no matter the protocol.
Is this a requirement or just an oversight ? Can this introduces a bug if we add the protocol in the key of %rules ?
Or maybe, there is another way to do this, and I haven't found it...
Thank you for your opinions.

Users quarantine authentication problem after Lets Encrypt change

After change:

https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/

Login to quarantine servers using lets encrypt has stopped working.
I made the following adjustment so that it would re-authenticate:

cd /etc/ssl/certs
wget --no-check-certificate https://letsencrypt.org/certs/isrgrootx1.pem.txt

On file /etc/ca-certificates.conf , comented with ! this cert: mozilla/DST_Root_CA_X3.crt

As a last step I updated with: update-ca-certificates

Please fix on MCUpdater

SPF macros not evaluated

Hi,

the SPF checker doesn't evaluate macros resulting in spf fails instead of passes. As they are standardized in the SPF RFC's 4408 and 7208 they should be evaluated by SPF checker. The only workaround for now is to whitelist domains with such a record.

Example of a SPF record with macros: v=spf1 exists:%{i}._i.%{d}._d.espf.agari.com include:%{d}.33.spf-protect.agari.com -all

Here is a good description of SPF macros with examples: https://www.jamieweb.net/blog/using-spf-macros-to-solve-the-operational-challenges-of-spf/

Temporarily rejected RCPT. Failed to expand ACL string.

All of a sudden all mailcleaner instances that we have stopped receiving email and when looking at the incoming MTA logs similar messages like these appear:

temporarily rejected RCPT <[email protected]>: failed to expand ACL string ":after_received:X-MailCleaner-recipients: $recipients": unknown variable name "recipients"

Any idea how we can overcome this? Thank you.

Error in /usr/mailcleaner/www/guis/admin/application/models/InformationalMessage.php

Hello guys, greetings from Brazil.

I just installed mailcleaner and and realized some php erros in logs.

There are two messages that says:
"in_array() expects parameter 2 to be array, string given in /usr/mailcleaner/www/guis/admin/application/models/InformationalMessage.php on line 49"

Looking in the file, the error should be resolved after the params of in_array function on line 49 gets changed, remember that in_array function expects param2 as haystack, while the param1 is the needle. So after the change, param1 shoud be $slave and param2 should be $this->_slaves.

Sorry for bad english, I'm brazilian.

Mail rejected due to new rule in exim_stage1 configuration

The latest update of the exim_stage1.conf_template contains a rule that adds a header which fails regularly resulting in rejecting mail. The line causing the issue is:
add_header = :at_start:${authresults {$primary_hostname}}

The error as stated in the rejectlog is:
temporarily rejected after DATA: failed to expand ACL string ":at_start:${authresults {$primary_hostname}}": "${authresults" is not a known operator (or a } is missing in a variable reference)

ldap domains support

I have my virt domains listed in ldap. Is it possible to fetch them from there instead of configuring each domain one by one?

reject subject

Hello there

Spam e-mails are constantly coming in about the same subject. Is there a way I can block this directly?

header __AR_SUBJECT_XXX Subject =~ /Invest in Crypto.Earn 100.000/
score AR_SUBJ_XXX 20.0

I tried as above but it didn't work

Filter by external address not working

Hello,
Since a few days, in the Management/Tracing menu of the web interface, entering something in "Filter by external address" has no more effect.
Is it a general or known problem, or is it a problem on my machine?
Thank you for your answer

Error on collect_rrd_stats.pl

Hello,

i receive the following error, when executing collect_rrd_stats.pl .

root@antispam:/usr/mailcleaner/install# /usr/mailcleaner/bin/collect_rrd_stats.pl
Invalid graph type: none at /usr/local/share/perl/5.24.1/RRDTool/OO.pm line 1110.

THX

Major problems with pyenv / fail2ban

Hi All
I am having real problems and am totally stumped - I'm new to much of this so please be gentle with me!

I have a new installation of Mailcleaner which is working well, apart from the fact that it is getting 10's of 1000's of smtp brute force hits every day. To address this I went to enable fail2ban as per https://support.mailcleaner.net/boards/3/topics/80-fail2ban

However when I run /var/mailcleaner/.pyenv/versions/3.7.7/bin/fail2ban.py I get a file not found error and sure enough I do not have a .pyenv directory in /var/mailcleaner. I tried to do a search for fail2ban.py but it was not found anywhere on my system.

In attempting to address this I discovered that the updates were failing - also because of the missing .pyenv directory.

I was able to manually install pyenv with git clone https://github.com/pyenv/pyenv.git /var/mailcleaner/.pyenv and then I removed the files in /var/mailcleaner/spool/updater and then re-ran the updater4mc.sh script but by the time it finished the .pyenv directory had been removed and I was back where I started.

I'd really appreciate some help with this as I've been banging my head against it for hours. I've posted all this on the mailcleaner support forum but have not had any reply.

update log it attached - all done logged in as root.

Thanks in advance!
updater4mc.log

Problem with "Monitoring - Status"

Hi
I have problem with this after upgrade some ago time.

Nov 30 22:54:32 localhost httpd: PHP Warning: Invalid argument supplied for foreach() in /usr/mailcleaner/www/guis/admin/public/templates/default/scripts/ajax/monitorstatus/hoststatus.phtml on line 80 Nov 30 22:54:32 localhost httpd: PHP Warning: Illegal string offset 'memtotal' in /usr/mailcleaner/www/guis/admin/public/templates/default/scripts/ajax/monitorstatus/hoststatus.phtml on line 104 Nov 30 22:54:32 localhost httpd: PHP Warning: Division by zero in /usr/mailcleaner/www/guis/admin/public/templates/default/scripts/ajax/monitorstatus/hoststatus.phtml on line 104 Nov 30 22:54:32 localhost httpd: PHP Warning: Illegal string offset 'memused' in /usr/mailcleaner/www/guis/admin/public/templates/default/scripts/ajax/monitorstatus/hoststatus.phtml on line 104 Nov 30 22:54:32 localhost httpd: PHP Warning: Illegal string offset 'memcached' in /usr/mailcleaner/www/guis/admin/public/templates/default/scripts/ajax/monitorstatus/hoststatus.phtml on line 104 Nov 30 22:54:32 localhost httpd: PHP Warning: Illegal string offset 'exim_stage1' in /usr/mailcleaner/www/guis/admin/public/templates/default/scripts/ajax/monitorstatus/hoststatus.phtml on line 187 Nov 30 22:54:32 localhost httpd: PHP Warning: Illegal string offset 'exim_stage2' in /usr/mailcleaner/www/guis/admin/public/templates/default/scripts/ajax/monitorstatus/hoststatus.phtml on line 187 Nov 30 22:54:32 localhost httpd: PHP Warning: Illegal string offset 'exim_stage4' in /usr/mailcleaner/www/guis/admin/public/templates/default/scripts/ajax/monitorstatus/hoststatus.phtml on line 187 Nov 30 22:54:32 localhost httpd: PHP Warning: Illegal string offset 'apache' in /usr/mailcleaner/www/guis/admin/public/templates/default/scripts/ajax/monitorstatus/hoststatus.phtml on line 187 Nov 30 22:54:32 localhost httpd: PHP Warning: Illegal string offset 'mailscanner' in /usr/mailcleaner/www/guis/admin/public/templates/default/scripts/ajax/monitorstatus/hoststatus.phtml on line 187 Nov 30 22:54:32 localhost httpd: PHP Warning: Illegal string offset 'mysql_master' in /usr/mailcleaner/www/guis/admin/public/templates/default/scripts/ajax/monitorstatus/hoststatus.phtml on line 187 Nov 30 22:54:32 localhost httpd: PHP Warning: Illegal string offset 'mysql_slave' in /usr/mailcleaner/www/guis/admin/public/templates/default/scripts/ajax/monitorstatus/hoststatus.phtml on line 187 Nov 30 22:54:32 localhost httpd: PHP Warning: Illegal string offset 'snmpd' in /usr/mailcleaner/www/guis/admin/public/templates/default/scripts/ajax/monitorstatus/hoststatus.phtml on line 187 Nov 30 22:54:32 localhost httpd: PHP Warning: Illegal string offset 'greylistd' in /usr/mailcleaner/www/guis/admin/public/templates/default/scripts/ajax/monitorstatus/hoststatus.phtml on line 187 Nov 30 22:54:32 localhost httpd: PHP Warning: Illegal string offset 'cron' in /usr/mailcleaner/www/guis/admin/public/templates/default/scripts/ajax/monitorstatus/hoststatus.phtml on line 187 Nov 30 22:54:32 localhost httpd: PHP Warning: Illegal string offset 'preftdaemon' in /usr/mailcleaner/www/guis/admin/public/templates/default/scripts/ajax/monitorstatus/hoststatus.phtml on line 187 Nov 30 22:54:32 localhost httpd: PHP Warning: Illegal string offset 'spamd' in /usr/mailcleaner/www/guis/admin/public/templates/default/scripts/ajax/monitorstatus/hoststatus.phtml on line 187 Nov 30 22:54:32 localhost httpd: PHP Warning: Illegal string offset 'clamd' in /usr/mailcleaner/www/guis/admin/public/templates/default/scripts/ajax/monitorstatus/hoststatus.phtml on line 187 Nov 30 22:54:32 localhost httpd: PHP Warning: Illegal string offset 'clamspamd' in /usr/mailcleaner/www/guis/admin/public/templates/default/scripts/ajax/monitorstatus/hoststatus.phtml on line 187 Nov 30 22:54:32 localhost httpd: PHP Warning: Illegal string offset 'spamhandler' in /usr/mailcleaner/www/guis/admin/public/templates/default/scripts/ajax/monitorstatus/hoststatus.phtml on line 187 Nov 30 22:54:32 localhost httpd: PHP Warning: Illegal string offset 'newsld' in /usr/mailcleaner/www/guis/admin/public/templates/default/scripts/ajax/monitorstatus/hoststatus.phtml on line 187 Nov 30 22:54:32 localhost httpd: PHP Warning: Illegal string offset 'firewall' in /usr/mailcleaner/www/guis/admin/public/templates/default/scripts/ajax/monitorstatus/hoststatus.phtml on line 187
image

thanks for advice

Spam Qurantine not showing anything! for months now!

the community is left behind, because there's nothing changing since months now... the problem sill exists!
so don't tell me to post in the forum. because I - and many others did - and nothing changes.

There is a failure in the spam treatment stage.
Some messages are being tagged, others are being moved to a "where it disappears" quarantine.

EX:
Spam handling stage: 2020-09-22 09:45:21 (5) 887857: message 1kKhfd-000EeN-2v R: [email protected] S: <From @ orig> status not spam

and:

Spam handling stage: 2020-09-22 09:45:21 (5) 887857: message 1kKhfZ-000EdN-Up R: [email protected] S: <From @ orig> status not spam

killed in that step

doesn't have: Final outgoing stage:?

Cant send any mail after upgrade

After upgrading Exim to new version every outgoing mail is stuck in spooler with this error:

R=copyto_route defer (-1): failed to expand "${if and{ {!eq {$sender_address}{}} {or {{eq {$acl_c0}{relayed}} {eq {$acl_c1}{authenticated}} }}{exists{/var/mailcleaner/spool/tmp/exim_stage1/copyto/${sender_address_domain}}} }{${lookup{$sender_address_local_part}nwildlsearch{/var/mailcleaner/spool/tmp/exim_stage1/copyto/${sender_address_domain}}}} {} }": NULL

IPv6 addresses not parsed correctly in /usr/mailcleaner/bin/dump_firewall.pl

The function get_external_rules in /usr/mailcleaner/bin/dump_firewall.pl does not parse IPv6 addresses correctly due to a wrong pattern.

Sugested patch:

*** dump_firewall.pl 2021-02-23 19:33:29.261450000 +0100
--- dump_firewall.pl.orig 2021-02-23 19:31:55.637450000 +0100


*** 130,136 ****
next if ($ref-&gt;{'port'} !~ /^\d+[:|]?\d*$/);
next if ($ref-&gt;{'protocol'} !~ /^(TCP|UDP|ICMP)$/i);
foreach my $ip (expand_host_string($ref->{'allowed_ip'})) {
! if ($ip =~ m/^[a-fA-F0-9.:]{3,40}/?\d*$/) {
$rules{"host ".$ip.", service ".$ref->{'service'}} = [ $ref->{'port'}, $ref->{'protocol'}, $ip];
}
}
--- 130,136 ----
next if ($ref-&gt;{'port'} !~ /^\d+[:|]?\d*$/);
next if ($ref-&gt;{'protocol'} !~ /^(TCP|UDP|ICMP)$/i);
foreach my $ip (expand_host_string($ref->{'allowed_ip'})) {
! if ($ip =~ m/^[0-9.:]{3,40}/?\d*$/) {
$rules{"host ".$ip.", service ".$ref->{'service'}} = [ $ref->{'port'}, $ref->{'protocol'}, $ip];
}
}

Stuck in spool for 2 recipients but not for 1 recipient

Hi,

My actual setup is: Internet Firewall <-> Mailcleaner(Smarthost) <-> Mailserver

It seems a problem when there is more than 1 "rcpt to" user to same domain and only ocurrs for this domains until now:
@aseindustriales.com.co
@precintosdeseguridad.co
@eyesa.com.co
@rpuyoabogados.com.co

Actual behavior:
Case 1: If I send the message for 1 recipient, it is delivered OK
Case 2: If I send the message for 1 recipient (in mail TO field) and 1 recipient (in mail CC field), it is not delivered and drop in spool for ever
Case 3: If I send the message for 1 recipient (in mail TO field) and 1 recipient (in mail BCC field), it is not delivered at first time, but finally delivered both of them

Case 1:
Captura de Pantalla 2021-06-10 a la(s) 2 21 55 a  m

Case 2:
Captura de Pantalla 2021-06-10 a la(s) 2 26 27 a  m

Case 3:
Captura de Pantalla 2021-06-10 a la(s) 2 08 45 a  m

When I sniff the connection on case 2, the last message is:
Flags [P.], seq 85:115, ack 1, win 252, options [nop,nop,TS val 3863556617 ecr 132669239], length 30: SMTP: 421 Lost incoming connection

This behavior seems to have started on May 26
The only relation between those domains is that everyone takes 22 seconds to respond a telnet HOST 25 request.

I'll appreciate your help so much.

Thanks

Missing LDAP mail attributes: mailPrimaryAddress, mailAlternativeAddress

When trying to connect a MailCleaner to the LDAP directory of an existing Univention Corporate Server i noticed the following. While logon to the LDAP of Univention Server (using Port 7389 and vaild credentials) worked as well as getting result: passed when running "Test Authentication", there where no email addresses to be found.

Using an LDAP explorer connection to this server reveals that there are indeed attributes containing mail aliases listed. However the attribute where named: mailPrimaryAddress and mailAlternativeAddress.

Checking the Code of MailCleaner i noticed the file www/classes/connector/fetcher/LDAPLookup.php is responsible for fetching the list of valid mail adressess. Since both of those are missing, the user is unable to log into the MailCleaner for configuration and checking the quarantine.

Manual addition of the attribute names to $mail_attributes in this file fixes the problem and allows to work MailCleaner with UCS, and probably other openLDAP systems using this scheme, flawless.

SPam quarantaine not showing anything

There is a failure in the spam treatment stage.
Some messages are being tagged, others are being moved to a "where it disappears" quarantine.

EX:
Spam handling stage: 2020-09-22 09:45:21 (5) 887857: message 1kKhfd-000EeN-2v R: [email protected] S: <From @ orig> status not spam

and:

Spam handling stage: 2020-09-22 09:45:21 (5) 887857: message 1kKhfZ-000EdN-Up R: [email protected] S: <From @ orig> status not spam

killed in that step

doesn't have: Final outgoing stage:?

Filtering spool stuck at first delivery since last update November-2021

I am not sure why but from the logs it keeps looping as follows:

Nov 17 12:41:04 localhost MailScanner[17199]: Config: calling custom init function VirusWall
Nov 17 12:41:04 localhost MailScanner[17199]: Config: calling custom init function ContentSubject
Nov 17 12:41:04 localhost MailScanner[17199]: Config: calling custom init function ContentSubject
Nov 17 12:41:04 localhost MailScanner[17199]: Config: calling custom init function LocalPostmaster
Nov 17 12:41:04 localhost MailScanner[17199]: Config: calling custom init function ContentSubject
Nov 17 12:41:04 localhost MailScanner[17199]: Config: calling custom init function VirusSubject
Nov 17 12:41:04 localhost MailScanner[17199]: Initializing SpamCache...
Nov 17 12:41:04 localhost MailScanner[17199]: Using spam results cache in: /var/mailcleaner/spool/tmp/mailscanner/spam.cache.db
Nov 17 12:41:04 localhost MailScanner[17199]: Newsl module initializing...
Nov 17 12:41:09 localhost MailScanner: Process did not exit cleanly, returned 2 with signal 0
Nov 17 12:41:09 localhost MailScanner[17202]: MailScanner E-Mail Virus Scanner version 4.84.6 starting...
Nov 17 12:41:09 localhost MailScanner[17202]: Reading configuration file /usr/mailcleaner/etc/mailscanner/MailScanner.conf
Nov 17 12:41:09 localhost MailScanner[17202]: Read 869 hostnames from the phishing whitelist
Nov 17 12:41:09 localhost MailScanner[17202]: Read 5426 hostnames from the phishing blacklists
Nov 17 12:41:09 localhost MailScanner[17202]: Config: calling custom init function ContentSubject
Nov 17 12:41:09 localhost MailScanner[17202]: Config: calling custom init function VirusSubject
Nov 17 12:41:09 localhost MailScanner[17202]: Config: calling custom init function StoredContentReport
Nov 17 12:41:09 localhost MailScanner[17202]: Config: calling custom init function StoredVirusReport
Nov 17 12:41:09 localhost MailScanner[17202]: Config: calling custom init function StoredFilenameReport
Nov 17 12:41:09 localhost MailScanner[17202]: Config: calling custom init function VirusWall
Nov 17 12:41:09 localhost MailScanner[17202]: Config: calling custom init function ContentSubject
Nov 17 12:41:09 localhost MailScanner[17202]: Config: calling custom init function SpamWall
Nov 17 12:41:09 localhost MailScanner[17202]: Config: calling custom init function ContentSubject
Nov 17 12:41:09 localhost MailScanner[17202]: Config: calling custom init function LocalPostmaster
Nov 17 12:41:09 localhost MailScanner[17202]: Config: calling custom init function VirusWall
Nov 17 12:41:09 localhost MailScanner[17202]: Config: calling custom init function StoredContentReport
Nov 17 12:41:09 localhost MailScanner[17202]: Config: calling custom init function MailWatchLogging
Nov 17 12:41:09 localhost MailScanner[17202]: Started SQL Logging child
Nov 17 12:41:09 localhost MailScanner[17202]: Initializing SpamCache...
Nov 17 12:41:09 localhost MailScanner[17202]: Using spam results cache in: /var/mailcleaner/spool/tmp/mailscanner/spam.cache.db
Nov 17 12:41:09 localhost MailScanner[17202]: Newsl module initializing...
Nov 17 12:41:14 localhost MailScanner: Process did not exit cleanly, returned 2 with signal 0
Nov 17 12:41:14 localhost MailScanner[17205]: MailScanner E-Mail Virus Scanner version 4.84.6 starting...
Nov 17 12:41:14 localhost MailScanner[17205]: Reading configuration file /usr/mailcleaner/etc/mailscanner/MailScanner.conf
Nov 17 12:41:14 localhost MailScanner[17205]: Read 869 hostnames from the phishing whitelist
Nov 17 12:41:14 localhost MailScanner[17205]: Read 5426 hostnames from the phishing blacklists
Nov 17 12:41:14 localhost MailScanner[17205]: Config: calling custom init function ContentSubject
Nov 17 12:41:14 localhost MailScanner[17205]: Config: calling custom init function LocalPostmaster
Nov 17 12:41:14 localhost MailScanner[17205]: Config: calling custom init function ContentSubject
Nov 17 12:41:14 localhost MailScanner[17205]: Config: calling custom init function VirusWall
Nov 17 12:41:14 localhost MailScanner[17205]: Config: calling custom init function SpamWall
Nov 17 12:41:14 localhost MailScanner[17205]: Config: calling custom init function StoredVirusReport
Nov 17 12:41:14 localhost MailScanner[17205]: Config: calling custom init function StoredContentReport
Nov 17 12:41:14 localhost MailScanner[17205]: Config: calling custom init function StoredFilenameReport
Nov 17 12:41:14 localhost MailScanner[17205]: Config: calling custom init function ContentSubject
Nov 17 12:41:14 localhost MailScanner[17205]: Config: calling custom init function VirusSubject
Nov 17 12:41:14 localhost MailScanner[17205]: Config: calling custom init function StoredContentReport
Nov 17 12:41:14 localhost MailScanner[17205]: Config: calling custom init function MailWatchLogging
Nov 17 12:41:14 localhost MailScanner[17205]: Started SQL Logging child
Nov 17 12:41:14 localhost MailScanner[17205]: Config: calling custom init function VirusWall
Nov 17 12:41:14 localhost MailScanner[17205]: Initializing SpamCache...
Nov 17 12:41:14 localhost MailScanner[17205]: Using spam results cache in: /var/mailcleaner/spool/tmp/mailscanner/spam.cache.db
Nov 17 12:41:14 localhost MailScanner[17205]: Newsl module initializing...

All mail reject

A exemple :
2021-01-05 12:34:11 H=(srv250.mysmtp.fr) [193.200.171.250] X=TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256 CV=no F=<> temporarily rejected RCPT [email protected]: failed to expand ACL string ":after_received:X-MailCleaner-recipients: $recipients": unknown variable name "recipients"

E-Mails with more the 225 Recipients fail

If an email with more than 225 recipeints is send to the mailcleaner we get the following error message in the exim_stage1/mainlog and paniclog:

string_sprintf expansion was longer than 32768; format string was (%s : %s)
 called from setup_remove_header 1075

everything under 225 recipients works just fine.
Our e-mails are coming from an exchange server, the email will never be delivered or queued in one of the Mailcleaner Queues because it fails to submit it with the following error

421 Unexpected failure, please try later

in versions prior to 2021052101 we dont have that problem.
So for now an E-Mail with more than 225 Recipients cant be send through our Mailcleaner.

Can't view mail in quarantine

Hi,

Since a week or two we are not able to view text of mail stuck in quarantine.
When we click on the mail icon in the report a pop-up opens and it says "CANNOTLOAD HEADERANDBODY".

Any ideas ?

Forum admins anyone?

Is the forum still alive? We tried to register several times, but the user accounts where never activated.

usernames: sysup, karlsteinscheisser

cheers

bl.spamcop.net positive false problem

Dear Developers,

from today noon there is a problem with bl.spamcop.net RBL list. It provides false positive almost of all IP address. It tried to switch off this list in the PreRBL and Spamc part of Anti-Spam menu, It looks like it was successful but all the same and the Mailcleaner reject the incoming mails because of bl.spamcop.net . How can I remove this RBL list manually?

I restarted the FIlter Engine after the modification.

Thanks in advance!
Robert

stats empty

Hello,

i am not getting displayed any stats.

This is the error, when running collection manually

spam:/var/mailcleaner/spool/rrdtools$ /usr/mailcleaner/bin/collect_rrd_stats.pl
MIB search path: /root/.snmp/mibs:/usr/local/share/snmp/mibs
Cannot find module (MAILCLEANER-MIB): At line 1 in (none)
Use of uninitialized value in substitution iterator at /usr/mailcleaner/bin/../lib/RRDArchive.pm line 299.
Use of uninitialized value in substitution iterator at /usr/mailcleaner/bin/../lib/RRDArchive.pm line 299.

Some recipient don't received an mail but some others received it well

https://forum.mailcleaner.org/viewtopic.php?f=6&t=3263&p=13374#p13374

Many recipients complain about some mails are deliered and the same mail is not delivered for CC recipient

How to track this ?

  • Sender receive that king of error :

Delivery failed for these recipients or groups:
llooten@xxx
A communication problem occurred while delivering this message. Return it important. If the problem persists, contact technical support.

It seems it's arrive from OFFICE 365 and some others.

  • Is it possible this logs is something related to this issue ?
    2021-10-15 13:37:48 SMTP command timeout on connection from smtp11.smtpout.orange.fr (smtp.smtpout.orange.fr) [80.12.242.133]
    2021-10-15 13:38:08 SMTP command timeout on connection from mail-lf1-f48.google.com [209.85.167.48]
    2021-10-15 13:38:22 SMTP command timeout on connection from mail-db8eur05on2057.outbound.protection.outlook.com (EUR05-DB8-obe.outbound.protection.outlook.com) [40.107.20.57]
    2021-10-15 13:38:34 SMTP command timeout on connection from mx0b-00176a03.pphosted.com (mx0a-00176a03.pphosted.com) [67.231.157.48]
    2021-10-15 13:38:48 SMTP command timeout on connection from smtp11.smtpout.orange.fr (smtp.smtpout.orange.fr) [80.12.242.133]

  • And there is some whith diffrent error with TLS :
    2021-10-15 13:54:16 SMTP command timeout on TLS connection from o122.p8.mailjet.com [87.253.233.122]
    2021-10-15 13:54:18 SMTP command timeout on TLS connection from o49.p25.mailjet.com [185.189.236.49]

Maybe this resolved post is related ?
viewtopic.php?f=6&t=3089&p=12706&hilit= ... TLS#p12706

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.