[Dovecot] Looking for suggestions: How to strip attachments from mails

mouss mouss at netoyen.net
Sun May 18 18:27:28 EEST 2008


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...




More information about the dovecot mailing list