I initially have setup a working qmail-server. Today I wanted to try clustering.
On SERVER-1, I have:
openldap server
imap server
qmail-ldap server
FQDN: ldap.example.com
me: ldap.example.com
locals: example.com
rcphosts: example.com
IP: 192.168.10.222
On SERVER-2, I have:
imap server
qmail-ldap server
FQDN: ldap2.example.com
me: ldap2.example.com
locals: example.com
rcphosts: example.com
IP: 192.168.10.223
On both servers, I have setup qmqpd according to
http://www.din.or.jp/~ushijima/qmail-conf/qmqp.html
The content of the file /service/qmqpd/tcp in SERVER-1 looks like:
192.168.10.223:allow
:deny
and the content of the file /service/qmqpd/tcp in SERVER-2 looks like:
192.168.10.222:allow
:deny
For both server, the qmqpd run file:
#!/bin/sh
exec 2>&1 \
envdir ./env \
sh -c '
case "$REMOTENAME" in h) H=;; p) H=p;; *) H=H;; esac
case "$REMOTEINFO" in r) R=;; [0-9]*) R="t$REMOTEINFO";; *) R=R;; esac
exec \
envuidgid qmaild \
softlimit ${DATALIMIT+"-d$DATALIMIT"} \
/usr/local/bin/tcpserver \
-vDU"$H$R" \
${LOCALNAME+"-l$LOCALNAME"} \
${BACKLOG+"-b$BACKLOG"} \
${CONCURRENCY+"-c$CONCURRENCY"} \
-xtcp.cdb \
-- "${IP-0}" "${PORT-628}" \
/var/qmail/bin/qmail-qmqpd
'
I have ldapcluster in both servers set to 1 and both servers are NATted to
their respective external IPs.
PROBLEM: When I sent an email to a user that has his mailHost pointing to
ldap2.example.com (SERVER-2), that mail will sent to SERVER-1 instead.
I am not good at troubleshooting this, I need help, please.
--
roger
---------------------------------------------------
Sign Up for free Email at http://ureg.home.net.my/
---------------------------------------------------
|