Differences
This shows you the differences between two versions of the page.
postfix:advance [2006/11/03 17:54] a addvrfy info |
postfix:advance [2009/05/25 00:35] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Postfix advance lavel ====== | ||
- | //see also article:// **[[postfix|Postfix]]**, | ||
- | |||
- | ===== Getting rid off spam/virus mails ===== | ||
- | * http:// | ||
- | * http:// | ||
- | * http:// | ||
- | |||
- | |||
- | ===== Address verification ===== | ||
- | |||
- | address_verify_positive_expire_time (31d) | ||
- | The time after which a successful probe expires | ||
- | from the address verification cache. | ||
- | |||
- | | ||
- | The time after which a successful address verifica- | ||
- | tion probe needs to be refreshed. | ||
- | |||
- | | ||
- | Enable caching of failed address verification probe | ||
- | results. | ||
- | |||
- | | ||
- | The time after which a failed probe expires from | ||
- | the address verification cache. | ||
- | |||
- | | ||
- | The time after which a failed address verification | ||
- | probe needs to be refreshed. | ||
- | |||
- | ==== MySQL Proxy ==== | ||
- | |||
- | Performance and reliability under high load will be much improved if you use the Postfix proxymap service with your MySQL interface. This allows MySQL query connections to be shared among Postfix smtpd processes; without it, you will need much higher-end database hardware as Postfix will need to spawn a number of SQL connections for every smtpd or cleanup process. This problem typically only shows up under high load, just when you least want to see it. | ||
- | |||
- | To access MySQL via proxymap, change the MySQL maps lines above to read (example): | ||
- | |||
- | virtual_alias_maps = proxy: | ||
- | virtual_mailbox_domains = proxy: | ||
- | virtual_mailbox_maps = proxy: | ||
- | |||
- | ===== More RBL lists and stuff ===== | ||
- | |||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | |||
- | ==== signature ==== | ||
- | If you haven' | ||
- | |||
- | (postfix: master.cf | ||
- | |||
- | In this case, the default is to filter. | ||
- | But, if coming in through 127.0.0.1 (already filtered, amavis-> | ||
- | |||
- | smtp inet n | ||
- | 127.0.0.1: | ||
- | dfilt | ||
- | argv=/ | ||
- | |||
- | ---/ | ||
- | |||
- | # Localize these. | ||
- | INSPECT_DIR=/ | ||
- | SENDMAIL=/ | ||
- | |||
- | # Exit codes from < | ||
- | EX_TEMPFAIL=75 | ||
- | EX_UNAVAILABLE=69 | ||
- | |||
- | # Clean up when done or when aborting. | ||
- | trap "rm -f in.$$" 0 1 2 3 15 | ||
- | | ||
- | # Start processing. | ||
- | cd $INSPECT_DIR || { echo $INSPECT_DIR does not exist; exit | ||
- | $EX_TEMPFAIL; | ||
- | |||
- | cat >in.$$ || { echo Cannot save mail to file; exit $EX_TEMPFAIL; | ||
- | |||
- | / | ||
- | | ||
- | | ||
- | { echo Message content rejected; exit $EX_UNAVAILABLE; | ||
- | |||
- | $SENDMAIL " | ||
- | |||
- | exit $? | ||
- | |||
- | //TODO// |