|
发表于 2016-2-11 22:46:10
|
显示全部楼层
- [hide]host-name sostow.com
) d' h3 R! E5 y1 A% Z1 D# `% g/ `0 C
# s f! g* u) T2 o/ u, D- ############################################################################& G; F4 M7 M% T5 o' _; _3 R0 O8 }
- # BEGIN: ISP rules
. E1 L% J- M( y; b& O3 ^( { - ############################################################################9 P7 ?$ L/ ~: d$ H* [
9 G1 h0 q8 m7 ^/ H- # domains that resolve to mx?.hotmail.com1 ^( }9 K9 M$ W, r
- domain-macro hotmail hotmail.com, msn.com, hotmail.co.uk, hotmail.fr, live.com, hotmail.it, hotmail.de, email.msn.com
) {& a* U2 z# n: K - <domain $hotmail>
5 q; s* V9 X1 c9 z) A6 e - max-smtp-out 1 # prevent "exceeded the connection limit"
! g6 k1 O' N" z% a9 \" C+ P' e0 M - max-msg-rate 250/h # prevent "exceeded the rate limit"$ k% m* s- \: Z0 N) V9 m* ]8 y X
- </domain>( g5 V% f8 {2 Y4 |
; ^; a% F* R; _/ E% o- B- # domains that resolve to ?.mx.mail.yahoo.com
2 }+ b/ e3 \ {$ N7 m/ U$ E# B( | - domain-macro yahoo yahoo.com, yahoo.ca, rocketmail.com, ymail.com, yahoo.com.au, geocities.com, yahoo.com.mx, yahoo.com.br
9 \2 H+ M% v: q/ o - <domain $yahoo>
5 D3 {. c+ g, N0 t - max-msg-per-connection 2 # yahoo policy
( D0 k1 g# @ n2 m! f2 j - max-msg-rate 250/h # prevent "exceeded the rate limit": w# |! P1 }# S' Z) u& R0 j
- </domain>
6 z1 U/ `8 A* K
4 a8 N% I8 O `- # domains that resolve to mailin-0?.mx.aol.com# I. m: D+ k+ T; B
- domain-macro aol aol.com, aim.com, netscape.net, cs.com, mail.com, wmconnect.com, icqmail.com, email.com, usa.com: j8 F( u5 H; Y4 s B4 N5 d
- <domain $aol>
( R0 N: P) ]( J! y5 G - max-msg-rate 250/h # prevent "exceeded the rate limit"
( T/ b3 @ _: G/ S4 y4 e' P - </domain>' d8 U6 w- U% b
- , t2 n/ B9 I6 p O% w
- # domains that resolve to (alt?.)gmail-smtp-in.l.google.com
3 {; L6 P9 }2 M& i0 Z - domain-macro gmail gmail.com, googlemail.com+ y! H! z }) h! `/ k' p$ I
- <domain $gmail>
0 E! K0 F" Z3 E6 v' b4 r8 k; Z - max-msg-rate 250/h # prevent "exceeded the rate limit") T" n" a) O' A0 p3 I! p
- </domain>) @! J6 o! d% b6 Z6 W1 g
3 h$ e; J& P" f) {) M- # default domain settings
. w/ r; o" R$ r: G7 ~9 L - <domain *>
/ s5 X! i7 T5 p# I1 t: _4 `2 r2 z& M - max-smtp-out 2 # default be nice on concurrent connections
) d/ ]; e* k9 g( H8 @+ R - max-msg-per-connection 100 # max 500 mails in one session+ `" E8 q9 V. N$ y& F2 t
- max-errors-per-connection 10 # avoid 'too long without data command' error. F* y2 R3 U; D# u6 m
" {/ {4 a* i& _/ s7 m- b- max-msg-rate 10000/h) Q5 T6 J) N9 i& C* K
1 F5 T0 D& h4 a% @' J- bounce-upon-no-mx yes # proper mail domains should have mx
" T. ^( \* ~, |0 u! u# ^" v7 E - assume-delivery-upon-data-termination-timeout yes # avoid duplicate deliveries
9 W1 a: m1 E9 f0 L0 t, P @ - retry-after 10m # typical greylisting period
4 p4 Q! m. J9 R3 q/ }3 r' W - bounce-after 15d # default 4d12h/ L1 s: r4 X, n& T, c
- smtp-pattern-list blocking-errors
' k0 S# y" @9 N% N& J/ w - backoff-max-msg-rate 1/m # send only regular tries during backoff (default unlimited)3 i& n& h2 W, E( i! i1 {3 `" O4 ^
- backoff-retry-after 20m # retry at least every 20m (default 1h)
/ z( V: _; ]2 v9 \% ]% Y( e - backoff-notify "" # disable backoff notifications8 Z9 H h! {( V. w
- backoff-to-normal-after-delivery yes # revert to normal asap (default no), Y8 k- _2 q4 g! g' W3 V0 U, R
- backoff-to-normal-after 1h # always revert to normal after 1h (default never)5 {1 }1 j: c. e
; z! C% p4 _1 u- dk-sign yes
. D1 A# E( ` @& k5 c* [& E - dkim-sign yes
' v: U# j5 D* o" r5 J - </domain>
1 S. `2 j H0 t - ( q3 G+ e, z* O9 D7 V* Q- V
- ############################################################################
+ B( Z, K$ E, Q7 o; L& o' \ - # END: ISP rules
) M: l0 U4 f- b ~6 F* W0 Y% ~# J, W' R - ############################################################################- n7 Q. F0 B$ {
- " V6 T" m8 t7 P- l n
- ! K6 w, N |* J% h/ c# V, f1 X
2 }4 P8 u% V+ j) {% z, ?
9 l1 `! o4 e6 Y9 t& F2 k- 1 @) A2 ]8 Q9 f, J" x8 Z
- ############################################################################! ?5 ?* j( q+ p
- # BEGIN: BACKOFF RULES
) d% D8 c5 u. T" N0 v8 { - ############################################################################
* E' @: T G4 H& t$ `
7 x% Q C% @6 g# P- <smtp-pattern-list common-errors> 1 h2 x0 ]. w- F8 U( \8 K: G
- reply /generating high volumes of.* complaints from AOL/ mode=backoff 0 Q: B, \2 ?) |' N1 v* @
- reply /Excessive unknown recipients - possible Open Relay/ mode=backoff
& C1 N8 Y* L+ S - reply /^421 .* too many errors/ mode=backoff
3 l1 a. I8 }% \/ ~( d - reply /blocked.*spamhaus/ mode=backoff
5 X- g8 Q7 m- [ - reply /451 Rejected/ mode=backoff , f9 ^0 |4 l a" ?+ i( L1 l
- </smtp-pattern-list>7 _8 i0 M$ ~# S6 B1 p- Q
- 9 D2 a) Y% P2 F2 S, `
- <smtp-pattern-list blocking-errors>$ s% i7 ^5 ^ W% m0 {% n6 U
- #
, E/ F) ^& ~" I' L g* d0 e" i9 f2 ^ - # A QUEUE IN BACKOFF MODE WILL SEND MORE SLOWLY
( l! V2 ?, I! x% C+ S3 ] - # To place a queue back into normal mode, a command similar
" p2 W8 k+ T) P* ]; D! r0 t" Z - # to one of the following will need to be run:; `- N U; G2 x5 m* q
- # pmta set queue --mode=normal yahoo.com) P' r. g6 s9 S8 x& T4 B i
- # or
5 e. D, @# p3 J2 c - # pmta set queue --mode=normal yahoo.com/vmta1
& B: }* c9 C; m0 t; q - #9 j2 P3 S7 M& b0 j e
- # To use backoff mode, uncomment individual <domain> directives
) P6 V4 N% c: Q" H5 c9 E - #, K5 w/ E# N4 Q4 F' A
- #AOL Errors9 f9 L/ Q6 F! e* M' u. y
- reply /421 .* SERVICE NOT AVAILABLE/ mode=backoff
, A# w* q% y- H* z* ?8 s" k - reply /generating high volumes of.* complaints from AOL/ mode=backoff, ~9 G% }. }( h; T. R5 h
- reply /554 .*aol.com/ mode=backoff
3 a& v/ ~; s' w! r1 @ - reply /421dynt1/ mode=backoff
1 \( I7 m! [% y0 x5 ]( i - reply /HVU:B1/ mode=backoff2 d7 e* Z& W' N6 v! @
- reply /DNS:NR/ mode=backoff2 s# S9 f6 t% g- t/ v3 E
- reply /RLY:NW/ mode=backoff; y; J4 }* ?" }, C5 E# Y/ {
- reply /DYN:T1/ mode=backoff8 V7 ]3 f) O$ W. L% ~# }2 e9 \+ h% L
- reply /RLY:BD/ mode=backoff
' O5 y+ j* S, f0 [+ F" H2 T - reply /RLY:CH2/ mode=backoff
/ T* V8 S& U; N ^1 z - #3 U/ ^/ Q: ~' C+ m |1 E0 s
- #Yahoo Errors" ~6 m( r% X: l9 J
- reply /421 .* Please try again later/ mode=backoff
/ |8 k0 V3 t4 Y7 s* `! N* \: s - reply /421 Message temporarily deferred/ mode=backoff J: I' _; L5 O/ E0 \2 |
- reply /VS3-IP5 Excessive unknown recipients/ mode=backoff+ F3 y! r" R% Z4 C) E
- reply /VSS-IP Excessive unknown recipients/ mode=backoff
* ~6 ?- b! R$ t - #* I7 D2 T) U# ?0 E
- # The following 4 Yahoo errors may be very common
' }: y! T& Y) I3 s# m7 _$ r - # Using them may result in high use of backoff mode6 v$ Z9 o4 r1 c# S6 V; O
- #
# j4 D5 M! Y5 J1 M+ Z6 | - reply /\[GL01\] Message from/ mode=backoff
! I: x& f( E8 Q5 ]. J4 [& Q: t - reply /\[TS01\] Messages from/ mode=backoff$ V) A7 ^3 C: j. k
- reply /\[TS02\] Messages from/ mode=backoff' R6 {8 F, L9 g5 f! S
- reply /\[TS03\] All messages from/ mode=backoff
7 `( l- A. N# \* B P - #
" x, e' N' ]. s4 x; o) e - #Hotmail Errors
0 l) i; S; v. G, i5 ]3 g* R - reply /exceeded the rate limit/ mode=backoff, }2 {5 P8 s! K! }: C% e$ e
- reply /exceeded the connection limit/ mode=backoff
7 [9 R. L/ M* E% H3 O- }2 h - reply /Mail rejected by Windows Live Hotmail for policy reasons/ mode=backoff. ?; ]( V* v0 I3 Z: V
- reply /mail.live.com\/mail\/troubleshooting.aspx/ mode=backoff9 b b0 n! a/ h1 v' W* P; f
- #
2 I2 J* L; [& I& z& L; T5 w# u - #Adelphia Errors
, M$ T3 T0 ~+ D- p0 ^( g4 L, U - reply /421 Message Rejected/ mode=backoff w) X3 h/ i9 @2 l; H& v
- reply /Client host rejected/ mode=backoff8 y- _% n* m# Y2 g7 j% o( J
- reply /blocked using UCEProtect/ mode=backoff
! y- s6 Z `9 f: y - #
5 [+ z3 M5 O2 w# p% ~4 P: b - #Road Runner Errors5 X0 ?5 _0 p0 F6 l7 [% B" l. D
- reply /Mail Refused/ mode=backoff
6 N7 t$ n4 k# h4 i' c* z - reply /421 Exceeded allowable connection time/ mode=backoff$ V9 J8 Y+ T! p# L3 j
- reply /amIBlockedByRR/ mode=backoff3 l2 B; p1 U7 C1 n) s+ U
- reply /block-lookup/ mode=backoff6 h' a7 {. F5 V G: h* J: k
- reply /Too many concurrent connections from source IP/ mode=backoff
6 L" |% F. h2 `6 F) Y& p2 a- ~ - #) ? ~/ L% [# Z U8 K2 U& h
- #General Errors
2 | [7 N0 V8 C S - reply /too many/ mode=backoff6 ^8 R' |/ Z2 R1 W$ l! u
- reply /Exceeded allowable connection time/ mode=backoff V; G# g# Z( e! ~$ x
- reply /Connection rate limit exceeded/ mode=backoff D& E F; p6 I" a
- reply /refused your connection/ mode=backoff! q0 b% O1 @2 B$ {8 L* T8 O
- reply /try again later/ mode=backoff
8 a3 Q2 H i; e5 m - reply /try later/ mode=backoff' X3 Y) u0 q) I1 y
- reply /550 RBL/ mode=backoff7 K3 u) y/ i9 D2 ~* ]2 \4 _
- reply /TDC internal RBL/ mode=backoff
* g1 g( @8 B" m* q4 H - reply /connection refused/ mode=backoff
7 S1 y; C5 Q+ X+ e - reply /please see www.spamhaus.org/ mode=backoff
4 R" S8 ?/ y; K# Q3 M: j, _ - reply /Message Rejected/ mode=backoff
0 ~9 v9 _ V; X f4 g) ^4 i. w - reply /refused by antispam/ mode=backoff
3 Z* u* G/ s% {0 G& F0 l. @; C9 ^2 f$ ? - reply /Service not available/ mode=backoff, C# Z0 m4 a. ~; W2 L
- reply /currently blocked/ mode=backoff
* L$ L( `* X& _6 n; @' c. B - reply /locally blacklisted/ mode=backoff
9 o% f$ {3 E) Y7 s# D - reply /not currently accepting mail from your ip/ mode=backoff; L$ o; d% _$ Q3 S% {
- reply /421.*closing connection/ mode=backoff
7 ]0 ~5 A' F$ A1 ] - reply /421.*Lost connection/ mode=backoff
, \7 _* C$ g( F - reply /476 connections from your host are denied/ mode=backoff
( ]3 C; L' x, G @% R+ N+ |, v - reply /421 Connection cannot be established/ mode=backoff
& v( J3 n# m3 W2 \- k) g - reply /421 temporary envelope failure/ mode=backoff
; j1 W: ^5 ~& h7 N- }2 Y9 I - reply /421 4.4.2 Timeout while waiting for command/ mode=backoff/ F$ ^1 E& {! o! e, x5 i- a( R; M
- reply /450 Requested action aborted/ mode=backoff2 J3 p1 }* }; X" R
- reply /550 Access denied/ mode=backoff
5 ^/ G: ^( }3 u! L/ t, p - reply /exceeded the rate limit/ mode=backoff
$ a5 K, H7 L+ s- j" M0 `; m+ M - reply /421rlynw/ mode=backoff
! b; G/ z& O3 W0 n) C - reply /permanently deferred/ mode=backoff% \/ O5 F$ L4 @! I; D) Y
- reply /\d+\.\d+\.\d+\.\d+ blocked/ mode=backoff
7 _# l! H: U0 m: P( R, O - reply /www\.spamcop\.net\/bl\.shtml/ mode=backoff5 V7 h B* z' C( T7 a# B
- reply /generating high volumes of.* complaints from AOL/ mode=backoff
2 ]8 F+ n1 f2 i* a - reply /Excessive unknown recipients - possible Open Relay/ mode=backoff
4 T1 c/ d I6 M" r) C& [ - reply /^421 .* too many errors/ mode=backoff
7 K3 ]8 Q* P2 E6 W6 {- a5 s- l# t - reply /blocked.*spamhaus/ mode=backoff : Y: O& G* E& j# H6 M
- reply /451 Rejected/ mode=backoff # }0 b7 U g9 t) Q
- </smtp-pattern-list>; u7 a$ J0 _" I J8 Q& K0 z/ A
% m; J- _" J" c; M# Q9 ?- ############################################################################2 u$ X' p( f! f2 C8 w
- # END: BACKOFF RULES
2 @/ z S! D9 M8 I: T - ############################################################################
; H0 `# u* Y: @( h! d - 7 }! @/ Y( p) \) I; p8 D; f
9 F" q( V+ g1 Z5 Q
, _' p: S }) o4 {3 _ G
# G }' J$ |" c. u/ J/ P
4 V2 u* A% {, m- ############################################################################
9 \, H, ^* f5 k - # BEGIN: BOUNCE RULES4 w/ c2 O$ L; J8 g( K
- ############################################################################
: k0 i" @ q) Y* h# y - 4 S: s# n; p5 n' j
- <bounce-category-patterns>
( {2 N0 o( f, v. V - /spam/ spam-related
8 D, t' o: Q% E& y1 h. o - /junk mail/ spam-related' |2 H( l W- c5 E/ {
- /blacklist/ spam-related
( F2 b6 T/ d% I" a( N# j* ]$ R - /blocked/ spam-related1 P# X4 F8 `! b0 O% l5 ?5 a
- /\bU\.?C\.?E\.?\b/ spam-related
3 A7 ^1 ?" U Z4 l; j, b+ W - /\bAdv(ertisements?)?\b/ spam-related
3 [, I! i. ]; h2 P% K" a - /unsolicited/ spam-related
( {6 S3 C8 ~1 Q- M - /\b(open)?RBL\b/ spam-related
8 c2 q2 x& f# _5 t1 @9 z - /realtime blackhole/ spam-related0 G2 h. {3 J% ]4 s( k7 P
- /http:\/\/basic.wirehub.nl\/blackholes.html/ spam-related
2 y$ t9 J; o& K) _- e - /\bvirus\b/ virus-related
5 r3 u3 U4 p: X( ?1 i - /message +content/ content-related& ^! Y3 x, t _9 w
- /content +rejected/ content-related% P: S. `9 }# z; o: J6 v
- /quota/ quota-issues! W' d d1 b, f6 ]
- /limit exceeded/ quota-issues# _* b; ~3 T2 Z3 A% ^
- /mailbox +(is +)?full/ quota-issues0 R4 ?7 t+ u! \. W) g( p% e9 F/ l
- /\bstorage\b/ quota-issues
. c' [ R' ]$ E; Q4 a - /(user|mailbox|recipient|rcpt|local part|address|account|mail drop|ad(d?)ressee) (has|has been|is)? *(currently|temporarily +)?(disabled|expired|inactive|not activated)/ inactive-mailbox9 b8 N* x1 _3 H5 a& W
- /(conta|usu.rio) inativ(a|o)/ inactive-mailbox
# |: q3 v$ c Q8 ^- p - /Too many (bad|invalid|unknown|illegal|unavailable) (user|mailbox|recipient|rcpt|local part|address|account|mail drop|ad(d?)ressee)/ other
. ^; f& O8 I8 }& l/ X2 g. |3 }- }! i - /(No such|bad|invalid|unknown|illegal|unavailable) (local +)?(user|mailbox|recipient|rcpt|local part|address|account|mail drop|ad(d?)ressee)/ bad-mailbox: B) h" C4 R: E8 O6 v6 l
- /(user|mailbox|recipient|rcpt|local part|address|account|mail drop|ad(d?)ressee) +(\S+@\S+ +)?(not (a +)?valid|not known|not here|not found|does not exist|bad|invalid|unknown|illegal|unavailable)/ bad-mailbox
+ q/ s" h' B1 y2 ^$ G3 R @ - /\S+@\S+ +(is +)?(not (a +)?valid|not known|not here|not found|does not exist|bad|invalid|unknown|illegal|unavailable)/ bad-mailbox
/ F! o" ?0 `3 R6 Z* n0 p - /no mailbox here by that name/ bad-mailbox
4 q9 {" b( N8 F$ U2 |1 r, ?/ @ - /my badrcptto list/ bad-mailbox
8 ?9 K) K" z; Y' O - /not our customer/ bad-mailbox
7 J- `2 C# z) |( {; Z3 I - /no longer (valid|available)/ bad-mailbox. T$ H0 x3 X0 L5 ?" d8 q
- /have a \S+ account/ bad-mailbox
( ?7 `% a5 n2 [# k6 g5 q+ R - /\brelay(ing)?/ relaying-issues" `# d" j$ t7 | S% Z
- /domain (retired|bad|invalid|unknown|illegal|unavailable)/ bad-domain. i: Q8 h0 ` [) z/ `7 s
- /domain no longer in use/ bad-domain
1 |" C( k& ], y; A - /domain (\S+ +)?(is +)?obsolete/ bad-domain
2 j; v. t* D' y8 J8 s, R - /denied/ policy-related4 C6 p- U4 _6 O* v5 y1 u
- /prohibit/ policy-related2 r& p, i9 Q6 v) V* N1 ]) X; Z
- /rejected/ policy-related
7 Z0 u/ U) [+ _/ z6 M, d - /refused/ policy-related( e: H/ h. p0 @9 d2 H
- /allowed/ policy-related' g% Q' Q4 R2 q, s1 ]" Y, Q9 X
- /banned/ policy-related5 t0 |; `0 @+ R" [' G( V' h
- /policy/ policy-related+ D% C X, _0 | e ~1 P
- /suspicious activity/ policy-related$ P. c9 [$ y' S. N8 }
- /bad sequence/ protocol-errors
+ o0 G u0 X8 ?/ D/ K& Z0 L - /syntax error/ protocol-errors. \! b; i) f; q5 a0 @* v2 i
- /\broute\b/ routing-errors/ D3 j4 \$ m& E: K0 i; {
- /\bunroutable\b/ routing-errors4 U5 w% J; T, u' U& R7 ]7 @
- /\bunrouteable\b/ routing-errors
1 h& z5 O$ L9 `' X7 R! p - /^2.\d.\d/ success6 V# V. w) Q; J$ G/ I; U
- /^[45]\.1\.1/ bad-mailbox0 ]% s, A) h! [' G1 @! x
- /^[45]\.1\.2/ bad-domain+ x* }0 P* {8 Y$ U
- /^[45]\.3\.5/ bad-configuration6 k3 C' o% P @% e& ~) K/ n5 D* R
- /^[45]\.4\.1/ no-answer-from-host& C# |; O: `8 a8 M9 H+ A
- /^[45]\.4\.2/ bad-connection+ L, r/ L5 q* n. A& n+ L& d3 x
- /^[45]\.4\.4/ routing-errors
, N! E) O" X& m- N9 `( a" a8 n+ j/ W - /^[45]\.4\.6/ routing-errors
# V" E! {+ @ n - /^[45]\.4\.7/ message-expired+ I. n* g* k$ }) K3 J( c5 m% S, l* j
- /^[45]\.7\.1/ policy-related
: c- J) [0 j9 B' n4 t9 v$ { - // other # catch-all
6 `& }$ S; `5 _ L - </bounce-category-patterns>' t; l# y8 z* L' _! P& d
- 1 t2 `# [2 t5 ~* s( l
- ############################################################################; I$ R- K0 t" X- i$ V( S) r
- # END: BOUNCE RULES; ?7 |9 n7 r- P; w R
- ############################################################################( L# q/ P0 f* P) f( h
- 0 [* [/ p) E; C2 K
- 9 p( ^6 l# C( F4 c, y1 O
- ############################################################################: n5 e% j+ @0 ^% b9 ]) J
- # BEGIN: OTHER OPTIONS) u% A; d e( o% O
- ############################################################################4 M4 `% G, q4 H$ E- E( }( h
- / {. f4 ?+ @! _/ l& @
- postmaster [email protected]) @% X& j% u7 s% I8 |
- smtp-port 2525 W2 L& k: L) T- I
6 {8 r% \, }* V ]! m. A* Q* h- <source 0/0>
: v1 {& Q0 q9 x - allow-unencrypted-plain-auth yes
: U1 ]# l$ n1 {( w, H! N4 n9 F - </source>
. s% C& K- T9 Z/ P0 y0 k - sync-msg-create false
6 Z$ {4 X7 d& X. K7 K( Z0 a% \3 I* i - sync-msg-update false4 M! J5 j% p3 d1 M7 t
- run-as-root no
0 m7 }/ ~! I" \9 k, K - log-file /var/log/pmta/log # logrotate is used for rotation
* `$ t3 {% L7 U( O - 8 Q- O- U. D; ~; S- b4 u; A7 _& Q
- <acct-file /var/log/pmta/acct.csv>5 m+ ?9 {2 o$ V. V" `- x: |
- # move-to /opt/myapp/pmta-acct # configure as fit for your application% B/ T! m9 r. Y+ }* ~9 _: {
- # move-interval 5m _# } u* I% F" q, i3 s9 t x
- max-size 50M
# A7 D" e2 U3 g9 @, B8 N: c8 ^ - </acct-file>
+ {- V5 Y' Z }# Z6 p3 n0 W V T
% `7 o e1 A" C5 j- # transient errors (soft bounces)
# b& k- J; @) g3 q9 N5 D9 m6 X, E/ f - <acct-file /var/log/pmta/diag.csv>
2 O8 f% y6 s) G3 f* f - move-interval 1d
/ c% o, d4 F' T4 s" a - delete-after never
. ?) M7 c) b; ^1 {( A - records t4 L) L% H; T* E
- </acct-file>
8 Y* q0 z) q4 l( ~1 t& E - 0 u& @6 t; r$ O# [) J
- #
0 h- M8 M) ~8 u5 W8 ^ - # spool directories5 q$ P# {- Q( P+ S! }
- #
3 z% {0 ?$ J2 Q, H
: W& `( A5 Q6 R. u$ {3 ?3 `+ X- spool /var/spool/pmta8 {3 J5 F$ s( Q( i
8 R/ R+ r3 Y. e& m' F1 W- http-mgmt-port 8080/ } f8 X6 m$ Y8 @' ^
- http-access 127.0.0.1 admin
6 i" u$ Q$ K- p5 }5 i+ p
! g$ V: A* i% ~# C( J- ############################################################################
4 E* q1 k0 J3 y( H9 t - # END: OTHER OPTIONS; O4 i% u3 P0 y
- ############################################################################. P. n" n9 q8 ]4 n
6 Y$ T1 N+ B! j0 ^1 b- M- ############################################################################
" i! O* l. C8 k/ R8 h - # BEGIN: USERS/VIRTUAL-MTA / VIRTUAL-MTA-POOL / VIRTUAL-PMTA-PATTERN& l% B4 J" G+ O' Q# S ?8 B
- ############################################################################ L( a( h3 b% G: D$ Y
: ~& d% o! Q) Z. T5 j8 ?- # BEGIN : PowerMta Configuration
3 X$ j9 R H5 Z D R
7 [. p0 ]6 k) B+ w+ W8 Q: y6 z H- #BEGIN: Users Virtual MTA's
b0 I+ z# V+ d) Q' M% z: X - <smtp-user pmta>
0 R6 f4 X; C2 a/ e6 g ?# c - password u396yo98- c4 Q% D$ f+ |$ l" a9 B t, V
- source {pmta-auth} . ^9 z# Y9 E7 G, Y4 Y6 |, s# t
- </smtp-user>& `2 `: ?- j- ~) @, e8 |
- <source {pmta-auth}>
$ Z" D* C; Y9 _/ @5 T9 ~5 q - smtp-service yes
# n% c3 b8 J3 f. R% S - always-allow-relaying yes
. T$ x9 v3 {; S+ F$ h - require-auth true
4 e1 B5 _9 n3 P1 i1 l, o - process-x-virtual-mta yes
b3 U! r% g2 Q- |, {& ?% F - default-virtual-mta pmta-pool
; i7 Q; F5 z8 Y) e3 K* U" C - remove-received-headers true
# M1 O9 |# s/ o$ p3 n6 j1 W - add-received-header false
0 \7 s8 J8 k' ]. x( u4 M* w - hide-message-source true
% p" m* A- b; n" P* }# E - #pattern-list pmta-pattern
. x1 y7 U* E+ I+ U( |; i - </source>
& i+ C* }# X3 A: Y+ | f
1 J7 K+ A) v- h1 b4 @7 n5 G5 W6 L- <smtp-user pmta-pattern>
3 [- t+ h# O, U8 l - password u396yo98
; [2 i$ D* Q$ B1 U2 V h9 W5 D - source {pmta-pattern-auth}
& e7 ?; w& P' o9 q - </smtp-user>
% R9 Q1 f5 `+ [# }0 }" u - <source {pmta-pattern-auth}> 7 x: W: b6 w7 u) G
- smtp-service yes, F* U4 q. `; @' W* }. t3 r
- always-allow-relaying yes7 A) @) J! a2 t( W' ]) O6 T
- require-auth true R! X7 c4 y" R
- process-x-virtual-mta yes
; q0 S1 j5 X: u' ] - #default-virtual-mta pmta-pool6 u; N' r4 y+ x$ i
- remove-received-headers true- g- r! B7 D/ h; o7 {! ^1 H7 o" V& C
- add-received-header false
2 s' Q- i# p0 d+ b - hide-message-source true
' Q" }3 W j0 ?/ s" h* V" C9 \ C - pattern-list pmta-pattern
' d C. r& d" S2 R3 ~ - </source>
5 Q9 q+ G/ @9 ? - , W. _ ]* G: W; u. O, t
- <smtp-user pmta-vmta0>
$ a* i% [ t* e- s- p0 ]. d* \ - password u396yo98; U6 l5 e3 i' a A# v( b
- source {pmta-vmta0-auth} / }1 \' n+ ^% h |* ^
- </smtp-user>
7 ?& y. ]7 y4 o3 }8 u- ]$ y - <source {pmta-vmta0-auth}>
7 P f! D; L* T! X( N - smtp-service yes
( p$ j |/ Q* s5 a - always-allow-relaying yes
) k- ?7 a3 k3 j - require-auth true7 O* d" x. x1 r8 R, c
- process-x-virtual-mta yes5 d# F8 h, W6 [2 h2 L
- default-virtual-mta pmta-vmta0
7 U- J2 @2 r, a0 m- E& T - remove-received-headers true1 z- _, ?% C7 d" b, K' Q
- add-received-header false
2 X- K, E! p1 a: S+ d( w( m - hide-message-source true & U9 A* E! O" u2 U0 a/ p, [8 f5 z/ H% I% {
- #pattern-list pmta-pattern : ?* U$ o: L6 x; W7 H
- </source>
3 E, C" c# q5 D9 c. H5 b - 4 a0 h: T+ j r8 J( x/ ^5 K3 E) q
- <smtp-user pmta-vmta1> ( a0 W" @, v. n
- password u396yo98
0 F6 Q" Y0 ?! d0 i - source {pmta-vmta1-auth}
% {2 |7 G8 @3 G* b# T! t/ q* D" y - </smtp-user>
; q3 |7 j2 W5 Y1 j# b) T - <source {pmta-vmta1-auth}>
) }4 U! R7 {( v7 g+ [, i - smtp-service yes
" w4 a4 n t& Y6 y. y4 j% h - always-allow-relaying yes! X% u! k. }+ `9 F* ]
- require-auth true
0 ?1 D! ^. E, h0 v: q - process-x-virtual-mta yes3 e4 a- [7 }9 a* L7 @$ |. _6 n
- default-virtual-mta pmta-vmta1
2 Y3 H( n7 |! I# u9 P5 e. D - remove-received-headers true
+ c1 @( B2 M! J# V" } - add-received-header false
0 ]6 }5 }! b3 l - hide-message-source true
3 q* m& A- n# F2 O+ m6 z - #pattern-list pmta-pattern ' c) D" A1 a) U+ F# i1 Q9 Z# O8 e/ P
- </source>
1 Z* {; Q0 j7 K. } j
0 n' n/ S/ V" ~! s5 r-
1 S4 m1 D5 Y9 G6 b# T - <smtp-user pmta-vmta2>
. S# o# G1 B1 B. b5 X2 G: h - password u396yo98
4 S, q6 |# x* S/ ` u - source {pmta-vmta2-auth} + x3 h1 y g! {( m. a
- </smtp-user>
: E& Y' n' I @6 a1 n0 f3 g - <source {pmta-vmta2-auth}> ' b7 g2 q; Y; ?+ |! q3 l) }
- smtp-service yes# z' ]7 r7 C* g+ t9 [! ^! g
- always-allow-relaying yes
2 i' G4 ^, m* j9 t% ^. u - require-auth true
5 C5 ~5 e! Z' d& p6 t9 Z6 d# Z! [# o, n - process-x-virtual-mta yes
( n. ~5 g) Z# t' j5 o+ W' A' ` - default-virtual-mta pmta-vmta2
6 y0 H! j1 s$ d* V; s+ C - remove-received-headers true
' R1 K% l8 e+ Y9 _: P$ x - add-received-header false
. y4 n% i9 {3 K1 O) S - hide-message-source true 0 L4 J& ?/ ^6 k6 e V+ J) E
- #pattern-list pmta-pattern
/ B4 l8 C7 c; O! f# X - </source>
. ?. T( g/ I* ^1 s - 3 h) u1 ~/ L# g
-
9 }: i* x) f+ M1 [) y+ I - <smtp-user pmta-vmta3>
' O3 `; i2 @* U$ { - password u396yo98
' P0 L Y- J8 N; Y3 N$ H5 }" |: q - source {pmta-vmta3-auth}
% S' c. D* }5 l7 M& Z( ~ - </smtp-user>9 W/ d. Z5 _" \- e+ f0 T( h# {2 ^
- <source {pmta-vmta3-auth}>
5 a" \$ Z! b# w$ @. T - smtp-service yes" t* B" ], e. @* S* _4 d) l
- always-allow-relaying yes
# n+ m7 k/ N$ \+ W" [- _, \, U - require-auth true7 L/ u; W* ?% }3 H# Z4 P
- process-x-virtual-mta yes0 v# S9 p5 w" w; e4 D' B
- default-virtual-mta pmta-vmta39 Y6 [1 I; B3 Z) X
- remove-received-headers true+ \: F. q$ \; _3 C
- add-received-header false6 O8 M& b5 V4 X2 M' X
- hide-message-source true
( \/ h- k t/ |9 h) O% }, V - #pattern-list pmta-pattern 1 ?7 f% ~5 d. Z7 F4 l
- </source>
2 O* I; @% ^0 Y! G7 f' L# E6 d! v - 6 N0 m& G# E( ^ [" P1 q/ N0 [
- 1 T% b$ ~$ s' n) _
- <smtp-user pmta-vmta4> ; u, T9 H2 ~! H# I/ | S8 o& X
- password u396yo98
/ G2 v5 M2 r u; f( ` - source {pmta-vmta4-auth} 2 |* F* a* L. ^# z8 c; k
- </smtp-user>
6 Q& c1 v8 l( T7 _1 i. t+ K - <source {pmta-vmta4-auth}> * F* B- s: `8 a% ~6 J
- smtp-service yes
+ q" x6 L6 T0 }. R6 H" E% ^ - always-allow-relaying yes
! G& @& r) h7 G - require-auth true/ Q# Q5 N8 D! |) q3 |# G9 _
- process-x-virtual-mta yes; G7 n2 a/ Z! L6 L
- default-virtual-mta pmta-vmta4
% O5 e8 e# B/ g& u - remove-received-headers true2 S5 \- r$ g) `# h1 }6 F B4 D
- add-received-header false: i7 X& u0 @" H0 C
- hide-message-source true , q F! ^0 {/ x7 v
- #pattern-list pmta-pattern : g7 f. F7 @: }/ X: X6 r+ S# i
- </source> c, o6 X B7 r# [$ m) a* v* W. y* a
! {& q% Q9 Y$ \' S9 T! A-
* ]7 D) a$ y5 v( F - <smtp-user pmta-vmta5> & \8 R5 ^2 j) }7 r3 s% N: n5 @
- password u396yo98
7 i! y" X" u: W! q - source {pmta-vmta5-auth}
) C: W* p% ^2 L+ m% o4 h6 R - </smtp-user>
/ o9 C0 F% Z S5 h - <source {pmta-vmta5-auth}> / c# _: F9 b. b7 q
- smtp-service yes
( c. i8 s+ o3 ` - always-allow-relaying yes
; Q* h6 F. V/ d( w - require-auth true" e- w6 G$ ]" N( _5 k
- process-x-virtual-mta yes z8 z6 W s! k: u" w! c! \- n
- default-virtual-mta pmta-vmta5- V/ A0 o; K- T" R+ Q' u
- remove-received-headers true+ P& Q; s T; `
- add-received-header false
, s& L4 m( A. \' J& _ - hide-message-source true
, }3 V2 a( A5 s! a O7 g+ @9 R - #pattern-list pmta-pattern
q% c$ X; @; J6 i$ P - </source>
2 X& K1 V' I& v2 \! g
9 J. a7 [3 ?2 A* r. X- l5 C-
+ V$ Z# k3 B# W" F+ U0 _ - <smtp-user pmta-vmta6>
# z. Z/ F0 A7 [4 I6 ^ - password u396yo98: n9 {1 N9 k2 w4 P; c
- source {pmta-vmta6-auth}
5 O! [" X/ y# _) N+ b* R, `: D - </smtp-user>' L2 i& l: i3 c1 A1 f+ ]$ d$ X7 z
- <source {pmta-vmta6-auth}> , z1 s: I+ D) w7 V$ { O
- smtp-service yes
8 _5 D8 {# W% Z' v. u/ x1 ^ } - always-allow-relaying yes0 J* [$ c; i# _( c$ s6 v8 O$ [
- require-auth true; |6 I0 J$ A* ?4 w; |
- process-x-virtual-mta yes/ @$ {0 m: Q' g2 B5 x% q9 C. z
- default-virtual-mta pmta-vmta6
- R5 M a- b* q2 m - remove-received-headers true
+ s9 N! c! J" [ d - add-received-header false
; w! B/ j1 [ u - hide-message-source true
: ^; V' x* x8 a/ n- C) g3 R2 L) F6 D - #pattern-list pmta-pattern * Q1 [1 t5 ?1 b( x; @
- </source>+ ^+ I- c7 N4 \, F4 `# D
/ Y8 Z6 A3 {( d. D# J2 I-
2 @* g3 Q8 ?- Q/ G/ x, h; u - <virtual-mta pmta-vmta0>3 {- R: d/ X' ]. d% f' H. W
- smtp-source-host 198.71.89.7 darkness.sostow.com
5 Y8 H6 Q" \0 | - domain-key dkim,*,/etc/pmta/dkim.key
0 C) H( D1 T$ a2 _ - <domain *>* v2 w# d7 B& j
- #max-msg-rate 134/h h% J3 Q+ e T* S; ~ L4 n# N
- </domain>- t' S- e7 ~+ X
- </virtual-mta>
; ]. R f) F9 b$ \- U# M - <domain sostow.com>: k8 n( x% m; B( Q! d
- route [127.0.0.1]:25: X9 B" Y7 Q: R
- </domain>
+ a0 f9 X' ?. z, a - $ w; n' |8 O) t! w p
- 4 A2 {6 v+ z8 r
- <virtual-mta pmta-vmta1>( j3 s. n7 c w4 p; {
- smtp-source-host 198.71.89.67 mailvps1.sostow.com+ P8 o$ u& o- }8 k/ i
- domain-key dkim,*,/etc/pmta/dkim.key) @1 \& `, P- ?& i* R7 U
- <domain *>
" B* y6 h1 @3 g$ |$ A - #max-msg-rate 134/h! Z5 K7 G( N9 F! e! A ]9 ]( |& O. t
- </domain>
( B0 H8 @1 Q; \# R, K9 i3 R - </virtual-mta>
8 D5 n; L5 e3 c( ^- @ - <domain mailvps1.sostow.com>7 X2 j3 R3 m6 K( r, f' w# ~0 l! |
- route [127.0.0.1]:25# d& e, u: U: K/ {6 b7 @
- </domain>
# ]2 ], a, M9 y0 S/ y7 ?* m
" X8 B/ v, X( E8 }7 h# F- <virtual-mta pmta-vmta2>. N( {& ?: K5 _* k9 {9 t L
- smtp-source-host 198.71.89.68 mailvps2.sostow.com' g% J& \) b7 P4 a2 W
- domain-key dkim,*,/etc/pmta/dkim.key) c; h4 Q! x& b
- <domain *>
v9 b9 U9 L+ z0 m/ R - #max-msg-rate 134/h2 J( W4 S' v' ~) q0 e" R5 z
- </domain>
; V+ ?: G- V. U; l5 R! K' K6 M! B - </virtual-mta>- V5 \8 N, J2 w m. @3 X3 S! n6 y
- <domain mailvps2.sostow.com>
9 A8 ~$ \3 b! K8 I - route [127.0.0.1]:25
+ {6 ` _$ E A' C - </domain># s5 X6 T! j! _* k5 w
& x0 a; T, N" t# U$ E8 W6 k* |3 P4 a- <virtual-mta pmta-vmta3>. d( q, h" l# q3 h' s, M
- smtp-source-host 198.71.89.69 mailvps3.sostow.com. k& E# U `: p* u$ N6 l
- domain-key dkim,*,/etc/pmta/dkim.key
% D0 \% C; y/ n# u5 o/ G - <domain *>3 K/ z* A) F) J5 b
- #max-msg-rate 134/h+ f3 X9 o a( I1 Y! |
- </domain>
3 q2 _+ L5 W" {* X2 c: a - </virtual-mta>5 E& w' B: T- j% g4 ~
- <domain mailvps3.sostow.com>
3 y" w9 w: w9 W3 V1 N& \' t - route [127.0.0.1]:25
" z/ X5 m/ n2 z& w3 M - </domain>
& `3 C2 Z1 P+ c
& P8 z# r6 h, m5 |: y$ u3 N- <virtual-mta pmta-vmta4>/ a E, W) B2 u# A5 n
- smtp-source-host 198.71.89.70 mailvps4.sostow.com
# F4 I- ^- y9 U" g; b - domain-key dkim,*,/etc/pmta/dkim.key
5 R7 y, k1 v) L+ n - <domain *>
+ Q6 _- z* }" n# P- V: N - #max-msg-rate 134/h/ M! v* ~0 |! w+ j/ |. T
- </domain>
! T7 c5 I; }8 N5 u - </virtual-mta>
( W/ w: Y$ f1 v0 ~7 S/ G1 f - <domain mailvps4.sostow.com>+ j$ e/ T$ _+ l* g+ F* v. ^2 A; ~
- route [127.0.0.1]:25
7 f% i" o$ t/ l B/ F- s - </domain>8 e1 E6 e- e/ M2 n# e! h
& i4 i7 \% G& x7 i" M1 H3 M- <virtual-mta pmta-vmta5>
$ v0 Z% b% t* o7 E - smtp-source-host 198.71.89.71 mailvps5.sostow.com) f' |: A1 x: s% p8 h
- domain-key dkim,*,/etc/pmta/dkim.key% Y$ A2 E. s- y2 O- a, Z0 \+ Q
- <domain *>
/ t4 k/ H/ `) e) w/ X- D6 z0 b - #max-msg-rate 134/h
) ^4 l* G! I. f/ C" {' ]9 y - </domain>
; {$ {/ i7 S3 g+ P4 O- i - </virtual-mta>2 [% e8 s! H1 d& r
- <domain mailvps5.sostow.com>; n3 V& w( K) G& x
- route [127.0.0.1]:25# m. F/ [( N0 `. W* J) {2 q
- </domain>
' G8 ]/ F- I6 ?; O" U
3 z% ]& L% b2 c$ q% I- <virtual-mta pmta-vmta6>
* g' s* ~" a/ a - smtp-source-host 198.71.89.72 mailvps6.sostow.com
& ~' ]# ]/ w' L0 V9 E) F/ A" m - domain-key dkim,*,/etc/pmta/dkim.key
$ l/ i% _; A# ]7 K, I - <domain *>
/ U" P1 A, u$ x6 I6 J( W - #max-msg-rate 134/h
9 T- P. C/ n& x8 S& v% _ - </domain>9 u) z8 E* M4 E: j4 x9 Y
- </virtual-mta>6 R4 S/ ^/ s5 f6 ]' F: E
- <domain mailvps6.sostow.com>2 @7 P, z% z2 z- p; ?: b3 Q% v
- route [127.0.0.1]:25
' D; I: T: o, K/ u- e - </domain>
5 N! z9 E8 O& F ~3 Q* C7 d
( F/ \* n+ E1 e. N/ p- <virtual-mta-pool pmta-pool>! M7 b% h6 I. t: t q" c, c
- virtual-mta pmta-vmta0
6 {7 d& v# U, @ - virtual-mta pmta-vmta1: U9 q4 [& \) W
- virtual-mta pmta-vmta2
( |) S3 t& s" ~- ^4 R/ ?4 F - virtual-mta pmta-vmta3
* {8 E0 q( R( ]- ] - virtual-mta pmta-vmta4 K5 u2 M8 z6 Q2 B, p# o
- virtual-mta pmta-vmta5/ V; T/ V7 b# ^ A e$ B
- virtual-mta pmta-vmta6
. G# T4 ~8 q* ?: f7 o7 g - </virtual-mta-pool>9 n/ Z' T& X, h2 Z' U, O6 u' J
- <pattern-list pmta-pattern>
0 t% M) A( M! z# j5 i" c7 P: [ - mail-from /sostow.com/ virtual-mta=pmta-vmta0
8 g9 C; c! [4 R8 o8 C( V - mail-from /mailvps1.sostow.com/ virtual-mta=pmta-vmta17 {3 R- d+ y5 o4 k
- mail-from /mailvps2.sostow.com/ virtual-mta=pmta-vmta2
7 N/ Q( ~" U5 o' D4 \1 b - mail-from /mailvps3.sostow.com/ virtual-mta=pmta-vmta3
8 W' |+ @0 d( }: d; A; h - mail-from /mailvps4.sostow.com/ virtual-mta=pmta-vmta4
' U1 |8 v" ^1 c' K6 O/ M2 ~ - mail-from /mailvps5.sostow.com/ virtual-mta=pmta-vmta5
& b- b" K% \' {: K% v7 I4 C% D A# N - mail-from /mailvps6.sostow.com/ virtual-mta=pmta-vmta62 F; C; `4 G, I: r
- 7 B: g( m/ e+ R h
- </pattern-list>- t; i. m' z) J7 n- Y
2 y/ i( c3 a% }* a; ~- # END : PowerMta Configuration
- l6 [! r/ N( n6 U! {5 B - 3 E* @7 G* G8 {" a& [
- ############################################################################: v% s. K7 W7 R0 }5 |& [" h+ i
- # END: USERS/VIRTUAL-MTA / VIRTUAL-MTA-POOL / VIRTUAL-PMTA-PATTERN2 n& [( H" o/ y$ a
- ############################################################################[/hide]
复制代码 0 K y2 u8 c" p2 {
7 J" g6 e) B0 K+ Q; S: N6 t% b/ Q2 Z
|
|