-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Apr 4, 2010, at 10:43 AM, The Archer wrote:
> I am trying to employ a valid user checking mechanism that can drop connections when a user does not exist and get all the damn double bounces out of my email. the qmail-spp patch went in just fine, and I grabbed the valid user check plugin script (http://www.maiers.de/qmail/art38,72.html).
>
> Testing shows that it works, exiting 0 or 1 as appropriate, but how do I translate that 0 or 1 into action on the part of qmail-spp? When testing via manual smtp mailing, I can verify that the script runs, but it doesn't do anything with the result and qmail continues to accept the connection despite no user existing.
>
> There are no commands for spp inside the plugin (Rmesg is what I'm after), and looking at other plugin shell scripts they don't have it either. So what am I missing?
Well, from looking at the code, it looks like the script automatically determines whether it's running via qmail-spp by looking to see how the recipient is passed. I'm not sure how you're calling the script, though it should be in the rcpt section of your plugins file.
Once a determination about whether or not the recipient is valid, it either drops through, or prints out the text in MSG_ERROR ... The default script prints out a simple error rejecting the smtp command. If you want it to reject instead, just change the leading E to an R.
- -- Jason
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
iEYEARECAAYFAku5KTMACgkQhR5xme3cl77yKACgw7aFw8hgY9gT8b8Y1t+hAJ47
K+YAn1RdYGDcHZGJd1tRPeppUXDJCrde
=ieyT
-----END PGP SIGNATURE-----
|