Upload to PMG email list from Carbonio Mail Server to check against

alexc

Renowned Member
Apr 13, 2015
139
4
83
I'm planning to set up two PMGs in front of my Carbonio Mail Server (the one that "formerly Zimbra"). My goal is to make the PMGs fully autonomous, so that even if the mail server goes down, the PMGs can continue to receive emails and forward them to Carbonio once it's back online.

To achieve this, I want to maintain a list of all email addresses for which we will receive mail. If an incoming email's destination is not on this list, we'll simply reject the message saving bandwidth and CPU cycles. However, I can't find a way to use a text file (or any other updatable address list) on the PMG side for this purpose (the only DB that PMG can use is LDAP and I'd prefer not to maintain one more LDAP server for this purpose). The only solution I can think of is to create each mail address and domain from the mail server as objects in the PMG.

Questions:

1. Is my approach correct, or is there a better way to handle this?

2. If creating objects in PMG is the best solution, how can I do this efficiently? Is there an API or command-line utilities available? (While command-line might not be the most elegant solution, I'm open to any method that works.)

I appreciate any advice or suggestions you can offer. Thank you in advance for your help!