Am 2015-02-27 14:45, schrieb MickTW8:
This issue I have is knowing how to read any of the attributes listed here
www.postfix.org/SMTPD_POLICY_README.html#protocol

Hello Mick,

it may be an option for your to implement your code as a plugin for mtpolicyd.
There's documentation for wrinting a simple plugin at:

https://www.mtpolicyd.org/getting-started.html#Mail::MtPolicyd::Cookbook::BasicModule

Then you wont have to care about accepting connections, parsing, logging and so on.

Another option may be to just copy over the Request class to your project and remove
dependencies on Net::Server, etc. from it:

https://github.com/benningm/mtpolicyd/blob/master/lib/Mail/MtPolicyd/Request.pm

 Markus


--
Markus Benning, https://markusbenning.de/

Reply via email to