Re: [gentoo-user] Qmail and Spamassassin won't integrate

2008-04-21 Thread Tim Garton
I run spamassassin with exim, so can't offer all that much help, but
as for attempt 1 you may try running:
spamc -R < {some file containing full source of a sample email}

to make sure spamassassin is running correctly.  It should spit back a
score and a possibly a list of tests failed, depending on how
spamassassin is configured.  if you don't get this, or get a score
like "0/0", something is wrong with your spamassassin setup.

Also, you don't want the "-P" option anymore, it is deprecated and is
the default behaviour of spamassassin now.  And you definitely don't
want it with spamc, since it is an invalid option.  And yes, you do
want to use "spamc" over "spamassassin" for performance reasons.


On Mon, Apr 21, 2008 at 12:15 PM, darren kirby <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> I am quickly getting to the hair-pulling stage because I cannot accomplish the
> simple setup of qmail and spamassassin. There is lots of docs out there, but
> they all suggest completely different ways of doing things.
>
> Here's what I have:
> netqmail-1.05-r8
> dovecot-1.0.13-r1
> spamassassin-3.2.1-r1
>
> These are all installed, and presumably working fine. That is: qmail is
> accepting and delivering mail, spamd starts and runs with no errors, and I am
> able to log in and get my mail using Dovecot and IMAP.
>
> What I am trying to accomplish:
>
> I just want qmail to run all incoming mail through spamassassin and add X-Spam
> header for all spam it finds before it is delivered locally. With this I
> shall be able to use .dovecot.sieve to place it in a spam folder for quick
> review and deletion.
>
> Here's a few attempts I have made to integrate spamassassin, and the results:
>
> Attempt 1 (Docs: [0]):
> * emerge 'safecat' to get 'maildir' binary.
> * Put "| spamassassin -P | maildir ./Maildir/"
> in "/var/qmail/control/defaultdelivery"
>
> Result:
> * mail is still delivered, but is not processed by spamassassin.
> * It is my understanding that "X-Spam-Status" header should be added even if
> the mail is not identified as spam.
>
> Problems:
> * Reading spamassassin docs leads me to believe that there is no "-P" option,
> and that I should really be using 'spamc'. I tried replacing spamassassin
> with spamc in  "/var/qmail/control/defaultdelivery". No effect.
>
> Attempt 2 (Docs: [1]):
>
> * emerge 'mess822' (required by ifspamh)
> * emerge 'ksh' (ifspamh is ksh script)
> * Place 'ifspamh' in /usr/local/bin
> * setup .qmail and .qmail-spam as per docs
>
> Result:
> * No mail delivery at all. No obvious errors in any logs, mail just dries up.
>
> Attempt 3 (Docs: [2]):
>
> * emerge 'qmail-scanner'
>
> Result:
> * emerge hangs forever while searching for plugins to add to
> qmail-scanner-queue.pl. Some testing shows that the process is using no
> resources, so: it's hanging doing nothing?!?
>
> Problems:
> * 'clamav' (a dependancy of qmail-scanner) emerge failed with something about
> a gcc bug, and suggested I use a different compiler. I switched
> to 'i686-pc-linux-gnu-3.4.6' from 'i686-pc-linux-gnu-4.1.1' and it compiles.
> * Cannot get qmail-scanner to compile at all.
> * Dead-end.
>
> There is another method I have found, using simscan [3] but it seems to
> require yet another third-party binary , and a patch to qmail, so I am not
> really interested in trying, especially with all the failed attempts so far.
>
> Conclusion:
>
> Spamassassin and Qmail hate me.
>
> Does anyone on this list have spamassassin integrated with qmail at the MTA
> level? I would be very interested in which method you used, and your configs.
>
> Is there something else I am missing?
>
> Any other info you need please just ask.
>
> [0] http://www.magma.com.ni/~jorge/spamassassin.html
> [1] http://wiki.apache.org/spamassassin/IntegratedInQmailWithIfspamh
> [2] http://wiki.apache.org/spamassassin/IntegratedInQmailWithQmailScanner
>
> Thanks,
> -d
> --
> darren kirby :: Part of the problem since 1976 :: http://badcomputer.org
> "...the number of UNIX installations has grown to 10, with more expected..."
> - Dennis Ritchie and Ken Thompson, June 1972
> --
> gentoo-user@lists.gentoo.org mailing list
>
>
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Odd problem with OpenSSH

2008-02-15 Thread Tim Garton
Try adding a:
LogLevel VERBOSE

or
LogLevel DEBUG

to /etc/ssh/sshd_config and restarting the ssh server, and see if it gives
you any more info.


[gentoo-user] Getting ctrl-left/ctrl-right to jump backward/forward by word in non-x console

2007-06-16 Thread Tim Garton

I just noticed that on all my Gentoo boxes, you can't jump around by word
using ctrl-arrow_key in the non-x console.  It works fine in
xterm/Eterm/etc. while running X, but doesn't directly on the console.  I
haven't had a chance yet to try it on another distro.  Does anyone know how
to get this to work?  Here's the backward-word/forward-word lines from my
/etc/inputrc:

# gnome-terminal (escape + arrow key)
"\e[5C": forward-word
"\e[5D": backward-word
# konsole / xterm / rxvt (escape + arrow key)
"\e\e[C": forward-word
"\e\e[D": backward-word
# konsole (alt + arrow key)
"\e[1;3C": forward-word
"\e[1;3D": backward-word
# aterm / eterm (control + arrow key)
"\eOc": forward-word
"\eOd": backward-word
# xterm
"\e[1;5C": forward-word
"\e[1;5D": backward-word


[gentoo-user] xsltproc error when emerging gnome

2006-11-10 Thread Tim Garton
while trying to 'emerge gnome-doc-utils', emerge errors out with the following:xsltproc -o gnome-doc-make-C.omf .. C/gnome-doc-make.xml
http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd:1: parser error : Content error in the external subset
http://www.w3.or^unable to parse C/gnome-doc-make.xmlmake: *** [gnome-doc-make-C.omf] Error 6if I suspend the emerge while configure is running and change the following line:http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">to:http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">in the C/gnome-doc-make.xml file, when I resume it will compile that file fine but then choke on the next .xml file with the same error.  Can anyone tell me what I need to update to get it to be able to handle the 
4.4?  I checked my libxml2(I have version 2.6.26) and libxslt(I have version 1.1.17) and they both seem to be up to date.  Thanks.Tim


Re: [gentoo-user] iptables error

2006-11-09 Thread Tim Garton
perhaps the multiport module?  (xt_multiport)On 11/9/06, Arnau Bria <[EMAIL PROTECTED]> wrote:
On Wed, 8 Nov 2006 10:19:10 -0700Richard Fish wrote:> On 11/8/06, Arnau Bria <[EMAIL PROTECTED]> wrote:> I'd suggest you make a copy of this file and try to identify which
> rule from this file is causing the error.  It is a plain text file, so> you can comment out (with '#' characters) various rules (lines that> start with '[') to figure out which rule is causing the error.
Well, I found them: #-A INPUT -i eth0 -p tcp -m multiport --dports 4662,18491 -m tcp--tcp-flags FIN,SYN,RST,ACK SYN -j ACCEPT#-A INPUT -i eth0 -p udp -m multiport --dports 4666,18491 -j ACCEPTanyone knows what happens with both rules?
> -RichardThanks!--Arnau Briahttp://blog.emergetux.netWiggum: Dispara a las ruedas Lou.Lou: eee, es un tanque jefe.Wiggum: Me tienes hartito con todas tus excusas.
--gentoo-user@gentoo.org mailing list


Re: [gentoo-user] iptables error

2006-11-08 Thread Tim Garton
Perhaps try these modules as well?gentoo sbin # lsmodModule  Size  Used byxt_tcpudp   7936  1 iptable_nat    10756  1 ip_nat 21292  1 iptable_nat
ip_conntrack   51332  2 iptable_nat,ip_natiptable_filter  7296  0 ip_tables  22760  2 iptable_nat,iptable_filterx_tables   18568  3 xt_tcpudp,iptable_nat,ip_tables
TimOn 11/8/06, Arnau Bria <[EMAIL PROTECTED]> wrote:
Hi,I've done a kernel upgrade, from 2.6.16 to 17-r8 and my iptables stopworking.I get this error:# iptables-restore < /etc/iptables.noviembregetsockopt failed strangely: No such file or directory
I have those modules loaded:# lsmodModule  Size  Used byiptable_filter  3968  0ip_tables  14436  1 iptable_filterx_tables   14980  1 ip_tables
is there anything missing? It worked fine with old kernel...cheers!--Arnau Briahttp://blog.emergetux.netWiggum: Dispara a las ruedas Lou.Lou: eee, es un tanque jefe.
Wiggum: Me tienes hartito con todas tus excusas.--gentoo-user@gentoo.org mailing list


Re: [gentoo-user] Determine kernel release of non-running kernel

2006-11-06 Thread Tim Garton
Thanks, Sergio, that worked like a charm.  The string I wanted wasn't actually in the first 20 lines so a 'strings /tmp/vmlinuz | grep 2.6' worked better.Audrey, I wanted information about a kernel that was built by somebody else on another machine, so I don't have access to the applicable /lib/modules
TimOn 11/6/06, Andrey <[EMAIL PROTECTED]> wrote:
On Monday 06 November 2006 23:50, Tim Garton wrote:> Anyone know how to determine the kernel release of a non-running kernel?> Like 'uname -r' but point it at a kernel file?I didn't understand the problem...
What about: ls /lib/modules/ ?--gentoo-user@gentoo.org mailing list


[gentoo-user] Determine kernel release of non-running kernel

2006-11-06 Thread Tim Garton
Anyone know how to determine the kernel release of a non-running kernel?  Like 'uname -r' but point it at a kernel file?Tim


Re: [gentoo-user] Server installation

2006-11-01 Thread Tim Garton
meewi,    One other thing to be careful of is always making sure you have networking configured before each reboot to make sure the new partition/setup you boot into works correctly.  It would be a bummer to get gentoo completely partitioned and setup correctly, but forget to change /etc/conf.d/net to tell it to use a static ip (if for instance your hosted machine is supposed to use a static ip) and have it boot into gentoo but not have networking working.
If you decide to give it a go, let use know how it turns out.  I'd be interested in pitfalls and gotcha's you run into in case I need to do the same thing in the future.Tim


Re: [gentoo-user] Server installation

2006-11-01 Thread Tim Garton
I've thought about doing this sort of thing in the past and I think it would be pretty tricky if you want to do this completely remotely. (meaning not using an installation cd)  This is how I thought about doing it:
Resize the partitions on your current hosting server to free up enough space to create a temporary partition to install gentoo to.  So for example if your current setup is the following running redhat:/dev/sda1 - /boot (256MB)
/dev/sda2 - swap (1GB)/dev/sda3 - / (80GB redhat)you would want to resize so you can do the following:/dev/sda1 - /boot (256MB)
/dev/sda2 - swap (1GB)
/dev/sda3 - / (75GB redhat)/dev/sda4 - /mnt/gentoo (5GB temp to install gentoo to)then you basically follow the handbook instructions as though you have already booted from the minimal installation cd and install gentoo to /mnt/gentoo, but don't reformat the /dev/sda1 partition.  Then, rather than emerging grub, just modify your existing /boot/grub/menu.1st and add a default entry for booting off of /dev/sda4 for gentoo.  Reboot and you should boot into your new temporary gentoo installation on /dev/sda4.  You can now get rid of /dev/sda1-3, create new partitions however you like (excluding  the 5GB /dev/sda4 which you are currently running off of) format them, and follow the handbook instructions as though you just booted from the minimal installation cd.  Once you've done this and rebooted into your newly installed gentoo, you can delete /dev/sda4 and recapture that space to whatever partition you really installed gentoo to.
The problem I see with this is you would be editing the fs tables of a drive you are currently running off of.  If that doesn't work I guess you could set up a boot option that uses a RAM filesystem for the root /, and then you wouldn't be running off of any drives and could therefore fdisk to your hearts content.  Whatever you decide, you should probably do a test run on a box you have locally, since one screwup means you or someone else is going to have to physically be at the hosted server to fix it.
TimOn 11/1/06, meewi <[EMAIL PROTECTED]> wrote:
Hi all,I would like install Gentoo on my hosting-server. I have full rootaccess and running Gentoo on my desktop for more then a year now.But what or where do we find a good guide/doc for installing Gentoo
from a distance when using an ssh connection.Thanks in advance,William.Ecademy - Connecting Business People - Invite a friend to join:
http://www.ecademy.com/account.php?id=96418&xref=96418--gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Fake Dual-Head with VNC?

2006-10-31 Thread Tim Garton
Yeah, Synergy sounds like x2x or x2vnc, both of which I had already looked at.  I will check it out though, thanks for the heads up.TimOn 10/31/06, 
Randy Barlow <[EMAIL PROTECTED]> wrote:
Tim Igoe wrote:> It sounds like Synergy would be a better solution to what you are trying> to do (http://synergy2.sourceforge.net/). I don't use it myself, but I
> was looking into it when I've sorted my laptop out, to use it as an> extension of my screen.This was actually the first thought that came into my head too, butSynergy just lets you use one mouse and keyboard on two computers.
Meaning that what he will see on the laptop screen will be running onthe laptop and not on the desktop (which is what the VNC solution wouldeffectively do).  Though I will give a shout out to Synergy - it's a
really awesome utility and I use it a lot!--Randy Barlowhttp://www.electronsweatshop.com--gentoo-user@gentoo.org
 mailing list


[gentoo-user] Fake Dual-Head with VNC?

2006-10-30 Thread Tim Garton
Anybody know if this is possible?  I have a single-head graphics cardcapable of doing 2048x1536.  I want to start X with a virtual desktopof 2048x768, make my ViewPort be the left half of said desktop, startx11vnc using the "-clip" option so that it only shows the right half of
said desktop, and then use an old beater laptop to act as a view-onlyVNC client that connects to the x11vnc instance.  I think it will work,my only question is is there a way to prevent the ViewPort from moving
around in X as you move the mouse?Tim