Re: [qmailtoaster] dspam + qmailtoaster

2009-01-06 Thread Lee R. Copp
slamp slamp wrote:
 my question iscan this be done globally? i do not want to populate
 each users folder with their own .mailfilter.

I'm not sure about globally but its not really that hard to setup each
user.  My dspam setup requires a custom .qmail file for each user in
order to use the .mailfilter to process the message through dspam and
then into the inbox or spam maildirs.

Each of the .qmail and .mailfilter files are the same for each user
who wants dspam.  I am writing a 'publish' script to update my 30+
users with any changes I make to the 2 files but I haven't had any
time to work on it.  I installed a new server over the holiday and it
will be a while before I can update the low priority scripts...;)

Maybe the .qmail-default in the domain folder would be a direction you
could check into?
begin:vcard
fn:Lee R. Copp
n:Copp;Lee
org:Michigan Scientific Corporation
adr:;;321 East Huron St.;Milford;MI;48381;USA
email;internet:lee.r.c...@michiganscientific.com
title:Project Engineer (EE/ME)
tel;work:248-685-3939
tel;fax:248-684-5406
x-mozilla-html:FALSE
url:http://www.michsci.com
version:2.1
end:vcard


-
 QmailToaster hosted by: VR Hosted http://www.vr.org
-
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com

[qmailtoaster] Install script patch

2008-06-03 Thread Lee R. Copp
Here is a patch for the cnt5064 install script which adds a '-y' switch 
to the command line.  The switch bypasses all the user prompts and just 
installs all the toaster packages.  Its been pretty handy in all the 
testing and rebuilding I have been doing on a new toaster.


diff -Naur /usr/src/qmt-install/cnt5064-install-script.sh.orig 
/usr/src/qmt-install/cnt5064-install-script.sh


--- /usr/src/qmt-install/cnt5064-install-script.sh.orig 2008-06-03 
10:41:51.0 -0400
+++ /usr/src/qmt-install/cnt5064-install-script.sh  2008-06-03 
11:05:20.0 -0400

@@ -16,6 +16,9 @@
 # Updated for new toaster packages by Nick Hemmesch
 # April 14, 2007
 #
+# Added -y switch to install all packages without user intervention by 
Lee R. Copp

+# June 03, 2008
+#

 VQAD=vqadmin-toaster-*.src.rpm
 VPOP=vpopmail-toaster-*.src.rpm
@@ -42,7 +45,11 @@

 ##
 # Ask to proceed or exit
-inquire(){
+inquire()
+{
+  if [ $ATP = 1 ]; then
+PROCEED=y
+  else
 PROCEED=exit;
 echo -n Shall we continue? (yes, skip, quit) [y]/s/q: 
 read REPLY
@@ -57,6 +64,7 @@
echo Exiting.
exit 0
 fi
+  fi
 }

 ##
@@ -66,11 +74,31 @@
 exit 1
 fi

+ATP=0
+while getopts y optname
+  do
+case $optname in
+  y)
+ATP=1
+echo ---All toaster packages selected for install---
+;;
+  ?)
+echo Unknown option $OPTARG
+;;
+  :)
+echo No argument value for option $OPTARG
+;;
+  *)
+  # Should not occur
+echo Unknown error while processing options
+;;
+esac
+  done
+
 DISTRO=cnt5064
 ARCH=x86_64
 BDIR=redhat

-
 echo 
 echo Installing daemontools-toaster . . .
 inquire



patch /usr/src/qmt-install/cnt5064-install.script.sh  
cnt5064-install-script.sh.patch


--
Lee R. Copp
Project Engineer (EE/ME)
http://www.michsci.com/

-
QmailToaster hosted by: VR Hosted http://www.vr.org
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [qmailtoaster] Error: PHP Notice: Use of undefined constant r

2008-05-30 Thread Lee R. Copp

Jake Vickers wrote:
If you'll put all of it into a script I'll include it in the next 
version of QTP.


Here is a patch:

diff -Naur /usr/share/toaster/include/admin.inc.php.orig 
/usr/share/toaster/include/admin.inc.php



--- /usr/share/toaster/include/admin.inc.php.orig   2008-05-30 
14:19:45.0 -0400
+++ /usr/share/toaster/include/admin.inc.php2008-05-30 
14:20:36.0 -0400

@@ -7,7 +7,7 @@
 function read_file($file) {

if ( is_readable ( $file ) ) {
-   $fd = fopen ( $file, r ) ;
+   $fd = fopen ( $file, r ) ;
$contents = fread ( $fd, filesize( $file ) ) ;
fclose ( $fd ) ;
$contents = ereg_replace(\n, , $contents ) ;
@@ -22,7 +22,7 @@
 function write_file($contents=, $file) {

if ( is_writable ( $file )  strlen( $contents ) = 1 ) {
-   $fd = fopen ( $file, w ) ;
+   $fd = fopen ( $file, w ) ;
fwrite ( $fd, $contents ) ;
fclose ( $fd ) ;
return true ;
@@ -134,7 +134,7 @@

if ( substr ( $file, -7 ) == .module ) {

-   $fd = fopen ( $file, r ) ;
+   $fd = fopen ( $file, r ) ;
$html  .= fread ( $fd, filesize ( $file ) ) ;
fclose ( $fd ) ;


--
Lee R. Copp
Project Engineer (EE/ME)
http://www.michsci.com/

-
QmailToaster hosted by: VR Hosted http://www.vr.org
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[qmailtoaster] Error: PHP Notice: Use of undefined constant r

2008-05-28 Thread Lee R. Copp
I am working on building a new toaster and ran into a bunch of errors in 
my httpd error log:


 PHP Notice:  Use of undefined constant r - assumed 'r' in 
/usr/share/toaster/include/admin.inc.php on line 10, referer: 
http://192.168.0.4/stats-toaster/


Line 10 had:

$fd = fopen ( $file, r ) ;
it now has:
$fd = fopen ( $file, r ) ;

I also found several other places where fopen didn't quote the file mode 
and they were generating errors as well.  A simple find/fix will handle 
them all.

--
Lee R. Copp
Project Engineer (EE/ME)
http://www.michsci.com/

-
QmailToaster hosted by: VR Hosted http://www.vr.org
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [qmailtoaster] Dspam on the toaster

2006-11-01 Thread Lee R. Copp
Eric Shubes wrote:
 Is that one qmail-alias per server, domain, or user? (I'm not real clear on
 the process yet)

Its per user but it might be possible to have a global address if dspam
was tweaked.  It might support it now but I'm not sure...my dspam
version is over a year old.

 Do I understand correctly that dspam also keeps track of ham/spam on a
 per-user basis? In this manner, a piece of mail might be spam to one user
 and ham to another (in the same domain)?

Yes. Yes.
-- 
Lee R. Copp
Project Engineer (EE/ME)
http://www.michsci.com/

-
 QmailToaster hosted by: VR Hosted http://www.vr.org
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [qmailtoaster] Dspam on the toaster

2006-10-31 Thread Lee R. Copp
Rangi Biddle wrote:
 With your setup, does it allow pop3 clients to download less spam? Just
 wondering as this would be an easier approach considering you could filter
 mail marked as spam into a mail folder and train Dspam that way.

POP3 would work fine except for the training portion of dspam.  Even
though my setup uses IMAP people can still download the contents of
their inbox which would be clean.  Training could be done by forwarding
ham and spam to email aliases which would be pretty basic using
.qmail-alias files.
-- 
Lee R. Copp
Project Engineer (EE/ME)
http://www.michsci.com/

-
 QmailToaster hosted by: VR Hosted http://www.vr.org
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [qmailtoaster] Dspam on the toaster

2006-10-31 Thread Lee R. Copp
Eric Shubes wrote:
 Would forwarding distort the message since it would appear to be coming from
 the recipient (forwarder) instead of the original sender? How would dspam
 handle this?

Forwarding the message to a spam/ham training address will distort the
message but dspam won't care.  When dspam is first run the message is
scanned to create tags that all belong to a unique id.  The tags
determine spam or ham and dspam marks it as such along with embedding
the id in the header or body.  To train on a false-pos or false-neg
dspam only really needs the id and the right command line switch.  So,
it doesn't matter if you forward it as long as that id is in there.
Each qmail-alias is set to run dspam with the 'oops, spam' or 'oops,
ham' switch and dspam learns from its mistake.

To make things really slick only 1 qmail-alias is needed.  Simply scan
the header for the prior dspam classification and pipe it back to dspam
with the correct switch...;)
-- 
Lee R. Copp
Project Engineer (EE/ME)
http://www.michsci.com/

-
 QmailToaster hosted by: VR Hosted http://www.vr.org
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [qmailtoaster] dspam on the toaster

2006-10-30 Thread Lee R. Copp
Eric Shubes wrote:
 I suppose that answers anyother question, which AV? I'm think that we'll
 want to change as little as possible of the toaster configuration. Why
 Vexira instead of ClamAV (which is plugged into simscan)?

I setup Vexira before ClamAV got added to the toaster.

 Also, is there some reason you've plugged RBL into Vexira instead of using
 the blacklists control file? Using the blacklists file would block the
 message at the smtp session, before it's even transmitted. I think that
 would save you some bandwidth and processing.

Vexira is a smtp proxy in front of qmail so there is no reason to use
qmail's blacklist control file.  Vexira dumps spam just fine using the RBL.
-- 
Lee R. Copp
Project Engineer (EE/ME)
http://www.michsci.com/

-
 QmailToaster hosted by: VR Hosted http://www.vr.org
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [qmailtoaster] Dspam on the toaster

2006-10-30 Thread Lee R. Copp
Eric Shubes wrote:
 the administration CGI scripts (if you intend to run the CGI scripts).  This
 was wholly an apache suexec issue more than a DSpam one.
 
 Hey Lee, what do you know about this problem? (Please see Rangi's earlier
 post) Did you come across this problem? Solution?

I ignored the admin cgi scripts since I only used IMAP folders for
training...much easier than another website to click around for my users.
-- 
Lee R. Copp
Project Engineer (EE/ME)
http://www.michsci.com/

-
 QmailToaster hosted by: VR Hosted http://www.vr.org
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [qmailtoaster] dspam on the toaster

2006-10-30 Thread Lee R. Copp
[EMAIL PROTECTED] wrote:
 BTW Vexira? with which conf, 2 qmails and vams between them ?

Internet  Vexira  Qmail

 God save simscan :-P

I will have to check that out.
-- 
Lee R. Copp
Project Engineer (EE/ME)
http://www.michsci.com/

-
 QmailToaster hosted by: VR Hosted http://www.vr.org
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [qmailtoaster] Updated packages

2006-05-02 Thread Lee R. Copp
Nick Hemmesch wrote:
 Can I link to this page on our website?

Sure...:)

Feedback and comments are welcome as well.
-- 
Lee R. Copp
Project Engineer (EE/ME)
http://www.michsci.com/

-
 QmailToaster hosted by: VR Hosted http://www.vr.org
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [qmailtoaster] Updated packages

2006-05-02 Thread Lee R. Copp
Steve Huff wrote:
 1) am i correct in my understanding that Qmail-Toaster 1.2 doesn't
 include a dspam RPM?  if so, has anyone had any luck with finding one
 that works, or do i need to build my own?

I don't know of any rpm for dspam.  I thought about doing one but
haven't had any spare time for it.

 2) i found instructions for setting up dspam with qmail and vpopmail
 using the mysql backend
 (http://www.wimble.info/articles/dspam-qmail-vpopmail.php).  did you use
 a similar procedure, or did you do something different?

I did it all from scratch.  I installed my toaster and then just added
the extra bits I needed.

 3) did you get the dspam web interface working (to enable users to set
 preferences, access their quarantine, and classify spam by hand)?  did

I don't bother with the Web GUI.  I use my custom scripts and IMAP
folders for training.  Read thru my link and you should get an idea on
how I have it setup.

 sorry to ask before trying it myself, but i don't currently have access
 to a test system, and i'd rather be sure before hacking around with my
 production server.

Give VMware a try.  I use their free server and player to create and
destroy setups all the time...:)
-- 
Lee R. Copp
Project Engineer (EE/ME)
http://www.michsci.com/

-
 QmailToaster hosted by: VR Hosted http://www.vr.org
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [qmailtoaster] Updated packages

2006-05-01 Thread Lee R. Copp
Marco Cordeiro wrote:
 If not , anyone have a guide to add DSPAM to toaster ??   

http://mail.michscimfd.com/dspam/
-- 
Lee R. Copp
Project Engineer (EE/ME)
http://www.michsci.com/

-
 QmailToaster hosted by: VR Hosted http://www.vr.org
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[qmailtoaster] Trouble with Ben King install script

2006-01-11 Thread Lee R. Copp
I'm currently running a RH9 toaster and couldn't be happier...:)  Of
course I'm planning for the worst by checking out the latest packages
and trying to build a standby replacement using the CentOS 4.2 Server
CD.  I'm not having any luck with the install guides so far and have
found several problems with one of them.  Specifically the script
contributed by Ben King in the following areas:

1. The vpopmail setup in mysql is borked due to some email address
filtering which screwed up the command.

This:

echo GRANT ALL PRIVILEGES ON vpopmail.* TO [EMAIL PROTECTED] IDENTIFIED
BY 'SsEeCcRrEeTt' | mysql -u root --password=$MYSQLPW

Should be:

echo GRANT ALL PRIVILEGES ON vpopmail.* TO [EMAIL PROTECTED]
IDENTIFIED BY '$MYSQLVPOPPW' | mysql -u root --password=$MYSQLPW

I also added the following when it asked for the mysql password but I'm
not sure if it was good or bad.

echo What is your mysql vpopmail password?
read MYSQLVPOPPW

2. The script tries to setup the http stuff in /usr/share/toaster but
that path doesn't exist yet.

This:

mv -i /var/www/html/* /usr/share/toaster/htdocs

Causes errors...:(

Even with those changes the box is borked.  The web interface doesn't
work.  Links go to www.qmail.org rather then www.qmailtoaster.com.
Images are missing and the /usr/share/toaster/htdocs doesn't have all
the required folders.

I'm still tinkering in order to get a working procedure but its a little
slow since I start over with installing from CD and then running down
the scripts and readme.txt files.
-- 
Lee R. Copp
Project Engineer (EE/ME)
http://www.michsci.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]