Results 1 to 3 of 3

Thread: Milter for postfix

  1. #1

    Default Milter for postfix


    I'd like to automatically add a message inside the body of each incoming mail I receive. We use postfix as MTA and I know that milters can have acces to the body of a mail to replace or add some message to it.

    Does anyone know any existing milters that just add a message in the body?

    Thanks for help

  2. #2
    Join Date
    Jan 2009

    Default Re: Milter for postfix

    You could do this with procmail without using a milter at all. Pipe all your incoming messages through procmail and call a filter script from there. The filter script may then change the body as you like. Something like this (procmail receipe with sed assuming you add your text at the end of the body):

    :0 fw
    | sed -e "$ s/.*/&\n\nThis is my message added\nHave fun!\n/"

  3. #3

    Default Re: Milter for postfix

    Thank you, I'll try that.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts