· 6 years ago · Nov 26, 2019, 11:32 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,rcpt,dsnAction,dsnStatus,dsnDiag,vmta,jobId,envId,queue
11 move-to /etc/pmta/bounces/archived/
12 move-interval 2m
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,rcpt,dsnAction,dsnStatus,dsnDiag,vmta,jobId,envId,queue
20 move-to /etc/pmta/delivered/archived/
21 move-interval 2m
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.thx.mail-1.10khits.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_5515_95.217.18.137>
146 smtp-source-host 95.217.18.137 thx.mail-1.10khits.com
147
148</virtual-mta>
149
150
151########## Customized Virtual MTAs section
152include /etc/pmta/vmtas/*.conf
153
154########## ISPs configuration section
155
156# Hotmail Settings
157<smtp-pattern-list hotmail-errors>
158 reply /exceeded the rate limit/ mode=backoff
159 reply /exceeded the connection limit/ mode=backoff
160 reply /Mail rejected by Windows Live Hotmail for policy reasons/ mode=backoff
161 reply /mail.live.com\/mail\/troubleshooting.aspx/ mode=backoff
162 reply /Please try again/ mode=backoff
163</smtp-pattern-list>
164
165domain-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
166
167<domain hotmail.queue>
168 max-smtp-out 20
169 max-msg-per-connection 100
170 max-msg-rate 2500/m
171 max-connect-rate 2/s
172 smtp-421-means-mx-unavailable yes
173 smtp-pattern-list hotmail-errors
174 retry-after 1m
175 backoff-retry-after 2m
176 backoff-to-normal-after-delivery true
177 backoff-max-msg-rate 10000/h
178 route hotmail.com
179 dk-sign yes
180 dkim-sign yes
181</domain>
182
183<domain $hotmail>
184 queue-to "hotmail.queue"
185</domain>
186
187domain-macro hotmailjp hotmail.jp
188
189<domain hotmailjp.queue>
190 max-smtp-out 20
191 max-msg-per-connection 100
192 max-msg-rate 2500/m
193 max-connect-rate 2/s
194 smtp-421-means-mx-unavailable yes
195 smtp-pattern-list hotmail-errors
196 retry-after 1m
197 backoff-retry-after 2m
198 backoff-to-normal-after-delivery true
199 backoff-max-msg-rate 10000/h
200 route hotmail.jp
201 dk-sign yes
202 dkim-sign yes
203</domain>
204
205<domain $hotmailjp>
206 queue-to "hotmailjp.queue"
207</domain>
208
209domain-macro hotmailuk hotmail.co.uk
210
211<domain hotmailuk.queue>
212 max-smtp-out 20
213 max-msg-per-connection 100
214 max-msg-rate 2500/m
215 max-connect-rate 2/s
216 smtp-421-means-mx-unavailable yes
217 smtp-pattern-list hotmail-errors
218 retry-after 1m
219 backoff-retry-after 2m
220 backoff-to-normal-after-delivery true
221 backoff-max-msg-rate 10000/h
222 route hotmail.co.uk
223 dk-sign yes
224 dkim-sign yes
225</domain>
226
227<domain $hotmailuk>
228 queue-to "hotmailuk.queue"
229</domain>
230
231domain-macro hotmailch msn.cn
232
233<domain hotmailch.queue>
234 max-smtp-out 20
235 max-msg-per-connection 100
236 max-msg-rate 2500/m
237 max-connect-rate 2/s
238 smtp-421-means-mx-unavailable yes
239 smtp-pattern-list hotmail-errors
240 retry-after 1m
241 backoff-retry-after 2m
242 backoff-to-normal-after-delivery true
243 backoff-max-msg-rate 10000/h
244 route msn.cn
245 dk-sign yes
246 dkim-sign yes
247</domain>
248
249<domain $hotmailch>
250 queue-to "hotmailch.queue"
251</domain>
252
253
254# Gmail Settings
255<smtp-pattern-list gmail-errors>
256 reply /has been temporarily blocked/ mode=backoff
257</smtp-pattern-list>
258
259<domain gmail.com>
260 max-smtp-out 1200
261 max-msg-per-connection 20
262 smtp-pattern-list gmail-errors
263 retry-after 5m
264 backoff-retry-after 2m
265 backoff-to-normal-after-delivery true
266 backoff-max-msg-rate 10000/h
267 route gmail.com
268 dk-sign yes
269 dkim-sign yes
270</domain>
271
272
273# Yahoo Settings
274<smtp-pattern-list yahoo-errors>
275 reply /\[TS03\]/ mode=backoff
276 reply /\[TS02\]/ mode=backoff
277 reply /\[TS01\]/ mode=backoff
278</smtp-pattern-list>
279
280domain-macro yahoo yahoo.com
281
282<domain yahoo.queue>
283 max-smtp-out 1000
284 max-msg-per-connection 1000
285 smtp-pattern-list yahoo-errors
286 retry-after 10s
287 backoff-retry-after 10s
288 backoff-to-normal-after-delivery true
289 backoff-max-msg-rate 100000/h
290 route yahoo.com
291 dk-sign yes
292 dkim-sign yes
293</domain>
294
295<domain $yahoo>
296queue-to "yahoo.queue"
297</domain>
298
299domain-macro yahooeu yahoo.co.uk,yahoo.de,yahoo.dk,yahoo.fr,yahoo.gr,yahoo.it,yahoo.no,yahoo.pl,yahoo.se
300
301<domain yahooeu.queue>
302 max-smtp-out 1000
303 max-msg-per-connection 1000
304 smtp-pattern-list yahoo-errors
305 retry-after 10s
306 backoff-retry-after 10m
307 backoff-to-normal-after-delivery true
308 backoff-max-msg-rate 10000/h
309 route yahoo.co.uk
310 dk-sign yes
311 dkim-sign yes
312</domain>
313
314<domain $yahooeu>
315 queue-to "yahooeu.queue"
316</domain>
317
318domain-macro yahooam
319rocketmail.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
320
321<domain yahooam.queue>
322 max-smtp-out 1000
323 max-msg-per-connection 1000
324 smtp-pattern-list yahoo-errors
325 retry-after 10s
326 backoff-retry-after 10m
327 backoff-to-normal-after-delivery true
328 backoff-max-msg-rate 10000/h
329 route yahoo.ca
330 dk-sign yes
331 dkim-sign yes
332</domain>
333
334<domain $yahooam>
335 queue-to "yahooam.queue"
336</domain>
337
338domain-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
339
340<domain yahooas.queue>
341 max-smtp-out 1000
342 max-msg-per-connection 1000
343 smtp-pattern-list yahoo-errors
344 retry-after 10s
345 backoff-retry-after 10m
346 backoff-to-normal-after-delivery true
347 backoff-max-msg-rate 10000/h
348 route yahoo.in
349 dk-sign yes
350 dkim-sign yes
351</domain>
352
353<domain $yahooas>
354 queue-to "yahooas.queue"
355</domain>
356
357
358# Aol Settings
359<smtp-pattern-list aol-errors>
360 reply /421 .* SERVICE NOT AVAILABLE/ mode=backoff
361 reply /generating high volumes of.* complaints from AOL/ mode=backoff
362 reply /554 .*aol.com/ mode=backoff
363 reply /421dynt1/ mode=backoff
364 reply /HVU:B1/ mode=backoff
365 reply /DNS:NR/ mode=backoff
366 reply /RLY:NW/ mode=backoff
367 reply /DYN:T1/ mode=backoff
368 reply /RLY:BD/ mode=backoff
369 reply /RLY:CH2/ mode=backoff
370</smtp-pattern-list>
371
372domain-macro aol
373aim.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
374
375<domain aol.queue>
376 route aol.com
377 dk-sign yes
378 dkim-sign yes
379 log-transfer-failures no
380 log-connections no
381 log-commands no
382 retry-after 2m
383 max-smtp-out 20
384 max-msg-per-connection 50
385 smtp-pattern-list aol-errors
386</domain>
387
388<domain $aol>
389 queue-to "aol.queue"
390</domain>
391
392domain-macro aoljp aol.co.jp
393
394<domain aoljp.queue>
395 max-smtp-out 1200
396 max-msg-per-connection 450
397 smtp-pattern-list aol-errors
398 retry-after 5m
399 backoff-retry-after 2m
400 backoff-to-normal-after-delivery true
401 backoff-max-msg-rate 10000/h
402 route aol.co.jp
403 dk-sign yes
404 dkim-sign yes
405</domain>
406
407<domain $aoljp>
408 queue-to "aoljp.queue"
409</domain>
410
411
412# Comcast Settings
413<domain comcast.net>
414 max-smtp-out 25
415 max-msg-per-connection 1000
416 dk-sign yes
417 dkim-sign yes
418</domain>
419
420
421# Cox Settings
422<domain cox.net>
423 max-smtp-out 5
424 max-msg-per-connection 100
425 dk-sign yes
426 dkim-sign yes
427</domain>
428
429
430# ATT Settings
431<domain att.net>
432 max-smtp-out 10
433 max-msg-per-connection 100
434 dk-sign yes
435 dkim-sign yes
436</domain>
437
438
439# Verizon Settings
440<domain verizon.net>
441 max-smtp-out 150
442 max-msg-per-connection 100
443 dk-sign yes
444 dkim-sign yes
445</domain>
446
447
448# Earthlink Settings
449<domain earthlink.net>
450 max-smtp-out 150
451 max-msg-per-connection 100
452 dk-sign yes
453 dkim-sign yes
454</domain>
455
456
457# Bellsouth Settings
458<domain bellsouth.net>
459 max-smtp-out 150
460 max-msg-per-connection 100
461 dk-sign yes
462 dkim-sign yes
463</domain>
464
465# SBCGlobal Settings
466<smtp-pattern-list Sbcglobal-errors>
467 #reply /\[140\]/ mode=backoff
468 #reply /\[160\]/ mode=backoff
469 reply /\[MC02\]/ mode=backoff
470 reply /\[GL01\]/ mode=backoff
471 reply /\[TS03\]/ mode=backoff
472 reply /\[TS02\]/ mode=backoff
473 reply /\[TS01\]/ mode=backoff
474 #reply /421 .* Please try again later/ mode=backoff
475 reply /421 Message temporarily deferred/ mode=backoff
476 #reply /VS3-IP5 Excessive unknown recipients/ mode=backoff
477 #reply /VSS-IP Excessive unknown recipients/ mode=backoff
478</smtp-pattern-list>
479
480<domain sbcglobal.net>
481 max-smtp-out 1200
482 max-msg-per-connection 1000
483 smtp-pattern-list sbcglobal-errors
484 backoff-retry-after 2m
485 backoff-to-normal-after-delivery true
486 backoff-max-msg-rate 100000/h
487 retry-after 2m
488 route sbcglobal.net
489 dk-sign yes
490 dkim-sign yes
491</domain>
492
493# Orange Settings
494<domain orange.fr>
495 max-smtp-out 3
496 max-msg-per-connection 10
497 max-msg-rate 250/m
498 max-connect-rate 25/m
499 dk-sign yes
500 dkim-sign yes
501</domain>
502
503
504# Wanadoo Settings
505<domain wanadoo.fr>
506 max-smtp-out 3
507 max-msg-per-connection 10
508 max-msg-rate 250/m
509 max-connect-rate 25/m
510 dk-sign yes
511 dkim-sign yes
512</domain>
513
514
515# General Settings
516<domain *>
517 max-smtp-out 20
518 max-rcpt-per-message 100
519 bounce-after 4d12h
520 retry-after 5m
521 log-connections yes
522 log-commands no
523 log-transfer-failures yes
524 deliver-local-dsn no
525</domain>
526
527#Ssl Config
528<domain *>
529 use-starttls yes
530 require-starttls no
531</domain>