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