Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

badrcptto ignores $reason

0 views
Skip to first unread message

frank

unread,
Jul 20, 2015, 1:30:02 AM7/20/15
to qps...@perl.org
The badrcptto plugin says it lets you give a custom response for a
matching regex but the code doesn't appear to use it. Shouldn't it be
something like this?

Thanks
-frank


diff --git a/plugins/badrcptto b/plugins/badrcptto
index 0dec099..eb3d31c 100644
--- a/plugins/badrcptto
+++ b/plugins/badrcptto
@@ -66,7 +66,7 @@ sub hook_rcpt {
if ($self->is_match($to, lc($bad), $host)) {
$self->adjust_karma(-2);
if ($reason) {
- return DENY, "mail to $bad not accepted here";
+ return DENY, $reason;
}
else {
return Qpsmtpd::DSN->no_such_user(

0 new messages