Author Topic: AMaViS (A Mail Virus Scanner)  (Read 661 times)

0 Members and 3 Guests are viewing this topic.

Offline
*
AMaViS (A Mail Virus Scanner)
« on: August 05, 2024, 09:22:50 AM »
I tried to rebuilt my Mail Server and I got the following errors;

Code: [Select]
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

Offline
*****
Re: AMaViS (A Mail Virus Scanner)
« Reply #1 on: August 05, 2024, 05:05:12 PM »
Do you have correct permissions on the PID directory? Can you manually start it as root?

Offline
*****
Re: AMaViS (A Mail Virus Scanner)
« Reply #2 on: August 06, 2024, 02:33:09 AM »
Are you running this on AlmaLinux 9?

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

Code: [Select]
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.

Offline
*
Re: AMaViS (A Mail Virus Scanner)
« Reply #3 on: August 06, 2024, 12:42:20 PM »
I already have it installed, is there any walk around?

Offline
*
Re: AMaViS (A Mail Virus Scanner)
« Reply #4 on: August 06, 2024, 01:08:04 PM »
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?

Offline
*****
Re: AMaViS (A Mail Virus Scanner)
« Reply #5 on: August 06, 2024, 07:28:00 PM »
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.

Offline
*
Re: AMaViS (A Mail Virus Scanner)
« Reply #6 on: August 09, 2024, 07:44:31 AM »
I'm still getting the following errors although I did a reinstall with Startburst suggestions;

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


Offline
*
Re: AMaViS (A Mail Virus Scanner)
« Reply #7 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.
« Last Edit: August 09, 2024, 09:19:27 AM by BeZazz »

Offline
*****
Re: AMaViS (A Mail Virus Scanner)
« Reply #8 on: August 09, 2024, 12:41:39 PM »
I'm still getting the following errors although I did a reinstall with Startburst suggestions;

Code: [Select]
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.

Offline
*
Re: AMaViS (A Mail Virus Scanner)
« Reply #9 on: August 31, 2024, 02:48:45 AM »
thank you it works :)
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.

Offline
*
Re: AMaViS (A Mail Virus Scanner)
« Reply #10 on: August 31, 2024, 05:03:57 AM »
Good to hear :)