John Fawcett: > The output you sent shows what the smtpd server replies to the client > and shows a different behaviour between sendmail and postfix when the > milter uses? smfi_setmlreply(). It does not show that postfix is > receiving multiple reply lines from the milter and folding them, though > of course you may be right about it. > > If you want to investigate this further you could turn on verbose > logging on the smtpd and cleanup processes and you will see a bit more > info about what is happening. If I'm reading this correctly the end of > message milter is being evaluated in the cleanup process > in?cleanup_milter_apply for event SMFIC_BODYEOB. The cleanup process > then sends the reject reason to the smtpd process.
I am investigating this in my copious spare time. The channel from cleanup to smtpd was originally designed for single-line responses from header/body_checks. If that is the problem then I'll devise a workaround for existing code, and a proper solution for Postfix 3,5 and onwards. Wietse