· 7 years ago · Mar 28, 2019, 11:58 AM
1http-access 112.210.115.35 admin
2http-access 52.10.10.79 admin
3http-access 81.152.23.226 admin
4http-access 195.201.230.87 admin
5http-access 195.201.45.33 admin
6postmaster postmaster@email.luckysdeals.com
7<domain email.luckysdeals.com>
8deliver-local-dsn yes
9</domain>
10# Settings for Backoff codes in SMTP reply
11
12<smtp-pattern-list SMTPRESPONS>
13 reply /421 PR(ct1)/ mode=backoff
14 reply /^550 SC-001/ mode=backoff
15 reply /420 Resources unavailable temporarily/ mode=backoff
16 reply /^Resources unavailable temporarily/ mode=backoff
17 reply /^421/ mode=backoff
18 reply /^450/ mode=backoff
19 reply /^try later/ mode=backoff
20 reply /^553/ mode=backoff
21 reply /^421/ mode=backoff
22 reply /^550/ mode=backoff
23 reply /^553/ mode=backoff
24 reply /^550 SC-001/ mode=backoff
25 reply /^421 4.7.0/ mode=backoff
26 reply /^busy/ mode=backoff
27 reply /^WSAECONNREFUSED/ mode=backoff
28 reply /^WSAECONNRESET/ mode=backoff
29 reply /^Connection attempt failed/ mode=backoff
30</smtp-pattern-list>
31
32############################################################################
33# BEGIN: BACKOFF RULES
34############################################################################
35
36<smtp-pattern-list common-errors>
37 reply /generating high volumes of.* complaints from AOL/ mode=backoff
38 reply /Excessive unknown recipients - possible Open Relay/ mode=backoff
39 reply /^421 .* too many errors/ mode=backoff
40 reply /blocked.*spamhaus/ mode=backoff
41 reply /451 Rejected/ mode=backoff
42</smtp-pattern-list>
43
44<smtp-pattern-list blocking-errors>
45 #
46 # A QUEUE IN BACKOFF MODE WILL SEND MORE SLOWLY
47 # To place a queue back into normal mode, a command similar
48 # to one of the following will need to be run:
49 # pmta set queue --mode=normal yahoo.com
50 # or
51 # pmta set queue --mode=normal yahoo.com/vmta1
52 #
53 # To use backoff mode, uncomment individual <domain> directives
54 #
55 #AOL Errors
56 reply /421 .* SERVICE NOT AVAILABLE/ mode=backoff
57 reply /generating high volumes of.* complaints from AOL/ mode=backoff
58 reply /554 .*aol.com/ mode=backoff
59 reply /421dynt1/ mode=backoff
60 reply /HVU:B1/ mode=backoff
61 reply /DNS:NR/ mode=backoff
62 reply /RLY:NW/ mode=backoff
63 reply /DYN:T1/ mode=backoff
64 reply /RLY:BD/ mode=backoff
65 reply /RLY:CH2/ mode=backoff
66 #
67 #Yahoo Errors
68 reply /421 .* Please try again later/ mode=backoff
69 reply /421 Message temporarily deferred/ mode=backoff
70 reply /VS3-IP5 Excessive unknown recipients/ mode=backoff
71 reply /VSS-IP Excessive unknown recipients/ mode=backoff
72 #
73 # The following 4 Yahoo errors may be very common
74 # Using them may result in high use of backoff mode
75 #
76 reply /\[GL01\] Message from/ mode=backoff
77 reply /\[TS01\] Messages from/ mode=backoff
78 reply /\[TS02\] Messages from/ mode=backoff
79 reply /\[TS03\] All messages from/ mode=backoff
80 #
81 #Hotmail Errors
82 reply /exceeded the rate limit/ mode=backoff
83 reply /exceeded the connection limit/ mode=backoff
84 reply /Mail rejected by Windows Live Hotmail for policy reasons/ mode=backoff
85 reply /mail.live.com\/mail\/troubleshooting.aspx/ mode=backoff
86 #
87 #Adelphia Errors
88 reply /421 Message Rejected/ mode=backoff
89 reply /Client host rejected/ mode=backoff
90 reply /blocked using UCEProtect/ mode=backoff
91 #
92 #Road Runner Errors
93 reply /Mail Refused/ mode=backoff
94 reply /421 Exceeded allowable connection time/ mode=backoff
95 reply /amIBlockedByRR/ mode=backoff
96 reply /block-lookup/ mode=backoff
97 reply /Too many concurrent connections from source IP/ mode=backoff
98 #
99 #General Errors
100 reply /too many/ mode=backoff
101 reply /Exceeded allowable connection time/ mode=backoff
102 reply /Connection rate limit exceeded/ mode=backoff
103 reply /refused your connection/ mode=backoff
104 reply /try again later/ mode=backoff
105 reply /try later/ mode=backoff
106 reply /550 RBL/ mode=backoff
107 reply /TDC internal RBL/ mode=backoff
108 reply /connection refused/ mode=backoff
109 reply /please see www.spamhaus.org/ mode=backoff
110 reply /Message Rejected/ mode=backoff
111 reply /Delivery report/ mode=backoff
112 reply /refused by antispam/ mode=backoff
113 reply /Service not available/ mode=backoff
114 reply /currently blocked/ mode=backoff
115 reply /locally blacklisted/ mode=backoff
116 reply /not currently accepting mail from your ip/ mode=backoff
117 reply /421.*closing connection/ mode=backoff
118 reply /421.*Lost connection/ mode=backoff
119 reply /476 connections from your host are denied/ mode=backoff
120 reply /421 Connection cannot be established/ mode=backoff
121 reply /421 temporary envelope failure/ mode=backoff
122 reply /421 4.4.2 Timeout while waiting for command/ mode=backoff
123 reply /450 Requested action aborted/ mode=backoff
124 reply /550 Access denied/ mode=backoff
125 reply /exceeded the rate limit/ mode=backoff
126 reply /421rlynw/ mode=backoff
127 reply /permanently deferred/ mode=backoff
128 reply /\d+\.\d+\.\d+\.\d+ blocked/ mode=backoff
129 reply /www\.spamcop\.net\/bl\.shtml/ mode=backoff
130 reply /generating high volumes of.* complaints from AOL/ mode=backoff
131 reply /Excessive unknown recipients - possible Open Relay/ mode=backoff
132 reply /^421 .* too many errors/ mode=backoff
133 reply /blocked.*spamhaus/ mode=backoff
134 reply /451 Rejected/ mode=backoff
135</smtp-pattern-list>
136
137############################################################################
138# END: BACKOFF RULES
139############################################################################
140
141
142############################################################################
143# BEGIN: BOUNCE RULES
144############################################################################
145
146<bounce-category-patterns>
147 /spam/ spam-related
148 /junk mail/ spam-related
149 /blacklist/ spam-related
150 /blocked/ spam-related
151 /\bU\.?C\.?E\.?\b/ spam-related
152 /\bAdv(ertisements?)?\b/ spam-related
153 /unsolicited/ spam-related
154 /\b(open)?RBL\b/ spam-related
155 /realtime blackhole/ spam-related
156 /http:\/\/basic.wirehub.nl\/blackholes.html/ spam-related
157 /\bvirus\b/ virus-related
158 /message +content/ content-related
159 /content +rejected/ content-related
160 /quota/ quota-issues
161 /limit exceeded/ quota-issues
162 /mailbox +(is +)?full/ quota-issues
163 /\bstorage\b/ quota-issues
164 /(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
165 /(conta|usu.rio) inativ(a|o)/ inactive-mailbox
166 /Too many (bad|invalid|unknown|illegal|unavailable) (user|mailbox|recipient|rcpt|local part|address|account|mail drop|ad(d?)ressee)/ other
167 /(No such|bad|invalid|unknown|illegal|unavailable) (local +)?(user|mailbox|recipient|rcpt|local part|address|account|mail drop|ad(d?)ressee)/ bad-mailbox
168 /(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
169 /\S+@\S+ +(is +)?(not (a +)?valid|not known|not here|not found|does not exist|bad|invalid|unknown|illegal|unavailable)/ bad-mailbox
170 /no mailbox here by that name/ bad-mailbox
171 /my badrcptto list/ bad-mailbox
172 /not our customer/ bad-mailbox
173 /no longer (valid|available)/ bad-mailbox
174 /have a \S+ account/ bad-mailbox
175 /\brelay(ing)?/ relaying-issues
176 /domain (retired|bad|invalid|unknown|illegal|unavailable)/ bad-domain
177 /domain no longer in use/ bad-domain
178 /domain (\S+ +)?(is +)?obsolete/ bad-domain
179 /denied/ policy-related
180 /prohibit/ policy-related
181 /rejected/ policy-related
182 /refused/ policy-related
183 /allowed/ policy-related
184 /banned/ policy-related
185 /policy/ policy-related
186 /suspicious activity/ policy-related
187 /bad sequence/ protocol-errors
188 /syntax error/ protocol-errors
189 /\broute\b/ routing-errors
190 /\bunroutable\b/ routing-errors
191 /\bunrouteable\b/ routing-errors
192 /^2.\d.\d/ success
193 /^[45]\.1\.1/ bad-mailbox
194 /^[45]\.1\.2/ bad-domain
195 /^[45]\.3\.5/ bad-configuration
196 /^[45]\.4\.1/ no-answer-from-host
197 /^[45]\.4\.2/ bad-connection
198 /^[45]\.4\.4/ routing-errors
199 /^[45]\.4\.6/ routing-errors
200 /^[45]\.4\.7/ message-expired
201 /^[45]\.7\.1/ policy-related
202 // other # catch-all
203</bounce-category-patterns>
204
205############################################################################
206# END: BOUNCE RULES
207############################################################################
208
209
210
211
212#
213# Settings per source IP address (for incoming SMTP connections)
214#
215<virtual-mta slot00.email.luckysdeals.com>
216 smtp-source-host 195.201.230.87 slot0.email.luckysdeals.com
217</virtual-mta>
218<virtual-mta slot01.email.luckysdeals.com>
219 smtp-source-host 195.201.45.33 slot1.email.luckysdeals.com
220</virtual-mta>
221
222<virtual-mta-pool cloud00.email.luckysdeals.com>
223 virtual-mta slot00.email.luckysdeals.com
224 virtual-mta slot01.email.luckysdeals.com
225</virtual-mta-pool>
226
227<smtp-user admin>
228 password admin
229 source {server00}
230</smtp-user>
231<source {server00}>
232 default-virtual-mta cloud00.email.luckysdeals.com
233</source>
234
235
236<source 0/0>
237 jobid-header Message-ID
238 process-x-job yes
239 hide-message-source yes
240 allow-unencrypted-plain-auth yes
241 hide-message-source yes
242 always-allow-relaying yes # allow feeding
243 add-received-header no
244 process-x-virtual-mta yes # allow selection of a virtual MTA
245 max-message-size unlimited # 0 implies no cap, in bytes
246 smtp-service yes # allow SMTP service
247 require-auth true
248 add-message-id-header yes
249</source>
250
251
252
253smtp-listener 195.201.230.87:2526
254smtp-listener 195.201.45.33:2526
255
256# DKIM SELECTORS START
257domain-key dkim,email.luckysdeals.com, /etc/pmta/dkim/dkim.email.luckysdeals.com.pem
258# DKIM SELECTORS END
259
260domain-macro HotmailTopLevel co.il, co.jp, com, com.ar, com.br, com.tr,
261co.th, co.uk, de, es, fr, it, jp, se, at, be, ca, cl, cn, co.kr, com.au,
262com.mx, com.my, com.sg, co.za, dk, hk, ie, in, nl, no, ru
263domain-macro YahooTopLevel co.il, co.jp, com, com.ar, com.br, com.tr,
264co.th, co.uk, de, es, fr, it, jp, se, at, be, ca, cl, cn, co.kr, com.au,
265com.mx, com.my, com.sg, co.za, dk, hk, ie, in, nl, no, ru
266domain-macro AOLTopLevel co.il, co.jp, com, com.ar, com.br, com.tr, co.th,
267co.uk, de, es, fr, it, jp, se, at, be, ca, cl, cn, co.kr, com.au, com.mx,
268com.my, com.sg, co.za, dk, hk, ie, in, nl, no, ru
269
270<domain verifier.port25.com>
271 max-smtp-out 200 # max. connections *per domain*
272 bounce-after 4d12h # 4 days, 12 hours
273 retry-after 10m # 10 minutes
274 max-msg-rate 10/s
275 max-msg-per-connection 5
276 dk-sign yes
277 dkim-sign yes
278 dkim-identity sender-or-from
279
280</domain>
281
282<domain cox.net>
283 max-smtp-out 5 # max. connections *per domain*
284 bounce-after 4d12h # 4 days, 12 hours
285 retry-after 10m # 10 minutes
286 max-msg-per-connection 100
287 dk-sign yes
288 dkim-sign yes
289 dkim-identity sender-or-from
290
291 log-commands yes
292 backoff-to-normal-after 2h
293 backoff-to-normal-after-delivery true
294 backoff-retry-after 30m
295 backoff-max-msg-rate 10/m
296 bounce-upon-no-mx yes
297 smtp-pattern-list SMTPRESPONS
298</domain>
299
300<domain comcast.net>
301 max-smtp-out 2 # max. connections *per domain*
302 bounce-after 4d12h # 4 days, 12 hours
303 retry-after 10m # 10 minutes
304 max-msg-per-connection 100
305 dk-sign yes
306 dkim-sign yes
307 dkim-identity sender-or-from
308
309 log-commands yes
310 backoff-to-normal-after 2h
311 backoff-to-normal-after-delivery true
312 backoff-retry-after 30m
313 backoff-max-msg-rate 10/m
314 bounce-upon-no-mx yes
315 smtp-pattern-list SMTPRESPONS
316</domain>
317
318<domain aol.$AOLTopLevel>
319 max-smtp-out 2 # max. connections *per domain*
320 bounce-after 4d12h # 4 days, 12 hours
321 retry-after 10m # 10 minutes
322 max-msg-rate 1500/h
323 max-msg-per-connection 100
324 smtp-421-means-mx-unavailable yes
325 dk-sign yes
326 dkim-sign yes
327 dkim-identity sender-or-from
328
329 log-commands yes
330 backoff-to-normal-after 2h
331 backoff-to-normal-after-delivery true
332 backoff-retry-after 30m
333 backoff-max-msg-rate 10/m
334 bounce-upon-no-mx yes
335 smtp-pattern-list SMTPRESPONS
336</domain>
337
338<domain yahoo.$YahooTopLevel>
339 max-smtp-out 3 # max. connections *per domain*
340 bounce-after 4d12h # 4 days, 12 hours
341 retry-after 10m # 10 minutes
342 max-msg-rate 2000/h
343 max-msg-per-connection 5
344 smtp-421-means-mx-unavailable yes
345 dk-sign yes
346 dkim-sign yes
347 dkim-identity sender-or-from
348
349 log-commands yes
350 backoff-to-normal-after 2h
351 backoff-to-normal-after-delivery true
352 backoff-retry-after 30m
353 backoff-max-msg-rate 10/m
354 bounce-upon-no-mx yes
355 smtp-pattern-list SMTPRESPONS
356</domain>
357
358<domain hotmail.$HotmailTopLevel>
359 max-smtp-out 25 # max. connections *per domain*
360
361 bounce-after 2d12h # 4 days, 12 hours
362 retry-after 10m # 10 minutes
363 max-msg-rate 250/min
364 max-msg-per-connection 150
365 smtp-421-means-mx-unavailable yes
366 dk-sign yes
367 dkim-sign yes
368 dkim-identity sender-or-from
369
370 log-commands yes
371 backoff-to-normal-after 2h
372 backoff-to-normal-after-delivery true
373 backoff-retry-after 30m
374 backoff-max-msg-rate 25/min
375 bounce-upon-no-mx yes
376 smtp-pattern-list SMTPRESPONS
377</domain>
378
379<domain msn.com>
380 max-smtp-out 5 # max. connections *per domain*
381 bounce-after 4d12h # 4 days, 12 hours
382 retry-after 10m # 10 minutes
383 max-msg-per-connection 10
384 smtp-421-means-mx-unavailable yes
385 dk-sign yes
386 dkim-sign yes
387 dkim-identity sender-or-from
388
389 log-commands yes
390 backoff-to-normal-after 2h
391 backoff-to-normal-after-delivery true
392 backoff-retry-after 30m
393 backoff-max-msg-rate 10/m
394 bounce-upon-no-mx yes
395 smtp-pattern-list SMTPRESPONS
396</domain>
397
398<domain gmail.com>
399 max-smtp-out 5 # max. connections *per domain*
400 bounce-after 2d12h # 4 days, 12 hours
401 retry-after 30m # 10 minutes
402 dk-sign yes
403 dkim-sign yes
404 dkim-identity sender-or-from
405
406 max-msg-rate 5000/h
407 max-msg-per-connection 250
408 smtp-421-means-mx-unavailable yes
409 log-commands yes
410 backoff-to-normal-after 2h
411 backoff-to-normal-after-delivery true
412 backoff-retry-after 30m
413 backoff-max-msg-rate 500/h
414 bounce-upon-no-mx yes
415 smtp-pattern-list SMTPRESPONS
416</domain>
417
418
419#
420# {gmImprinter} is a special queue used for imprinting Goodmail tokens.
421#
422<domain {gmImprinter}>
423 max-events-recorded 150
424 log-messages yes
425 log-data no # extremely verbose, for debugging only
426 retry-after 15s
427</domain>
428
429<domain *>
430 max-smtp-out 2 # max. connections *per domain*
431 bounce-after 4d # 4 days, 12 hours
432 retry-after 10m # 10 minutes
433 max-msg-per-connection 1
434 dk-sign yes
435 dkim-sign yes
436 dkim-identity sender-or-from
437
438 log-commands yes
439 backoff-to-normal-after 2h
440 backoff-to-normal-after-delivery true
441 backoff-retry-after 30m
442 backoff-max-msg-rate 10/m
443 bounce-upon-no-mx yes
444 smtp-pattern-list SMTPRESPONS
445 use-starttls yes
446 require-starttls no
447 # remove-header X-Priority,X-Report-Abuse,X-Spam-Score,X-Spam-Status,X-Spam-Bar,X-Ham-Report,X-Spam-Flag
448</domain>
449
450#
451# Goodmail imprinter configuration
452#
453#<gm-imprinter>
454# account-id ID # replace with value from mailcenter
455# imprinter-id ID # replace with value from mailcenter
456# imprinter-password PW # replace with value from mailcenter
457#
458# # If the directives below are not specified, defaults are picked as
459# # described in the Goodmail documentation
460#
461# default-token-class 1 # optionally set as appropriate
462# default-content-type 1 # optionally set as appropriate
463# default-payer-id ID # optionally set as appropriate
464# default-obo-id ID # optionally set as appropriate
465#</gm-imprinter>
466
467#
468# Port used for HTTP management interface
469#
470http-mgmt-port 3187
471
472#
473# IP addresses allowed to access the HTTP management interface, one
474# per line
475#
476
477
478#
479# Synchronize I/O to disk after receiving the message. 'false' yields
480# higher performance, but the message may be lost if the system crashes
481# before it can write the data to disk.
482#
483sync-msg-create false
484
485#
486# Synchronize I/O to disk after updating the message (e.g., to mark recipients
487# handled). 'false' yields higher performance, but if the system crashes
488# before it can write the data to disk, some recipients may receive multiple
489# copies of a message.
490#
491run-as-root yes
492sync-msg-update false
493
494#
495# Logging file
496#
497log-file /etc/pmta/log/pmta.log # logrotate is used for rotation
498log-rotate 10 # number of files; 0 disables rotation
499
500#
501# Accounting file(s)
502#
503<acct-file /etc/pmta/files/acct.csv>
504# move-to /opt/myapp/pmta-acct # configure as fit for your application
505record-fields delivery *,envId,jobId,bounceCat
506move-interval 5m
507delete-after 7d
508max-size 50M
509user-string from
510</acct-file>
511
512# transient errors (soft bounces)
513<acct-file /etc/pmta/files/diag.csv>
514move-interval 1d
515delete-after 7d
516records t
517</acct-file>
518
519#
520# Spool directories
521#
522spool /var/spool/pmta
523
524#<spool /var/spool/pmta>
525# deliver-only no
526#</spool>
527# EOF
528
529host-name 195.201.230.87
530host-name 195.201.45.33