From: Michal L. <ml...@lo...> - 2010-11-18 07:24:02
|
On 11/18/2010 08:02 PM, Dan Faerch wrote: > Its possible to test sqlgrey by talking to it like posfix does, using > telnet or netcat > > Example: > $ nc localhost 2501 > request=smtpd_access_policy > protocol_state=RCPT > protocol_name=SMTP > client_address=66.102.13.104 > client_name=unknown > reverse_client_name=ez-in-f104.1e100.net > helo_name=ez-in-f104.1e100.net > sender=te...@ez... > recipient=te...@ez... > < hit return to add a blank line> > > And the server will respond with its verdict: > action=451 Greylisted for 1 minutes (10) > Actually there is a "tester.pl" script in the GIT repo for doing exactly this :) ~/src/sqlgrey-work.git> ./tester.pl --help Test tool for SQLgrey daemon. Author: Michal Ludvig <ml...@lo...> (c) 2009 http://www.logix.net.nz Usage: tester.pl --client-ip <address> [--options] --host address to talk to (default: 127.0.0.1) --port TCP port SQLgrey daemon listens on (2501) --client-ip IP or IPv6 address of the 'client' (Required). --client-fqdn Domain name corresponding to --ip --sender / --from Envelop MAIL FROM value --recipient / --to Envelop RCPT TO value Michal |