Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 12-26-2008, 10:04 PM   #1
LQ Newbie
Registered: Dec 2002
Posts: 7

Rep: Reputation: 0
procmail or some program to zip email attachments over a given size -HELP-

I'm trying to find a way to process incoming mail to zip compress attachments. I am running postfix with procmail and dovecot with Maildir. I currently have procmail recipes for clamav and spamassassin as well has some pre-filter recipes to save some CPU cycles. I am not terribly elite with the procmailrc file!

The problem I have is that some users insist on sending very large attachments while on the local network with no concern as to how long it takes mobile users to get it. The people are the corporate level people that cant be told that they cant send 15MB emails. A 15MB excel file typically compresses to 2MB!, which is ok for mobile users.

I am currently setting up myentunnel on the windows desktops and doing a compressed ssh tunnel to the mailserver and setting up thier client to connect to localhost. This works for some people but it is not ideal.

Id like to just do a:

:0 fwb:
* > 1000000
|zip flags whatever -

if that conveys the concept! Compress the attachment of the email if it is a certain size and pass it on to the next recipes..

Anyone have an idea on how to do this? I also have formail available.

My OS is ubuntu 7.04 server...
Old 12-27-2008, 11:50 AM   #2
LQ Newbie
Registered: Dec 2002
Posts: 7

Original Poster
Rep: Reputation: 0


postfix, procmail

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple email attachments ehedman Linux - Software 1 06-20-2007 06:13 PM
Open source program to strip email attachments? Chiragrs Linux - Server 0 05-24-2007 03:54 PM
email attachments rhb327 Linux - Software 2 11-13-2004 09:08 AM
Remove attachments with Procmail? ciop Linux - Security 3 06-09-2004 03:11 PM
Procmail & mail attachments PcHammer Linux - Software 1 02-05-2003 08:31 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:52 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration