Topic: Amavis won't start properly after reboot
==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: Debian GNU/Linux 9.3 (stretch)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Apache2
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
After a system reboot Amavis not working properly. "failed connecting to smtp:[127.0.0.1]:10025" represent in the log if somebody tries to send an email.
Jan 16 16:30:40 anubis postfix/qmgr[5777]: 403C3E030F: from=<postmaster@domain.com>, size=1348, nrcpt=1 (queue active)
Jan 16 16:30:41 anubis amavis[2308]: (02308-01) (!)connect to [127.0.0.1]:10025 failed, attempt #1: Can't connect to socket [127.0.0.1]:10025 using module IO::Socket::IP: Address family for hostname not supported
Jan 16 16:30:41 anubis amavis[2308]: (02308-01) (!)XVe9VrfFhqf0 FWD from <postmaster@domain.com> -> <destination@gmail.com>, 451 4.5.0 From MTA() during fwd-connect (All attempts (1) failed connecting to smtp:[127.0.0.1]:10025): id=02308-01
Jan 16 16:30:41 anubis amavis[2308]: (02308-01) Blocked MTA-BLOCKED {TempFailedInternal}, MYNETS LOCAL [127.0.0.1]:55704 <postmaster@domain.com> -> , Queue-ID: 403C3E030F, Message-ID: <20180116150445.403C3E030F@hostname.domain.com>, mail_id: XVe9VrfFhqf0, Hits: -0.998, size: 1348, dkim_new=dkim:domain.com, 180 ms, Tests: [ALL_TRUSTED=-1,HTML_MESSAGE=0.001,TVD_SPACE_RATIO=0.001]
Jan 16 16:30:41 anubis postfix/smtp-amavis/smtp[6057]: 403C3E030F: to=<destination@gmail.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=1556, delays=1556/0.04/0.01/0.18, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 id=02308-01 - Temporary MTA failure on relaying, From MTA() during fwd-connect (All attempts (1) failed connecting to smtp:[127.0.0.1]:10025): id=02308-01 (in reply to end of DATA command))
But the system reports it is listening on port 10025:
root@hostname:~# netstat -plant | grep 10025
tcp 0 0 127.0.0.1:10025 0.0.0.0:* LISTEN 5775/master
If I restart amavis service after reboot it works again.
Previously networkmanager was installed on the system, but it isn't used anymore (purged). Could that cause the problem?
Could somebody tell me, where could be the misconfiguration?
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.