Dear List, We are planning to run a mailing system using postfix, courier imap,maildrop and openldap. There will be two mail servers each server catering to a defined set of users. Thus we would need to deliver the mails depending on the location of the user. Once a mail reaches the system, we need to take a decision regarding where we have to deliver the mail based on the information kept in the ldap server.
For example let us assume that the user a...@demo.com is using the mailserver Server-1 and the user e...@demo.com is using the mailserver Server-2. As per the MX record pointing all mails reaches Server-1. Thus for a mail to be delivered to a...@demo.com, the Server-1 has to hand it over to the local delivery agent and a mail meant for e...@demo.com, Server-1 needs to send it to Server-2. How we can achieve this? Any pointer in the matter is requested. With regards, Goutam