Hello everyone,
Courier-MTA working for me just fine having everything in LDAP. Just
aliases stored in LDAP do no work (local ones in
$confdir/courier/aliases work fine as well).
When I manually run the `courierldapaliasd query esmtp it...@qls.test` it
finds the addresses in the ldap db, but smtp server will not deliver to
the alias. It acepts the mail, but then in /var/log/maillog is the
following:
Feb 21 15:00:44 holub courierlocal: No such file or directory
Feb 21 15:00:44 holub courierlocal:
id=000148BC.3E5630C6.00005EA4,from=<pas...@qls.cz>,addr=<it...@qls.test>,status:
deferred
and the mail stays in mailq until it expires.
Anybody any idea what did I do wrong?
Marek
ps. here some configs I find relevant:
[root@holub root]# courierldapaliasd query esmtp it...@qls.test
maildrop: mar...@qls.test
maildrop: ji...@qls.test
[root@holub root]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 holub.qls.cz ESMTP
helo localhost
250-holub.qls.cz Ok.
250-AUTH LOGIN CRAM-MD5
250-AUTH=LOGIN CRAM-MD5 X-NETSCAPE-HAS-BUGS
250-STARTTLS
250-XVERP=Courier
250-XEXDATA
250-XSECURITY=NONE,STARTTLS
250-PIPELINING
250-8BITMIME
250-SIZE
250 DSN
expn it...@qls.test
500 <it...@qls.test> not found.
mail from: <pas...@qls.cz>
250 Ok.
rcpt to: <it...@qls.test>
250 Ok.
data
354 Please start mail input.
test
.
250 Mail queued for delivery.
quit
221 Bye.
Connection closed by foreign host.
[root@holub root]# egrep -v "(^#)|(^$)" /etc/courier/ldapaliasrc
LDAP_ALIAS 1
LDAP_SERVER 127.0.0.1
LDAP_PORT 389
LDAP_NUMPROCS 3
LDAP_BASEDN ou=mailaliases,dc=qls,dc=test
LDAP_BINDDN cn=admin,dc=qls,dc=test
LDAP_BINDPW test
LDAP_TIMEOUT 5
[root@holub root]# ldapsearch -LLL -x -D "cn=admin,dc=qls,dc=test" -w
test -b "ou=mailaliases,dc=qls,dc=test" "(objectClass=CourierMailAlias)"
dn: mail=it...@qls.test,ou=mailaliases,dc=qls,dc=test
objectClass: CourierMailAlias
mail: it...@qls.test
maildrop: mar...@qls.test
maildrop: ji...@qls.test