Hi.

I have a secondary MX server with qmail that I'm migrating to postfix. Currently, my qmail server checks RCPT TO addresses against a plain text file that contains all the valid email accounts for some of the domains that is making MX-backup for. That "plain-text" file is scp'ed from the main server.

As I'm migrating it to postfix, I wonder if it's possible to do the same in postfix.

To summarize it, currently I have 2 files called:

valid_accounts.txt: a list of valid accounts in the primary MX.
domains_to_check_user.txt: Holds a list of domains. Server only checks RCPT against valid_accounts.txt for the domains present in this file.

When a new email arrives, if the destinatary domain is in "domains_to_check_user.txt", then I check the RCPT TO against "valid_accounts.txt" (and return NO SUCH USER or ACCEPT the email).

If the domain is not in "domains_to_check_user.txt", I accept it (if it's in qmail's rcpthosts's, of course).

This way, I'm rejecting thousands of email messages directed to non-existent accounts in our main domains and sent directly to our MX2 server (as it cannot check if the account exists without this method).

Is there any way of doing something similar in postfix (maintaining domains and accounts in 2 different files would be nice)?

Thanks a lot.

--
Santiago Romero


Reply via email to