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