Gentoo Archives: gentoo-user

From: Preston Hagar <prestonh@×××××.com>
To: gentoo-user@l.g.o, emailgrant@×××××.com
Subject: Re: [gentoo-user] Filtering spam for a business address
Date: Thu, 20 Jul 2006 19:15:53
Message-Id: 8f5897560607201208t54e63592mb776a8a3082e028a@mail.gmail.com
In Reply to: Re: [gentoo-user] Filtering spam for a business address by Grant
1 >
2 > > http://www.freesoftwaremagazine.com/articles/focus_spam_postfix/
3 > >
4 >
5 > That's a great article. Where do you implement the changes he
6 > suggests on the first page? I searched /etc/postfix/main.cf for the
7 > configuration options but they aren't there.
8 >
9 > - Grant
10 > -
11
12
13 Just add them to main.cf and do a /etc/init.d/postfix reload (make sure not
14 to include the line numbers in his examples)
15
16 For the lines that reference external files, you will have to create the
17 files and the content and the issue the command:
18
19 postmap <filename>
20
21 The guide puts all of the files in /usr/local/etc/postifx, but I just put
22 the files in /etc/postfix (If you put the files in /etc/postfix instead of
23 /usr/local/etc/postfix, make sure to change the path main.cf). I left off
24 the spf filter since it seems that many people still have not adopted spf.
25 Postgrey is great and I use it on my person email server, but I left that
26 off of the business system I manage. I work for a real estate company and
27 postgrey can delay email by 4 hours or more depending on the sending server
28 configuration. Although no one should depend on email for speedy delivery,
29 it is my experience that most users expect it. All of the other options
30 have really helped a lot and cut down on spam.
31
32 A couple of things to remember, each time you change main.cf or any other
33 postfix configuration file, you need to issue the command:
34
35 /etc/init.d/postfix reload
36
37 to get postfix to take the new configuration changes.
38
39 Also, if you change any of the external files that main.cf refrences, you
40 need to do a :
41
42 postmap <filename>
43
44 and then
45 /etc/init.d/postfix reload
46
47 It is probably a good idea to tail your mail logs for a while after you make
48 the changes just to make sure you are not blocking anything you didn't
49 intend
50 to.
51
52 tail -f /var/log/mail/current
53
54 or
55
56 tail -f /var/log/mail.info
57
58 depending on your logger.
59 Also, I would recommend sending email to an account on your new system from
60 any and all external email accounts you may have such as yahoo or gmail just
61 for extra testing.
62
63 Good Luck,
64
65 Preston