amavis service is running but no port 10024 and 10026
My web server can't send email out. amavis is running but no ports 10024 and 10025 instead ports 10023,10025,10027 are open.
Code:
root@web911:/etc/amavis/conf.d# netstat -tap | grep 100 Code:
(!)Net::Server: 2020/09/10-17:42:22 Can't connect to TCP port 10026 on ::1 [Cannot assign requested address]\n at line 64 in file /usr/share/perl5/Net/Server/Proto/TCP.pm On the other hand, I did a lot of search, all of them mention about amavisd service but my ubuntu-18-04.5 has amavis service only. |
Hi,
It might SE Linux that prevents Amavis to bind to ports others than 10024 and 10025. Confirm this with Code:
# semanage port -l | grep amavis Confirm this with Code:
# semanage port -l | grep 10026 Code:
# semanage port -m -t amavisd_recv_port_t -p tcp 10026 Code:
# semanage port -l | grep 10026 |
When I run
Code:
#semanage Code:
#semanage port -l | grep amavis Code:
Traceback (most recent call last): |
@tshikose
Quote:
@OP Quote:
Try to restart amavis and watch the logs to see what happens. |
I disabled ipv6
|
Quote:
Please restart amavis, check the logs and post back. |
Thank you everyone. I fixed it by adding a line to 50-user config file
Code:
$inet_socket_bind = '127.0.0.1'; |
Quote:
Anyway, glad it worked. You may mark the thread "Solved" from the thread tools on top of the page Cheers |
Hope this thread can help somebody who have suffered from amavis. Amavis has suffered me for a couple of week. Now I changed to Rspamd. It has nice web gui.
|
All times are GMT -5. The time now is 11:45 AM. |