Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

amavisd stopped working after updating Gentto perl modules

11 views
Skip to first unread message

Christian Rößner

unread,
May 31, 2013, 11:52:22 AM5/31/13
to
Hi,

I am running amavisd on Gentoo hardened. Two days ago I upgrade the @world-set and since that amavsid does not work with my LDAP anymore:

May 31 17:37:11 mx0 amavis[25881]: (25881) Request: AM.PDP /var/amavis/tmp/afXXXXCiVpd4: <ro...@mon.deltaweb.de> -> <christian@roe
ssner-net.com>
May 31 17:37:11 mx0 amavis[25881]: (25881) Checking: DHAhpZauCKH6 AM.PDP-SOCK [193.239.107.23] <ro...@mon.deltaweb.de> -> <christia
n...@roessner-net.com>
May 31 17:37:11 mx0 amavis[25882]: (25882) (!)connect_to_ldap: unable to connect to host ldap://db.roessner-net.de
May 31 17:37:11 mx0 amavis[25882]: (25882) (!!)TROUBLE in check_mail: check-banned FAILED: connect_to_ldap: unable to connect at (
eval 108) line 149.
May 31 17:37:11 mx0 amavisd-milter[4575]: 3bMVCC3jp8zGp2X: log_id=25882
May 31 17:37:11 mx0 amavisd-milter[4575]: 3bMVCC3jp8zGp2X: return_value=tempfail
May 31 17:37:11 mx0 postfix/cleanup[26028]: 3bMVCC3jp8zGp2X: milter-reject: END-OF-MESSAGE from relay.deltaweb.de[193.239.107.23]:
4.5.0 Error in processing, id=25882, check-banned FAILED: connect_to_ldap: unable to connect at (eval 108) line 149.; from=<root@
mon.deltaweb.de> to=<chri...@roessner-net.com> proto=ESMTP helo=<relay.deltaweb.de>


This is the part of amavisd which was working perfectly:

$enable_ldap = 1;
$default_ldap = {
hostname => [ 'ldap://db.roessner-net.de' ],
tls => 1,
base => 'ou=people,ou=it,dc=roessner-net,dc=de',
scope => 'sub',
verify => 'require',
clientcert => '/etc/ssl/certs/mx0.roessner-net.de.pem',
clientkey => '/etc/ssl/private/mx0.roessner-net.de.key.pem',
cafile => '/etc/ssl/certs/ca-certificates.crt',
sasl => 1,
sasl_mech => 'EXTERNAL',
query_filter => '(&(objectClass=rnsMSPostfixAccount)(rnsMSRecipientAddress=%m))',
};

Both, db.roessner-net.de.pem and mx0…pem are still valid, so it is nothing with the certs. Also all other LDAP services as i.e. opendkim still works with LDAP on the same machine.

The Gentoo system is a stable system. Only amavisd itself is ~amd64:

mail-filter/amavisd-new-2.8.0

Any ideas what could have changed? Which perl module does handle the LDAP stuff?

Thanks in advance

-Christian Rößner

--
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein

Christian Rößner

unread,
Jun 1, 2013, 5:54:01 AM6/1/13
to
> This is the part of amavisd which was working perfectly:
>
> $enable_ldap = 1;
> $default_ldap = {
> hostname => [ 'ldap://db.roessner-net.de' ],
> tls => 1,
> base => 'ou=people,ou=it,dc=roessner-net,dc=de',
> scope => 'sub',
> verify => 'require',
> clientcert => '/etc/ssl/certs/mx0.roessner-net.de.pem',
> clientkey => '/etc/ssl/private/mx0.roessner-net.de.key.pem',
> cafile => '/etc/ssl/certs/ca-certificates.crt',
> sasl => 1,
> sasl_mech => 'EXTERNAL',
> query_filter => '(&(objectClass=rnsMSPostfixAccount)(rnsMSRecipientAddress=%m))',
> };
>
I don't know why, but I changed my config to this:

$enable_ldap = 1;
$default_ldap = {
hostname => [ 'db.roessner-net.de' ],
scheme => 'ldap',
version => 3,
localaddr => '193.239.107.41',
inet6 => 0,
tls => 1,
base => 'ou=people,ou=it,dc=roessner-net,dc=de',
scope => 'sub',
verify => 'require',
clientcert => '/etc/ssl/certs/mx0.roessner-net.de.pem',
clientkey => '/etc/ssl/private/mx0.roessner-net.de.key.pem',
cafile => '/etc/ssl/certs/ca-certificates.crt',
sasl => 1,
sasl_mech => 'EXTERNAL',
query_filter => '(&(objectClass=rnsMSPostfixAccount)(rnsMSRecipientAddress=%m))',
};

and now it works again. What could have changed here?
0 new messages