OK, I've devoted
about the last four or five days to installing and configuring this beast. I
have one question that I can't find an answer to.
In what
configuration file, environment variable, or other flag do I put the instruction
to get the q-mail server to relay the mail to?
In other words, we
have two qmail servers, and one ldap server (for now). Both are built with
qmail-ldap. One (called doc) sits in the DMZ and is Internet-facing. It just
runs qmail and qmail-smtpd. The other (sneezy) is strictly internal, and
runs qmail, qmail-pop3d, openldap, and qmail-smtpd. I have holes poked through
the firewall so it can talk to the server on the inside on 389 and
25.
What I want to do is
have doc receive a piece of mail, lookup in LDAP which pop toaster it needs
to forward the mail to, and then do it. Everything looks like it's working
perfectly. qmail-ldaplookup queries and returns the proper information, but it
always tries to deliver the mail locally. I don't know if I'm missing an
attribute in ldap or I'm missing a qmail config file.
I haven't posted any
logs because I'm not getting an error message. The ldif looks
like:
dn: uid=andym,
ou=accounts, dc=domain, dc=com
cn: Andy Testuser
sn: Testuser
objectClass: top
objectClass: person
objectClass: inetOrgPerson
objectClass: qmailUser
mail: [e-mail address protected]
cn: Andy Testuser
sn: Testuser
objectClass: top
objectClass: person
objectClass: inetOrgPerson
objectClass: qmailUser
mail: [e-mail address protected]
mailAlternateAddress: [e-mail address protected]
mailHost: internal.mail.host
mailHost: internal.mail.host
mailMessageStore:
/var/qmail/maildirs/andym
uid: andym
userPassword:
uid: andym
userPassword:
/var/qmail/control
files:
[EMAIL PROTECTED] control]#
more
*
::::::::::::::
defaultdelivery
::::::::::::::
./Maildir/
::::::::::::::
ldapbasedn
::::::::::::::
dc=domain,dc=com
::::::::::::::
ldapgid
::::::::::::::
2110
::::::::::::::
ldaplocaldelivery
::::::::::::::
0
::::::::::::::
ldapmessagestore
::::::::::::::
/var/qmail/maildirs
::::::::::::::
ldapserver
::::::::::::::
internal.mail.host:389
::::::::::::::
ldapuid
::::::::::::::
11184
::::::::::::::
locals
::::::::::::::
domain.com
::::::::::::::
me
::::::::::::::
mail.domain.com
::::::::::::::
qmail-qmqpd.rules
::::::::::::::
#
# QMQP (qmail mail queueing protocol) server rules.
# QMQP is mainly used in clusters to forward mails. The protocol accepts all
# mails by default and so it is necessary to disable this service by default.
# Only allow it for cluster hosts.
# Currently there are no useful env vars for qmail-qmqpd.
#
#192.168.0.2:allow
:deny
::::::::::::::
defaultdelivery
::::::::::::::
./Maildir/
::::::::::::::
ldapbasedn
::::::::::::::
dc=domain,dc=com
::::::::::::::
ldapgid
::::::::::::::
2110
::::::::::::::
ldaplocaldelivery
::::::::::::::
0
::::::::::::::
ldapmessagestore
::::::::::::::
/var/qmail/maildirs
::::::::::::::
ldapserver
::::::::::::::
internal.mail.host:389
::::::::::::::
ldapuid
::::::::::::::
11184
::::::::::::::
locals
::::::::::::::
domain.com
::::::::::::::
me
::::::::::::::
mail.domain.com
::::::::::::::
qmail-qmqpd.rules
::::::::::::::
#
# QMQP (qmail mail queueing protocol) server rules.
# QMQP is mainly used in clusters to forward mails. The protocol accepts all
# mails by default and so it is necessary to disable this service by default.
# Only allow it for cluster hosts.
# Currently there are no useful env vars for qmail-qmqpd.
#
#192.168.0.2:allow
:deny
::::::::::::::
rcpthosts
::::::::::::::
domain.com
::::::::::::::
rcpthosts
::::::::::::::
domain.com
::::::::::::::
[EMAIL PROTECTED] control]#
id vmail
uid=11184(vmail) gid=2110(vmail) groups=2110(vmail)
uid=11184(vmail) gid=2110(vmail) groups=2110(vmail)
Thanks!
