Gentoo Archives: gentoo-user

From: kashani <kashani-list@××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Postfix as Mail-Queuing-Server
Date: Wed, 14 Dec 2005 17:05:34
Message-Id: 43A04F25.4040804@badapple.net
In Reply to: [gentoo-user] Postfix as Mail-Queuing-Server by "Schöffmann Matthias"
1 Schöffmann Matthias wrote:
2 > Hi!
3 >
4 > I have the following problem: I want a postfix-server between my
5 > mailserver (exchange) and my smarthost (postfix) witch relays all
6 > mails without attachments and put all mails with attachments in a
7 > queue to preview the mails (per web interface?) and deliver this ones
8 > only when i manually allow them.
9 >
10 > Any ideas? Maybee with a "antispam-solution" whicht quarantines all
11 > mails with attachments?
12 >
13 > Greets from austria
14
15 I think it's much simpler to do:
16
17 Internet <--> Postfix/Spam/SmartHost/etc <--> Exchange
18
19 I'd look into setting up clamav and amavis-new which would pretty much
20 automate the whole process. I also do some header filtering to keep
21 obvious spam attachments from hitting the sometimes CPU intensive virus
22 and spam filtering processes.
23
24 /etc/postfix/mime_header_checks.regexp
25 /^\s*Content-(Disposition|Type).*name\s*=\s*"?(.+\.(ad[ep]|asd|ba[st]|c[ho]m|cmd|cpl|crt|dbx|dll|exe|hlp|hta|in[fs]|isp|js|jse|lnk|md[etw]|ms[cipt]|nws|ocx|ops|pcd|pi|pif|prf|reg|scf|scr|sct|sh[bms]|swf|uue|vb|vb[esx]|vxd|wab|ws[cfh]))"?\s*$/
26 REJECT Files attached to emails that contain or end in "$3" are
27 prohibited on this server as they may contain viruses. The file named
28 "$2" was rejected.
29
30 /etc/postfix/main.cf
31 # attachement filtering
32 mime_header_checks = regexp:/etc/postfix/mime_header_checks.regexp
33
34 You may want to add or remove extentions based on what works for you and
35 your users.
36
37 kashani
38 --
39 gentoo-user@g.o mailing list