LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-04-2008, 11:24 AM   #1
Fredde87
Member
 
Registered: Aug 2005
Posts: 158

Rep: Reputation: 30
Automatically unzip attachments


Hi,

I am in the process of setting up a email solution. One of my few outstanding tasks is to get the mail server to automatically zip/unzip any zip files.

I am running PostFix (Maildir), Courier-IMAP and Spamasssassin. I need the email server to automatically zip any outgoing attachments and unzip any incoming. What is the best way to accomplish this?



Many thanks

Fredrik
 
Old 02-04-2008, 07:08 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Unzipping incoming attachments shouldn't be hard, could do that with a procmail recipe. The problem is attaching it back on if the client expects anything else than plain text e-mail. Why would anyone want *outgoing* attachments to be zipped automagically? If it's due to batch sending you could make a script that compresses attachments and send it with 'mpack'? Not that it's not possible. The method should be somewhat the same as for those that require their outbound traffic to have a "disclaimer" attached, a LQ search should show some threads about that.
 
Old 02-05-2008, 05:58 AM   #3
Fredde87
Member
 
Registered: Aug 2005
Posts: 158

Original Poster
Rep: Reputation: 30
The plan is that this email server is going to act as a relay for several other servers. The other servers will have extremely little/slow and expensive internet connectivity. I have therefore been looking at compression to make the system more efficient.

The other servers are all running Exchange were I found a plugin for which can automatically zip outgoing emails and unzip incoming. The ide is to have something like this, email arrives at Linux server, all attachments get zipped, email is then collected via pop3 from the Exchange server when internet access is available and then automatically gets unzipped again. This would work the same for outgoing emails as well, meaning you get compression and the user would never even know that the attachments had been zipped.

To be honest I am not familior with procmail but I will look into this now.

Thanks!
 
Old 02-05-2008, 09:17 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Testing the right procmail recipe will be the least of your problems, compatibility with non-plain text MUA's could be. Maybe get ideas from TNEFclean or Sanitizer or similar.
 
Old 12-26-2008, 07:38 PM   #5
syadnom
LQ Newbie
 
Registered: Dec 2002
Posts: 7

Rep: Reputation: 0
auto zip attachments

A very compelling reason to zip attachments is when your users like to send 15MB excel files and have to authority to override a decision to only allow 4MB attachments. Those 15MB excel files will zip down to 2MB. This is much better! Some mobile users have aircards and a 15MB email will effectively take thier email down for 30 minutes.

on that subject, anyone figured out how to automatically zip attachments?
 
Old 12-30-2008, 07:06 AM   #6
Fredde87
Member
 
Registered: Aug 2005
Posts: 158

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by syadnom View Post
A very compelling reason to zip attachments is when your users like to send 15MB excel files and have to authority to override a decision to only allow 4MB attachments. Those 15MB excel files will zip down to 2MB. This is much better! Some mobile users have aircards and a 15MB email will effectively take thier email down for 30 minutes.

on that subject, anyone figured out how to automatically zip attachments?
I never figured this out, the project got put on hold as I had other stuff to deal with but I do plan to revisit this someday. I didnt have a good testing environment to test procmail with as my main server was already up and being used by clients.

Let me know if you have any luck and I will try the same when I get time.
 
  


Reply



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
Attachments Glennzo LQ Suggestions & Feedback 2 06-19-2007 08:41 AM
Evolution attachments Ronw SUSE / openSUSE 1 06-04-2007 06:32 AM
about unzip to unzip some chinese files' trouble arcow Linux - Software 0 03-24-2006 02:25 AM
Cannot send attachments Likosin Linux - Software 3 04-11-2005 07:28 PM
Sendmail and attachments Satriani Linux - Software 2 04-27-2003 12:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:12 PM.

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