csf.mignore : possible bug or incorrect config?
Posted: 21 Mar 2013, 11:17
Hi,
I use CSF v6.02, and am trying to use csf.mignore to ignore mails from a particular user "andrew". I have added the username "andrew" to csf.mignore as mentioned in the config server blog post (unable to post URL).
But, outgoing mails are still being reported from that account. Logs are as below:
==========
2013-03-21 09:00:01 1UIbLt-001Oi0-7M <= andrew@hostname U=andrew P=local S=1146 id=ecf19523d14141fb5e1504092d4d2fbd@XXXXXX T="Activate user account" for moderator@XXXXXX
2013-03-21 09:00:25 1UIbMH-001OnI-SU <= andrew@hostname U=andrew P=local S=1594 id=8ceef0953aedafbb450243d57f3ebf8e@XXXXXX T="Welcome to \"Discussion Zone\"" for subscriber@YYYYY
2013-03-21 09:00:25 1UIbMH-001OnS-Tz <= andrew@hostname U=andrew P=local S=1140 id=9db45f9d0e4c522aff221a1740bd98a9@XXXXXX T="Activate user account" for andy@XXXXXX
==========
These mails are sent out from a phpBB 3.x forum, and the "P=local" received_protocol log shows that it was a local injection. So, I wonder if it is a problem in the mignore check.
The permissions are like below in case its relevant:
==========
[root@node007 forum]# ll /etc/csf/csf.mignore
-rw------- 1 root root 415 Mar 1 16:14 /etc/csf/csf.mignore
[root@node007 forum]# ps aux | grep lfd
root 220448 0.1 0.1 174808 27020 ? Ss 04:59 0:28 lfd - sleeping
==========
Also posting the relevant section in the code for quick check;
==========
==========
Should I give the username in some other format or is it really a bug?
Thank you for looking into this.
--
Vincent S.
I use CSF v6.02, and am trying to use csf.mignore to ignore mails from a particular user "andrew". I have added the username "andrew" to csf.mignore as mentioned in the config server blog post (unable to post URL).
But, outgoing mails are still being reported from that account. Logs are as below:
==========
2013-03-21 09:00:01 1UIbLt-001Oi0-7M <= andrew@hostname U=andrew P=local S=1146 id=ecf19523d14141fb5e1504092d4d2fbd@XXXXXX T="Activate user account" for moderator@XXXXXX
2013-03-21 09:00:25 1UIbMH-001OnI-SU <= andrew@hostname U=andrew P=local S=1594 id=8ceef0953aedafbb450243d57f3ebf8e@XXXXXX T="Welcome to \"Discussion Zone\"" for subscriber@YYYYY
2013-03-21 09:00:25 1UIbMH-001OnS-Tz <= andrew@hostname U=andrew P=local S=1140 id=9db45f9d0e4c522aff221a1740bd98a9@XXXXXX T="Activate user account" for andy@XXXXXX
==========
These mails are sent out from a phpBB 3.x forum, and the "P=local" received_protocol log shows that it was a local injection. So, I wonder if it is a problem in the mignore check.
The permissions are like below in case its relevant:
==========
[root@node007 forum]# ll /etc/csf/csf.mignore
-rw------- 1 root root 415 Mar 1 16:14 /etc/csf/csf.mignore
[root@node007 forum]# ps aux | grep lfd
root 220448 0.1 0.1 174808 27020 ? Ss 04:59 0:28 lfd - sleeping
==========
Also posting the relevant section in the code for quick check;
==========
Code: Select all
if ($config{RT_RELAY_ALERT} or $config{RT_AUTHRELAY_ALERT} or $config{RT_POPRELAY_ALERT} or $config{RT_LOCALRELAY_ALERT} or $config{RT_LOCALHOSTRELAY_ALERT}) {
&logfile("Email Relay Tracking...");
if ($config{RT_LOCALRELAY_ALERT}) {
if (-e "/etc/csf/csf.mignore") {
open (IN, "</etc/csf/csf.mignore") or &cleanup(__LINE__,$!);
flock (IN, LOCK_SH);
my @mignore = <IN>;
close (IN);
chomp @mignore;
foreach my $line (@mignore) {
if ($line =~ /^\#/) {next}
if ($line eq "") {next}
$rtignore{$line} = 1;
}
}
}
}
Should I give the username in some other format or is it really a bug?
Thank you for looking into this.
--
Vincent S.