Re: [toaster] Spamassassin per-user preferences

2006-05-16 Thread Nick Hemmesch
 Rick,

 Thank you for the link, I'll give this a spin since it looks so simple;
 perhaps it's even worth the time to fix the globals and port it to
 Squirrelmail. I'm assuming I'll need to add the -q parameter to my spamd
 instantiation so it will read user preferences from SQL. Are there any
 other tricks I need to know?

 Regards,
 Brian



Hi Brian,

Here is some old stuff that may get you started in the right direction. It
is mysql based and managed by the user within squirrelmail.

   http://www.qmailtoaster.com/old/spam/

Regards,

Nick



[toaster] Urgent prob: Qmail returns relay denied for non vpopmail virtual domain

2005-09-19 Thread Nick Gilbert
Hi,

(I sent this to the vchkpw mailing list, but it's probably more
applicable to this one?)

I built a Qmail box following Bill Schupp's instructions on the web. For
various reasons I then needed to add a normal qmail domain for a
normal local shell account (ie, not via vpopmail).

For some reason, if I try and send mail to this domain, I get a 500
relay denied error, even though the domain has been added to rcpthosts
and virtualdomains.

Why is this? Do real qmail domains no longer work on a box which has
vpopmail installed? How can I get this to work? I'm about 90% sure this
WAS working at one stage, but then I moved the domain to another box and
now it isn't working when I try and move it back.

Any help would be greatly appreciated as I'm off on holiday at the end
of the week and really need to get this sorted before I go!

Thanks,

Nick...





Re: [toaster] Urgent prob: Qmail returns relay denied for non vpopmail virtual domain

2005-09-19 Thread Nick Gilbert
Fixed!

I have no idea why, but somehow Exim had jumped on to my box. I
certainly haven't installed manually but perhaps something had it as a
dependancy when I installed something else or maybe did a yum update.

Anyway - now that I've uninstalled Exim, everything is working OK. No
wonder my qmail config files didn't seem to be working!

Nick...




Re: [toaster] SpamThrottle HOWTO

2005-06-21 Thread nick
Hi,

This is what Matt Simerson has on his site. It seems to work OK.

Regards,

Nick

~~ Matt Simerson ~~

http://www.tnpi.biz/internet/mail/toaster/filtering/patches.shtml

Spam Throttle:

If you are interested in implementing spam throttle, read the following
man pages:

man qmail-spamthrottle
man qmail-spamt
mail qmail-newst
If you just want some reasonable defaults, do this:

echo ::1501:12::1000  /var/qmail/control/spamt
echo .  /var/qmail/control/spamt
/var/qmail/bin/qmail-newst

~~ End ~~


[toaster] Makefile patch

2005-05-20 Thread nick
Hi,

Here is a little patch to update a Makefile patched with
qmail-toaster-0.7.2.patch from qmail-spf-rc4 to qmail-spf-rc5.

Regards,

Nick Hemmesch



--- ./Makefile  2005-05-20 17:20:34.728850359 -0500
+++ ../Makefile.spf52005-05-20 17:30:05.0 -0500
@@ -2087,7 +2087,7 @@
 datetime.a stralloc.a alloc.a str.a substdio.a error.a fs.a case.a dns.lib
./load spfquery spf.o ip.o ipme.o ipalloc.o strsalloc.o \
now.o dns.o datetime.a stralloc.a alloc.a str.a substdio.a \
-   case.a error.a fs.a `cat dns.lib`
+   case.a error.a fs.a `cat dns.lib` `cat socket.lib`

 spfquery.o: \
 compile spfquery.c substdio.h subfd.h stralloc.h gen_alloc.h alloc.h \



[toaster] SMTP AUTH problem

2005-05-16 Thread Nick Gilbert
Hi,
I have IMAP authentication working for vpop and standard linux users, 
but I have a problem with SMTP authentication.

I need SMTP authentication to work for standard linux users (I'm not 
worried about vpop users at all). I understand that Bill's toaster 
incorporates a Qmail auth patch but when I try to login it doesn't work:

Escape character is '^]'.
220 blue.x-rm.com ESMTP
ehlo localhost
250-blue.x-rm.com
250-STARTTLS
250-PIPELINING
250-8BITMIME
250-SIZE 0
250 AUTH LOGIN PLAIN CRAM-MD5
auth login
334 VXNlcm5hbWU6
bmljaw==
334 UGFzc3dvcmQ6
base64 encoded password
535 authentication failed (#5.7.1)
Can someone please give me some pointers on how I can debug this problem.
Thanks,
Nick...



Re: [toaster] SMTP AUTH problem

2005-05-16 Thread Nick Gilbert
PS:
I also have this line in /var/log/maillog
May 16 20:56:23 blue vpopmail[22654]: vchkpw-smtp: vpopmail user not 
found nick@:127.0.0.1

..which implies that perhaps it's only looking for vpopmail users rather 
than /etc/passwd users.

I would like it to work for /etc/passwd users only, or both - whichever 
is easier.

Thanks!


Re: [toaster] Spamassassin per-user rules

2005-05-12 Thread Nick Gilbert
 Yes, during the toaster install, /usr/lib/courier-imap/authdaemonrc is
 edited to remove all but authvchkpw.

I had already changed that back, but I'm getting some errors in
/var/log/maillog:

[EMAIL PROTECTED] log]# cat maillog
May 12 09:46:01 blue authdaemond: stopping authdaemond children
May 12 09:46:01 blue authdaemond: restarting authdaemond children
May 12 09:46:01 blue authdaemond: modules=authuserdb authpam authpgsql
authldap authmysql authcustom, daemons=5
May 12 09:46:01 blue authdaemond: Uninstalling authpam
May 12 09:46:01 blue authdaemond: Uninstalling authcustom
May 12 09:46:01 blue authdaemond: Installing libauthuserdb
May 12 09:46:01 blue authdaemond: libauthuserdb.so: cannot open shared
object file: No such file or directory
May 12 09:46:01 blue authdaemond: Installing libauthpam
May 12 09:46:01 blue authdaemond: Installation complete: authpam
May 12 09:46:01 blue authdaemond: Installing libauthpgsql
May 12 09:46:01 blue authdaemond: libauthpgsql.so: cannot open shared
object file: No such file or directory
May 12 09:46:01 blue authdaemond: Installing libauthldap
May 12 09:46:01 blue authdaemond: libauthldap.so: cannot open shared
object file: No such file or directory
May 12 09:46:01 blue authdaemond: Installing libauthmysql
May 12 09:46:01 blue authdaemond: libauthmysql.so: cannot open shared
object file: No such file or directory
May 12 09:46:01 blue authdaemond: Installing libauthcustom
May 12 09:46:01 blue authdaemond: Installation complete: authcustom

I have a feeling that something's gone horribly wrong :(

Nick...



Re: [toaster] Spamassassin per-user rules

2005-05-12 Thread Nick Gilbert
 Yeah, you did not do what I suggested in my last email.  Change the
 authmodule list to include only the authpwd one.  Then restart
 authdaemon.  You're not setup for any of those other modules.

But there's no such thing as authpwd.

In /usr/lib/courier-imap/etc/authdaemonrc it says:

# The available modules you
# can use are: authcustom authcram authuserdb authvchkpw authldap

(which does not include authpwd).

If I add authpwd anyway, I get the following errors:

May 12 14:31:53 blue authdaemond.ldap: Unknown module 'authpwd' skipped
May 12 14:31:53 blue authdaemond.ldap: FAIL, all modules rejected
May 12 14:31:53 blue imapd: authdaemon: REJECT
May 12 14:31:58 blue imapd: LOGIN FAILED, ip=[:::195.166.37.20]

Nick...



Re: [toaster] Spamassassin per-user rules

2005-05-11 Thread Nick Gilbert
Thanks for your replies.

Is there a way I can bypass the vpopmail system for a single domain and
control it using normal .qmail files and mailfilter?

What tells qmail that a particular domain is handled by vpopmail?

Nick...



Re: [toaster] Spamassassin per-user rules

2005-05-11 Thread Nick Gilbert
I wrote:
Is there a way I can bypass the vpopmail system for a single domain and
control it using normal .qmail files and mailfilter?
I found some new enthusiasm to persevere with a qmail toaster and I've
got further towards the setup I want but have run into another problem.
I've got mail delivery working (bypassing vpopmail) with .qmail files so 
I can use maildrop/mailfilter. I can  send myself a test message and it 
seems to go into the correct Maildir folder. HOWEVER I can't seem to 
connect to this normal user account (non vpopmail) with IMAP.

In Thunderbird it just says Unable to connect to your IMAP server.
SquirrelMail says Unknown user or password incorrect..
If I telnet in manually from localhost I get this:
 a001 login nick password
 a001 NO Login failed.
Has authentication of local users been disabled in this setup somehow?
I've tried editing /usr/lib/courier-imap/etc/authdaemonrc and putting 
back the default list and then restarting, but that doesn't seem to help.

Also, is it normal that when you restart courier-imap, it generates 
another SSL certificate?:

[EMAIL PROTECTED] init.d]# ./courier-imap restart
Stopping Courier-IMAP server: imap imap-ssl pop3 pop3-ssl
Starting Courier-IMAP server: imap generating-SSL-certificate... imap-ssl
I think when this is working - I'll be pretty much there :)
Thanks,
Nick...



[toaster] Spamassassin per-user rules

2005-05-10 Thread Nick Gilbert
Hi,

Is it possible to have per user rules with SpamAssassin in this
configuration (ie using vpopmail)? If so, how do I do this?

Thanks,

Nick...



Re: [toaster] Spamassassin per-user rules

2005-05-10 Thread Nick Gilbert
Is it possible to have per user rules with SpamAssassin in this
configuration (ie using vpopmail)? If so, how do I do this?
I use the vdelivermail - spamassassin + maildrop patches that I recently 
posted here on the list for vpopmail.  Then, I run spamassassin with 
preferences in MySQL.  Lastly, I add the sasql plugin to squirrelmail so 
that users can edit their preferences there.
Hmm.. this is all getting rather complicated for little me. Thanks very 
much for all your help but I'm coming to the conclusion that I'll 
probably have to use a commercial product. As my colleague always says 
Linux is only free if your time has no value - and I've already spent 
3 evenings trying to get the various parts to work properly and now I 
find it can't even filter mail into folders. sigh

Nick...


Re: [toaster] Spamassassin per-user rules

2005-05-10 Thread Nick Gilbert
Hmm.. this is all getting rather complicated for little me. Thanks 
very much for all your help but I'm coming to the conclusion that I'll 
probably have to use a commercial product.
Well, do whatever works for you.  But it has been my experience that 
while some of this stuff can be difficult to setup, once you get it 
working you'll have a far better understanding of how it works, and 
you'll be much more qualified to maintain it.
True. But the question is, will I *ever* understand it without spending 
more time than I would like to? I've only really just got into Linux and 
this isn't the most trivial of things to get working even with your 
excellent setup guide :)

Bare in mind that I'm used to using products like MDaemon which installs 
in about 10 minutes and tend to work reliably for years. I was just 
trying to save myself the cash as I need a mail server for only a 
handful of people.

As my colleague always says Linux is only free if your time has no 
value
That's a pretty loaded statement.  I strongly disagree, but will refrain 
from engaging it on this list.
I don't agree either to be honest and I shouldn't have said it - but I 
do think there's a *little* truth in it. Linux solutions to tend to take 
a lot more time to get working than the commerical ones (unless you're 
unlucky with the commercial products) and if your time would be better 
spent doing something else, then going with a 'free' solution doesn't 
always end up being 'free'.

Getting filtering working with the patches I described is trivial.  And 
you can bypass them if are ok with manually configuring .qmail files for 
any user that wants filtering.  I only use the patches because I want to 
use qmailadmin with the spam detection scheme.
Bare in mind that before last week - I've never patched or installed 
anything in my life :)

Maybe as I'll only have about 5 users, the vpopmail part of the install 
is more hassle than it's worth and I might have an easier time if I 
create 'normal' linux users and configure things with .qmail files like 
I used to on my old box (which someone else set up for me). Will that 
approach still work on a ShuppToaster(tm) or does the vpopmail stuff 
mangle the configuration too much?  I only really *need* the smtp-auth, 
SpamAssassin, Simscan/clamav and webmail support because I'm not really 
going to be dealing with more than a few users.

I *want* a linux install to work, but it scares me how much patching 
needs to be done to get VERY basic features into qmail that you'd think 
a lot of people would need (eg smtp-auth).

I REALLY wish someone made a Qmail Toaster distribution that has all the 
common stuff already installed to start with such that almost nobody 
will need to patch it. That way you would effectively have a 'standard' 
install that was very well supported and not different because 
everyone's used a different distribution/patches etc. I'd pay for it.

maildrop is pretty powerful, and well documented.  My recommendation is 
to hold out on a commercial product, and read more docs.
I'll take your advice and I'll persevere a little longer with qmail, but 
it might have to wait until the weekend as looking at the screen all day 
is doing my head in :)

Nick...


[toaster] Spamassassin and spamc giving very different results.

2005-05-09 Thread Nick Gilbert
Hi,
I've asked this on the SA mailing list as well, but I think it's more 
likely it's a setup issue. I've followed Bills instructions exactly - 
the only additions being that I've installed Razor2 and DCC.

Why do I get (VERY) different results on the same machine if I call 
spamassassin in two different ways? Eg:

spamassassin -D  spam.txt
Gives:
X-Spam-Status: Yes, score=10.8 required=5.0 
tests=AWL,HELO_DYNAMIC_COMCAST,INFO_TLD,RAZOR2_CF_RANGE_51_100,RAZOR2_CHECK,RCVD_IN_BL_SPAMCOP_NET,
RCVD_IN_SORBS_DUL,URIBL_OB_SURBL,URIBL_SBL autolearn=unavailable
version=3.0.3

but:
spamc  spam.txt
gives:
X-Spam-Status: No, score=4.8 required=5.0 
tests=HELO_DYNAMIC_COMCAST,INFO_TLD
autolearn=no version=3.0.3

Surely they should both give exactly the same result?
Thanks,
Nick...


[toaster] simscan query

2005-05-03 Thread Nick Gilbert
Hi,
How do I verify that simscan is actually running and working? I've 
installed it and configured it (I think!) but I'm not sure how to verify 
that it's actually being called. Can someone please give me some 
pointers how I can verify my setup.

Thanks,
Nick...


Re: [toaster] simscan query

2005-05-03 Thread Nick Gilbert
In that case, simscan isn't working on my box. I have no headers 
inserted. I'm not really sure why. I started out with a qmailtoaster.com 
install and then followed the instructions on the page below to install 
simscan:

http://www.shupp.org/toaster/#simscan
Do I need to do something else? Or is the qmailtoaster.com setup 
incompatible with B.Schupp's setup?

Thanks,
Nick...
Alex wrote:
If you look into e-mail details (header) you should be able to see if
simscan is called. Here is an example of your e-mail I have recieved from
toaster mailing list:
Received: (qmail 7690 invoked by uid 89); 3 May 2005 22:00:46 -
Received: by simscan 1.1.0 ppid: 7684, pid: 7685, t: 0.3201s
scanners: attach: 1.1.0 clamav: 0.83/m:31/d:858 spam: 3.0.2
Received: from unknown (HELO mail1.russianeast.com) (172.30.100.1)
by 0 with SMTP; 3 May 2005 22:00:46 -
Received-SPF: none (0: domain at shupp.org does not designate permitted
sender hosts)
Received: from [67.43.175.66] (helo=mail.merchbox.com)
by mail1.russianeast.com with esmtp (Exim 4.30)
id 1DT5Re-0002Hp-7R
for [EMAIL PROTECTED]; Tue, 03 May 2005 18:00:46 -0400
Received: (qmail 5380 invoked by uid 530); 3 May 2005 22:00:37 -
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Post: mailto:toaster@shupp.org
List-Help: mailto:[EMAIL PROTECTED]
List-Unsubscribe: mailto:[EMAIL PROTECTED]
List-Subscribe: mailto:[EMAIL PROTECTED]
Reply-To: toaster@shupp.org
Delivered-To: mailing list toaster@shupp.org
Received: (qmail 5374 invoked by uid 530); 3 May 2005 22:00:37 -
Received-SPF: none (0: domain at nickgilbert.com does not designate
permitted sender hosts)
Message-ID: [EMAIL PROTECTED]
Date: Tue, 03 May 2005 23:00:28 +0100
From: Nick Gilbert [EMAIL PROTECTED]
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: toaster@shupp.org
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Subject: [toaster] simscan query
X-Scan-Signature: c03760373adc782a8412eea9d6045da1
X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on
mail1.russianeast.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=6.0 tests=none autolearn=disabled
version=3.0.2
As you can see on second line its clearly stating that simscan was called.
Alex
quote who=Nick Gilbert
Hi,
How do I verify that simscan is actually running and working? I've
installed it and configured it (I think!) but I'm not sure how to verify
that it's actually being called. Can someone please give me some
pointers how I can verify my setup.
Thanks,
Nick...



#  Russian East#
#  http://russianeast.com  #