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

Added spamlog() function for logging rejected SPAM to data/spam.log

Updated mail-abuse.org DNS and HTTP server addresses.
parent 3b1883e0
No related branches found
No related tags found
No related merge requests found
......@@ -1144,15 +1144,17 @@ static void smtp_thread(void* arg)
return;
}
/* SPAM Filters (maps.vix.com) */
/* SPAM Filters (mail-abuse.org) */
if(startup->options&MAIL_OPT_USE_RBL
&& rblchk(smtp.client_addr.sin_addr.s_addr
,"rbl.maps.vix.com"
,"blackholes.mail-abuse.org"
)==TRUE) {
lprintf("%04d !SMTP SPAM server filtered (RBL): %s [%s]"
,socket, host_name,host_ip);
,socket, host_name, host_ip);
spamlog(&scfg, "Listed on RBL (http://mail-abuse.org/rbl)"
,host_name, host_ip);
sockprintf(socket
,"571 Mail from %s refused, see http://www.mail-abuse.org/rbl"
,"571 Mail from %s refused, see http://mail-abuse.org/rbl"
,host_ip);
mail_close_socket(socket);
thread_down();
......@@ -1160,12 +1162,14 @@ static void smtp_thread(void* arg)
}
if(startup->options&MAIL_OPT_USE_DUL
&& rblchk(smtp.client_addr.sin_addr.s_addr
,"dul.maps.vix.com"
,"dialups.mail-abuse.org"
)==TRUE) {
lprintf("%04d !SMTP SPAM server filtered (DUL): %s [%s]"
,socket, host_name,host_ip);
,socket, host_name, host_ip);
spamlog(&scfg, "Listed on DUL (http://mail-abuse.org/dul)"
,host_name, host_ip);
sockprintf(socket
,"571 Mail from %s refused, see http://www.mail-abuse.org/dul"
,"571 Mail from %s refused, see http://mail-abuse.org/dul"
,host_ip);
mail_close_socket(socket);
thread_down();
......@@ -1176,9 +1180,11 @@ static void smtp_thread(void* arg)
,"relays.mail-abuse.org"
)==TRUE) {
lprintf("%04d !SMTP SPAM server filtered (RSS): %s [%s]"
,socket, host_name,host_ip);
,socket, host_name, host_ip);
spamlog(&scfg, "Listed on RSS (http://mail-abuse.org/rss)"
,host_name, host_ip);
sockprintf(socket
,"571 Mail from %s refused, see http://www.mail-abuse.org/rss"
,"571 Mail from %s refused, see http://mail-abuse.org/rss"
,host_ip);
mail_close_socket(socket);
thread_down();
......
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