Dear List,
We are trying to build a mail infrastructure with the following
components: -
1. postfix-2.3.3-2.1.el5_2
2. courier-authlib-pgsql-0.63.0-1.el5.mf
courier-authlib-devel-0.63.0-1.el5.mf
courier-authlib-userdb-0.63.0-1.el5.mf
courier-authlib-ldap-0.63.0-1.el5.mf
courier-imap-4.8.0-1.el5.mf
courier-authlib-mysql-0.63.0-1.el5.mf
courier-authlib-0.63.0-1.el5.mf
3. maildrop
4. cyrus-sasl-2.1.22-5.el5
5. Active Directory (Windows server 2008 R2)
The OS is RHEL 5.5 (64 bits). For external mail transaction we have a mail
gateway server with the same components as above except maildrop. This
server is kept on the DMZ we are trying to configure the system in a way so
that all POP clients coming from the Internet would hit the gateway server.
The POP3 Proxy running at the mail gateway server would direct the traffic
to the internal mail server and get the response back to the POP client.
As the authentication is being done from the Windows AD server, we have
added an attribute in the AD as mailHost and that attribute contains the
fully qualified domain name of the mail server. The ldapsearch is returning
the mailHost attribute without any problem. The FQDN of the mail server is
responding to the ping request from the mail gateway server.
The configuration that we have done are as follows:
a) In the /etc/authlib/authldaprc file we have appended the line
LDAP_AUXOPTIONS mailhost=mailHost
The content of the file is given herein for your reference
LDAP_SERVER 172.16.2.14
LDAP_URI ldap://172.16.2.14
LDAP_PROTOCOL_VERSION 3
LDAP_BASEDN cn=users,dc=tibs, dc=edu, dc=in
LDAP_BINDDN admin
LDAP_BINDPW cescnet_123
LDAP_TIMEOUT 5
LDAP_AUTHBIND 1
LDAP_MAIL mail
LDAP_DOMAIN tibs.edu.in
LDAP_GLOB_UID vmail
LDAP_GLOB_GID vmail
LDAP_HOMEDIR unixHomeDirectory
LDAP_MAILDIR unixHomeDirectory
#LDAP_DEFAULTDELIVERY defaultDelivery
LDAP_MAILDIRQUOTA mailQuotaSize
LDAP_FULLNAME cn
#LDAP_CLEARPW clearPassword
LDAP_CRYPTPW userPassword
LDAP_DEREF never
LDAP_TLS 0
LDAP_AUXOPTIONS mailhost=mailHost
b) In the /usr/lib/courier-imap/etc/pop3d file we have set POP3_PROXY=1
and PROXY_HOSTNAME=wmd02.tibs.edu.in
Where wmd02.tibs.edu.in is the hostname of the mail gateway server.
But with this configuration we are not being able to fetch mails using our
mail gateway server.
The log information is given below: -
Jul 30 17:46:18 wmd02 authdaemond: binding to LDAP server as DN 'admin'
Jul 30 17:46:18 wmd02 authdaemond: using search filter:
(mail=jaya...@tibs.edu.in)
Jul 30 17:46:18 wmd02 authdaemond: one entry returned, DN:
CN=jayanta,CN=Users,DC=TIBS,DC=EDU,DC=IN
Jul 30 17:46:18 wmd02 authdaemond: authldaplib: sysusername=<null>,
sysuserid=500, sysgroupid=500,
homedir=/home/vmail/tibs.edu.in/jayanta/Maildir, address=jayanta,
fullname=jayanta, maildir=/home/vmail/tibs.edu.in/jayanta/Maildir,
quota=<null>, options=mailHost=mail.tibs.edu.in
Jul 30 17:46:18 wmd02 authdaemond: rebinding with DN
'CN=jayanta,CN=Users,DC=TIBS,DC=EDU,DC=IN' to validate password
Jul 30 17:46:18 wmd02 authdaemond: authentication bind successful
Jul 30 17:46:18 wmd02 authdaemond: Authenticated: sysusername=<null>,
sysuserid=500, sysgroupid=500,
homedir=/home/vmail/tibs.edu.in/jayanta/Maildir, address=jayanta,
fullname=jayanta, maildir=/home/vmail/tibs.edu.in/jayanta/Maildir,
quota=<null>, options=mailHost=mail.tibs.edu.in
Jul 30 17:46:18 wmd02 pop3d: proxy enabled, but no proxy host defined for
jayanta
Jul 30 17:46:18 wmd02 pop3d: LOGIN, user=jayanta, ip=[::ffff:124.30.199.58],
port=[11531]
Jul 30 17:46:18 wmd02 pop3d: LOGOUT, user=jayanta,
ip=[::ffff:124.30.199.58], port=[11531], top=0, retr=0, rcvd=24, sent=165,
time=0
Kindly give us some pointer on how we should try and debug the issue. We are
not getting much pointer by searching the net.
With regards,
Goutam
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users