Patrick Nagel
2008-May-16 10:02 UTC
[Dovecot] Looking for suggestions: How to strip attachments from mails
Hi, I know this is not 100% on-topic, but I'll try anyway... I'm looking for a way to strip attachments from incoming mails on the server. The attachments should be stored on a file server (where users have access via SAMBA) and only a link to the file (UNC path) should remain in the mail body. This is to prevent the mail storage from filling up with a large amount of big mails where at the same time the 'payload' (attached file) is not conveniently accessible by the users. The current setup is postfix / dovecot deliver / dovecot (with sieve plugin). I'm considering piping the mails through something like mimeStrip.pl (http://freshmeat.net/projects/mimestrip.pl/), but therefore I'd probably need to bring procmail/maildrop into the game, right? Or are there other (better) ways to accomplish this? Patrick. -- STAR Software (Shanghai) Co., Ltd. http://www.star-group.net/ Phone: +86 (21) 5427 7799 x 826 Fax: +86 (21) 6485 0071 PGP key: https://stshacom1.star-china.net/keys/patrick_nagel.asc Fingerprint: E09A D65E 855F B334 E5C3 5386 EF23 20FC E883 A005 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: <http://dovecot.org/pipermail/dovecot/attachments/20080516/1335e2d1/attachment-0002.bin>
Jason Fesler
2008-May-16 14:40 UTC
[Dovecot] Looking for suggestions: How to strip attachments from mails
> I'm looking for a way to strip attachments from incoming mails on the server.http://detach.optimism.cc/ works in line with procmail or similiar. It is not a standalone server; but instead acts as a filter. I use it in front of my mailing lists, so that attachements are not sent out. I couple this with "demime" to further reduce the remaining text to plain text ( http://scifi.squawk.com/demime.html - uh oh, host not responding.. and I don't see an alternate location for it).
mouss
2008-May-18 15:27 UTC
[Dovecot] Looking for suggestions: How to strip attachments from mails
Patrick Nagel wrote:> Hi, > > I know this is not 100% on-topic, but I'll try anyway... > > I'm looking for a way to strip attachments from incoming mails on the server. > The attachments should be stored on a file server (where users have access > via SAMBA) and only a link to the file (UNC path) should remain in the mail > body. This is to prevent the mail storage from filling up with a large amount > of big mails where at the same time the 'payload' (attached file) is not > conveniently accessible by the users. > > The current setup is postfix / dovecot deliver / dovecot (with sieve plugin). > I'm considering piping the mails through something like mimeStrip.pl > (http://freshmeat.net/projects/mimestrip.pl/), but therefore I'd probably > need to bring procmail/maildrop into the game, right? > > Or are there other (better) ways to accomplish this? >if you're ready to script a little, you can use http://www.pldaniels.com/ripmime/ to "extract" the attachments...