Alban Deniz: > On Thursday 09 July 2009 01:01:28 pm Wietse Venema wrote: > > Alban Deniz: > > > Hello, > > > > > > I've implemented a milter (SNFMilter), and when I use it with postfix, > > > and send postfix multiple messages over one SMTP connection, I get the > > > following warning in the log file: > > > > > > Jun 18 10:32:58 skidmark postfix/smtpd[11622]: warning: milter unix:/snf- > > > milter/socket: unexpected filter response SMFIR_ADDHEADER after event > > > SMFIC_MAIL > > > > According to http://www.milter.org/developers/api/smfi_addheader, > > Milter applications can send requests to add headers ONLY at the > > end-of-message protocol stage. > > > > Wietse > > Hi Wietse, > > Thanks for the response. > > My code calls smfi_addheader only in the xxxx_eom callback, which I understand > is the end-of-message protocol stage (please correct me if I'm wrong).
Postfix receives the "add header" request when it reports a "mail from" command to the Milter. You can see the sequence of commands and replies by turning on Postfix verbose logging, or you can dump and decode the UNIX-domain stream for yourself. Wietse