Differences
This shows you the differences between two versions of the page.
postfix:advance [2006/08/03 12:00] a mysql proxy |
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:// | ||
- | |||
- | |||
- | ==== 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 | ||
- | send ' | ||
- | |||
- | In this case, the default is to filter. | ||
- | But, if coming in through 127.0.0.1 (already filtered, amavis-> | ||
- | and back) no filter. | ||
- | |||
- | smtp inet n | ||
- | -o content_filter=dfilt: | ||
- | 127.0.0.1: | ||
- | |||
- | dfilt | ||
- | flags=Rq user=filter argv=/ | ||
- | ${sender} -- ${recipient} | ||
- | |||
- | ---/ | ||
- | # 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; | ||
- | |||
- | / | ||
- | | ||
- | | ||
- | http:// | ||
- | { echo Message content rejected; exit | ||
- | $EX_UNAVAILABLE; | ||
- | |||
- | $SENDMAIL " | ||
- | |||
- | exit $? | ||
- | |||
- | //TODO// | ||
- | |||