Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 56bc2096 authored by Rob Swindell's avatar Rob Swindell 💬

Don't allow unauthenticated DNS-blacklisted clients to post on subs

Eliminate some of the infrequent SPAM posts to the SYNCPROG conference. Maybe make this behavior configurable?
parent a53829d3
Pipeline #2391 passed with stage
in 10 minutes and 9 seconds
......@@ -3716,8 +3716,17 @@ static void smtp_thread(void* arg)
if(subnum!=INVALID_SUB) { /* Message Base */
uint reason;
if(relay_user.number==0)
if(relay_user.number==0) {
memset(&relay_user,0,sizeof(relay_user));
if(dnsbl_recvhdr || dnsbl_result.s_addr) {
lprintf(LOG_WARNING,"%04d %s %s !refusing to post message (on %s) from DNS-Blacklisted client: %s"
,socket, client.protocol, client_id, scfg.sub[subnum]->sname, sender_addr);
sockprintf(socket,client.protocol,session,"550 Insufficient access");
subnum = INVALID_SUB;
stats.msgs_refused++;
continue;
}
}
if(!can_user_post(&scfg,subnum,&relay_user,&client,&reason)) {
lprintf(LOG_WARNING,"%04d %s %s !%s (user #%u) cannot post on %s (reason: %u)"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment