Skip to content
Snippets Groups Projects
Commit 66ae43ca authored by rswindell's avatar rswindell
Browse files

Report/log 1-based "reason" code when user cannot post via SMTP.

parent 2a5e9561
No related branches found
No related tags found
No related merge requests found
......@@ -3139,7 +3139,7 @@ static void smtp_thread(void* arg)
if(!can_user_post(&scfg,subnum,&relay_user,&client,&reason)) {
lprintf(LOG_WARNING,"%04d !SMTP %s (user #%u) cannot post on %s (reason: %u)"
,socket, sender_addr, relay_user.number
,scfg.sub[subnum]->sname, reason);
,scfg.sub[subnum]->sname, reason + 1);
sockprintf(socket,"550 Insufficient access");
subnum=INVALID_SUB;
stats.msgs_refused++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment