Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: SEA2006 on October 15, 2006, 12:32:35 AM
-
I am looking to replace a customers netpilot box with sme server as the licences for the netpilot are extortionete.
There are a couple of things I need help with so that I can emulate the functionality (or as near as!) of the netpilot.
1.) Can Spam be directed to another mailbox such as Admin rather than going to junkmail folder.
2.) Does squidguard install/work ok on SME 7 final?
3.) If squidguard does work is there a guide on how to white/blacklist sites manually.
Thanks
Steve
-
http://www.dungog.net/sme/panels/Email%20-%20Admin%20help.html#system
Forward all mail tagged as spam to a single user for checking
1.
mkdir /etc/e-smith/templates-user-custom/.qmail
copy /etc/e-smith/templates-user-custom/.qmail/15sortspam /etc/e-smith/templates-user-custom/.qmail/15sortspam
pico -w /etc/e-smith/templates-user-custom/.qmail/15sortspam
add the line, just before the similar line
return qq(| condredirect spamboss-junkmail /bin/grep -q -i "X-Spam-Status: Yes") if $db->get("spamboss");
2.
make a new user spamboss
3.
run action to expand all users .qmail
/etc/e-smith/events/actions/qmail-update-user
if user spamboss exists, they get all the spam in their junkfolder
CAUTION,
if you remove the user spamboss remove the custom template
and/or run
/etc/e-smith/events/actions/qmail-update-user
I'm sure squidguard would work but most people use dansguardian
search mitchell howto dansguardian
-
the copy command does not exist ! also looked for 15sortspam and that file does not exist.
Am I being daft!!! :?
Thanks
-
copy /etc/e-smith/templates-user-custom/.qmail/15sortspam /etc/e-smith/templates-user-custom/.qmail/15sortspam
SEA2006
change copy to cp which is the unix command for copy
Also not sure as I haven't tried but could be the 15sortspam is in Stephen smeserver-mailsorting rpm but don't quote me on that as I haven't installed that rpm on any of my boxes before
-
..looked for 15sortspam and that file does not exist.
http://www.dungog.net/sme/panels/Email%20-%20Admin%20help.html#system
-
lets try again
there were 2 errors
copy /etc/e-smith/templates-user-custom
cp /etc/e-smith/templates-user/.qmail/15sortspam /etc/e-smith/templates-user-custom/.qmail/15sortspam
15 sortspam is a system file
we cp it to a -custom template directory and modify it
no other contrib is needed
--
you could sent to the inbox of the user spammboss with
return qq(| condredirect spamboss /bin/grep -q -i "X-Spam-Status: Yes") if $db->get("spamboss");
provided you disable SA for this user
there was a thread about this recently
-
If I disable Spamassassin for a user what does the spam filtering / checking??
Thanks
-
"If I disable Spamassassin for a user what does the spam filtering / checking?? "
This is not a problem, you will use a special user (say spamboss) for this purpose. You can sacrify this user. Besides, no-one needs to know about this user, it will never be exposed to the net, so chances are he will not receive spams in its own right anyway. Only spams addressed to other users on the system.
-
provided you disable SA for this user
there was a thread about this recently
Hello Stephen, Could you poitn me in the direcftion of this thread? Cannot find it.javascript:emoticon(':cry:')
Thanks.
chris
-
I can't find it either
15sortspam says
my $do_sortspam = $user->prop('SortSpam')
|| $spamassassin{SortSpam}
|| "enabled";
return "# sortspam disabled" unless ($do_sortspam eq "enabled");
so we set the db prop SortSpam to anything but enabled
[root@kiwi ~]# db accounts setprop spamboss SortSpam disabled
[root@kiwi ~]# db accounts show spamboss
spamboss=user
ForwardAddress=
LastName=Collection
MailFilter=bypass
PasswordSet=yes
Phone=612 444856
Shell=/usr/bin/rssh
SortSpam=disabled
/etc/e-smith/events/actions/qmail-update-user
-
Many thanks Stephen.
-
:D
-
Hello, sorry for my late post at this topic but a have the following problem.
I've already got mail in my junkmail folders for several users.
I've created a user spamboss and succesfully execute the above commands.
but my question is, how can I push the junkmail wich I got now to the user spamboss?
Can someone help me?
Thanks
-
1.) Can Spam be directed to another mailbox such as Admin rather than going to junkmail folder.
Yes. You just need a file /etc/e-smith/templates-user-custom/.qmail-junkmail file containing "&admin", and then do "signal-event email-update".
-
delete because double