Hi

I'm working for a Swiss Company and developing a special mail system. Open 
Source is the company's wide philosophy.
The Application takes a new mail from a customer, does some magic stuff with it 
(with content filters), and then sends it out to the original recipient. The 
Server does only relay mails.
So, i need to manipulate arriving mails at prequeue level. This could be 
accomplished easily with milter. Now i need to catch the whole status of mail 
send to an remote server. And this is the my problem! I've compared postfix 
with qMail and Exim, but postfix looks still like the best solution.
Currently i'm catching the status of the remote server automatically with 
parsing the maillogs. This works fine, but i really do not like this solution.

At the moment i'm playing around in "replacing" the smtp binary with a own one 
which only pipes the request from the queue to finally the original smtp binary 
and catches the status of the smtp binary. At the moment postfix does not like 
my own smtp replacement. The script catches the submitted arguments and input. 
The Arguments are "-t unix -u". Thats all i get for now :-(

So my questions are:

 1. Can anyone explain me how the original smtp binary takes commands from the 
queue?
 2. Or is there an other solution to get the whole output of the remote smtp 
session or at least the final status of the remote smtp delivery?

I've spend many hours in researching a solution for this. Once the perfect 
solution gets found i would create a post on my blog to share this knowledge.

Thanks
Tom from Switzerland

Reply via email to