[toaster] Recieved by "0" and Squirrelmail

2004-09-16 Thread Marcus Williams
Hi -

I've installed the toaster on a new box as per the toaster
instructions (bar an upgrade to latest vpopmail and also I'm using
debians installation of daemontools etc). I'm trying to get the
squirrelmail spam (rbl list filters) plugin to work but I need to set
my SpamFilters_YourHop variable up. This needs to be set to something
unique in my Received headers. Normally I could do this by using the
Received header that has my hostname in it, but with the toaster this
appears to be missing - I get a "0" where I'd expect the hostname.

Is this normal? - I get the expected header on a non-toaster build of
qmail (admittedly on a different machine) 

Thanks

Marcus

--
My headers are (the relevant header is preceded with a *):

Return-Path: <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
Received: (qmail 4604 invoked by uid 89); 16 Sep 2004 10:06:58 -
* Received: from unknown (HELO ptb-relay01.plus.net) (212.159.14.212)
*  by 0 with (DHE-RSA-AES256-SHA encrypted) SMTP; 16 Sep 2004 10:06:58 -
Received: from [81.174.233.49] (helo=quinticltd.force9.co.uk)
 by ptb-relay01.plus.net with smtp (Exim) id 1C7t9x-00083D-Sr
for [EMAIL PROTECTED]; Thu, 16 Sep 2004 10:06:37 +
Received: (qmail 5314 invoked from network); 16 Sep 2004 10:06:37 -
Received: from unknown (HELO pokemon.quintic.bogus) (192.9.200.88)
  by bart.quintic.bogus with SMTP; 16 Sep 2004 10:06:37 -
Date: Thu, 16 Sep 2004 11:08:00 +0100
From: Marcus Williams <[EMAIL PROTECTED]>
X-Mailer: The Bat! (v3.0.0.15) Professional
Organization: Quintic Ltd
X-Priority: 3 (Normal)
Message-ID: <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: test
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

------

-- 
Marcus Williams -- http://www.quintic.co.uk
Quintic Ltd, 39 Newnham Road, Cambridge, UK
  This message is private [ ] public [*]



Re: [toaster] Recieved by "0" and Squirrelmail

2004-09-16 Thread Marcus Williams
On 16/09/2004, Marcus Williams wrote:
> Normally I could do this by using the
> Received header that has my hostname in it, but with the toaster this
> appears to be missing - I get a "0" where I'd expect the hostname.

bah. Should've checked the run scripts. I didnt notice the "-l 0" on
the tcpserver command line.

Sorry for noise.

Marcus

-- 
Marcus Williams -- http://www.quintic.co.uk
Quintic Ltd, 39 Newnham Road, Cambridge, UK
  This message is private [ ] public [*]



[toaster] Upgrading to 0.7.x

2005-02-01 Thread Marcus Williams
Hi -
I'm currently running toaster 0.6 and I want to upgrade to the 0.7 
toaster. I'm wondering if theres anything special I have to do or be 
aware of whilst upgrading.

Presumably if I kill my qmail my backup mx will deal with incoming mails 
 so I shouldnt get bounces - or is that only true if the machine itself 
is offline?

As for actually doing the upgrade do I just do a straight install over 
the old one or is better to try and remove everything installed for the 
old 0.6?

Thanks
Marcus


Re: [toaster] Upgrading to 0.7.x

2005-02-01 Thread Marcus Williams
On 01/02/2005 10:04, Eero Volotinen wrote:
Well. it depends if you want to keep vpopmail accounts?
Yep. Sorry, I should have been a little more clear with my "remove 
everything from previous install" bit.

Vpopmail doesnt bother me much - I've done plenty of upgrades straight 
over the top of it before and that all works. qmailadmin is alright as 
well. I've not used courier-imap before this toaster install so I'm a 
bit wary of just installing straight over the top of that incase theres 
stuff I'm going to break (like the current certificates etc). As for 
qmail I usually just install straight over that as well but there 
appears to be quite a few changes in this release that affect qmail so 
I'm wondering if a fresh start would be more sensible here. Most of the 
rest of the packages that get installed I install direct from Debian 
rather than install from source because I can track them more easily (I 
could never get courier-imap from debian to work with the toaster though).

Thanks
Marcus


[toaster] Updating expired certs

2005-10-03 Thread Marcus Williams

Hi -

How do I update the certificates in the toaster? All of mine expired the 
other day. Do I just run mk(imapd|pop3d)cert for clients and rerun make 
cert for smtp? I've tried make cert and it doesnt seem to update the 
certificate - I'd remove the old ones and try but I dont want to break 
anything!


Ta,

Marcus

--
Marcus Williams -- http://www.cad-schroer.co.uk
CAD Schroer UK, 39 Newnham Road, Cambridge, UK


Re: [toaster] Updating expired certs

2005-10-03 Thread Marcus Williams

On 03/10/2005 15:12, Rick Macdougall wrote:
Move the old ones and re-run the make cert (and update_tmprsdha) and 
mkomapdcert


Do I only need to mv/rm the servercert and clientcert.pem files (ones a 
sym link anyway)? Or should I mv/rm all the pem files in 
/var/qmail/control. imap/pop certs updated correctly in place.


Thanks

Marcus

--
Marcus Williams -- http://www.cad-schroer.co.uk
CAD Schroer UK, 39 Newnham Road, Cambridge, UK


[toaster] Bounce after virus/spam checks

2005-12-02 Thread Marcus Williams

Hi -

Using the current toaster I'd like to bounce messages heading for 
unknown users _after_ a spam/virus check. That way I can set up the 
system not to bounce virus or spam messages just bin them. Currently 
chkusr is returning no such user errors and bouncing straight away. I 
realise this will add load to our system for non-existing user messages 
but I cant just set the catchall to delete messages and I dont want to 
bounce viruses onwards.


Thanks

Marcus

--
Marcus Williams -- http://www.cad-schroer.co.uk
CAD Schroer UK, 39 Newnham Road, Cambridge, UK


Re: [toaster] Bounce after virus/spam checks

2005-12-02 Thread Marcus Williams

On 02/12/2005 Shane wrote:
Why would you want to accept the message and them process it? Keep 
using

chkuser to reject at the smtp level for "no such users" and setup
simscan to query spamassassin / clamav and also reject virus/spam at 
the

smtp level as well. This way the responsibility is back on the sending
server and not yours and they, not you will be likely to hit a spam 
trap

and end up in places such as SORBS, SPEWS and Spamcop etc.


 what I neglected to mention was the way we receive mail - this is a 
non-internet host that picks up mails from our real SMTP server from an 
ISP using fetchmail which in turn forwards them to this box. Historical 
baggage really but for reasons I wont bother to go into we cant change 
this. So we cant do anything at the SMTP level because we have to deal 
with it! :(


Cheers

Marcus



--
Marcus Williams -- http://www.cad-schroer.co.uk
CAD Schroer UK, 39 Newnham Road, Cambridge, UK


[toaster] Clamav patches

2006-03-06 Thread Marcus Williams
The toaster patches clamav with 3 patches - are they necessary? I ask 
because I run the toaster without simscan at the moment (I do scanning 
separately with maildrop + clamav). I'd like to move to a simscan 
installation, but my clamav comes from the debian volatile package and 
I'd rather keep it that way if I can.


Thanks,

Marcus


[toaster] Toaster upgrades

2006-03-06 Thread Marcus Williams
I'm running a mix of a 0.6 toaster with upgraded packages (so I track 
qmailadmin, courier-imap and vpopmail stable releases). I'd like to get 
up to date with the toaster patch as well - whats the easiest way to do 
this? Should I reverse the 0.6 patch and then apply 0.8 and 
rebuild/install netqmail or is that likely to break things badly


Thanks

Marcus


[toaster] [OT?] Help with djbdns

2006-03-24 Thread Marcus Williams

Hi -

My server is housed with a company thats just gone bust :( I've got 
about 48 hours to migrate everything across to a new server (with new 
dns). Luckily I had planned to do this soon anyway so I've done most of 
the work (toaster migrated very easily with the help of this list 
thanks!). The only problem is that now I've been forced to move my 
nameserver as well. Rather than change the IP of the underlying primary 
server ns1 (as I'm not sure this will work - how do registrars deal with 
this, dont they have an set IP?) I'm trying to get all domains to change 
the primary nameserver to a new server ns2. I've just been told by 
godaddy that they wont change it to this new address because they are 
only able to use authoritative name servers. I've updated my old server 
dns settings to:


.bar-coded.net::ns2.bar-coded.net
.50.144.10.217.in-addr.arpa:217.10.144.50:ns2.bar-coded.net:259200

=ns1.bar-coded.net:213.151.36.176
+ns2.bar-coded.net:217.10.144.50

(snipped other non-essential dns). I've replicated this on the new dns 
at 217.10.144.50, but I cant get godaddy to accept the update.


I thought that this meant that ns2 was an authoritive ns?

Anyone got any ideas? I can send more info if needed, but its a bit of a 
rush job unfortunately (and I might lose the server completely :(


Thanks

Marcus


Re: [toaster] [OT?] Help with djbdns

2006-03-24 Thread Marcus Williams

On 24/03/2006 Marcus Williams wrote:
I've just been told by 
godaddy that they wont change it to this new address because they are 
only able to use authoritative name servers.


Cancel that - operator error :) looks like you have to register your 
server for use with godaddy strangely. Done that now and it all works 
fine. Sorry for noise.


Marcus


Re: [toaster] clamav-0.88.1

2006-04-06 Thread Marcus Williams

On 05/04/2006 Bob Hutchinson wrote:

One of the toaster patches failed: (0.87)


I'm running the toaster with clamav from Debian volatile (0.88) with no 
patches and everything seems fine - can someone tell me what the patches 
do? I dont run with custom error messages setup on qmail either as I 
assumed that the patches allowed error messages on the output stream or 
something.


Thanks

Marcus


Re: [toaster] mail lost after maildrop

2007-04-19 Thread Marcus Williams
On 18/04/2007 Maciej SoBtysiak wrote:
> I am observing this weird problem. One user sends mail to another on the 
> same domain.
> The mail appears in all the logs, also in a maildrop log (logfile 
> "/home/vpopmail/maildrop.log")
> but the mail seems to never appear in the inbox nor the spam folder, any 
> ideas?

I dont know where you put your .mailfilter or how you're getting it to
run from vpopmail, but it looks like you are assuming that the current
directory is the VHOME directory. Are you sure you dont need to prepend
all your "Maildir" with $VHOME?

HTH

Marcus

-- 
Marcus Williams, CAD Schroer UK Limited
39 Newnham Road, Cambridge, CB3 9EY


[toaster] Mail refused with temporary errors

2007-10-09 Thread Marcus Williams
Hi -

I'm running an old copy of the toaster (5.4.10 area?) but I've just
started having problems with qmail refusing to send email.

The toaster will run for a while (days sometimes) and then suddenly
start refusing incoming email with a "mail server temporarily rejected
message (#4.3.0)" error.

Looking through the list it looks like other people are seeing this
occasionally but no one seems to have got to the bottom of it. Once I
start getting this message a reboot is required to fix it.

Restarting any of the services involved doesnt seem to fix it and I cant
find anywhere in the logs that might point to why its doing it.

Any one any ideas of where I should look?

Thanks

Marcus


Re: [toaster] Mail refused with temporary errors

2007-10-09 Thread Marcus Williams
On 09/10/2007 md ekram wrote:
> check whether you clamav running or do u update simscan?
> 

Clamav, spamassassin are all running when this happens. simscan appears
to have no obvious errors as well. Although I just noticed that the
perms on the /var/qmail/simscan directory are wrong:

[tomsk: marcus]$ ls -l /var/qmail
total 11
drwxr-sr-x   2 alias  qmail  192 2004-09-13 21:39 alias/
drwxr-xr-x   2 root   qmail 1504 2006-12-30 22:22 bin/
drwxr-xr-x   2 root   qmail  288 2004-09-13 15:58 boot/
drwxr-xr-x   2 root   qmail  680 2007-10-09 01:02 control/
drwxr-xr-x   2 root   qmail  784 2004-09-13 15:58 doc/
drwxr-xr-x  10 root   qmail  240 2004-09-13 15:58 man/
drwxr-x---  11 qmailq qmail  264 2004-09-13 15:58 queue/
-rwxr-xr-x   1 root   root   215 2004-09-13 16:02 rc*
drwxr-x---   7 clamav root   248 2007-10-09 13:56 simscan/
drwxr-xr-x   7 root   root   208 2007-09-10 20:50 supervise/
drwxr-xr-x   2 root   qmail  128 2007-10-04 09:18 users/

I though that the simscan directory should have drws--x--x (4711). The
makefile sets it to that anyway.

Marcus




Re: [toaster] Mail refused with temporary errors

2007-10-09 Thread Marcus Williams
On 09/10/2007 Marcus Williams wrote:
> I though that the simscan directory should have drws--x--x (4711). The
> makefile sets it to that anyway.

... and then I remembered setuid dirs under linux are ignored. So I'm
still no closer.

Thanks

Marcus


Re: [toaster] Mail refused with temporary errors

2007-10-10 Thread Marcus Williams
[sent again, apols if duplicate]

On 09/10/2007 [EMAIL PROTECTED] wrote:
>> As suggested earlier please check that you don't have a stale 
>> socket for clamd, this usually happens after an unclean shutdown. 
>> Check the log of clamav as it will complain about the stale socket
>> if this is the case. Delete the stale socket and restart the clamav 
>> service.

I wondered about this, but I didnt get any warnings about a stale socket
this time - I had one warning in september sometime that may have
coincided with this problem, but its hard to say.

Presumably the only way to get an unclean shutdown of clamd is to kill
it or for it to crash (and I havent killed it)?

If its a crash in one of the clamd threads would that bring down the
rest of the daemon or just the thread? At least if the whole thing stops
I can detect that with a monitor script.

Marcus



Re: [toaster] Mail refused with temporary errors

2007-10-10 Thread Marcus Williams
On 10/10/2007 I wrote:
> If its a crash in one of the clamd threads would that bring down the
> rest of the daemon or just the thread? At least if the whole thing stops
> I can detect that with a monitor script.

.. on that note, for anyone else that wants something similar - I found
a clamd monitor script that makes sure clamd is up and scanning at [1]

Hopefully this will confirm its a clamd problem.

Thanks

Marcus

[1] http://mikecathey.com/postfix-cyrus-amavis/clamdwatch.txt/


Re: [toaster] Daemontools on Ubuntu 7.04

2007-10-16 Thread Marcus Williams
On 16/10/2007 Tom Nats wrote:
> I'm having trouble with the package/install part of daemontools. 

Personally I just use the Debian package (its probably in Ubuntu as well):

apt-get install daemontools

or

apt-get install daemontools-installer

Theres also one for ucspi and djbdns.

They seem to work well with the toaster (I also track the debian
spamassassin and clamav rather than install from the toaster sources
with no problems)

Marcus


Re: [toaster] Daemontools on Ubuntu 7.04

2007-10-18 Thread Marcus Williams
On 18/10/2007 Jaroslav wrote:
> So qmailctl is giving me the following error:
> > [EMAIL PROTECTED]:/var/qmail/supervise/qmail-send# qmailctl stat
> > /service/qmail-send: unable to open supervise/ok: file does not exist
> > /service/qmail-send/log: unable to open supervise/ok: file does not 
> exist
> > /service/qmail-smtpd: unable to open supervise/ok: file does not exist
> > /service/qmail-smtpd/log: unable to open supervise/ok: file does not 
> exist

Sorry, been away otherwise I'd have replied as well -

Which debian packages did you install (as in which toaster packages did
you install the debian versions of?)

I think these files/pipes are created by the supervise program which
under debian will be in /usr/bin. This is run by svscan (I think) so
your paths have to be right - if it cant find it or run it in some way
these dont get created I guess.

Did you make sure you removed your built installation of daemontools
before installing the debian one?

Whats the output of "pstree -aAl `pidof svscan`" (no outer quotes)

Marcus