public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: kashani <kashani-list@badapple.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Postfix as Mail-Queuing-Server
Date: Wed, 14 Dec 2005 08:58:13 -0800	[thread overview]
Message-ID: <43A04F25.4040804@badapple.net> (raw)
In-Reply-To: <3EC5A9AC44B0704FBD0974891ECA6E1D2C0E0F@POW-EXCHANGE.powerdat.net>

Schöffmann Matthias wrote:
> Hi!
> 
> I have the following problem: I want a postfix-server between my 
> mailserver (exchange) and my smarthost (postfix) witch relays all 
> mails without attachments and put all mails with attachments in a 
> queue to preview the mails (per web interface?) and deliver this ones
>  only when i manually allow them.
> 
> Any ideas? Maybee with a "antispam-solution" whicht quarantines all 
> mails with attachments?
> 
> Greets from austria

I think it's much simpler to do:

Internet <--> Postfix/Spam/SmartHost/etc <--> Exchange

I'd look into setting up clamav and amavis-new which would pretty much
automate the whole process. I also do some header filtering to keep
obvious spam attachments from hitting the sometimes CPU intensive virus 
and spam filtering processes.

/etc/postfix/mime_header_checks.regexp
/^\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*$/ 
REJECT Files attached to emails that contain or end in "$3" are 
prohibited on this server as they may contain viruses. The file named 
"$2" was rejected.

/etc/postfix/main.cf
# attachement filtering
mime_header_checks = regexp:/etc/postfix/mime_header_checks.regexp

You may want to add or remove extentions based on what works for you and 
your users.

kashani
-- 
gentoo-user@gentoo.org mailing list



      parent reply	other threads:[~2005-12-14 17:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-13 12:30 [gentoo-user] Postfix as Mail-Queuing-Server Schöffmann Matthias
2005-12-14  7:12 ` Heinz Sporn
2005-12-14 16:58 ` kashani [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43A04F25.4040804@badapple.net \
    --to=kashani-list@badapple.net \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox