M. wrote, at 11/03/2008 01:51 PM: > 4. user can add *any* domain he wants to my postfix's virtual domains > maps by perl script. If that particular domain is listed in virtual > domains maps postfix will not check MX record. I want to avoid it. I > need to force postfix to use DNS before checking internal maps.
This will break troubleshooting (I migrated an MX this weekend, and relied on the ability to locally test mail delivery before changing the MX in DNS). You need to improve your provisioning process: - When you add a destination, require proof of domain ownership (confirmation from one of the contacts in the whois record, if possible). - Once ownership is verified, add the user and update a table that lists which domains they can manage. Modify your script to restrict users according to this table. - Separate your MX from your submission service. This enforces MX lookups for outgoing mail, so that messages are relayed to the proper server. It also prevents mail from being sent to your server if the domain changes its MX record without notifying you.
