New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

AMaViS (A Mail Virus Scanner)

Started by kwesiaryee, August 05, 2024, 09:22:50 AM

Previous topic - Next topic

kwesiaryee

I tried to rebuilt my Mail Server and I got the following errors;


Job for amavisd.service failed because a timeout was exceeded.
See "systemctl status amavisd.service" and "journalctl -xeu amavisd.service" for details.

The job identifier is 170783.
Aug 05 11:10:49 vps.domain.net amavis[66859]: starting. /usr/sbin/amavisd at vps.domain.net amavis-2.13.1 (20240304), Unicode aware, LANG="en_US.UTF-8"
Aug 05 11:10:49 vps.domain.net amavis[66859]: perl=5.032001, user=, EUID: 986 (986);  group=(), EGID: 983 983 (983 983)
Aug 05 11:10:50 vps.domain.net amavis[66864]: (!)Net::Server: 2024/08/05-11:10:50 Can't connect to TCP port 10024 on ::1 [Cannot assign requested address]\n  at line 64 in file /usr/share/perl5/vendor_perl/Net/Server/Proto/TCP.pm
Aug 05 11:10:50 vps.domain.net systemd[1]: amavisd.service: Can't open PID file /run/amavisd/amavisd.pid (yet?) after start: Operation not permitted


Have this been experienced by someone before and how can this be resolved. Or any suggestions to resolve this will be appreciated. I do understand this is beta.

Please help me out

overseer

Do you have correct permissions on the PID directory? Can you manually start it as root?

Starburst

Are you running this on AlmaLinux 9?

If so, you have to do the following after you install CWP:

dnf install spamassassin amavis

systemctl enable spamassassin

systemctl start spamassassin

systemctl enable amavisd

systemctl start amavisd


Also before installing CWP, you have to install ClamAV or it won't work.
For some reason you can't install it after CWP.

kwesiaryee

I already have it installed, is there any walk around?

kwesiaryee

Yes it's running on AlmaLinux-9.

The worse part is that I still can't send emails to other emails but can receive emails. I use these website to do a lot of automation and that makes emailing extremely vital. And hee I am I cannot do it.

Any way I can resolve it?

Starburst

Dovecot, SpamAssassin, Amavis are for incoming emails, not outgoing.

Postfix handles that.

But to send emails, you need to have your hostname, rDNS, DKIM, SPF, DMARC all configured correctly, or other mail servers will reject the emails.

kwesiaryee

I'm still getting the following errors although I did a reinstall with Startburst suggestions;

Job for amavisd.service failed because a timeout was exceeded.
See "systemctl status amavisd.service" and "journalctl -xeu amavisd.service" for details.



BeZazz

#7
Been out of the game for awhile but (referring to first post) it appears to be related to amavisd trying to bond to IP6.

the "fix" appears to be to add
$inet_socket_bind = '127.0.0.1';
/etc/amavisd/amavisd.conf

BUT I'm no CWP guru and others may advise against that as there is probably a better way to fix the issue.

EDIT: In hindsight that probably a non fatal issue.

Starburst

Quote from: kwesiaryee on August 09, 2024, 07:44:31 AM
I'm still getting the following errors although I did a reinstall with Startburst suggestions;

Job for amavisd.service failed because a timeout was exceeded.
See "systemctl status amavisd.service" and "journalctl -xeu amavisd.service" for details.


What line does the error log mention?

Easiest way to view it is to click on the Status button.

That will give you a starting point of what is configured wrong.

hatnaa

thank you it works :)
Quote from: BeZazz on August 09, 2024, 08:17:59 AM
Been out of the game for awhile but (referring to first post) it appears to be related to amavisd trying to bond to IP6.

the "fix" appears to be to add
$inet_socket_bind = '127.0.0.1';
/etc/amavisd/amavisd.conf

BUT I'm no CWP guru and others may advise against that as there is probably a better way to fix the issue.

EDIT: In hindsight that probably a non fatal issue.