On Fri, May 18, 2012 at 06:20:04AM -0400, Wietse Venema wrote: > Ben Rosengart: > > On Thu, May 17, 2012 at 01:19:52PM -0400, Wietse Venema wrote: > > > Ben Rosengart: > > > > I enabled verbose mode in smtpd(8), but I don't know what to look for > > > > > > Adding headers is implemented in cleanup(8). > > > > Before or after header_checks? > > Between header_checks and milter_header_checks (I added the > latter several years ago on request of AOL).
Bingo. I have one last problem, which is I have code (borrowed from Viktor) which peeks at the files in the hold queue, and does special processing if X-MS-Floodstopper is present. It seems that when the header comes from a milter, it lives after the message body in the queue file? Viktor's code refers to REC_TYPE_XTRA, which led me to rec_type.h, so I read that, but I'm still not sure what to do with this. We seem to look for it: # The record following the content is always REC_TYPE_XTRA. # seek($fh, $msgoff + $msglen, SEEK_SET) or return undef; ($r, $l, $d) = rec_get($fh); return unless (defined $r && $r eq 'X' && $l == 0); but not to do anything with it -- the next line calls rec_get again. I could use a hint. Viktor, I hate your single-letter variable names. :-) -- 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.