postfix-users October 2010 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: Re: automatic add attachments in postfix

Re: automatic add attachments in postfix

From: Jeroen Geilman <jeroen_at_nospam>
Date: Tue Oct 19 2010 - 19:50:53 GMT
To: postfix-users@postfix.org

On 10/19/2010 08:54 PM, David Touzeau wrote:
> Le mardi 19 octobre 2010 à 19:33 +0200, Jeroen Geilman a écrit :
>> On 10/19/2010 01:26 PM, David Touzeau wrote:
>> > Dear
>> >
>> > I would like to find a tool that be able to add attachment in each
>> > outgoing mails, i was thinking about altermime but altermime add only
>> > txt,html file.
>> > I need to add vcf or pdf files.
>> > Is anyone know if a such tool exists ?
>> >
>> >
>>
>> A Mail Transport Agent or MTA is not the place to manipulate the
>> contents of messages.
>> Postfix itself offers no support for this.
>>
>> It's possible to send all mail through a process that adds an attachment
>> and then re-sends the mail to the original recipients - but be advised
>> that doing so will break, among other things, S/MIME.
>>
>> > best regards.
>> >
>> >
>> >
>> >
>>
>>
>>
>
> Thanks for your advise...
>
> "It's possible to send all mail through a process" : I need to find it...
>
> That should be cool to perform this task on a gateway if you cannot
> handle back-end servers.
>
>

Take a look at the Filter readme:

http://www.postfix.org/FILTER_README.html

Or, alternatively, the Milter readme:

http://www.postfix.org/MILTER_README.html

Or even the SMTP proxy readme:

http://www.postfix.org/SMTPD_PROXY_README.html

All of these can process mail before postfix delivers it.

-- J.