1

Topic: amavis Connection refused issue

- iRedMail 1.3.1
- downloadable installer
- Linux debian 10
- LDAP
- Nginx

I have issue with amavis. After server start no mail can be sent.
(mail.log)
postfix/amavis/smtp[1922]: connect to 127.0.0.1[127.0.0.1]:10026: Connection refused

it is persistent and not sending until: service amavis restart, then its working.

After reboot again not sending until amavis manual restart

Any idea how to fix, please?

----

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

2

Re: amavis Connection refused issue

Try this:

- Run "freshclam" command first.
- Run "service clamav-daemon restart"
- Run "service amavis restart"
- Try to send email and check /var/log/maillog to figure out whether it's sent out. If not, extract related error log and paste here for troubleshooting.

3

Re: amavis Connection refused issue

ZhangHuangbin wrote:

Try this:

- Run "freshclam" command first.
- Run "service clamav-daemon restart"
- Run "service amavis restart"
- Try to send email and check /var/log/maillog to figure out whether it's sent out. If not, extract related error log and paste here for troubleshooting.

root@mail:~# freshclam
ERROR: /var/log/clamav/freshclam.log is locked by another process
ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
ERROR: initialize: libfreshclam init failed.
ERROR: Initialization error!
root@mail:~#
root@mail:~# service clamav-daemon restart
root@mail:~# service amavis restart

After that e-mail sending is working. After server restart sending also working.
For me solved, even some freshclam error.

I checked log and daemon is running and updating clamav database.

Thank you very much

4

Re: amavis Connection refused issue

How much RAM does this server have? If less than 4GB ram, please increase it to at lease 4GB.