Gary Smith: > Here is where I'm at: > I have setup an advanced filter on localhost:10026 > I have testing the filter to make sure it will indeed relay the email (with > sender/network validation) > > I think my final step, and where my confusion is, is how to drop > the email from my content filter and then forward it to localhost:10026. > Is there some type of cheater script out there that can take the > same 3 pieces of data that sendmail would require (sender, recipient, > raw message) to pump that into localhost:10026 or do I need to use > something like netcat? > > This is the final piece, everything seems to be running smoothly.
If your system is written in Perl or Python, use one of the available SMTP protocol modules. Otherwise, there must be many 'surrogate' sendmail programs that pretend to be like /usr/sbin/sendmail but behind the scenes use SMTP commands. The list that I have is 20 years old. Myabe 'acme sendmail' still works. You will have to deal with error handling (just return a suitable status to pre-filter Postfix). Wietse