modoboa-installer icon indicating copy to clipboard operation
modoboa-installer copied to clipboard

Issues with postscreen and amavis-new on Ubuntu 20.04

Open leon-v opened this issue 4 years ago • 1 comments

Impacted versions

  • OS Type: Ubuntu
  • OS Version: 20.04
  • Database Type: PostgreSQL
  • Database version: OS default
  • Modoboa: 1.17.0
  • installer used: Yes
  • Webserver: Nginx

Steps to reproduce

Send email to host from Gmail.

Current behavior

Email being rejected by postscreen with

Oct 15 09:18:08 server postfix/postscreen[1301232]: NOQUEUE: reject: RCPT from [209.85.210.49]:43734: 450 4.3.2 Service currently unavailable; from=<[email protected]>, to=<[email protected]>, proto=ESMTP, helo=<mail-ot1-f49.google.com>

postscreen doing its job too well. The fix for this was to edit:

postscreen_dnsbl_threshold = 3

to be something higher, e.g. 10

postscreen_dnsbl_threshold = 10

in /etc/postfix/main.cf

One this issue was fixed i get this issue

Oct 15 10:50:17 server postfix/smtpd[26959]: warning: connect to proxy filter inet:[127.0.0.1]:10024: Connection refused

amavisd-new was not able to start. Checked:

> systemctl amavis status

Oct 15 10:53:41 server systemd[1]: Starting LSB: Starts amavisd-new mailfilter...
Oct 15 10:53:42 server amavis[28131]: starting. /usr/sbin/amavisd-new at xxxx.xxx amavisd-new-2.11.0 (20160426), Unicode aware, LC_ALL="C", LANG="en_US.UTF-8"
Oct 15 10:53:42 server amavis[28142]: (!)Net::Server: 2021/10/15-10:53:42 Can't connect to TCP port 10024 on ::1 [Cannot assign requested address]\n  at line 64 in file /usr/share/perl5/Net/Server/Proto/TCP.pm
Oct 15 10:53:42 server amavis[28124]: Starting amavisd: amavisd-new.
Oct 15 10:53:42 server systemd[1]: Started LSB: Starts amavisd-new mailfilter.

The fix for this was to add:

$inet_socket_bind = '127.0.0.1';

into /etc/amavis/conf.d/50-user

Expected behavior

That emails are accepted.

leon-v avatar Oct 14 '21 22:10 leon-v

Hi, could you post the output of ifconfig -a | grep ::1 and cat /etc/hosts | grep ::1 ?

Spitfireap avatar Jan 12 '23 10:01 Spitfireap