Dear Postfixers, I am testing a milter which, under some circumstances, adds a header to a message. The problem is that the header is simply not added.
I have instrumented the milter-side code and I can see that the milter server is, at EOM time, writing to the socket: h X-MS-blah\0 some stuff\0 which seems right -- 'h' corresponds to SMFIR_ADDHEADER, according to the list of protocol constants in Sendmail::PMilter::Context. The first argument is the header name and the second is the value. I enabled verbose mode in smtpd(8), but I don't know what to look for in the resulting flood of data. I see the milter request the relevant capability: 2012-05-17T11:07:39-04:00 1337267259 myhostname postfix-msa-in/smtpd[25286]: milter8_connect: requests SMFIF_ADDHDRS and I see various protocol traffic: milter8_conn_event: milter unix:/var/spool/floodstopper/smtp: connect myhostname/1.2.3.4 (Hi, Viktor!) milter8_helo_event: milter unix:/var/spool/floodstopper/smtp: helo myhostname skipping event SMFIC_HELO for milter unix:/var/spool/floodstopper/smtp milter8_mail_event: milter unix:/var/spool/floodstopper/smtp: mail <sender> milter8_rcpt_event: milter unix:/var/spool/floodstopper/smtp: rcpt <recipient> milter8_data_event: milter unix:/var/spool/floodstopper/smtp: data command skipping non-protocol event SMFIC_DATA for milter unix:/var/spool/floodstopper/smtp disconnect event to all milters Notably missing in there is any end-of-message event, but I know it's happening because I am logging from the EOM callback. Any pointers on what to try next would be greatly appreciated. -- Ben Rosengart "Like all those possessing a library, Sendmail, Inc. Aurelian was aware that he was guilty of +1 718 431 3822 not knowing his in its entirety [...]" -- Jorge Luis Borges NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.