Skip to content
Snippets Groups Projects
Commit 0454e172 authored by rswindell's avatar rswindell
Browse files

If an SMTP message is received for an address in the text/spambait.can file,

the message is refused and the IP address of the sender is added to the IP
filter/trashcan file (with a comment).
parent fa3b970c
No related branches found
No related tags found
No related merge requests found
...@@ -2457,6 +2457,18 @@ static void smtp_thread(void* arg) ...@@ -2457,6 +2457,18 @@ static void smtp_thread(void* arg)
continue; continue;
} }
/* Check for SPAM bait recipient */
if(trashcan(&scfg,rcpt_addr,"spambait")) {
sprintf(str,"SPAM BAIT (%s) taken", rcpt_addr);
lprintf("%04d !SMTP %s by: %s"
,socket, str, reverse_path);
spamlog(&scfg, "SMTP", "REFUSED and FILTERED", str
,host_name, host_ip, rcpt_addr, reverse_path);
filter_ip(&scfg, "SMTP", str, host_ip, reverse_path);
sockprintf(socket, "550 Unknown User:%s", buf+8);
continue;
}
/* Check for blocked recipients */ /* Check for blocked recipients */
if(trashcan(&scfg,rcpt_addr,"email")) { if(trashcan(&scfg,rcpt_addr,"email")) {
lprintf("%04d !SMTP BLOCKED RECIPIENT (%s) from: %s" lprintf("%04d !SMTP BLOCKED RECIPIENT (%s) from: %s"
......
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