Has anyone set up a customized channel to append a corporate "disclaimer" to all outbound mail i

If anyone has done this before or knows how to do it, please post a reply. I do not want to do any address rewriting, is it possible to parse all mails through a channel which appends text from a file? Just a thought.Thanks !!
[247 byte] By [708281] at [2007-11-25 7:12:48]
# 1

I may be wrong, but I don't think you can use rewrite rules (or a special channel) to take care of that, because you need to identify different MimeTypes. But if you are talking about a plain text e-mail, then it shouldn't be hard to implement.

The workaround is to develop a plugin for the MTA. The plugin, can take care of parsing all the message, identify what type it is, and put the 'disclaimer' in the apropriate place. I'm starting to do something like that for a client.

pqp at 2007-6-29 17:46:42 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 2

This could be done using a conversion channel.

Add to the mappings file:

Conversions

IN-CHAN=*; OUT-CHAN=tcp_local; CONVERT Yes

Then to the conversions file (for location see imta_tailor)

IN-CHAN=*; OUT-CHAN=tcp_local; IN-TYPE=text; IN-SUBTYPE=plain; COMMAND="/path/to/your/script"

In the script do something like:

copy $INPUT_FILE $OUTPUT_FILE

echo "Disclaimer text" >> $OUTPUT_FILE

This should do the trick.

Niels de Troye at 2007-6-29 17:46:42 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 3
I am running iMS 5.1 on Windows NT 4.0 and have been trying to get your solution to work. Can you tell me if there are any differences for using this in a NT environment?
Jimmie Moore at 2007-6-29 17:46:42 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 4

There is no "plug-in" concept in this MTA.

To do what is being asked for requires a custom built channel. This custom channel would be an internal channel similar to say reprocess or conversion channel.

The main difference between this new custom channel and the conversion channel is that the conversion channel operates on a MIME part-by-part basis, while if one intends to add a text/plain part to every message then one needs to have the entire MIME structure present to do so and this can not be accomplished using the conversion channel.

While writing a custom channel is not rocket science it is not trivial either. Guess this is something I should look at doing in my spare time, if for nothing else than saying "I've done it".

707213 at 2007-6-29 17:46:42 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 5
Jimmie,You'll have to use batch files instead of shell scripts (my sympathies) but the basic concepts are the same.Good luck,Chad
707213 at 2007-6-29 17:46:42 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...