summaryrefslogtreecommitdiff
blob: 1280b00a622dba6a5aa2162133b9a65b27ef0c8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2010-10-21 23:56+0600\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(guide:link):6
msgid "/doc/en/mailfilter-guide.xml"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):7
msgid "Gentoo mailfiltering gateway guide"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(author:title):9
msgid "Author"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(mail:link):10
msgid "jaervosz@gentoo.org"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(mail):10
msgid "Sune Kloppenborg Jeppesen"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(author:title):12
msgid "Contributor"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(mail:link):13
msgid "gentoo@hilli.dk"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(mail):13
msgid "Jens Hilligsøe"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(author:title):15
msgid "Editor"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(mail:link):16
msgid "nightmorph@gentoo.org"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(mail):16
msgid "Joshua Saddler"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(abstract):19
msgid "This guide is step-by-step guide for installing spam fighting technologies for Postfix. Among them Amavisd-new using Spamassassin and ClamAV, greylisting and SPF."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(version):29
msgid "0.14"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(date):30
msgid "2007-08-02"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):33 ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):1296 ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):1521
msgid "Introduction"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):37
msgid "This guide describe step by step how to install a spam and virus filtering mail gateway. It is quite simple to adopt this to a single server solution."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):45
msgid "The big picture"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):48
msgid "This document describe how to setup a spam filtering mail gateway with multiple domains. This server is meant to run in front of the mail servers actually keeping the mail accounts i.e. Microsoft Exchange or Lotus Notes."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):55
msgid "In this setup applications with good security records and readable configuration files have been chosen. The email MTA is postfix which has a good security record and is fairly easy to setup right. Postfix will listen normally on port 25 for incoming mail. Upon reception it will forward it to Amavisd-new on port 10024. Amavisd-new will then filter the mail through different filters before passing the mail back to Postfix on port 10025 which in turn will forward the mail to the next mail server."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):65
msgid "Amavisd-new is a content filtering framework utilizing helper applications for virus filtering and spam filtering. In this setup we will be using two helper applications one ClamAV for filtering virus mails and Spamassassin for filtering spam. Spamassassin itself can function as yet another layer of content filtering framework and utilize the helper applications Vipul's Razor2 and DCC."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):73
msgid "Unlike many other spam fighting technologies like RBLs and others Spamassassin does not simply accept or reject a given email based on one single test. It uses a lot of internal tests and external helper applications to calculate a spam score for every mail passed through. This score is based on the following tests:"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(li):81
msgid "Bayesian filtering"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(li):82
msgid "Static rules based on regular expressions"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(li):85
msgid "RBLs"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(li):86
msgid "Razor2"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(li):87 ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(uri):2106
msgid "Pyzor"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(li):88 ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(ti):236
msgid "DCC"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(li):83
msgid "Distributed and collaborative networks: <placeholder-1/>"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):93
msgid "The first part (chapters 1 to 4) of the guide will describe the basic setup of a mailfiltering gateway. The next chapters can be implemented individually with no dependence between each chapter. These chapters describe how to:"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(li):100
msgid "setup special IMAP folders for learning of the Bayesian filter and for delivery of false positives"
msgstr ""

#. <li>setup log analyzers to create daily reports</li>
#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(li):107
msgid "setup greylisting with Postfix"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(li):108
msgid "setup Amavisd-new to use a MySQL backend for user preferences"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(li):109
msgid "setup Spamassassin to use a MySQL backend for AWL and Bayes data"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):112
msgid "The IMAP folders will be using the maildir format. Having each mail in a separate file makes handling much simpler. If you're using mbox I propose to give maildir a try. If you're not already using maildir emerge the necessary tools with <c>emerge courier-imap</c>."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):119
msgid "A planned fifth part will contain various tips regarding performance and things you may want to know (running chrooted, postfix restrictions, etc.)."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):124
msgid "Delegating responsibility to third parties is not without risks. You have to know and trust these third parties. In this setup only the decision to quarantine virus mails are based on a single third party. Using Spamassassin's scoring system the decision to stop spam mails are not made by a single authority except perhaps Spamassassins own static rules."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(warn):132
msgid "When rejecting spam mails at the MTA level you have to be very careful when selecting the RBL's you want to use, i.e. SpamCop is a bad RBL to use at the MTA level because you will experience false positives because sometimes their listing is just too aggressive. Further info at <uri link=\"http://www.geekcomix.com/cgi-bin/classnotes/wiki.pl?UNIX03/Realtime_Blackhole_Lists_Are_Bad\">Realtime Blackhole Lists Are Bad</uri> and <uri link=\"http://theory.whirlycott.com/~phil/antispam/rbl-bad/rbl-bad.html\">The Spam Problem: Moving Beyond RBLs</uri>"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):146 ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):1572
msgid "Preparations"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):149
msgid "Before you start make sure that you have a working Postfix installation where you can send and receive mails also you need a backend mailserver. If you're not experienced with setting up Postfix it might quickly become too complicated if all should be set up at once. If you need help you can find it in the excellent <uri link=\"http://www.gentoo.org/doc/en/virt-mail-howto.xml\">Virtual Mailhosting System with Postfix Guide</uri> in the Gentoo Documentation."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):163
msgid "Installing the programs needed"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):167
msgid "We start out by installing the most important programs: Amavisd-new, Spamassassin and ClamAV."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):172
msgid "Installing Amavis, Spamassassin and Clamav"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):172
#, no-wrap
msgid "\n# <i>emerge amavisd-new spamassassin clamav </i>\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):176
msgid "As previously mentioned you should already have a working <c>postfix</c> instance running on the box. Basically this shouldn't be much more than <c>emerge postfix</c><e>and</e> have a basic understanding of how Postfix is working."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):186 ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):204
msgid "Setting up DNS"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):189
msgid "If you're not setting up a gateway server but have the mailboxes on the same server you only have to create the MX-Record."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):194
msgid "While the programs are emerging fire up another shell and create the needed DNS records."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):199
msgid "Start out by creating a <c>MX</c> record for the mail gateway and an <c>A</c> record for the next destination."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):204
#, no-wrap
msgid "\n<comment>(Create a MX record for the gateway server)</comment>\n                MX      10      mailgateway.mydomain.tld.\n<comment>(Create an A record for the gateway server)</comment>\nmailgateway     A       mgw.ip.add.here\n<comment>(Create an A record for the next hop mail server)</comment>\nmail            A       ms.ip.add.here\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):213
msgid "Some ADSL providers might block port 25 and force you to relay mail through one of their servers. Typically you have to create a secondary MX-Record like <c>MX 20 backup-mx.some-isp.tld</c>"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):222
msgid "Opening the firewall"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):225
msgid "In addition to allowing normal mail traffic you have to allow a few services through your firewall to allow the network checks to communicate with the servers."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(th):233
msgid "Application"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(th):233
msgid "Protocol"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(th):233
msgid "Port"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(ti):236
msgid "UDP"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(ti):236
msgid "6277"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(ti):239
msgid "Razor(outgoing ping)"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(ti):239 ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(ti):242
msgid "TCP"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(ti):239
msgid "7"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(ti):242
msgid "Razor"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(ti):242
msgid "2703"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):246
msgid "Razor uses pings to discover what servers are closest to it."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):253
msgid "Configuring Postfix"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):256
msgid "First we have to tell <c>postfix</c> to listen on port 10025 and we remove most of the restrictions as they have already been applied by the <c>postfix</c> instance listening on port 25. Also we ensure that it will only listen for local connections on port 10025. To accomplish this we have to add the following at the end of <path>/etc/postfix/master.cf</path>"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):264
msgid "Changing the master.cf file"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):264
#, no-wrap
msgid "\nsmtp-amavis     unix -        -       n     -       2  smtp\n  -o smtp_data_done_timeout=1200\n  -o smtp_send_xforward_command=yes\n<comment>#Equivalently when using lmtp:\n#lmtp-amavis    unix -        -       n     -       2  lmtp\n#   -o lmtp_data_done_timeout=1200\n#   -o lmtp_send_xforward_command=yes</comment>\n\n127.0.0.1:10025 inet n        -       n     -       -  smtpd\n  -o content_filter=\n  -o local_recipient_maps=\n  -o relay_recipient_maps=\n  -o smtpd_restriction_classes=\n  -o smtpd_client_restrictions=\n  -o smtpd_helo_restrictions=\n  -o smtpd_sender_restrictions=\n  -o smtpd_recipient_restrictions=permit_mynetworks,reject\n  -o mynetworks=127.0.0.0/8\n  -o strict_rfc821_envelopes=yes\n  -o smtpd_error_sleep_time=0\n  -o smtpd_soft_error_limit=1001\n  -o smtpd_hard_error_limit=1000\n\n<comment>#If you want to use proxy filtering instead\n#smtp            inet n         -       n      -       8 smtpd\n# -o smtpd_proxy_filter=127.0.0.1:10024\n# -o smtpd_client_connection_count_limit=4\n#If you don't want to scan outgoing mail use this\n#10.0.0.2:smtp   inet n         -       n       -      - smtpd\n#-o content_filter=</comment>\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):297
msgid "The <c>smtp-amavis</c> line specifies that a maximum of two of these processes may run at any time. If you need a greater degree of concurrency tune this number to fit your needs. Remember that to match the number with <c>$max_servers</c> in <path>amavisd.conf</path>. Keep in mind that <c>amavisd-new</c> is quite memory-intensive and raising the amount of <c>amavisd-new</c> processes too high can easily lead to memory starvation and heavy swapping, which leads to drastically reduced performance."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):307
msgid "If you want to reject spam early on in the process you can use the Before-Queue (proxy) method instead of the filter method. If you uncomment the three lines you will have to set <c>content_filter=</c> in <path>main.cf</path>. This is not recommended for high traffic servers as the number of concurrent connections are limited to the number of amavisd instances."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(warn):316
msgid "The Before-Queue(proxy) method is still not properly tested."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):320
msgid "If you, for any reason whatsoever, want to send mail from this box and don't want it scanned, add another postfix instance by uncommenting the last two lines and substitute with a proper IP."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):326
msgid "The file <path>master.cf</path> tells the postfix master program how to run each individual postfix process. More info with <c>man 8 master</c>."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):332
msgid "Next we need the main <c>postfix</c> instance listening on port 25 to filter the mail through <c>amavisd-new</c> listening on port 10024."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):337
msgid "We also need to set the next hop destination for mail. Tell Postfix to filter all mail through an external content filter and enable explicit routing to let Postfix know where to forward the mail to."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):343 ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):985
msgid "Modifying /etc/postfix/main.cf"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):343
#, no-wrap
msgid "\nbiff = no\nempty_address_recipient = MAILER-DAEMON\nqueue_minfree = 120000000\n\ncontent_filter = smtp-amavis:[127.0.0.1]:10024\n<comment>#Equivalently when using lmtp:\n#content_filter = lmtp-amavis:[127.0.0.1]:10024\n\n# TRANSPORT MAP\n#\n# Insert text from sample-transport.cf if you need explicit routing.</comment>\ntransport_maps = hash:/etc/postfix/transport\n\nrelay_domains = $transport_maps\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):360
msgid "Postfix has a lot of options set in <path>main.cf</path>. For further explanation of the file please consult <c>man 5 postconf</c> or the same online <uri link=\"http://www.postfix.org/postconf.5.html\">Postfix Configuration Parameters</uri>."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):367
msgid "The format of the <path>transport</path> file is the normal Postfix hash file. Mail to the domain on the left hand side is forwarded to the destination on the right hand side."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):373
msgid "/etc/postfix/transport"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):373
#, no-wrap
msgid "\nmydomain.tld                          smtp:mail.mydomain.tld\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):377
msgid "After we have edited the file we need to run the <c>postmap</c> command. Postfix does not actually read this file so we have to convert it to the proper format with <c>postmap /etc/postfix/transport</c>. This creates the file <path>/etc/postfix/transport.db</path>. There is no need to reload Postfix as it will automatically pick up the changes."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):385
msgid "If the next hop mail server is not listening on the standard SMTP port 25 you can tell postfix to use a given port number, like <c>smtp:mail.mydomain.tld:25000</c>."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):391
msgid "If your first attempts to send mail result in messages bouncing, you've likely made a configuration error somewhere. Try temporarily enabling <c>soft_bounce</c> while you work out your configuration issues. This prevents postfix from bouncing mails on delivery errors by treating them as temporary errors. It keeps mails in the mail queue until <c>soft_bounce</c> is disabled or removed."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):400
msgid "Enabling soft_bounce"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):400
#, no-wrap
msgid "\n# <i>postconf -e \"soft_bounce = yes\"</i>\n# <i>/etc/init.d/postfix reload</i>\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):405
msgid "Once you've finished creating a working configuration, be sure to disable or remove <c>soft_bounce</c> and reload postfix."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):413
msgid "Configuring Amavisd-new"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):416
msgid "Amavisd-new is used to handle all the filtering and allows you to easily glue together severel different technologies. Upon reception of a mail message it will extract the mail, filter it through some custom filters, handle white and black listing, filter the mail through various virus scanners and finally it will filter the mail using SpamAssassin."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):424
msgid "Amavisd-new itself has a number of extra features:"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(li):429
msgid "it identifies dangerous file attachments and has policies to handle them"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(li):435
msgid "whitelists"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(li):436
msgid "blacklists"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(li):437
msgid "spam score thresholds"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(li):438
msgid "virus and spam policies"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(li):432
msgid "per-user, per-domain and system-wide policies for: <placeholder-1/>"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):443
msgid "Apart from <c>postfix</c> and <c>freshclam</c> we will run all applications as the user <c>amavis</c>."
msgstr ""

#. <p>
#. Create the new home directory and set the proper permissions.
#. </p>
#. 
#. <pre caption="Create the new home directory and set the proper permissions">
#. # <i>mkdir /var/amavis</i>
#. # <i>chown amavis:amavis /var/amavis</i>
#. # <i>chmod 750 /var/amavis</i>
#. </pre>
#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):466
msgid "Edit the following lines in <path>/etc/amavisd.conf</path>"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):470
msgid "Editing /etc/amavisd.conf"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):470
#, no-wrap
msgid "\n<comment>(Insert the domains to be scanned)</comment>\n$mydomain = 'example.com';\n<comment>(Bind only to loopback interface)</comment>\n$inet_socket_bind = '127.0.0.1';\n<comment>(Forward to Postfix on port 10025)</comment>\n$forward_method = 'smtp:127.0.0.1:10025';\n$notify_method = $forward_method;\n<comment>(Define the account to send virus alert emails)</comment>\n$virus_admin = \"virusalert\\@$mydomain\";\n<comment>(Always add spam headers)</comment>\n$sa_tag_level_deflt  = -100;\n<comment>(Add spam detected header aka X-Spam-Status: Yes)</comment>\n$sa_tag2_level_deflt = 5;\n<comment>(Trigger evasive action at this spam level)</comment>\n$sa_kill_level_deflt = $sa_tag2_level_deflt;\n<comment>(Do not send delivery status notification to sender.  It does not affect\ndelivery of spam to recipient. To do that, use the kill_level)</comment>\n$sa_dsn_cutoff_level = 10;\n<comment>Don't bounce messages left and right, quarantine\ninstead</comment>\n$final_virus_destiny      = D_DISCARD;  # (defaults to D_DISCARD)\n$final_banned_destiny     = D_DISCARD;  # (defaults to D_BOUNCE)\n$final_spam_destiny       = D_DISCARD;  # (defaults to D_BOUNCE)\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):496
msgid "With this line <c>$sa_tag2_level_deflt = 5;</c> you set the Spamassassin spam score to 5. This might be a bit low. As you might have noticed the Amavisd-new default is <c>6.3</c>. If you don't want to see a single spam mail in your mail folder choose <c>5</c>, but if you don't want to deal with false positives choose <c>6.3</c>."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):504
msgid "Create a quarantine directory for the virus mails as we don't want these delivered to our users."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):509
msgid "Create a quarantine directory for the virus mails"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):509
#, no-wrap
msgid "\n# <i>mkdir /var/amavis/virusmails</i>\n# <i>chown amavis:amavis /var/amavis/virusmails</i>\n# <i>chmod 750 /var/amavis/virusmails</i>\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):515
msgid "Amavisd-new offers finer policy tuning by using policy banks."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):522
msgid "Configuring ClamAV"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):525
msgid "As virus scanner we use ClamAV as it has a fine detection rate comparable with commercial offerings, it is very fast and it is Open Source Software. We love log files, so make <c>clamd</c> log using <c>syslog</c> and turn on verbose logging. Also do not run <c>clamd</c> as <c>root</c>. Now edit <path>/etc/clamd.conf</path>"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):533
msgid "Edit /etc/clamd.conf"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):533
#, no-wrap
msgid "\n<comment>(Verbose logging with syslog)</comment>\nLogSyslog\nLogVerbose\nLogFacility LOG_MAIL\n<comment>(Change pid file location)</comment>\nPidFile /var/run/amavis/clamd.pid\n<comment>(Set the clamav socket)</comment>\nLocalSocket /var/amavis/clamd\n<comment>(Close the connection when this limit is exceeded)</comment>\nStreamMaxLength 10M\n<comment>(Don't run clamd as root)</comment>\nUser amavis\n<comment>(Newer versions require you to uncomment this)</comment>\nScanMail\nScanArchive\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):551
msgid "Also remember to remove the Example directive to make ClamAV work"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):555
msgid "ClamAV comes with the <c>freshclam</c> deamon dedicated to periodical checks of virus signature updates. Instead of updating virus signatures twice a day we will make <c>freshclam</c> update virus signatures every two hours."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):561
msgid "Edit /etc/freshclam.conf"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):561
#, no-wrap
msgid "\n<comment>(Syslog logging)</comment>\nLogSyslog\n<comment>(Verbose logging)</comment>\nLogVerbose\n<comment>(Explicitly drop root privileges)</comment>\nDatabaseOwner clamav\n<comment>(Check for updates every two hours. That is the official recommendation)</comment>\nChecks 12\n<comment>(Use the mirror closest to you. Replace XY with your country code</comment>\nDatabaseMirror db.XY.clamav.net\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):574
msgid "Start <c>clamd</c> with <c>freshclam</c> using the init scripts by modifying <path>/etc/conf.d/clamd</path>."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):579
msgid "Modifying /etc/conf.d/clamd"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):579
#, no-wrap
msgid "\nSTART_CLAMD=yes\nFRESHCLAM_OPTS=\"-d\"\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):584
msgid "At last modify <path>amavisd.conf</path> with the new location of the socket."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):589 ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):1087
msgid "Modifying /etc/amavisd.conf"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):589
#, no-wrap
msgid "\n<comment>(Uncomment the clamav scanner and modify socket location)</comment>\n['ClamAV-clamd',\n\\&amp;ask_daemon, [\"CONTSCAN {}\\n\", \"/var/amavis/clamd\"],\n  qr/\\bOK$/, qr/\\bFOUND$/,\n  qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(warn):597
msgid "Do NOT modify the <c>$unix_socketname</c> unless you know what you're doing."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):604
msgid "Configuring Vipul's Razor"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):607
msgid "Razor2 is a collaborative and distributed spam checksum network. Install it with <c>emerge razor</c> and create the needed configuration files. Do this as user <c>amavis</c> by running <c>su - amavis</c> followed <c>razor-admin -create</c>."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):614
msgid "Creating the required configuration files"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):614
#, no-wrap
msgid "\n# <i>emerge razor</i>\n\n<comment>(Temporarily set amavis' shell to bash)</comment>\n# <i>usermod -s /bin/bash amavis</i>\n# <i>su - amavis</i>\n$ <i>razor-admin -create</i>\n$ <i>exit</i>\n\n<comment>(Reset the shell to /bin/false)</comment>\n# <i>usermod -s /bin/false amavis</i>\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):630
msgid "Configuring Distributed Checksum Clearinghouse (dcc)"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):633
msgid "Like Razor2, dcc is a collaborative and distributed spam checksum network. Its philosopy is to count the number of recipients of a given mail identifying each mail with a fuzzy checksum."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):639
msgid "Installing DCC"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):639
#, no-wrap
msgid "\n# <i>emerge dcc</i>\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):646
msgid "Configuring Spamassassin"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):649
msgid "Amavis is using the Spamassassin Perl libraries directly so there is no need to start the service. Also this creates some confusion about the configuration as some Spamassassin settings are configured in <path>/etc/mail/spamassassin/local.cf</path> and overridden by options in <path>/etc/amavisd.conf</path>."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):657
msgid "Create /etc/mail/spamassassin/local.cf"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):657
#, no-wrap
msgid "\n<comment># Enable the Bayes system</comment>\nuse_bayes               1\n\n<comment># Enable all network checks</comment>\nskip_rbl_checks         0\n\n<comment># Mail using languages used in these country codes will not be marked\n# as being possibly spam in a foreign language.\n# - danish english norwegian swedish</comment>\nok_languages            da en no sv\n\n<comment># Mail using locales used in these country codes will not be marked\n# as being possibly spam in a foreign language.</comment>\nok_locales              en\n\n<comment># Use a sensible bayes path</comment>\nbayes_path              /var/amavis/.spamassassin/bayes\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):677
msgid "With Spamassassin version 3.1 you have to enable DCC, Razor2 by uncommenting the corresponding lines in <path>v310.pre</path>."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):682
msgid "You can find inspiration for your <path>local.cf</path> file by trying the <uri link=\"http://www.yrex.com/spam/spamconfig.php\">SpamAssassin Configuration Generator</uri>."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):688
msgid "You might also want to switch the <c>ok_languages</c> and <c>ok_locales</c>."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):697
msgid "Every good rule has good exceptions as well"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):701
msgid "Once mail really starts passing through this mail gateway you will probably discover that the above setup is not perfect. Maybe some of your customers like to receive mails that others wouldn't. You can whitelist/blacklist envelope senders quite easily. Uncomment the following line in <path>amavisd.conf</path>."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):709
msgid "Modifying amavisd.conf to do sitewide scoring"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):709
#, no-wrap
msgid "\nread_hash(\"/var/amavis/sender_scores_sitewide\"),\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):713
msgid "In the <path>sender_scores_sitewide</path> file you put complete email addresses or just the domian parts and then note a positive/negative score to add to the spam score."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):719
msgid "whitelist_sender example"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):719
#, no-wrap
msgid "\n<comment>(Whitelist all emails from the specific email address)</comment>\npostmaster@example.net                -3.0\n<comment>(Whitelist all emails from the example.net excluding subdomains)</comment>\n.example.net                          1.0\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):726
msgid "See <path>/etc/amavisd.conf</path> for more examples."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):730
msgid "Placing these addresses outside <path>amavisd.conf</path> is a cleaner and safer solution."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):735
msgid "Alternatively it can be done in Spamassassin's configuration file <path>/etc/mail/spamassassin/local.cf</path> but I think it is cleaner to do it in <path>/etc/amavisd.conf</path>."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):741
msgid "In a later chapter I will show how to implement per-user policies using MySQL."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):746
msgid "While waiting for a better method you can add the following to <path>amavisd.conf</path> to bypass spam checks for <c>postmaster</c> and <c>abuse</c> mailboxes."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):752
msgid "By pass spam filters for all postmaster and abuse mails"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):752
#, no-wrap
msgid "\nmap { $bypass_spam_checks{lc($_)}=1 } (qw(\n        postmaster@\n        abuse@\n));\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(impo):759
msgid "While we are at it we should <e>never</e> automatically discard mails to the <c>postmaster</c> or the <c>abuse</c> accounts. See <uri link=\"http://www.ietf.org/rfc/rfc2142.txt\">RFC 2142 MAILBOX NAMES FOR COMMON SERVICES, ROLES AND FUNCTIONS</uri>. Otherwise your domains might end up listed in some of the evil lists over at <uri link=\"http://www.rfc-ignorant.org/\">rfc-ignorant.org</uri>."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):773
msgid "Adding more rules"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):777
msgid "If you want to use more rules provided by the SARE Ninjas over at the <uri link=\"http://www.rulesemporium.com/\">SpamAssassin Rules Emporium</uri> you can easily add and update them using the <c>sa-update</c> mechanism included in Spamassassin."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):784
msgid "A brief guide to using SARE rulesets with <c>sa-update</c> can be found <uri link=\"http://daryl.dostech.ca/sa-update/sare/sare-sa-update-howto.txt\">here</uri>."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):794
msgid "Testing and finishing up"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):796
msgid "Testing the setup"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):799
msgid "Now before you start <c>freshclam</c> you can manually verify that it works."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):803
msgid "Testing freshclam"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):803
#, no-wrap
msgid "\n# <i>freshclam</i>\nClamAV update process started at Sun May  2 09:13:41 2004\nReading CVD header (main.cvd): OK\nDownloading main.cvd [*]\nmain.cvd updated (version: 22, sigs: 20229, f-level: 1, builder: tkojm)\nReading CVD header (daily.cvd): OK\nDownloading daily.cvd [*]\ndaily.cvd updated (version: 298, sigs: 1141, f-level: 2, builder: diego)\nDatabase updated (21370 signatures) from database.clamav.net (193.1.219.100).\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):815
msgid "Now you have updated virus definitions and you know that <path>freshclam.conf</path> is working properly."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):820
msgid "Test freshclam and amavisd from the cli and amavisd testmails. Start <c>clamd</c> and <c>amavis</c> with the following commands:"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):825
msgid "Start amavisd and clamd and reload postfix configuration"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):825
#, no-wrap
msgid "\n# <i>/etc/init.d/clamd start</i>\n# <i>/etc/init.d/amavisd start</i>\n# <i>/etc/init.d/postfix reload</i>\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):831
msgid "If everything went well <c>postfix</c> should now be listening for mails on port 25 and for reinjected mails on port 10024. To verify this check your log file."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):836
msgid "Checking log files"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):836
#, no-wrap
msgid "\n# <i>tail -f /var/log/mail.log</i>\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):840
msgid "Depending on your log settings the correct path might be <path>/var/log/messages</path>."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):845
msgid "Now if no strange messages appear in the log file it is time for a new test."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):850
msgid "Use <c>netcat</c> to manually connect to <c>amavisd</c> on port 10024 and <c>postfix</c> on port 10025."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):855
msgid "Netcat can be used as an advanced replacement for <c>telnet</c>. Install it with <c>emerge netcat</c>."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):860
msgid "For some unknown reason you can not complete a manual mail injection to <c>amavisd</c> with netcat. Use <c>telnet</c> instead."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):865
msgid "Manually checking that amavisd and postfix are listning to the new ports"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):865
#, no-wrap
msgid "\n# <i>nc localhost 10024</i>\n<comment>(Amavis working)</comment>\n220 [127.0.0.1] ESMTP amavisd-new service ready\n<i>nc localhost 10025</i>\n<comment>(Postfix reinject working)</comment>\n220 example.com ESMTP Postfix\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):874
msgid "If you want to see the complete output from amavisd-new start <c>amavisd debug-sa</c> as the <c>amavis</c> user and send a mail. For this to work you might have to change the default shell in <path>/etc/passwd</path>."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):881
msgid "Add <c>amavisd</c> and <c>clamd</c> to the <c>default</c> runlevel."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):885
msgid "Add amavisd and clamd to the default runlevel"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):885
#, no-wrap
msgid "\n# <i>rc-update add clamd default</i>\n# <i>rc-update add amavisd default</i>\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):890
msgid "We do not add <c>spamd</c> to the default runlevel as <c>amavisd</c> uses the Spamassassin Perl libraries directly."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):895
msgid "You might notice <c>Net::Server: Couldn't POSIX::setuid to ... []</c> lines in your log. According to <uri link=\"http://www.ijs.si/software/amavisd/README.chroot\">amavis chroot README</uri>, if the process UID remains 0 (<c>root</c>), the program will terminate, otherwise you can consider the message just as informative. This is because <c>POSIX::setuid()</c> returns a string <c>0 but true</c>."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(impo):905
msgid "If you enabled login for amavis remember to set back the login shell in <path>/etc/passwd</path> to <c>/bin/false</c>."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):915
msgid "Autolearning and sidelining emails"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):917
msgid "Creating the spamtrap user"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):920
msgid "Create the spamtrap account and directories."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):924
msgid "Create spamtrap account"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):924
#, no-wrap
msgid "\n# <i>useradd -m spamtrap</i>\n# <i>maildirmake /home/spamtrap/.maildir</i>\n# <i>chown -R spamtrap:mailusers /home/spamtrap/.maildir</i>\n<comment>(Give the spamtrap user a sensible password)</comment>\n# <i>passwd spamtrap</i>\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):932
msgid "If you manually want to check some of the mails to ensure that you have no false positives you can use the following <c>procmail</c> recipe to sideline spam found into different mail folders."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):941
msgid "Creating .procmailrc"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):944
msgid "Creating /home/spamtrap/.procmailrc"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):944
#, no-wrap
msgid "\n<comment>#Set some default variables</comment>\nMAILDIR=$HOME/.maildir\n\nSPAM_FOLDER=$MAILDIR/.spam-found/\n\nLIKELY_SPAM_FOLDER=$MAILDIR/.likely-spam-found/\n\n<comment>#Sort mails with a spamscore of 7+ to the spamfolder</comment>\n:0:\n* ^X-Spam-Status: Yes\n* ^X-Spam-Level: \\*\\*\\*\\*\\*\\*\\*\n$SPAM_FOLDER\n\n<comment>#Sort mail with a spamscore between 5-7 to the likely spam folder</comment>\n:0:\n* ^X-Spam-Status: Yes\n$LIKELY_SPAM_FOLDER\n\n<comment>#Sort all other mails to the inbox</comment>\n:0\n*\n./\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(warn):969
msgid "If your mail server is going to receive a lot of mail you should NOT use the likely-spam recipe. Instead set <c>$sa_tag2_level_deflt</c> high enough to avoid false positives and filter it directly to <c>$SPAM_FOLDER</c>."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):976
msgid "If you haven't already installed <c>procmail</c> do it with <c>emerge procmail</c>."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):981
msgid "Now make sure that Postfix uses <c>procmail</c> to deliver mail."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):985
#, no-wrap
msgid "\nmailbox_command = /usr/bin/procmail -a \"DOMAIN\"\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):992
msgid "Create mailfolders"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):995
msgid "Now we will create shared folders for ham and spam."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):999
msgid "Create the necessary mailfolders"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):999
#, no-wrap
msgid "\n# <i>maildirmake /var/amavis/.maildir</i>\n# <i>maildirmake -S /var/amavis/.maildir/Bayes</i>\n# <i>maildirmake -s write -f spam /var/amavis/.maildir/Bayes</i>\n# <i>maildirmake -s write -f ham /var/amavis/.maildir/Bayes</i>\n# <i>maildirmake -s write -f redeliver /var/amavis/.maildir/Bayes</i>\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1007
msgid "Amavisd-new needs to be able to read these files as well as all mailusers. Therefore we add all the relevant users to the mailuser group along with amavis."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):1012
msgid "Setting the proper permissions"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):1012
#, no-wrap
msgid "\n# <i>groupadd mailusers</i>\n# <i>usermod -G mailusers spamtrap</i>\n# <i>chown -R amavis:mailusers /var/amavis/.maildir/</i>\n# <i>chown amavis:mailusers /var/amavis/</i>\n# <i>chmod -R 1733 /var/amavis/.maildir/Bayes/</i>\n# <i>chmod g+rx /var/amavis/.maildir/</i>\n# <i>chmod g+rx /var/amavis/.maildir/Bayes/</i>\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(warn):1022
msgid "This grants members of the <c>mailusers</c> groups access to <c>amavis</c> mail."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1027
msgid "This makes the spam and ham folders writable but not readable. This way users can safely submit their ham without anyone else being able to read it."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1032
msgid "Then run the following command as the <c>spamtrap</c> user:"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):1036
msgid "Adding the shared folders to the users mailfolder"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):1036
#, no-wrap
msgid "\n$ <i>maildirmake --add Bayes=/var/amavis/.maildir/Bayes $HOME/.maildir</i>\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):1040
msgid "We have to give the group read permissions on the <path>Bayes</path> folder in order for the mail client to be able to see the subdirectories used by IMAP."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):1049
msgid "Adding cron jobs"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1052
msgid "Now run <c>crontab -u amavis -e</c> to edit the amavis crontab to enable automatic learning of the Bayes filter every hour."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):1057 ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):1128
msgid "amavis crontab"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):1057
#, no-wrap
msgid "\n<comment>#Auto learn</comment>\n0 * * * *          /usr/bin/sa-learn --spam /var/amavis/.maildir/Bayes/.spam/{cur,new} \\\n                    &gt; /dev/null 2&gt;&amp;1\n0 * * * *          /usr/bin/sa-learn --ham /var/amavis/.maildir/Bayes/.ham/{cur,new} &gt; \\\n                   /dev/null 2&gt;&amp;1\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):1065
msgid "<c>amavis</c> has to be a member of the <c>cron</c> group to run crons."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):1070
msgid "It seems like the shared maildir folders will make <c>sa-learn</c> examine all messages twice. This should not be a problem. The output will also show that the maximum of messages learned from is half or less than the messages examined."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):1079 ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):1805
msgid "Modifying amavisd.conf"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1082
msgid "Now modify amavis to redirect spam emails to the <c>spamtrap</c> account and keep spamheaders."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):1087
#, no-wrap
msgid "\n<comment>(Define the account to send virus spam emails)</comment>\n$spam_quarantine_to = \"spamtrap\\@$myhostname\";\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):1095
msgid "Redelivering false positives"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1098
msgid "If you set the spam score very low like we do you will probably have some false positives. These are filtered into the folder <path>likely-spam</path>. These are manually reviewed and any false positive is moved to the <path>redeliver</path> mailfolder. From there it is first fed through <c>sa-learn --ham</c> and then redelivered with all headers intact using a patched version of <uri link=\"http://www.engelschall.com/sw/smtpclient/\">smtpclient</uri> by Ralf S. Engelschall."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1109
msgid "The original version 1.0.0 of <c>smtpclient</c> is already in Portage however to keep all headers intact we use a modified version. Here is how you install the revised version:"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):1115
msgid "Installing revised smtpclient"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):1115
#, no-wrap
msgid "\n<comment>(Switch to your portage OVERLAY)</comment>\n# <i>wget http://home.coming.dk/files/smtpclient.tar.gz</i>\n# <i>tar xzf smtpclient.tar.gz</i>\n# <i>echo \"mail-client/smtpclient    ~x86\" &gt;&gt; /etc/portage/package.keywords</i>\n# <i>echo \"mail-client/smtpclient    fullheaders\" &gt;&gt; /etc/portage/package.use</i>\n# <i>emerge smtpclient</i>\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1124
msgid "Check for mails in the <path>redeliver</path> folder every minute using cron."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):1128
#, no-wrap
msgid "\n<comment>#Redeliver false positives</comment>\n* * * * *          find /var/amavis/.maildir/Bayes/.redeliver/cur/ -type f -name \\\n                   \"[0-9]*\" -exec cp {} /var/amavis/.maildir/Bayes/.ham/cur/ \\; \\\n                   &amp;&amp; find /var/amavis/.maildir/Bayes/.redeliver/cur/ -type f \\\n                   -name \"[0-9]*\" -exec /usr/local/bin/redeliver.pl {} \\;\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1136
msgid "Now we only have to copy the <c>redeliver.pl</c> file to <path>/usr/local/bin/</path>. <uri link=\"http://home.coming.dk/files/redeliver.pl\">Download it</uri> or use the version below."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):1143
msgid "redeliver.pl"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):1143
#, no-wrap
msgid "\n<comment>#!/usr/bin/perl -w\n\n# Redelivers mail using a modified version of smtpclient\n# By: Jens Hilligsoe &lt;gentoo@hilli.dk&gt;</comment>\n\nuse strict;\n\nif(!($#ARGV == 0)) {\n        die \"Usage:\\n$0 maildir_mail\\n\";\n}\n\nmy $mail = $ARGV[0];\nmy $to = \"\";\nmy $from = \"\";\n\nsub prunefile ( $ );\n\n<comment># Retrieve To and From envelope adresses</comment>\nopen (MAIL, $mail) or die \"Could not open $mail: $?\\n\";\nwhile(&lt;MAIL&gt;) {\n    if(($to eq \"\") || ($from eq \"\")) {\n        chop;\n        (my $key, my $value) = split (/:/);\n        if($key eq \"X-Envelope-To\") {\n            $to = $value;\n            $to =~ s/[\\&lt;\\&gt;,]//g; # Remove \"&lt;\", \"&gt;\" and \",\"\n            $to =~ s/^\\s+|\\s+$//g; #Remove whitespace before and after\n        }\n        if($key eq \"X-Envelope-From\") {\n            $from = $value;\n            $from =~ s/[\\&lt;\\&gt;,]//g;\n            $from =~ s/^\\s+|\\s+$//g;\n            if($from eq \"\") {\n                $from = \"postmaster\";\n            }\n        }\n    }\n}\n\nif($to eq \"\") {\n    prunefile($ARGV[0]); # Just nuke it if to is empty\n} else {\n    my $redelivercmd = \"cat $ARGV[0] | smtpclient -F -S 127.0.0.1 -P 10025 -f $from $to\";\n    unless (system($redelivercmd) == 0 ) {\n        die \"Unable to redeliver: $?\";\n    }\n    prunefile($ARGV[0]); # Clean up\n}\n\nsub prunefile ( $ ) {\n    my ($file) = @_;\n    unless (unlink $file) {\n        die \"Unable to remove mail: $?\";\n    }\n}\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):1204
msgid "Cleaning up"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1207
msgid "We don't want to keep mail forever so we use <c>tmpwatch</c> to clean up regularily. Emerge it with <c>emerge tmpwatch</c>. Only <c>root</c> is able to run <c>tmpwatch</c> so we have to edit the <c>root</c> crontab."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):1213
msgid "Modifying root crontab"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):1213
#, no-wrap
msgid "\n<comment># Clean up\n# Keep virusmails for a week (24*7 hours)</comment>\n15 0 * * *      /usr/sbin/tmpwatch -c -f -d --quiet 168 /var/amavis/virusmails/\n<comment># Delete spam and ham learned after a week</comment>\n15 0 * * *      /usr/sbin/tmpwatch -c -f -d --quiet 168 /var/amavis/.maildir/Bayes/\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):1294 ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(uri):2072
msgid "Greylisting"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1299
msgid "Greylisting is one of the newer weapons in the spam fighting arsenal. As the name implies it is much like whitelisting and blacklisting. Each time an unknown mailserver tries to deliver mail the mail is rejected with a <e>try again later</e> message. This means that mail gets delayed but also that stupid spam bots that do not implement the RFC protocol will drop the attempt to deliver the spam and never retry. With time spam bots will probably adjust, however it will give other technologies more time to identify the spam."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):1311
msgid "If your ISP blocks incoming traffic on port 25 and relays all mail to you through their own mail server greylisting will not work."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1316
msgid "Postfix 2.1 come with a simple Perl greylisting policy server that implements such a scheme. However it suffers from unpredictable results when the partition holding the greylisting database run out of space. There exists an improved version that do not suffer this problem. First I will show how to install the builtin greylisting support that come with Postfix and then I will show how to configure the more robust replacement."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):1326
msgid "There are other greylisting policy servers for Postfix around (such as <uri link=\"http://www.gasmi.net/gld.html\">Gld</uri>, which is in Portage, and <uri link=\"http://sqlgrey.sourceforge.net/\">SQLgrey</uri>). Some of them support database backends, auto whitelisting and other neat features."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):1336
msgid "Simple greylisting"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):1339
msgid "If you prefer to use the improved greylisting with postgrey you can safely skip this section."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1344
msgid "We need the file <path>greylist.pl</path> but unfortunately the ebuild does not install it as default."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):1349
msgid "Getting greylist.pl"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):1349
#, no-wrap
msgid "\n# <i>cp /usr/portage/distfiles/postfix-your-version-here.tar.gz /root/</i>\n# <i>tar xzf postfix-your-version-here.tar.gz</i>\n# <i>cp postfix-2.1.0/examples/smtpd-policy/greylist.pl /usr/bin/</i>\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1355
msgid "Now we have the file in place we need to create the directory to hold the greylisting database:"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):1360
msgid "Creating directory for the greylisting database"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):1360
#, no-wrap
msgid "\n# <i>mkdir /var/mta</i>\n# <i>chown nobody /var/mta</i>\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(warn):1365
msgid "Do not create the greylisting database directory on a partition that might run out of space. While postfix can recover from no-space-left situations for the mail queue and mail box situations, this is not the case with the greylisting database. If the file becomes corrupted you may not be able to receive mail at all until you delete the file by hand."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):1377
msgid "Configuring greylisting"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1380
msgid "Now that we have all this ready all that is left is to add it to the postfix configuration. First we add the necessary information to the <path>master.cf</path>:"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):1386
msgid "Modifying master.cf to use greylisting"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):1386
#, no-wrap
msgid "\npolicy-greylist  unix  -       n       n       -       -       spawn\n   user=nobody argv=/usr/bin/perl /usr/bin/greylist.pl\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1391
msgid "The postfix spawn daemon normally kills its child processes after 1000 seconds but this is too short for the greylisting process so we have to increase the timelimit in <path>main.cf</path>:"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):1397 ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):1481
msgid "Modifying main.cf to use greylisting"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):1397
#, no-wrap
msgid "\npolicy-greylist_time_limit = 3600\n<comment>(Under smtpd_recipient_restrictions add:)</comment>\ncheck_sender_access hash:/etc/postfix/sender_access\n<comment>(Later on add:)</comment>\nrestriction_classes = greylist\ngreylist = check_policy_service unix:private/policy-greylist\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(warn):1406
msgid "Be sure to specify <c>check_sender_access</c> AFTER <c>reject_unauth_destination</c> or else your system could become an open mail relay."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):1412
msgid "The greylist database gets polluted quickly with bogus addresses. It helps if you protect greylist lookups with other restrictions that reject unknown senders and/or recipients."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1418
msgid "We don't want to use greylisting for all domains but only for those frequently abused by spammers. After all it will delay mail delivery. A list of frequently forged MAIL FROM domains can be found <uri link=\"http://www.monkeys.com/anti-spam/filtering/sender-domain-validate.in\">online</uri>. Add the domains you receive a lot of spam from to <path>/etc/postfix/sender_access</path>:"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):1427
msgid "Format of sender_access"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):1427
#, no-wrap
msgid "\naol.com     greylist\nhotmail.com greylist\nbigfoot.com greylist\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1433
msgid "If you want a more extensive list:"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):1437
msgid "Adding all domains to sender_access"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):1437
#, no-wrap
msgid "\n# <i>wget http://www.monkeys.com/anti-spam/filtering/sender-domain-validate.in</i>\n# <i>cat sender-domain-validate.in | sort | awk {'print $1 \"\\t\\t greylist\"'} &gt; /etc/postfix/sender_access</i>\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1442
msgid "Now we only have to initialize the <path>sender_access</path> database:"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):1447
msgid "Initialize sender_access"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):1447
#, no-wrap
msgid "\n# <i>postmap /etc/postfix/sender_access</i>\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1451
msgid "Now the setup of simple greylisting is complete."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(warn):1455
msgid "I tried this on one box handling thousands of mails daily and the results were almost a complete disaster. After four days the box was bogged down with hundreds of old <c>greylist.pl</c> processes."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):1464
msgid "Configuring improved greylisting with postgrey"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1467
msgid "You can install the enhanced greylisting policy server with a simple <c>emerge</c>:"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):1472
msgid "Installing postgrey"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):1472
#, no-wrap
msgid "\n# <i>emerge postgrey</i>\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1476
msgid "After installing <c>postgrey</c> we have to edit <path>main.cf</path>. Changes are almost exactly like the built in greylisting."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):1481
#, no-wrap
msgid "\n<comment>(Under smtpd_recipient_restrictions add:)</comment>\ncheck_sender_access hash:/etc/postfix/sender_access\n<comment>(Later on add:)</comment>\nsmtpd_restriction_classes = greylist\ngreylist = check_policy_service inet:127.0.0.1:10030\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):1489
msgid "The Postfix SMTPD_POLICY_README only uses <c>restriction_classes</c> but that does not appear to work."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):1494
msgid "If you want to greylist everything instead add <c>check_policy_service inet:127.0.0.1:10030</c>."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1499
msgid "Finally, start the server and add it to the proper runlevel."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):1503
msgid "Starting postgrey"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):1503
#, no-wrap
msgid "\n# <i>/etc/init.d/postgrey start</i>\n# <i>rc-update add postgrey default</i>\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):1508
msgid "Some people like to get their mail fast and thus greylisting is worthless. However if you employ a backup mail server you can safely setup greylisting on that server. My limited experiences tell me that it can stop up to a third of the spam received."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):1519
msgid "SPF (Sender Policy Framework)"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1524
msgid "SPF allows domain owners to state in their DNS records which IP addressess should be allowed to send mails from their domain. This will prevent spammers from spoofing the <c>Return-Path</c>."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):1530
msgid "If your ISP blocks incoming traffic on port 25 and relays all mail to you through their own mail server SPF will not work."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1535
msgid "First domain owners have to create a special <c>TXT</c> DNS record. Then an SPF-enabled MTA can read this and if the mail originates from a server that is not described in the SPF record the mail can be rejected. An example entry could look like this:"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):1542
msgid "Example SPF record"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):1542
#, no-wrap
msgid "\nexample.com.  IN TXT  \"v=spf1 a mx ptr -all\"\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1546
msgid "The <c>-all</c> means to reject all mail by default but allow mail from the <c>A</c>(<c>a</c>), <c>MX</c>(<c>mx</c>) and <c>PTR</c>(<c>ptr</c>) DNS records. For more info consult further resources below."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):1553
msgid "If you relay outgoing mail through your ISP you will have to add: <c>include:yourisp.com</c>."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1558
msgid "Spamassassin 3.0 has support for SPF, however it is not enabled by default and the new policy daemon in Postfix supports SPF so let's install SPF support for Postfix."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):1564
msgid "If you want to use SPF with Spamassassin instead simply <c>emerge&nbsp;dev-perl/Mail-SPF-Query</c> and restart Amavisd-new."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1575
msgid "First you have to install Postfix 2.1 as described above. When you have fetched the source grab the <path>spf.pl</path> with:"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):1581
msgid "Installing spf.pl"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):1581
#, no-wrap
msgid "\n# <i>cp postfix-&lt;version&gt;/examples/smtpd-policy/spf.pl /usr/local/bin/</i>\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):1585
msgid "The <path>spf.pl</path> coming with Postfix is slightly buggy so find and uncomment the following line: <c>push @HANDLERS, \"sender_permitted_from\"; use Mail::SPF::Query;</c>. Furthermore in about line 199 substitute <c>comemnt</c> with <c>comment</c>. Alternatively you can download a <uri link=\"http://spf.pobox.com/postfix-policyd.txt\">development version</uri>."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1594
msgid "This Perl script also needs some Perl libraries that are not in portage but it is still quite simple to install them:"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):1599
msgid "Installing the needed Perl libraries"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):1599
#, no-wrap
msgid "\n# <i>emerge Mail-SPF-Query Net-CIDR-Lite Sys-Hostname-Long</i>\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1603
msgid "Now that we have everything in place all we need is to configure Postfix to use this new policy."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):1608
msgid "Modifying master.cf to use SPF"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):1608
#, no-wrap
msgid "\npolicy-spf  unix  -       n       n       -       -       spawn\n   user=nobody argv=/usr/bin/perl /usr/local/bin/spf.pl\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1613
msgid "Now add the SPF check in <path>main.cf</path>. Properly configured SPF should do no harm so we could check SPF for all domains:"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):1618
msgid "Modifying main.cf to use SPF"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):1618
#, no-wrap
msgid "\n<comment>(Under smtpd_recipient_restrictions add:)</comment>\ncheck_policy_service unix:private/policy-spf\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):1623
msgid "If you're experiencing problems with SPF, e.g. when using <c>fetchmail</c>, you might want to enable SPF for certain domains only."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):1633
msgid "Configuring amavisd-new to use MySQL"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):1635
msgid "Configuring MySQL"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):1638
msgid "This has not been tested on versions higher than 2.2. Feedback is welcome :)"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1642
msgid "For large domains the default values you can set in <path>amavisd.conf</path> might not suit all users. If you configure amavisd-new with MySQL support you can have individual settings for users or groups of users."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):1649
msgid "Creating the MySQL database and user"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):1649
#, no-wrap
msgid "\n# <i>mysql -u root -p mysql</i>\nEnter password:\nWelcome to the MySQL monitor.  Commands end with ; or \\g.\nYour MySQL connection id is 78 to server version: 4.0.18-log\n\nType 'help;' or '\\h' for help. Type '\\c' to clear the buffer.\nmysql&gt; <i>create database maildb;</i>\nmysql&gt; <i>GRANT INSERT,UPDATE,DELETE,SELECT ON maildb.* TO 'mail'@'localhost' IDENTIFIED BY 'very_secret_password';</i>\nmysql&gt; <i>use maildb;</i>\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1661
msgid "Now that the database is created we'll need to create the necessary tables. You can cut and paste the following into the mysql prompt:"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):1666 ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):1859
msgid "MySQL table layout"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):1666
#, no-wrap
msgid "\nCREATE TABLE users (\n    id         int unsigned NOT NULL auto_increment,\n    priority   int          NOT NULL DEFAULT '7',  -- 0 is low priority\n    policy_id  int unsigned NOT NULL DEFAULT '1',\n    email      varchar(255) NOT NULL,\n    fullname   varchar(255) DEFAULT NULL,    -- not used by amavisd-new\n    local      char(1),     -- Y/N  (optional field, see note further down)\n    PRIMARY KEY (id),\n    KEY email (email)\n    );\nCREATE UNIQUE INDEX users_idx_email ON users(email);\n\n<comment>(any e-mail address, external or local, used as senders in wblist)</comment>\nCREATE TABLE mailaddr (\n   id         int unsigned NOT NULL auto_increment,\n   priority   int          NOT NULL DEFAULT '7',  -- 0 is low priority\n   email      varchar(255) NOT NULL,\n   PRIMARY KEY (id),\n   KEY email (email)\n   );\nCREATE UNIQUE INDEX mailaddr_idx_email ON mailaddr(email);\n\n<comment>(-- per-recipient whitelist and/or blacklist,</comment>\n<comment>-- puts sender and recipient in relation wb)</comment>\n(white or blacklisted sender)\nCREATE TABLE wblist (\n   rid        int unsigned NOT NULL,     -- recipient: users.id\n   sid        int unsigned NOT NULL,     -- sender:    mailaddr.id\n   wb         char(1) NOT NULL, -- W or Y / B or N / space=neutral\n   PRIMARY KEY (rid,sid)\n   );\n\nCREATE TABLE policy (\n   id               int unsigned NOT NULL auto_increment,\n   policy_name      varchar(32),     -- not used by amavisd-new\n   virus_lover          char(1),     -- Y/N\n   spam_lover           char(1),     -- Y/N  (optional field)\n   banned_files_lover   char(1),     -- Y/N  (optional field)\n   bad_header_lover     char(1),     -- Y/N  (optional field)\n   bypass_virus_checks  char(1),     -- Y/N\n   bypass_spam_checks   char(1),     -- Y/N\n   bypass_banned_checks char(1),     -- Y/N  (optional field)\n   bypass_header_checks char(1),     -- Y/N (optional field)\n   spam_modifies_subj   char(1),     -- Y/N (optional field)\n   spam_quarantine_to   varchar(64) DEFAULT NULL, -- (optional field)\n   spam_tag_level  float,  -- higher score inserts spam info headers\n   spam_tag2_level float DEFAULT NULL,  -- higher score inserts\n               -- 'declared spam' info header fields\n   spam_kill_level float,  -- higher score activates evasive actions, e.g.\n               -- reject/drop, quarantine, ...\n               -- (subject to final_spam_destiny setting)\n   PRIMARY KEY (id)\n  );\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):1722
msgid "If you have problems using copy/paste you might have to copy this somewhere else and clean out the unneeded characters."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):1727
msgid "Lookups trying to match email are done with raw (rfc2821-unquoted and unbracketed) addresses as a key, i.e.: <c>John \"Funny\" Smith@example.com</c>"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):1733
msgid "Lookups are performed in the following order: <c>SQL</c>, <c>LDAP</c>, <c>hash</c>, <c>ACL</c>, <c>regexp</c>, <c>constant</c>. The first that returns a definitive answer (not <c>undef/NULL</c>) stops the search."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1739
msgid "If you wish to use whitelisting and blacklisting you must add the sender and receiver to <c>mailadr</c> after which you create the relation between the two e-mail addresses in <c>wblist</c> and state if it is whitelisting (<c>W</c>) or blacklisting (<c>B</c>)."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1746
msgid "Now that we have created the tables let's insert a test user and a test policy:"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):1751
msgid "Create test user and test policy"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):1751
#, no-wrap
msgid "\nINSERT INTO users\n   SET\n      id         =1,\n      priority   =9,\n      policy_id  =1,\n      email      =\"johndoe@example.com\",\n      fullname   =\"John Doe\",\n      local      =\"Y\";\n\nINSERT INTO policy\n   SET\n      id                     =1,\n      policy_name            =\"Test policy 1\",\n      virus_lover            =\"N\",\n      spam_lover             =\"N\",\n      banned_files_lover     =\"N\",\n      bad_header_lover       =\"N\",\n      bypass_virus_checks    =\"N\",\n      bypass_spam_checks     =\"N\",\n      bypass_banned_checks   =\"N\",\n      bypass_header_checks   =\"N\",\n      spam_modifies_subj     =\"N\",\n      spam_quarantine_to     =NULL,\n      spam_tag_level         =-50.0,\n      spam_tag2_level        =7.0,\n      spam_kill_level        =10.0;\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):1780
msgid "Copy this to somewhere else and adjust to suit your own environment."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):1784
msgid "<c>local</c> should be set to <c>Y</c> otherwise the mail will not be scanned for spam."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1789
msgid "This inserts a test user and a Test policy. Adjust these examples to fit your needs. Further explanation of the configuration names can be found in <path>amavisd.conf</path>."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):1798
msgid "Configuring amavisd to use MySQL"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1801
msgid "Now that MySQL is ready we need to tell amavis to use it:"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):1805
#, no-wrap
msgid "\n@lookup_sql_dsn =\n   ( ['DBI:mysql:maildb:host1', 'mail', 'very_secret_password']  );\n\n<comment>(For clarity uncomment the default)</comment>\n$sql_select_policy = 'SELECT *,users.id FROM users,policy'.\n   ' WHERE (users.policy_id=policy.id) AND (users.email IN (%k))'.\n   ' ORDER BY users.priority DESC';\n\n<comment>(If you want sender white/blacklisting)</comment>\n   $sql_select_white_black_list = 'SELECT wb FROM wblist,mailaddr'.\n     ' WHERE (wblist.rid=?) AND (wblist.sid=mailaddr.id)'.\n     '   AND (mailaddr.email IN (%k))'.\n     ' ORDER BY mailaddr.priority DESC';\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):1826
msgid "Configuring Spamassassin to use MySQL"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1830
msgid "As of Spamassassin 3.0 it is possible to store the Bayes and AWL data in a MySQL database. We will use MySQL as the backend as it can generally outperform other databases. Also, using MySQL for both sets of data makes system management much easier. Here I will show how to easily accomplish this."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1837
msgid "First start out by creating the new MySQL user and then create the needed tables."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):1842
msgid "Creating the new MySQL database and user"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):1842
#, no-wrap
msgid "\n# <i>mysql -u root -p mysql</i>\nEnter password:\nWelcome to the MySQL monitor.  Commands end with ; or \\g.\nYour MySQL connection id is 78 to server version: 4.0.18-log\n\nType 'help;' or '\\h' for help. Type '\\c' to clear the buffer.\nmysql&gt; <i>create database dbname;</i>\nmysql&gt; <i>GRANT INSERT,UPDATE,DELETE,SELECT ON dbname.* TO 'dbuser'@'localhost' IDENTIFIED BY 'another_very_secret_password';</i>\nmysql&gt; <i>use dbname;</i>\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1854
msgid "Now that the database is created we'll create the necessary tables. You can cut and paste the following into the mysql prompt:"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):1859
#, no-wrap
msgid "\n      CREATE TABLE bayes_expire (\n          id                    int(11)         NOT NULL default '0',\n          runtime               int(11)         NOT NULL default '0',\n          KEY bayes_expire_idx1 (id)\n          ) TYPE=MyISAM;\n\n      CREATE TABLE bayes_global_vars (\n          variable              varchar(30)     NOT NULL default '',\n          value                 varchar(200)    NOT NULL default '',\n          PRIMARY KEY           (variable)\n          ) TYPE=MyISAM;\n\n      INSERT INTO bayes_global_vars VALUES ('VERSION','3');\n\n      CREATE TABLE bayes_seen (\n          id                    int(11)         NOT NULL default '0',\n          msgid                 varchar(200) binary NOT NULL default '',\n          flag                  char(1)         NOT NULL default '',\n          PRIMARY KEY           (id,msgid)\n          ) TYPE=MyISAM;\n\n      CREATE TABLE bayes_token (\n          id                    int(11)         NOT NULL default '0',\n          token                 char(5)         NOT NULL default '',\n          spam_count            int(11)         NOT NULL default '0',\n          ham_count             int(11)         NOT NULL default '0',\n          atime                 int(11)         NOT NULL default '0',\n          PRIMARY KEY           (id, token),\n          INDEX (id, atime)\n          ) TYPE=MyISAM;\n\n      CREATE TABLE bayes_vars (\n          id                    int(11)         NOT NULL AUTO_INCREMENT,\n          username              varchar(200)    NOT NULL default '',\n          spam_count            int(11)         NOT NULL default '0',\n          ham_count             int(11)         NOT NULL default '0',\n          token_count           int(11)         NOT NULL default '0',\n          last_expire           int(11)         NOT NULL default '0',\n          last_atime_delta      int(11)         NOT NULL default '0',\n          last_expire_reduce    int(11)         NOT NULL default '0',\n          oldest_token_age      int(11)         NOT NULL default '2147483647',\n          newest_token_age      int(11)         NOT NULL default '0',\n          PRIMARY KEY           (id),\n          UNIQUE bayes_vars_idx1 (username)\n          ) TYPE=MyISAM;\n\n      CREATE TABLE awl (\n          username              varchar(100)    NOT NULL default '',\n          email                 varchar(200)    NOT NULL default '',\n          ip                    varchar(10)     NOT NULL default '',\n          count                 int(11)         default '0',\n          totscore              float           default '0',\n          PRIMARY KEY           (username,email,ip)\n          ) TYPE=MyISAM;\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(impo):1916
msgid "The <c>INSERT</c> line is needed otherwise Spamassassin will not work."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):1921
msgid "This is also available in the source tarball in the files <path>awl_mysql.sql</path> and <path>bayes_mysql.sql</path>."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):1929
msgid "Configuring Spamassassin to use the MySQL backend"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1932
msgid "If you have an old Bayes database in the DBM database and want to keep it follow these instructions:"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):1937
msgid "Converting Bayes data from a DBM Database"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):1944
msgid "Note that the last step should only be performed after the MySQL database and <path>secrets.cf</path> have been updated."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1949
msgid "Now give Spamassassin the required info:"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):1953
msgid "Modifying /etc/mail/spamassassin/secrets.cf"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):1953
#, no-wrap
msgid "\n<comment>(Tell Spamassassin to use MySQL for bayes data</comment>\nbayes_store_module              Mail::SpamAssassin::BayesStore::SQL\nbayes_sql_dsn                   DBI:mysql:sa_bayes:localhost:3306\nbayes_sql_username              db_name\nbayes_sql_password              another_very_secret_password\n\n<comment>(Tell Spamassassin to use MySQL for AWL data</comment>\nauto_whitelist_factory          Mail::SpamAssassin::SQLBasedAddrList\nuser_awl_dsn                    DBI:mysql:sa_bayes:localhost:3306\nuser_awl_sql_username           db_name\nuser_awl_sql_password           another_very_secret_password\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1967
msgid "Next, change its permissions for proper security:"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre:caption):1971
msgid "Changing permissions"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(pre):1971
#, no-wrap
msgid "\n# <i>chmod 400 /etc/mail/spamassassin/secrets.cf</i>\n"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):1975
msgid "To create a very secret password use <c>emerge app-admin/makepasswd</c> and <c>makepasswd -chars=8</c>"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1980
msgid "Now all you have to do is <c>/etc/init.d/amavisd restart</c>."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):1989
msgid "Troubleshooting"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):1991 ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(uri):2100
msgid "Amavisd-new"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):1994
msgid "To troubleshoot Amavisd-new start out by stopping it with <c>/etc/init.d/amavisd stop</c> and then start it manually in the foreground with <c>amavisd debug</c> and watch it for anomalies in the output."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):2003 ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(uri):2099
msgid "Spamassassin"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):2006
msgid "To troubleshoot Spamassassin you can filter an email through it with <c>spamassassin -D &lt; mail</c>. To ensure that the headers are intact you can move it from another machine with IMAP."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(note):2012
msgid "If you need to troubleshoot you have to enable login for the user <c>amavis</c> by changing the login shell in <path>/etc/passwd</path> to <path>/bin/bash</path>."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):2018
msgid "If you want you can make get the same information and more with Amavisd-new using <c>amavisd debug-sa</c>."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):2026
msgid "Getting help"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):2029
msgid "If you need help a good place to go is the amavis-user mailing list. Before postting a question try searching the <uri link=\"http://marc.theaimsgroup.com/?l=amavis-user\">Amavis User mailing list archives</uri>. If you find no answer here you can subscribe to the <uri link=\"https://lists.sourceforge.net/lists/listinfo/amavis-user\">Amavis User mailing list</uri>"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(p):2039
msgid "If your question is specific to SpamAssassin, DCC, Razor, or Postfix, please refer to their respective home pages listed below."
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):2049
msgid "Resources"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):2051
msgid "For further information"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(uri:link):2056
msgid "http://www.ijs.si/software/amavisd/INSTALL"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(uri):2056
msgid "Amavisd-new INSTALL"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(uri:link):2060
msgid "http://www.ijs.si/software/amavisd/README.postfix"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(uri):2060
msgid "Amavisd-new Postfix README"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(uri:link):2064
msgid "http://www.ijs.si/software/amavisd/amavisd-new-docs.html#pbanks"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(uri):2064
msgid "Amavisd-new Policy bank documentation"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(uri:link):2068
msgid "http://spamassassin.apache.org/full/3.0.x/dist/sql/README"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(uri):2068
msgid "Spamassassin SQL README"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(uri:link):2072
msgid "http://www.greylisting.org"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(uri:link):2075
msgid "http://www.postfix.org/FILTER_README.html"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(uri):2075
msgid "Postfix SMTPD_POLICY_README"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(uri:link):2079
msgid "http://www.unixwiz.net/techtips/postfix-HELO.html"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(uri):2079
msgid "Blocking spammers with Postfix HELO controls"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(uri:link):2083
msgid "http://www.linuxjournal.com/article.php?sid=7327"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(uri):2083
msgid "SPF Overview"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(uri:link):2087
msgid "http://jimsun.linxnet.com/misc/postfix-anti-UCE.txt"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(uri):2087
msgid "Jim Seymour's Postfix Anti-UCE Cheat Sheet"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):2095
msgid "General resources"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(uri:link):2099
msgid "http://www.spamassassin.org"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(uri:link):2100
msgid "http://www.ijs.si/software/amavisd/"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(uri:link):2102
msgid "http://www.ijs.si/software/amavisd/amavisd-new-docs.html"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(uri):2102
msgid "Amavisd-new documentation bits and pieces"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(uri:link):2105
msgid "http://razor.sourceforge.net/"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(uri):2105
msgid "Vipuls's Razor"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(uri:link):2106
msgid "http://pyzor.sourceforge.net/"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(uri:link):2108
msgid "http://www.rhyolite.com/anti-spam/dcc/"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(uri):2108
msgid "Distributed Checksum Clearinghouse"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(uri:link):2112
msgid "http://www.renaissoft.com/projects/maia/"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(uri):2112
msgid "Maia Mailguard"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(title):2120
msgid "Other howtos"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(uri:link):2125
msgid "http://www.flakshack.com/anti-spam/"
msgstr ""

#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(uri):2125
msgid "Fairly-Secure Anti-SPAM Gateway Using OpenBSD, Postfix, Amavisd-new, SpamAssassin, Razor and DCC"
msgstr ""

#. Place here names of translator, one per line. Format should be NAME; ROLE; E-MAIL
#: ../../gentoo/xml/htdocs/doc/en//mailfilter-guide.xml(None):0
msgid "translator-credits"
msgstr ""