1

Topic: Can't send emails

==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- Related log if you're reporting an issue:
======== Required information ====
- version: iRedMail-0.9.5-1
- Linux 16.04 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx):Apache
====
Hello, I have a little problem.I've got iRedMail installed and working properly, however,I can't send a mail to external addresses (Gmail, Mail.ru,Ukr.net ... etc.). I looked in the Mail.log file and noticed an error. Please, help me to fix it.



Mail.log

Sep 30 08:55:50 mail postfix/submission/smtpd[1819]: connect from mail.its.cloud[127.0.0.1]
Sep 30 08:55:50 mail postfix/submission/smtpd[1819]: Anonymous TLS connection established from mail.its.cloud[127.0.0.1]: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
Sep 30 08:55:50 mail postfix/submission/smtpd[1819]: 7D489474D2: client=mail.its.cloud[127.0.0.1], sasl_method=LOGIN, sasl_username=postmaster@its.cloud
Sep 30 08:55:50 mail postfix/cleanup[1854]: 7D489474D2: message-id=<2550fdc09a5303093ad9e9320c557265@its.cloud>
Sep 30 08:55:50 mail postfix/qmgr[1663]: 7D489474D2: from=, size=530, nrcpt=1 (queue active)
Sep 30 08:55:50 mail roundcube: <92arj3q9> User postmaster@its.cloud [10.30.11.42]; Message for Test@mail.ru; 250: 2.0.0 Ok: queued as 7D489474D2
Sep 30 08:55:50 mail postfix/submission/smtpd[1819]: disconnect from mail.its.cloud[127.0.0.1] ehlo=2 starttls=1 auth=1 mail=1 rcpt=1 data=1 quit=1 commands=8
Sep 30 08:55:50 mail amavis[1731]: (01731-01) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ctl: No such file or directory
Sep 30 08:55:51 mail amavis[1731]: (01731-01) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ctl: No such file or directory
Sep 30 08:55:51 mail amavis[1731]: (01731-01) (!)ClamAV-clamd: All attempts (1) failed connecting to /var/run/clamav/clamd.ctl, retrying (2)
Sep 30 08:55:57 mail amavis[1731]: (01731-01) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ctl: No such file or directory
Sep 30 08:55:57 mail amavis[1731]: (01731-01) (!)ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamav/clamd.ctl (All attempts (1) failed connecting to /var/run/clamav/clamd.ctl) at (eval 104) line 613.\n
Sep 30 08:55:57 mail amavis[1731]: (01731-01) (!)WARN: all primary virus scanners failed, considering backups
Sep 30 08:55:58 mail amavis[1731]: (01731-01) (!)run_av (ClamAV-clamscan) FAILED - unexpected exit 2, output="WARNING: Ignoring deprecated option --disable-summary\nLibClamAV Error: cli_loaddbdir(): No supported database files found in /var/lib/clamav\nERROR: Can't open file or directory\n\n----------- SCAN SUMMARY -----------\nKnown viruses: 0\nEngine version: 0.99.2\nScanned directories: 0\nScanned files: 0\nInfected files: 0\nData scanned: 0.00 MB\nData read: 0.00 MB (ratio 0.00:1)\nTime: 0.057 sec (0 m 0 s)"
Sep 30 08:55:58 mail amavis[1731]: (01731-01) (!)ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan unexpected exit 2, output="WARNING: Ignoring deprecated option --disable-summary\nLibClamAV Error: cli_loaddbdir(): No supported database files found in /var/lib/clamav\nERROR: Can't open file or directory\n\n----------- SCAN SUMMARY -----------\nKnown viruses: 0\nEngine version: 0.99.2\nScanned directories: 0\nScanned files: 0\nInfected files: 0\nData scanned: 0.00 MB\nData read: 0.00 MB (ratio 0.00:1)\nTime: 0.057 sec (0 m 0 s)" at (eval 104) line 905.
Sep 30 08:55:58 mail amavis[1731]: (01731-01) (!!)AV: ALL VIRUS SCANNERS FAILED
Sep 30 08:55:58 mail postfix/smtpd[1859]: connect from mail.its.cloud[127.0.0.1]
Sep 30 08:55:58 mail postfix/smtpd[1859]: 84D6C474D3: client=mail.its.cloud[127.0.0.1]
Sep 30 08:55:58 mail postfix/cleanup[1854]: 84D6C474D3: message-id=<2550fdc09a5303093ad9e9320c557265@its.cloud>
Sep 30 08:55:58 mail postfix/qmgr[1663]: 84D6C474D3: from=, size=1589, nrcpt=1 (queue active)
Sep 30 08:55:58 mail postfix/smtpd[1859]: disconnect from mail.its.cloud[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Sep 30 08:55:58 mail amavis[1731]: (01731-01) Passed UNCHECKED {RelayedInternal}, ORIGINATING/MYNETS LOCAL [127.0.0.1]:46646 -> , Queue-ID: 7D489474D2, Message-ID: <2550fdc09a5303093ad9e9320c557265@its.cloud>, mail_id: H8e42w6xM3h9, Hits: -1.01, size: 530, queued_as: 84D6C474D3, dkim_new=dkim:its.cloud, 7995 ms, Tests: [ALL_TRUSTED=-1,T_RP_MATCHES_RCVD=-0.01]
Sep 30 08:55:58 mail postfix/smtp[1856]: 7D489474D2: to=, relay=127.0.0.1[127.0.0.1]:10026, delay=8.1, delays=0.09/0/0.07/8, 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 84D6C474D3)
Sep 30 08:55:58 mail postfix/qmgr[1663]: 7D489474D2: removed
Sep 30 08:55:58 mail postfix/smtp[1862]: connect to mxs.mail.ru[217.69.139.150]:25: Connection refused
Sep 30 08:55:58 mail postfix/smtp[1862]: connect to mxs.mail.ru[94.100.180.150]:25: Connection refused
Sep 30 08:55:58 mail postfix/smtp[1862]: 84D6C474D3: to=, relay=none, delay=0.07, delays=0.01/0.01/0.05/0, dsn=4.4.1, status=deferred (connect to mxs.mail.ru[94.100.180.150]:25: Connection refused)

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Can't send emails

Is the clamav service running? Do you have an entry for AllowSupplementaryGroups in /etc/clamav/clamd.conf? If you have AllowSupplementaryGroups in clamd.conf, remove it since it's deprecated.

Otherwise send logs for clamav (/var/log/clamav/clamav.log)