> 
> Just make sure to close stdout and stderr, to avoid writing garbage
> into the pipe between Postfix and the filter, used to collect filter
> error messages.
> 
> With this level of complexity, you really should use the advanced (SMTP)
> filter approach not pipe(8) based filters.

Looking around there are some pretty simple samples of what I want to 
accomplish (in both perl and python).  I do have one question about the format 
of the SMTP protocol as to how incoming connections are handled.

When it comes to envelope, specifically "mail from:" and "rcpt to:", my 
understanding is that these will never have comments in them and be just plain 
email addresses j...@example.com, bou...@jack@bou...@example.com, etc, but 
never "jack" <j...@example.com> (or <j...@example.com> (i.e. the <> ).  In the 
sample python server, it passes in mailfrom and rcptto's and I'm just trying to 
get a feel for the format to expect those addresses in.

Can one of the protocol experts confirm?


Reply via email to