-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi,

On 14-12-2010 08:40, Bobby Reyes wrote:
> I have installed qmail-ldap-1.03-20060201, OpenLDAP slapd 2.4.11,
> Courier-IMAP, simscan, maildrop, spamassasin and clamav on Debian
> Lenny.

I would recommend dovecot instead of courier. :)


> qmail-ldap is running ok but I would want to implement the following
> setup (#4 below):
> 
> 1. /var/qmail/control files:
> me:   pb.xxx.com
> locals:   pb2.xxx.com
> rcpthosts:  includes pb.xxx.com and pb2.xxx.com

qmail-smtpd reads locals(.cdb), the only use for rcpthosts is when
you want to queue messages for another server.


> 2. users' LDAP accounts have mail and mailAlternateAddress attribute
> values:
> mail:  bre...@pb.xxx.com
> mailAlternateAddress:  bre...@pb2.xxx.com
> 
> 3. mails directly addressed to the mailAlternateAddress (say
> bre...@pb2.xxx.com) is delivered locally successfully.
> 
> 4. I would want that if a mail is addressed to a user (mail: @pb.xxx.com)
> having a valid mailAlternateAddress (@pb2.xxx.com), the mail should be
> delivered locally. Else, the should be forwarded/relayed to another remote
> mail server.
> 
> Is this possible? How to enable this requirement? Currently, mails
> mentioned in #4 (with valid @pb2.xxx.com mailAlternateAddress) are being
> relayed to the remote server.

Now, there is no such logic that I'm aware of to solve your problem.
If a node has mail OR mailAlternateAddress email will be delivered.

If you enable cluster mode, you could point the entire use to a
single host.

What may solve your problem is a delivery program, like procmail or
something alike. That way, you code make some magic to check the
address and specifically forward the message to another server.


> Your suggestions on this will be highly appreciated.

I hope this helps.

Kind regards,
- -- 
Felipe Augusto van de Wiel <felipe.w...@complexopequenoprincipe.org.br>
Tecnologia da Informação (TI) - Complexo Pequeno Príncipe
http://www.pequenoprincipe.org.br/    T: +55 41 3310 1747
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBCgAGBQJNB5cDAAoJECCPPxLgxLxPIlAP/3DM1oRYzGa0emK/iXPx7TAq
WvmpdZ8VZuzHiW+ammLFYtyPS6hHWVoSkLhoGBxP//kFecAvGFnBg/1h4x6nTINZ
pSEslBJBjYRvAae6F8fHW5HUHxPLTJUeaNM1hrJfxHnxeXeQBrDLluSJNrAvm70M
z3globWjX53fAvOsl17KrLzD0Uq6SJvVQtIC12s0KydDGMA1ZwTFDLuE0zK2GsjC
wLDDo6eUv+XNr97BRGCMogoudTI//L228QdIAvdVKikkvK7xRm7vKcJ1HXviecXZ
TSxx8OrUeT9I9yOVzEGTwXapDcI061cDuANzCvf4OIDZYoDUcnkEIhKlNC5Fo16z
JPwMlBjDXUcMOsN0527AWhFsbyC7WQ1OXmI2YI6ZPI3MzUUdAHhf9iGuehKe72vo
+/iytRiGzevp6YKZER7/Ch1WthBJISD7oR19FDl6lSvuWoZKLuH1+mpwDcS6CW0e
sAIl9K/YQCGL6awqpPjh4oYUQozV8Nr4dhFQXL2hrdmylv14+ioiH2kZ7GLLGUxQ
1W5qU8QKf2UF1ViwQvjpboyYkUVGk5olIGWMovs+jSHYxtlF5+YoXPRJRcNBXbmA
KsJJnptz8O42s/vbm+LOP7eFHARrJ2vYEHOiLZk8HyQVA695MKrIu1ao4ekQ4Glw
9wMdlvyrnzVGx7t6x0au
=+H6V
-----END PGP SIGNATURE-----

Reply via email to