[emailrelay-help] Feature request: Capable cross-platform scripting
SMTP email proxy and relay server
Brought to you by:
graeme_walker
|
From: Jacobsen, T. <tov...@no...> - 2007-10-12 10:31:20
|
Hi,
I wonder if it would be possible to make it easier to make routing
agents with emailrelay:
My current local setup on 127.0.0.1 requires:
* emailrelay set up as a service.
* A modified emailrelay-start.bat to enable filtering.
* Which, since i use python points to a filter.bat
* The filter.bat calls a filter.py
* The filter.py needs to send email itself.
* In addition a whole new set of log-files for the extension, since the
appliaction can fail at several places.
* Authentication needs to be written in the .py script in addition to
the emailrelay installation.
The appliacaton is a simple outbound routing mechanism, on certain
destinations I need to ensure that a cc is forwarded to the alternative
person (since they might have taken a day off work or something).
Creating an email alias won't work because one should be in the To
header and the second in the CC header (I haven't found an MTA so far
capable of doing it).
Things that would help is to have a capable cross-platform language
available, such as python (because it allready has good functionality
for processing email and text: I don't have a C/C++ enviroment available
to just try and modify emailrelay, but apparently it isn't so many lines
of code:
#include "Python.h"
int main()
{
Py_Initialize();
PyRun_SimpleFile("<filename>");
Py_Finalize();
return();
}
A more advanced implementation could make available configuration
settings to the script.
PS: The simplicity of emailrelay is pretty cool. Thanks.
--=20
Regards,
Tov Are Jacobsen
Tlf: +47 995 40 550
|