I recently turned on easy spam fighter and now mailman isn't working (authentication required errors).
Example error:
Relevant custombuild options
(I'm sure there's a better way [sustainable] to edit exim.conf now that custombuild is managing it, but for now I'm editing /etc/exim.conf directly and restarting exim. What is the better way, BTW?)
Changes I've made to /etc/exim.conf:
After line 153 (BLACKLIST_USERNAMES = /etc/virtual/blacklist_usernames)
After line 301 (acl_check_recipient):
After line 574:
After line 892:
(Exim conf changes adapted from http://maarten.hondelink.com/index.php/Directadmin_and_Mailman )
Example error:
Code:
2016-07-28 09:52:30 1bSlji-0001hW-4C <= [email protected] H=mailserver.example.com [xx.xx.xx.xx] P=esmtps X=TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256 CV=no S=1432 [email protected] T="Test" from <[email protected]> for [email protected]
2016-07-28 09:52:30 1bSlji-0001hW-4C => listname <[email protected]> F=<[email protected]> R=mailman_router T=mailman_transport S=1485
2016-07-28 09:52:30 1bSlji-0001hW-4C Completed
2016-07-28 09:52:32 H=(mailserver.server.com) [127.0.0.1] F=<[email protected]> rejected RCPT <[email protected]>: authentication required
2016-07-28 09:52:32 H=(mailserver.server.com) [127.0.0.1] F=<[email protected]> rejected RCPT <[email protected]>: authentication required
...
(etc. for all non-local recipients)
Relevant custombuild options
Code:
/usr/local/directadmin/custombuild/build options
...
Exim: 4.87
exim.conf update: yes, release 4.4
BlockCracking: no
Easy Spam Fighter: yes
....
(I'm sure there's a better way [sustainable] to edit exim.conf now that custombuild is managing it, but for now I'm editing /etc/exim.conf directly and restarting exim. What is the better way, BTW?)
Changes I've made to /etc/exim.conf:
After line 153 (BLACKLIST_USERNAMES = /etc/virtual/blacklist_usernames)
Code:
# Home dir for your Mailman installation -- aka Mailman's prefix directory.
MAILMAN_HOME=/usr/local/mailman
MAILMAN_WRAP=MAILMAN_HOME/mail/mailman
# User and group for Mailman, should match your --with-mail-gid switch to Mailman's configure script.
MAILMAN_USER=mailman
MAILMAN_GROUP=mailman
After line 301 (acl_check_recipient):
Code:
# Place this part after "begin acl" and the "check_recipient:" line in your exim config
# Accept bounces to lists even if callbacks or other checks would fail
warn message = X-WhitelistedRCPT-nohdrfromcallback: Yes
condition = \
${if and {{match{$local_part}{(.*)-bounces\+.*}} \
{exists {MAILMAN_HOME/lists/$1/config.pck}}} \
{yes}{no}}
accept condition = \
${if and {{match{$local_part}{(.*)-bounces\+.*}} \
{exists {MAILMAN_HOME/lists/$1/config.pck}}} \
{yes}{no}}
After line 574:
Code:
# Place this part after "begin routers" line in your exim config
mailman_router:
driver = accept
require_files = MAILMAN_HOME/lists/$local_part/config.pck
local_part_suffix_optional
local_part_suffix = -admin : -bounces : -bounces+* : \
-confirm : -confirm+* : \
-join : -leave : \
-owner : -request : \
-subscribe : -unsubscribe
transport = mailman_transport
After line 892:
Code:
# Place this part after "begin transports" line in your exim config
mailman_transport:
driver = pipe
command = MAILMAN_WRAP \
'${if def:local_part_suffix \
{${sg{$local_part_suffix}{-(\\w+)(\\+.*)?}{\$1}}} \
{post}}' \
$local_part
current_directory = MAILMAN_HOME
home_directory = MAILMAN_HOME
user = MAILMAN_USER
group = MAILMAN_GROUP
(Exim conf changes adapted from http://maarten.hondelink.com/index.php/Directadmin_and_Mailman )