if (reply->error != NULL) {
/* internal failure. */
+ e_error(request->auth_request->event,
+ "Auth penalty lookup failed: %s", reply->error);
if (!anvil_client_is_connected(request->client)) {
/* we probably didn't have permissions to reconnect
back to anvil. need to restart ourself. */
{
unsigned int count;
- if (reply->error == NULL) {
+ if (reply->error != NULL) {
+ e_error(ctx->event, "Failed to send kick to anvil: %s",
+ reply->error);
+ } else {
if (str_to_uint(reply->reply, &count) < 0)
e_error(ctx->event,
"Unexpected reply from anvil: %s", reply->reply);
llrcpt->anvil_query = NULL;
if (reply->error != NULL) {
- /* lookup failed */
+ e_error(rcpt->event,
+ "lmtp_user_concurrency_limit lookup failed - skipping: %s",
+ reply->error);
} else if (str_to_uint(reply->reply, ¶llel_count) < 0) {
e_error(rcpt->event, "Invalid reply from anvil: %s",
reply->reply);
client->anvil_request = NULL;
conn_count = 0;
- if (reply != NULL && reply->error == NULL &&
- str_to_uint(reply->reply, &conn_count) < 0)
+ if (reply == NULL)
+ ;
+ else if (reply->error != NULL) {
+ e_error(client->event, "mail_max_userip_connections lookup failed - skipping: %s",
+ reply->error);
+ } else if (str_to_uint(reply->reply, &conn_count) < 0)
i_fatal("Received invalid reply from anvil: %s", reply->reply);
/* reply=NULL if we didn't need to do anvil lookup,