· 7 years ago · Feb 05, 2019, 04:04 PM
1############################################################################
2########################### PMTA domains config ############################
3############################################################################
4
5########## PMTA accounting files rules section
6
7# Bounces section
8<acct-file /etc/pmta/bounces/b.csv>
9 records b
10 record-fields bounce bounceCat,timeLogged,timeQueued,orig,dsnAction,dsnStatus,dsnDiag,vmta,jobId,envId,queue
11 move-to /etc/pmta/bounces/archived/
12 move-interval 2s
13 max-size 50M
14</acct-file>
15
16# Delivered section
17<acct-file /etc/pmta/delivered/d.csv>
18 records d
19 record-fields delivery bounceCat,timeLogged,timeQueued,orig,dsnAction,dsnStatus,dsnDiag,vmta,jobId,envId,queue
20 move-to /etc/pmta/delivered/archived/
21 move-interval 2s
22 max-size 50M
23</acct-file>
24
25# Deffered section
26<acct-file /etc/pmta/deffered/t.csv>
27 records t
28 record-fields transient bounceCat,timeLogged,timeQueued,orig,rcpt,dsnAction,dsnStatus,dsnDiag,vmta,jobId,envId,queue
29 move-interval 2m
30 delete-after never
31</acct-file>
32
33########## Bounce rules section
34<bounce-category-patterns>
35 /spam/ spam-related
36 /junk mail/ spam-related
37 /blacklist/ spam-related
38 /blocked/ spam-related
39 /\bU\.?C\.?E\.?\b/ spam-related
40 /\bAdv(ertisements?)?\b/ spam-related
41 /unsolicited/ spam-related
42 /\b(open)?RBL\b/ spam-related
43 /realtime blackhole/ spam-related
44 /http:\/\/basic.wirehub.nl\/blackholes.html/ spam-related
45 /\bvirus\b/ virus-related
46 /message +content/ content-related
47 /content +rejected/ content-related
48 /quota/ quota-issues
49 /limit exceeded/ quota-issues
50 /mailbox +(is +)?full/ quota-issues
51 /\bstorage\b/ quota-issues
52 /(user|mailbox|recipient|rcpt|local part|address|account|mail drop|ad(d?)ressee) (has|has been|is)? *(currently|temporarily +)?(disabled|expired|inactive|not activated)/ hardbnc
53 /(conta|usu.rio) inativ(a|o)/ hardbnc
54 /Too many (bad|invalid|unknown|illegal|unavailable) (user|mailbox|recipient|rcpt|local part|address|account|mail drop|ad(d?)ressee)/ other
55 /(No such|bad|invalid|unknown|illegal|unavailable) (local +)?(user|mailbox|recipient|rcpt|local part|address|account|mail drop|ad(d?)ressee)/ hardbnc
56 /(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)/ hardbnc
57 /\S+@\S+ +(is +)?(not (a +)?valid|not known|not here|not found|does not exist|bad|invalid|unknown|illegal|unavailable)/ hardbnc
58 /no mailbox here by that name/ hardbnc
59 /my badrcptto list/ hardbnc
60 /not our customer/ hardbnc
61 /no longer (valid|available)/ hardbnc
62 /have a \S+ account/ hardbnc
63 /\brelay(ing)?/ relaying-issues
64 /domain (retired|bad|invalid|unknown|illegal|unavailable)/ hardbnc
65 /domain no longer in use/ hardbnc
66 /domain (\S+ +)?(is +)?obsolete/ hardbnc
67 /denied/ policy-related
68 /prohibit/ policy-related
69 /rejected/ policy-related
70 /refused/ policy-related
71 /allowed/ policy-related
72 /banned/ policy-related
73 /policy/ policy-related
74 /suspicious activity/ policy-related
75 /bad sequence/ protocol-errors
76 /syntax error/ protocol-errors
77 /\broute\b/ routing-errors
78 /\bunroutable\b/ routing-errors
79 /\bunrouteable\b/ routing-errors
80 /^2.\d.\d/ success
81 /^[45]\.1\.1/ hardbnc
82 /^[45]\.1\.2/ hardbnc
83 /^[45]\.3\.5/ bad-configuration
84 /^[45]\.4\.1/ no-answer-from-host
85 /^[45]\.4\.2/ bad-connection
86 /^[45]\.4\.4/ routing-errors
87 /^[45]\.4\.6/ routing-errors
88 /^[45]\.4\.7/ message-expired
89 /^[45]\.7\.1/ policy-related
90 // other # catch-all
91</bounce-category-patterns>
92
93########## Hosts configuration section
94host-name mail.golo.com
95
96########## HTTP configuration section
97http-access 0/0 monitor
98http-access 127.0.0.1 monitor
99http-access ::1 monitor
100http-mgmt-port 9897
101run-as-root no
102
103########## PMTA log file location section
104log-file /var/log/pmta/pmta.log
105
106########## PMTA mails process format reading folders section
107pickup /var/spool/bluemail/pickup/ /var/spool/bluemail/bad/
108pickup-retry-interval 5s
109
110<source {pickup}>
111 process-x-virtual-mta yes
112 process-x-envid yes
113 process-x-job yes
114 add-received-header no
115 remove-header parameters
116</source>
117
118########## Sources IP address section
119<source 127.0.0.1>
120 always-allow-relaying yes
121 process-x-virtual-mta yes
122 max-message-size unlimited
123 smtp-service yes
124 allow-mailmerge yes
125 log-connections yes
126 log-commands yes
127 log-data yes
128</source>
129
130<source 0/0>
131 log-connections yes
132 log-commands yes
133 log-data yes
134</source>
135
136########## SMTP listners section
137smtp-listener 0/0:2025
138
139########## PMTA Spool section
140<spool /var/spool/pmta>
141 deliver-only no
142</spool>
143
144########## Default Virtual MTAs section
145<virtual-mta vmta_d_5538_172.31.21.64>
146 smtp-source-host 172.31.21.64 golo.com
147
148</virtual-mta>
149<virtual-mta vmta_d_5539_172.31.24.63>
150 smtp-source-host 172.31.24.63 mbtj.golo.com
151
152</virtual-mta>
153<virtual-mta vmta_d_5540_172.31.29.253>
154 smtp-source-host 172.31.29.253 dlqu.golo.com
155
156</virtual-mta>
157<virtual-mta vmta_d_5541_172.31.17.156>
158 smtp-source-host 172.31.17.156 psdhg.golo.com
159
160</virtual-mta>
161<virtual-mta vmta_d_5542_172.31.18.28>
162 smtp-source-host 172.31.18.28 uij.golo.com
163
164</virtual-mta>
165<virtual-mta vmta_d_5543_172.31.24.236>
166 smtp-source-host 172.31.24.236 fzk.golo.com
167
168</virtual-mta>
169<virtual-mta vmta_d_5544_172.31.22.56>
170 smtp-source-host 172.31.22.56 jtl.golo.com
171
172</virtual-mta>
173<virtual-mta vmta_d_5545_172.31.24.103>
174 smtp-source-host 172.31.24.103 lxx.golo.com
175
176</virtual-mta>
177<virtual-mta vmta_d_5546_172.31.29.166>
178 smtp-source-host 172.31.29.166 iodt.golo.com
179
180</virtual-mta>
181<virtual-mta vmta_d_5547_172.31.18.37>
182 smtp-source-host 172.31.18.37 talf.golo.com
183
184</virtual-mta>
185<virtual-mta vmta_d_5548_172.31.16.160>
186 smtp-source-host 172.31.16.160 epnd.golo.com
187
188</virtual-mta>
189
190
191########## Customized Virtual MTAs section
192include /etc/pmta/vmtas/*.conf
193
194########## ISPs configuration section
195
196# Hotmail Settings
197<smtp-pattern-list hotmail-errors>
198 reply /exceeded the rate limit/ mode=backoff
199 reply /exceeded the connection limit/ mode=backoff
200 reply /Mail rejected by Windows Live Hotmail for policy reasons/ mode=backoff
201 reply /mail.live.com\/mail\/troubleshooting.aspx/ mode=backoff
202 reply /Please try again/ mode=backoff
203</smtp-pattern-list>
204
205domain-macro hotmail hotmail.be,hotmail.ch,hotmail.co.id,hotmail.co.il,hotmail.co.jp,hotmail.co.kr,hotmail.co.nz,hotmail.co.th,hotmail.co.za,hotmail.com,hotmail.com.ar,hotmail.com.au,hotmail.com.br,hotmail.com.hk,hotmail.com.tr,hotmail.com.tw,hotmail.com.vn,hotmail.cz,hotmail.de,hotmail.dk,hotmail.es,hotmail.fi,hotmail.fr,hotmail.gr,hotmail.it,hotmail.my,hotmail.no,hotmail.ph,hotmail.rs,hotmail.se,hotmail.sg,live.at,live.be,live.ca,live.cl,live.cn,live.co.kr,live.co.uk,live.co.za,live.com,live.com.ar,live.com.au,live.com.my,live.com.ph,live.com.pt,live.com.sg,live.de,live.dk,live.fr,live.hk,live.ie,live.in,live.it,live.jp,live.nl,live.no,live.ru,live.se,livemail.tw,msn.com
206
207<domain hotmail.queue>
208 max-smtp-out 1000
209 max-msg-per-connection 100
210 max-msg-rate 2500/s
211 max-connect-rate 2/s
212 smtp-421-means-mx-unavailable yes
213 smtp-pattern-list hotmail-errors
214 retry-after 1s
215 backoff-retry-after 1s
216 backoff-to-normal-after-delivery true
217 backoff-max-msg-rate 10000/h
218 route hotmail.com
219 dk-sign yes
220 dkim-sign yes
221</domain>
222
223<domain $hotmail>
224 queue-to "hotmail.queue"
225</domain>
226
227domain-macro hotmailjp hotmail.jp
228
229<domain hotmailjp.queue>
230 max-smtp-out 20
231 max-msg-per-connection 100
232 max-msg-rate 2500/m
233 max-connect-rate 2/s
234 smtp-421-means-mx-unavailable yes
235 smtp-pattern-list hotmail-errors
236 retry-after 1m
237 backoff-retry-after 2m
238 backoff-to-normal-after-delivery true
239 backoff-max-msg-rate 10000/h
240 route hotmail.jp
241 dk-sign yes
242 dkim-sign yes
243</domain>
244
245<domain $hotmailjp>
246 queue-to "hotmailjp.queue"
247</domain>
248
249domain-macro hotmailuk hotmail.co.uk
250
251<domain hotmailuk.queue>
252 max-smtp-out 20
253 max-msg-per-connection 100
254 max-msg-rate 2500/m
255 max-connect-rate 2/s
256 smtp-421-means-mx-unavailable yes
257 smtp-pattern-list hotmail-errors
258 retry-after 1m
259 backoff-retry-after 2m
260 backoff-to-normal-after-delivery true
261 backoff-max-msg-rate 10000/h
262 route hotmail.co.uk
263 dk-sign yes
264 dkim-sign yes
265</domain>
266
267<domain $hotmailuk>
268 queue-to "hotmailuk.queue"
269</domain>
270
271domain-macro hotmailch msn.cn
272
273<domain hotmailch.queue>
274 max-smtp-out 20
275 max-msg-per-connection 100
276 max-msg-rate 2500/m
277 max-connect-rate 2/s
278 smtp-421-means-mx-unavailable yes
279 smtp-pattern-list hotmail-errors
280 retry-after 1m
281 backoff-retry-after 2m
282 backoff-to-normal-after-delivery true
283 backoff-max-msg-rate 10000/h
284 route msn.cn
285 dk-sign yes
286 dkim-sign yes
287</domain>
288
289<domain $hotmailch>
290 queue-to "hotmailch.queue"
291</domain>
292
293
294# Gmail Settings
295<smtp-pattern-list gmail-errors>
296 reply /has been temporarily blocked/ mode=backoff
297</smtp-pattern-list>
298
299<domain gmail.com>
300 max-smtp-out 1200
301 max-msg-per-connection 20
302 smtp-pattern-list gmail-errors
303 retry-after 5m
304 backoff-retry-after 2m
305 backoff-to-normal-after-delivery true
306 backoff-max-msg-rate 10000/h
307 route gmail.com
308 dk-sign yes
309 dkim-sign yes
310</domain>
311
312
313# Yahoo Settings
314<smtp-pattern-list yahoo-errors>
315 reply /\[TS03\]/ mode=backoff
316 reply /\[TS02\]/ mode=backoff
317 reply /\[TS01\]/ mode=backoff
318</smtp-pattern-list>
319
320domain-macro yahoo yahoo.com
321
322<domain yahoo.queue>
323 max-smtp-out 1000
324 max-msg-per-connection 1000
325 smtp-pattern-list yahoo-errors
326 retry-after 10s
327 backoff-retry-after 10s
328 backoff-to-normal-after-delivery true
329 backoff-max-msg-rate 100000/h
330 route yahoo.com
331 dk-sign yes
332 dkim-sign yes
333</domain>
334
335<domain $yahoo>
336queue-to "yahoo.queue"
337</domain>
338
339domain-macro yahooeu yahoo.co.uk,yahoo.de,yahoo.dk,yahoo.fr,yahoo.gr,yahoo.it,yahoo.no,yahoo.pl,yahoo.se
340
341<domain yahooeu.queue>
342 max-smtp-out 1000
343 max-msg-per-connection 1000
344 smtp-pattern-list yahoo-errors
345 retry-after 10s
346 backoff-retry-after 10m
347 backoff-to-normal-after-delivery true
348 backoff-max-msg-rate 10000/h
349 route yahoo.co.uk
350 dk-sign yes
351 dkim-sign yes
352</domain>
353
354<domain $yahooeu>
355 queue-to "yahooeu.queue"
356</domain>
357
358domain-macro yahooam
359rocketmail.com,y7mail.com,yahoo.ca,yahoo.cl,yahoo.co.nz,yahoo.com.ar,yahoo.com.au,yahoo.com.br,yahoo.com.co,yahoo.com.mx,yahoo.com.pe,yahoo.com.tr,yahoo.com.ve,ymail.com
360
361<domain yahooam.queue>
362 max-smtp-out 1000
363 max-msg-per-connection 1000
364 smtp-pattern-list yahoo-errors
365 retry-after 10s
366 backoff-retry-after 10m
367 backoff-to-normal-after-delivery true
368 backoff-max-msg-rate 10000/h
369 route yahoo.ca
370 dk-sign yes
371 dkim-sign yes
372</domain>
373
374<domain $yahooam>
375 queue-to "yahooam.queue"
376</domain>
377
378domain-macro yahooas yahoo.com.my,yahoo.com.ph,yahoo.com.sg,yahoo.co.th,yahoo.co.id,yahoo.co.in,yahoo.com.vn,yahoo.in
379
380<domain yahooas.queue>
381 max-smtp-out 1000
382 max-msg-per-connection 1000
383 smtp-pattern-list yahoo-errors
384 retry-after 10s
385 backoff-retry-after 10m
386 backoff-to-normal-after-delivery true
387 backoff-max-msg-rate 10000/h
388 route yahoo.in
389 dk-sign yes
390 dkim-sign yes
391</domain>
392
393<domain $yahooas>
394 queue-to "yahooas.queue"
395</domain>
396
397
398# Aol Settings
399<smtp-pattern-list aol-errors>
400 reply /421 .* SERVICE NOT AVAILABLE/ mode=backoff
401 reply /generating high volumes of.* complaints from AOL/ mode=backoff
402 reply /554 .*aol.com/ mode=backoff
403 reply /421dynt1/ mode=backoff
404 reply /HVU:B1/ mode=backoff
405 reply /DNS:NR/ mode=backoff
406 reply /RLY:NW/ mode=backoff
407 reply /DYN:T1/ mode=backoff
408 reply /RLY:BD/ mode=backoff
409 reply /RLY:CH2/ mode=backoff
410</smtp-pattern-list>
411
412domain-macro aol
413aim.com,aol.at,aol.be,aol.ch,aol.cl,aol.co.nz,aol.co.uk,aol.com,aol.com.ar,aol.com.au,aol.com.br,aol.com.co,aol.com.tr,aol.com.ve,aol.cz,aol.de,aol.dk,aol.es,aol.fi,aol.fr,aol.hk,aol.in,aol.it,aol.jp,aol.kr,aol.nl,aol.pl,aol.ru,aol.se,aol.tw,aolchina.com,aolnorge.no,aolpolska.pl,luckymail.com,wmconnect.com,cs.com,myaol.jp
414
415<domain aol.queue>
416 route aol.com
417 dk-sign yes
418 dkim-sign yes
419 log-transfer-failures no
420 log-connections no
421 log-commands no
422 retry-after 2m
423 max-smtp-out 20
424 max-msg-per-connection 50
425 smtp-pattern-list aol-errors
426</domain>
427
428<domain $aol>
429 queue-to "aol.queue"
430</domain>
431
432domain-macro aoljp aol.co.jp
433
434<domain aoljp.queue>
435 max-smtp-out 1200
436 max-msg-per-connection 450
437 smtp-pattern-list aol-errors
438 retry-after 5m
439 backoff-retry-after 2m
440 backoff-to-normal-after-delivery true
441 backoff-max-msg-rate 10000/h
442 route aol.co.jp
443 dk-sign yes
444 dkim-sign yes
445</domain>
446
447<domain $aoljp>
448 queue-to "aoljp.queue"
449</domain>
450
451
452# Comcast Settings
453<domain comcast.net>
454 max-smtp-out 25
455 max-msg-per-connection 1000
456 dk-sign yes
457 dkim-sign yes
458</domain>
459
460
461# Cox Settings
462<domain cox.net>
463 max-smtp-out 5
464 max-msg-per-connection 100
465 dk-sign yes
466 dkim-sign yes
467</domain>
468
469
470# ATT Settings
471<domain att.net>
472 max-smtp-out 10
473 max-msg-per-connection 100
474 dk-sign yes
475 dkim-sign yes
476</domain>
477
478
479# Verizon Settings
480<domain verizon.net>
481 max-smtp-out 150
482 max-msg-per-connection 100
483 dk-sign yes
484 dkim-sign yes
485</domain>
486
487
488# Earthlink Settings
489<domain earthlink.net>
490 max-smtp-out 150
491 max-msg-per-connection 100
492 dk-sign yes
493 dkim-sign yes
494</domain>
495
496
497# Bellsouth Settings
498<domain bellsouth.net>
499 max-smtp-out 150
500 max-msg-per-connection 100
501 dk-sign yes
502 dkim-sign yes
503</domain>
504
505# SBCGlobal Settings
506<smtp-pattern-list Sbcglobal-errors>
507 #reply /\[140\]/ mode=backoff
508 #reply /\[160\]/ mode=backoff
509 reply /\[MC02\]/ mode=backoff
510 reply /\[GL01\]/ mode=backoff
511 reply /\[TS03\]/ mode=backoff
512 reply /\[TS02\]/ mode=backoff
513 reply /\[TS01\]/ mode=backoff
514 #reply /421 .* Please try again later/ mode=backoff
515 reply /421 Message temporarily deferred/ mode=backoff
516 #reply /VS3-IP5 Excessive unknown recipients/ mode=backoff
517 #reply /VSS-IP Excessive unknown recipients/ mode=backoff
518</smtp-pattern-list>
519
520<domain sbcglobal.net>
521 max-smtp-out 1200
522 max-msg-per-connection 1000
523 smtp-pattern-list sbcglobal-errors
524 backoff-retry-after 2m
525 backoff-to-normal-after-delivery true
526 backoff-max-msg-rate 100000/h
527 retry-after 2m
528 route sbcglobal.net
529 dk-sign yes
530 dkim-sign yes
531</domain>
532
533# General Settings
534<domain *>
535 max-smtp-out 20
536 max-rcpt-per-message 100
537 bounce-after 4d12h
538 retry-after 5m
539 log-connections yes
540 log-commands no
541 log-transfer-failures yes
542 deliver-local-dsn no
543</domain>