Making policyd-client non-interactive
Trying to add policyd-client into some automated testing. Would be good if I could run it interactively. I am getting an error message ("could not read response at /usr/share/perl5/Mail/MtPolicyd/Client/Response.pm line 38.") that could possibly be avoided in the event the input being read comes to EOF.
echo "reverse_client_name=smtp.google.com
[email protected] client_address=192.168.1.1 [email protected] helo_name=smtp.google.com
" | policyd-client -v -h localhost:12345 2>&1
request=smtpd_access_policy instance=0.480182453132333 reverse_client_name=smtp.google.com [email protected] [email protected] client_address=192.168.1.1 helo_name=smtp.google.com
<< action=PREPEND X-MtScore: NO score=0 << PREPEND X-MtScore: NO score=0
request=smtpd_access_policy instance=0.361123554731847
could not read response at /usr/share/perl5/Mail/MtPolicyd/Client/Response.pm line 38.