Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

BACKUP_MX.txt 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #
  2. # Postfix Admin
  3. # by Mischa Peters <mischa at high5 dot net>
  4. # Copyright (c) 2002 - 2005 High5!
  5. # Licensed under GPL for more info check GPL-LICENSE.TXT
  6. #
  7. Please follow these steps if your mailserver is used as a backup MX for some
  8. (or all) of your domains.
  9. Note: The setup described in this file only checks the domain, not the full
  10. mail address.
  11. You should use "reject_unverified_recipient" in your postfix config or setup
  12. "relay_recipient_maps" with a list of valid mail adresses on the primary mx
  13. to avoid that your backup MX accepts mails for non-existing recipient adresses.
  14. Without this, your backup MX might become a backscatter source.
  15. 1. Modify main.cf
  16. -----------------
  17. In order for Postfix to use MySQL for relay_domains add the following
  18. to your main.cf
  19. relay_domains = proxy:mysql:/usr/local/etc/postfix/mysql_relay_domains_maps.cf
  20. 2. mysql_relay_domains_maps.cf
  21. ------------------------------
  22. You will need to put this into a text file for postfix to pickup.
  23. user = postfix
  24. password = password
  25. hosts = localhost
  26. dbname = postfix
  27. query = SELECT domain FROM domain WHERE domain = '%s' AND backupmx = '1'
  28. 3. Restart Postfix
  29. -------------------
  30. When you are done make sure to restart Postfix so the changes take effect.