[email protected]: > I'm starting to work on writing my own outbound milter for a Postfix instance. > > While working on it, I'll want to test with message submissions "to" it.
Use Postfix XCLIENT to impersonate any client IP address. http://www.postfix.org/XCLIENT_README.html You can use a production or 'test' Postfix instance for these tests. > Is there a good example of manually submitting a robust -- i.e., > exactly as from a running, Postfix instance -- message example to > a milter? > > Without a Postfix instance around, just 'echo' a message to the > milter listener? Nope. Milters speak a binary protocol. You can't just echo an email message into it. I think it would be easier to implement your tests with SMTP, using XCLIENT to impersonate any IP address, and to have Postfix do the translation to the Milter protocol for you. Wietse
