Hello Everyone,
 
I am trying to setup a qmail-ldap setup to the following scenario wherein I have 2 servers - One server is hosted at my local office premises and another server is colocated at a data center. I have total 1000 users in my company, out of which 300 users are in head office and the rest 700 users are scattered across the country in different remote regions. The server for head office users is a local server and will be used as a local imap server too. The colocated server will serve mostly POP3 and sometimes IMAP access to users as per my choice.
 
I am facing some problem regarding the setup of local server at my H.O - Consider this scenario
 
1. All mails for my domain example.com will be received on the IDC server, and .qmail files are being used to forward mails of all head office users to a common catchall account for my domain, lets say [EMAIL PROTECTED]
 
2. A user account on the local Server will download all these mails using fetchmail to a mail directory.
 
3. These mails will then be re-delivered by procmail to the appropriate local head office users' mailboxes.
 
4. Suppose, when a local head office user sends a mail to someone outside the head office, it will be forwarded to  the IDC server as all rest of the mail accounts are hosted on the IDC server.
 
While I am sure of implementing step 1 and 2, I am totally confused about implementing step 3 and 4. How do I make procmail deliver received mails to user's email inboxes?....I have read Procmail documentation just to get a hang of how procmail does....I have gone through some receipes in some online tutorials, but no one matches close to my requirement.... The main question I have is - How will my mail system find out if the user to whom I am sending mail is a local user or remote user, and that whether his account exists on IDC server and not, so accordingly the mail gets forwarded to colocated server automatically...?
 
I would highly appreciate if anyone can guide me on how and what configuration will be needed in qmail-ldap setup in order to achieve step 4 ...For step 3, I am aware that probably expecting help from a qmail-ldap list on procmail might be too big an ask, but if someone can guide me to a procmail tut around that could have me get closer...it would be great.
 
Thanks n Regards,
 
Amit

Reply via email to