Re: faking a test message to a milter?

2018-11-02 Thread pg151
Hi On Fri, Nov 2, 2018, at 12:28 PM, Scott Kitterman wrote: > > Without a Postfix instance around, just 'echo' a message to the milter > > listener? > > If you still want to go down this path, OpenDKIM has a miltertest component > to > drive it's test suite without an MTA present. I have not

Re: faking a test message to a milter?

2018-11-02 Thread Scott Kitterman
On Friday, November 02, 2018 10:23:04 AM pg...@dev-mail.net wrote: > 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. > > Is there a good example of manually submitting a robust -- i.e.,

Re: faking a test message to a milter?

2018-11-02 Thread pg151
> > 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,

Re: faking a test message to a milter?

2018-11-02 Thread Wietse Venema
pg...@dev-mail.net: > 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

faking a test message to a milter?

2018-11-02 Thread pg151
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. Is there a good example of manually submitting a robust -- i.e., exactly as from a running, Postfix instance -- message example to a milter?