Hi, Further to my earlier brain-fade, I'm writing a plugin that will skip rcpt checks if the client has authenticated. I'm using John Peacock's suggested code for a relay_ok plugin:
sub register { my ($self, $qp) = @_; $self->register_hook("mail", "relay_ok"); $self->register_hook("rcpt", "relay_ok"); } sub relay_ok { my $self = shift; if $self->qp->connection->relay_client() { return OK; } else { return DECLINED; } } I have two questions: 1. Is the register sub still required these days? 2. What's the auth equivalent to relay_client()? e.g. $self->qp->connection->authenticated() ?? Thanks, R.