[toaster] 64 bit ubuntu

2009-07-15 Thread Bob Hutchinson
A customer of mine wants a new server, 64 bit Ubuntu,  are there any issues 
with installing a shupp toaster on 64 bit machines?

TIA

-- 
-
Bob Hutchinson
Midwales dot com
-


[toaster] Compliance with EU Data Retention Directive

2009-04-11 Thread Bob Hutchinson
There has been some discussion on qm...@list.cr.yp.to about 
Compliance with EU Data Retention Directive and how this might affect mail 
server administration.

My conclusion so far is that toaster pop3 logging is inadequate so I messed 
around with the patch at http://software.maexotic.de/qmail/103-pop3log/ and 
got it going with netqmail-1.06 with qmail-toaster-0.9.1.patch.bz2 already 
applied.

You can get it at
http://download.midwales.net/pub/lin/qmail/

Hope this helps

-- 
-
Bob Hutchinson
Midwales dot com
-


[toaster] occasional read error

2009-03-19 Thread Bob Hutchinson
Very occasionally I get a complaint that an incoming message was not delivered 
due to
'read error', eg

451 4.4.1 reply: read error from mail..
aja...@... Deferred: Connection timed out with
mail..
Message could not be delivered for 3 hours
Message will be deleted from queue


I am unable to tie this in to any log entries in smtpd (presumably because the 
conversation never got that far)

The sender is from aol.com but has no trouble at other times or from other aol 
servers

The server is not under load and has never got anywhere near to max 
concurrency, either smtpd or send

It has happened a few times this year, from various sources

Any pointers would be much appreciated.
This a a stock shupp toaster

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] SMTP Connection Refused

2009-02-27 Thread Bob Hutchinson
 from database.clamav.net
 Downloading daily-9050.cdiff [100%]
 Ignoring mirror 130.59.10.36 (too often connections with outdated version)
 ERROR: getpatch: Can't download daily-9051.cdiff from database.clamav.net
 Downloading daily-9051.cdiff [100%]
 daily.inc updated (version: 9051, sigs: 13885, f-level: 38, builder:
 guitar) WARNING: Your ClamAV installation is OUTDATED!
 WARNING: Current functionality level = 15, recommended = 38
 DON'T PANIC! Read http://www.clamav.net/support/faq
 Database updated (514552 signatures) from database.clamav.net (IP:
 208.70.244.158)
 --
 Received signal: wake up
 ClamAV update process started at Thu Feb 26 15:39:21 2009
 WARNING: Your ClamAV installation is OUTDATED!
 WARNING: Local version: 0.90.2 Recommended version: 0.94.2
 DON'T PANIC! Read http://www.clamav.net/support/faq
 ERROR: Can't lock database directory: /usr/local/share/clamav
 --
 Received signal: wake up
 ClamAV update process started at Thu Feb 26 17:40:26 2009
 WARNING: Your ClamAV installation is OUTDATED!
 WARNING: Local version: 0.90.2 Recommended version: 0.94.2
 DON'T PANIC! Read http://www.clamav.net/support/faq
 ERROR: Can't lock database directory: /usr/local/share/clamav
 --
 --
 freshclam daemon 0.90.2 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
 ClamAV update process started at Thu Feb 26 18:05:42 2009
 WARNING: Your ClamAV installation is OUTDATED!
 WARNING: Local version: 0.90.2 Recommended version: 0.94.2
 DON'T PANIC! Read http://www.clamav.net/support/faq
 main.inc is up to date (version: 50, sigs: 500667, f-level: 38, builder:
 sven)
 daily.inc is up to date (version: 9051, sigs: 13885, f-level: 38,
 builder: guitar)
 --



  qmail/current -
 @400049a65aae2256ea9c info msg 6023930: bytes 411604 from
 r...@dawgpound.internet-helpers.net qp 7258 uid 501
 @400049a65aae229153bc starting delivery 2: msg 6023930 to local
 internet-helpers.net-ad...@internet-helpers.net
 @400049a65aae22915f74 status: local 2/10 remote 0/20
 @400049a65aae22915f74 delivery 1: success: did_0+1+0/qp_7258/
 @400049a65aae2291635c status: local 1/10 remote 0/20
 @400049a65aae22b6313c end msg 6023912
 @400049a65aae25237434 delivery 2: success: did_0+0+1/
 @400049a65aae25237c04 status: local 0/10 remote 0/20
 @400049a65aae25237fec end msg 6023930
 @400049a6e1902869d534 status: exiting
 @400049a6e1f12262f88c status: local 0/10 remote 0/20
 @400049a71fff126e9314 status: exiting
 @400049a72062128687e4 status: local 0/10 remote 0/20
 @400049a7271315ce8ec4 status: exiting
 @400049a72713164ae2e4 status: local 0/10 remote 0/20

 As far as I can tell I am getting log watch messages from the server but
 nothing via smtp.

 /-  /service/qmail-smtp/run -
 #!/bin/sh
 QMAILDUID=`id -u vpopmail`
 NOFILESGID=`id -g vpopmail`
 MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
 exec /usr/local/bin/softlimit -m 6000 \
 /usr/local/bin/tcpserver -v -H -R -l 0 \
 -x /home/vpopmail/etc/tcp.smtp.cdb -c $MAXSMTPD \
 -u $QMAILDUID -g $NOFILESGID 0 smtp \
 /var/qmail/bin/qmail-smtpd \
 /home/vpopmail/bin/vchkpw /bin/true 21

 - ~vpopmail/etc/tcp.smtp 
 127.:allow,RELAYCLIENT=

 :allow,QMAILQUEUE=/var/qmail/bin/simscan

 I have also done:

 127.:allow,RELAYCLIENT=

 :allow,QMAILQUEUE=/var/qmail/bin/simscan,NOP0FCHECK=1

 with no different results.

 Any ideas would be greatly appreciated.  Running a AMD64 with CentOS5.2
 X86_64 version

 Installed everything but Razor and TMDA on the toaster as razor wouldn't
 go and I subscribe to too many lists to fight with TMDA to get it setup
 properly right now.

 Regards,
 Rob G



-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] SMTP Connection Refused

2009-02-27 Thread Bob Hutchinson
On Friday 27 February 2009, Dawg E Biscuit wrote:
 To answer part of my own thread I found the clamd log and found that
 there was an error there about /tmp/clamd socket.  delete the file and
 now am getting the error in smtp/current log
 $
 @400049a81023144a63ac connect(): No such file or directory

 atleast now it is telling me what the problem is now have to find where
 the problem is .. LOL

did you restart clamd and did the socket re-appear? The socket is required


 Dawg E Biscuit wrote:
  Did not have the clamd.pid file,  was not set in the conf file.
 
  The permissions are all clamav.clamav in that directory and above,
  though there is a .dblock file in all the directories that I am not
  sure about though it is owned by clamav.clamav
 
  I am unable to find a clamd.log file ... unless it is writing directly
  to the syslog.
 
  I thought about upgrading clam but everything I have read has stated
  that it doesn''t play well with the toaster and daemontools.  I am
  experienced enough to compile it from source but just don't want to
  break anything else.
 
  Bob Hutchinson wrote:
  On Friday 27 February 2009, Dawg E Biscuit wrote:
  Well this is the first time I have posted in a long time.  Afters years
  of service I have decided to build a new server that will handle my
  email and everything went according to plan when installing but there
  are a few problems.   The main one being I am unable to send email from
  my mail client,  I have not tested webmail as I don't use that all that
  much but SMTP connections are a must.
 
  When I try to send email I get that the connection has been temporarily
  refused Error #4.0.3.
 
  I have done some troubleshooting and searching in this archive and on
  the web and cannot find anything that will fix this problem.
 
  Here are some log Snippets
 
  Looking at these snippets I'd say there was something wrong with clamd
  Ensure that /usr/local/share/clamav and below are set to clamav.clamav
 
  assuming clamd is running under daemontools
  Check the clamd logs
  stop the clamd service, svc -d /service/clamd
  check that there is no existing pidfile, /var/run/clamd/clamd.pid (if
  you have that set in clamav.conf)
  Start the service svc -u /service/clamd
  Check the clamd logs again
  Check the smtpd logs too and it won't hurt to restart that too
 
  Run freshclam and look at the ouput in freshclam.log, is it reloading
  clamd?
  It should be something like this:
 
  Received signal: wake up
  ClamAV update process started at Fri Feb 27 10:34:49 2009
  main.cld is up to date (version: 50, sigs: 500667, f-level: 38,
  builder: sven)
  Trying host db.uk.clamav.net (81.91.100.173)...
  Downloading daily-9054.cdiff [100%]
  daily.cld updated (version: 9054, sigs: 13906, f-level: 38, builder:
  guitar)
  Database updated (514573 signatures) from db.uk.clamav.net (IP:
  81.91.100.173)
  Clamd successfully notified about the update.
 
 
  You could upgrade clamd too
 
  HTH
 
  - QMAIL-SMTP/ CURRENT -
  @400049a721ae36717e0c tcpserver: status: 1/20
  @400049a721ae367189c4 tcpserver: pid 5394 from 69.63.33.62
  @400049a721ae367189c4 tcpserver: ok 5394 0:192.168.1.50:25
 
  :69.63.33.62::49269
 
  @400049a721af021fffac CHKUSER accepted sender: from
  ad...@internet-helpers.net:rgabo...@internet-helpers.net: remote
  [192.168.1.100]:unknown:69.63.33$
  @400049a721af023d3c0c CHKUSER accepted rcpt: from
  ad...@internet-helpers.net:rgabo...@internet-helpers.net: remote
  [192.168.1.100]:unknown:69.63.33.6$
  @400049a721af02af763c connect(): Connection refused
  @400049a721b320707f2c tcpserver: end 5394 status 0
  @400049a721b320708ae4 tcpserver: status: 0/20
  @400049a7271320045b94 tcpserver: status: 0/20
  @400049a727381d490c24 tcpserver: status: 1/20
  @400049a727381d4917dc tcpserver: pid 5777 from 69.63.33.62
  @400049a727381d491bc4 tcpserver: ok 5777 0:192.168.1.50:25
 
  :69.63.33.62::49480
 
  @400049a72738209d4804 CHKUSER accepted sender: from
  ad...@internet-helpers.net:rgabo...@internet-helpers.net: remote
  [192.168.1.100]:unknown:69.63.33$
  @400049a7273820b8e654 CHKUSER accepted rcpt: from
  ad...@internet-helpers.net:rgabo...@internet-helpers.net: remote
  [192.168.1.100]:unknown:69.63.33.6$
  @400049a727382dd7c56c connect(): Connection refused
  @400049a7273b39e1218c tcpserver: end 5777 status 0
  @400049a7273b39e1295c tcpserver: status: 0/20
  @400049a728890a4737cc tcpserver: status: 1/20
  @400049a728890a474384 tcpserver: pid 5798 from 69.63.33.62
  @400049a728890a47476c tcpserver: ok 5798 0:192.168.1.50:25
 
  :69.63.33.62::49517
 
  @400049a728890d12fe14 CHKUSER accepted sender: from
  ad...@internet-helpers.net:rgabo...@internet-helpers.net: remote
  [192.168.1.100]:unknown:69.63.33$
  @400049a728890d2f0dac CHKUSER accepted rcpt: from
  ad...@internet-helpers.net:rgabo...@internet-helpers.net: remote
  [192.168.1.100]:unknown:69.63.33.6

Re: [toaster] simscan: connect error 2

2009-02-20 Thread Bob Hutchinson
On Friday 20 February 2009, Shane Chrisp wrote:
 k...@cuea.edu wrote:
  What is the meaning of this error simscan: connect error 2
 
 
  Best Regards,
 
  ..
  Emmanuel Kiew,
  ICT Dept.
  CUEA

 You can stop that error with something like this in your
 /service/qmail-smtp/run

 NOP0FCHECK=1
 export NOP0FCHECK

 or by adding NOP0FCHECK=1 to your tcpserver allow lines like

 :allow,CHKUSER_RCPTLIMIT=30,CHKUSER_WRONGRCPTLIMIT=2,CHKUSER_MBXQUOTA=
 :95,QMAILQUEUE=/var/qmail/bin/simscan,NOP0FCHECK=1

 Shane

Aaah!
I did wonder..
This error went away when I upgraded to simscan 1.4.0


-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] Anyone using simscan + spamc

2008-09-30 Thread Bob Hutchinson
On Tuesday 30 September 2008, Shane Chrisp wrote:
 On Mon, 2008-09-29 at 14:06 -0400, Jason S wrote:
  Shane Chrisp wrote:
   On Mon, 2008-09-29 at 12:16 -0400, Jason S wrote:
   right. If you enable spam-hits, then passthru is disabled.
  
   --enable-spam-passthru=y|n
   This option turns spam passthru on and off.  When enabled, email
   identified as spam via the X-Spam-Status: header will be passed on
   to the user instead of rejected.
   Note : *Enabling spam-hits effectively disables this option*
  
   I have played around with these options too and I would use it, but I
   cant seem to work out how to reject mail to users who dont want it
   passed through to them. Do you do that, or do you just pass all mail
   through to the users maildir or delete it?
 
  I pass it all through to the user's spam folder. that is just how it
  works best for my setup.
 
  if you want selective treatment of spam (using the pass-through method),
  you can create a .qmail file in the user's Maildir (or use the valias
  table in mysql) and use Maildrop to drop the spam into the .Spam folder
  (or just delete it).

 Thanks for your answer but personally I can see why spam just keeps
 increasing to higher and ever higher levels. When you start accepting
 all emails and either deleting them or dropping them into a spam folder
 all its does is to encourage the spammers to send even more. If everyone
 rejected the spam emails at smtp time you would see a dramatic change in
 the volume of spam.

Rblsmtpd can stop mail from bad sources at smtp time but clamav, spamc etc 
have to slurp in the mail in order to analyse it. Spammers don't know or care 
about rejects ;-(


 Regards
 Shane



-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] domainkey trouble

2008-08-20 Thread Bob Hutchinson
On Wednesday 20 August 2008, Bob Hutchinson wrote:
 On Wednesday 20 August 2008, Martin Waschbuesch wrote:
  Hi everyone,
 
  I have the following trouble:
 
  I have prepared the toaster for domainkeys and set the DNS accordingly.
  (The DNS entries have been verified using
  http://domainkeys.sourceforge.net/policycheck.html
  and
  http://domainkeys.sourceforge.net/selectorcheck.html
  Since they tell me the information is valid, I assume the problem does
  come from the server side.)
 
  When I send mail now, they do get signed. At least, a header like the
  following is being added:
 
  DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default;
  d=waschbuesch.de;
  b=A6ptw22RSLRbPUFVMF7JiCEAqADLgdv2Uze3zpbNpnrTaC28Ppj8lAb3eHf/nink  ;
 
  Now, all the sites that I used to test, claim that they cannot find
  the DNS name.
  Yahoo! and the ESPC (email provider service coalition) tests both claim:
 
  DomainKey-Status: no key: Caught error looking up key: DNS name not
  found

 # dnsqr any aschbuesch.de
 255 aschbuesch.de:
 83 bytes, 1+0+1+0 records, response, nxdomain
 query: 255 aschbuesch.de
 authority: de 7200 SOA f.nic.de ops.denic.de 2008082093 7200 7200 360
 7200

 I can't find it either

ooops oh yes it does
dnsqr any waschbuesch.de
255 waschbuesch.de:
285 bytes, 1+6+2+3 records, response, noerror
query: 255 waschbuesch.de
answer: waschbuesch.de 240 A 80.254.139.85
answer: waschbuesch.de 240 MX 10 rumo.waschbuesch.de
answer: waschbuesch.de 240 16 \035v=spf1\040ip4:80.254.139.85\040-all
answer: waschbuesch.de 240 SOA ns1.all-connect.net hostmaster.all-connect.net 
2008082002 10800 1800 2419200 240
answer: waschbuesch.de 240 NS ns1.all-connect.net
answer: waschbuesch.de 240 NS ns3.all-connect.net
authority: waschbuesch.de 240 NS ns1.all-connect.net
authority: waschbuesch.de 240 NS ns3.all-connect.net
additional: rumo.waschbuesch.de 240 A 80.254.139.85
additional: ns1.all-connect.net 142890 A 80.254.130.4
additional: ns3.all-connect.net 142890 A 80.254.140.9


  What is wrong? Does anyone have an idea?
 
  Any help, advice, etc. is highly appreciated!
 
  Thanks,
 
  Martin
 
  
  This message was sent using IMP, the Internet Messaging Program.




Re: [toaster] How do you get qmailmrtg7 to generate spam stats

2008-01-29 Thread Bob Hutchinson
On Tuesday 29 January 2008 01:52, Jeff Koch wrote:
 Hi:

 Does anyone happen to know how to get qmailmrtg to generate spam graphs.
 We've been using this tool with the Toaster for years but the spam graph is
 always blank.

 I think the critical line in the qmail.mrtg.cfg file is:

 Target[spamd]: `/usr/local/bin/qmailmrtg7 S /var/log/spamd`

 However, with the Toaster setup (at least on mine) spam analyses are being
 logged to the /var/log/qmail/smtpd directory and /var/log/maillog. Does
 anyone know how I should change this config file or how I can change my
 setup so that qmailmrtg7 can graph spam activity.

http://shupp.org/toaster/?page=spamassassin




 Best Regards,

 Jeff Koch, Intersessions

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] Unknown user or password incorrect. using squirrelmail

2007-11-05 Thread Bob Hutchinson
On Monday 05 November 2007 04:21, Mark wrote:
 Dear all,

 When trying to login using squirrelmail I get the
 below mentioned error;
 Unknown user or password incorrect.
 This happens for one user only others can login
 without any problems. Also, when I append the domain
 name along with the userid the user is able to log in.
 Please let me kow why this is happening.
 Thanks in advance.

Normally, you would login to squirrelmail using the full email address as 
login. If only the username is used squirrelmail will append the default 
domain to the username, eg [EMAIL PROTECTED]
So presumably those who can login with only their username have an account 
on 'myserver.com'.
The vlogin plugin for squirrelmail can be setup so that users can go to 
something like http://webmail.example.com and they will be able to login 
using only their username. You can also customise the logo, initial settings  
and so on. You will still need only one install of squirrelmail.
webmail.example.com will need a dns entry and a virtual host container in 
apache.


 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] is there a way to compare netqmail with qmail 1.03?

2007-10-22 Thread Bob Hutchinson
On Monday 22 October 2007 12:43, Sreedevi wrote:
 Hi,

 I learned that netqmail is a advanced version of qmail 1.03 and it even
 included few of the patches like spamcontrol already. I would like to know
 what are the patches integrated to netqmail already. Can any one help me?,
 I need to tweak my qmail for better spam control. Please help.

look inside netqmail-1.05.tar.gz and you will see a patch file
netqmail-1.05.patch


 Sincerley,
 Sree




   Now you can chat without downloading messenger. Go to
 http://in.messenger.yahoo.com/webmessengerpromo.php

-- 
-
Bob Hutchinson
Midwales dot com
-


[toaster] simscan error message

2007-07-22 Thread Bob Hutchinson
Just installed latest toaster
My smtp log is showing 
simscan: connect error 2

This appears to be generated by line 2370 of simscan.c
simscan-1.3.1.shupp2

my C coding skills aren't up to figuring out what this is doing, Clamav 
appears to be catching viruses fine and all appears to be well

-- 
-
Bob Hutchinson
Midwales dot com
-


[toaster] vpopmail domain creation

2007-06-08 Thread Bob Hutchinson
If I create a domain in vpopmail using vadddomain, any mail destined for that 
domain sent by anyone else on that box will be delivered there, irrespective 
of MX settings.

What I would *like* to do is pre-create a domain so that a customer can set up 
things in qmailadmin *before* the switch to the new box by changing the MX 
record. 

Is there any way of instructing qmail delivery to check MX or something else 
(smtproutes possibly)?


-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] vpopmail domain creation

2007-06-08 Thread Bob Hutchinson
On Friday 08 June 2007 12:43 pm, Jason S wrote:
 Bob Hutchinson wrote:
  If I create a domain in vpopmail using vadddomain, any mail destined for
  that domain sent by anyone else on that box will be delivered there,
  irrespective of MX settings.
 
  What I would *like* to do is pre-create a domain so that a customer can
  set up things in qmailadmin *before* the switch to the new box by
  changing the MX record.
 
  Is there any way of instructing qmail delivery to check MX or something
  else (smtproutes possibly)?

 yes. add an entry in smtproutes, and temporarily remove the domain from
 the rcpthosts (or morercpthosts) file and the virtualdomains file. that
 should force qmail to obey the smtproutes entry and not deliver locally
 for that domain.

thanks, I'll try that straightaway ;-)


 jason

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] Branch offices

2007-05-07 Thread Bob Hutchinson
On Monday 07 May 2007 6:27 am, Mark wrote:
 Dear all,

 I have a toaster setup in our HO serving around 200
 users. I have remote offices with around 100-50 users
 each. At prsent all the users use SMTP AUTh to relay
 through our toaster in HO. This is producing a heavy
 load on the server.

If the remote offices have fixed ip addresses, give them each a rule in 
tcp.smtp, so that they don't have to AUTH, no rbl check and don't go through 
simscan. That might help reduce load. 200 users is not that many.
something like

10.10.10.10:allow,RELAYCLIENT=,RBLSMTPD=

 I was thinking of setting up another mail server  at
 the remote branches through which the users at the
 site will use for smtp access.Also maybe use some
 program like fetch mail for certain users and thus act
 as POP3 for them.
 Please advice the best possible steps for cases such
 as this. I know I am asking too much but would like to
 start correctly. Thanks very much.

 Reg,
 Mark

 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com


Re: [toaster] rsync qmail

2007-02-12 Thread Bob Hutchinson
On Monday 12 February 2007 21:59, [EMAIL PROTECTED] wrote:
 I gave that a try this morning and qmail worked just fine, BUT, it didn't
 recognize any of the domains or users. What I'm trying to do, just in case
 it isn't obvious, is rsync to a backup server that can take over if the
 first one comes tumbling down. I'm using ucarp to change the IP and http,
 mysql and php work great. Qmail on the other hand has been less than
 forgiving.

check that the uid/gid of vpopmail/vchkpw on both machines are the same
see /var/qmail/control/users/assign file


 Thanks
 Doug

  Hutger H. wrote:
  Hi Doug,
 
  I had the same problem before. First I tried to make a copy of the
  service related directories and files to the slave server and tried to
  start the service. After lots of errors and gave up.
  I solved doing exactly what you thought ... I installed on the new
  server the qmail, vpopmail, etc and after that I did the rsync of
  /home/vpopmail, /var/qmail, etc.
 
  Maybe someone else had the same problem and got a better solution ...
  guys?
 
  Hutger.
 
  Regarding data, the main things you want to back up are:
 
  /var/qmail/users
  /var/qmail/control
  /home/vpopmail/domains
 
  You do NOT want to copy /var/qmail/queue, as the queue's files are tied
  tied to inode numbers on the disk.  There is a script available that can
  renumber the queue files, but in my experience, it didn't work and the
  queue was corrupted.
 
  Regards,
 
  Bill

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] Serverside email backup - using what?

2007-01-16 Thread Bob Hutchinson
On Tuesday 16 January 2007 10:35, Maciej Sołtysiak wrote:
 Hi,

 My vpopmail/domains dir is on a 270GB XFS (on linux) partition. The domains
 dir weighs in
 at around 40GB. The partition is on a RAID 5 scsi setup.

 I'd like to do backups of the whole domains directory. I have a huge NAS
 that
 I connect to using NFS (v3). A simple cp -Rp copy took 4 hours to complete.

 What backup software would you recommend that's better than cp ? tar, cpio
 and others would create huge files that would be impossible to process
 later on.
 I would also like an incremental backup. Does anyone have an idea?

 --
 Maciej Soltysiak

http://www.rsnapshot.org/

normally uses ssh, but can be used 'locally', don't know how that goes with 
NFS. It's very efficient once the first snapshot has been built.

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] how to save outgoing messages

2006-05-18 Thread Bob Hutchinson
On Thursday 18 May 2006 17:41, Istvan Köpe wrote:
 This is Qmailtoaster. It is a precompiled release. The Qmail FAQ say
 that is required ro recompile it with QUEUE_EXTRA set to Tlog\0 and
 QUEUE_EXTRALEN set to 5 in extra.h.
 Do I have to do that? If yes, how? Where do I start? Which version of
 Qmail do I need to use? Will is f%^@ up my currently installed and
 functional Qmailtoaster?

This mailing list exists to discuss the method of qmail installation described 
at
http://shupp.org/toaster/

It works very well and is certainly not precompiled. If you want to do the 
above tweak it will be possible with the shupp toaster.

I think you have a different qmail install

HTH
-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] pop3 ssl problem

2006-05-08 Thread Bob Hutchinson
On Thursday 04 May 2006 20:06, Alex Dean wrote:
 On May 4, 2006, at 11:49 AM, Ingo Claro wrote:

snip
 -rw-r- 1 vpopmail qmail 2197 2006-05-04 10:28 /var/qmail/control/
 servercert.pem
 ###

 Is it correct that clientcert.pem should be a symlink to
 servercert.pem?  stunnel.conf is then using the same file for 'cert'
 and 'key'.  I admit I don't know much about SSL, but it seems like
 the certificate and key should be different files.

.pem files contain both
-BEGIN RSA PRIVATE KEY-

 lots of stuff

-END RSA PRIVATE KEY-
-BEGIN CERTIFICATE-

 lots of stuff

-END CERTIFICATE-

clientcert.pem - /var/qmail/control/servercert.pem
is correct. Yours looks about the same size as the ones I have
and the permissions look right

I also have ciphers

this is how to make them
#!/bin/sh

/usr/bin/openssl ciphers  /var/qmail/control/tlsserverciphers

cd /var/qmail/control
ln -s tlsserverciphers tlsclientciphers

perhaps that's what is missing, it's a while back but I seem to remember that 
the ciphers helped get securepop/securesmtpd going.

This is my run file
#!/bin/sh

VPOPMAILUID=`id -u vpopmail`
VPOPMAILGID=`id -g vpopmail`
HOST=`hostname -f`

readdefault() {
var=$1; shift
file=$1; shift
if [ -s /var/qmail/control/$file ]; then
export $var=`cat /var/qmail/control/$file`
else
export $var=$*
fi
}

readdefault SOFTLIMIT pop3ssoftlimit 400
readdefault MAXCONNECT concurrencypops 30

exec /usr/local/bin/softlimit -m $SOFTLIMIT \
/usr/local/bin/tcpserver -v -H -R -l 0 \
-c $MAXCONNECT \
-u $VPOPMAILUID -g $VPOPMAILGID 0 995 \
/usr/sbin/stunnel -f -p /var/qmail/control/servercert.pem \
-l /var/qmail/bin/qmail-popup -- qmail-popup $HOST \
/home/vpopmail/bin/vchkpw \
/var/qmail/bin/qmail-pop3d Maildir 21

## eof ##

stunnel is version 3
# stunnel -V

stunnel 3.26 on i386-pc-linux-gnu PTHREAD+LIBWRAP with OpenSSL 0.9.7e 25 Oct 
2004

All this is on a Debian box

netstat -atn
should show
tcp0  0 0.0.0.0:995 0.0.0.0:*   LISTEN


Hopefully there is enough for you to find what is wrong.

HTH
-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] clamav-0.88.2

2006-05-03 Thread Bob Hutchinson
On Wednesday 03 May 2006 14:00, Sim wrote:
 # patch  -p0 ../tar/clamav-0.88.1-conf.patch
 patching file etc/clamd.conf

 # patch  -p0 ../tar/clamav-0.88.1-freshclamconf.patch
 patching file etc/freshclam.conf

 #  patch  -p0 ../tar/clamav-0.88.1-stderr.patch
 patching file ./clamd/clamd.c
 patching file ./shared/output.c
 patching file ./shared/output.h

 No offsets!

hmmm, I'll check that, perhaps mine were old


 2006/5/2, Bob Hutchinson [EMAIL PROTECTED]:
  The patches for 0.88.1 appear to be working for clamav-0.88.2, but with
  some offsets.
 
  Here is the output:
 
  patching file ./clamd/clamd.c
  Hunk #1 succeeded at 138 (offset 1 line).
  patching file ./shared/output.c
  Hunk #1 succeeded at 121 (offset 6 lines).
  Hunk #2 succeeded at 158 (offset 6 lines).
  patching file ./shared/output.h
  patching file etc/clamd.conf
  Hunk #1 succeeded at 5 with fuzz 1.
  patching file etc/freshclam.conf
 
 
  --
  -
  Bob Hutchinson
  Midwales dot com
  -

-- 
-
Bob Hutchinson
Midwales dot com
-


[toaster] clamav-0.88.2

2006-05-01 Thread Bob Hutchinson
The patches for 0.88.1 appear to be working for clamav-0.88.2, but with some 
offsets.

Here is the output:

patching file ./clamd/clamd.c
Hunk #1 succeeded at 138 (offset 1 line).
patching file ./shared/output.c
Hunk #1 succeeded at 121 (offset 6 lines).
Hunk #2 succeeded at 158 (offset 6 lines).
patching file ./shared/output.h
patching file etc/clamd.conf
Hunk #1 succeeded at 5 with fuzz 1.
patching file etc/freshclam.conf


-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] Spammassassin- Install Problem

2006-04-22 Thread Bob Hutchinson
On Saturday 22 Apr 2006 19:45, W.D.McKinney wrote:
 Hi,

 Wow..many thanks to Bill for the online instructions, scripts and all the
 work with toaster.

 I need help if possible, with a stock Debian 3.1a install and my
 spamassassin install. Seems perl is the issue:

Have you tried using aptitude? It will install Spamassassin for you with all 
dependencies sorted



 ***
 NOTE: the optional LWP::UserAgent module is not installed.

   The sa-update script requires this module to make HTTP requests.


 ***
 NOTE: the optional HTTP::Date module is not installed.

   The sa-update script requires this module to make HTTP
   If-Modified-Since GET requests.

 REQUIRED module missing: HTML::Parser
 optional module missing: IP::Country
 optional module missing: IO::Socket::INET6
 optional module missing: DBI
 optional module missing: LWP::UserAgent
 optional module missing: HTTP::Date

 warning: some functionality may not be available,
 please read the above report before continuing!

 Running make test
   Make had some problems, maybe interrupted? Won't test
 Running make install
   Make had some problems, maybe interrupted? Won't install

 --

 Does anyone have experience to share fixing this problem so I can get SA to
 install?

 Thanks,
 -Dee

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] Toaster 0.8.7 Update

2006-04-10 Thread Bob Hutchinson
On Monday 10 Apr 2006 13:30, Nikki Locke wrote:
 Thanks, Bill. What is the best procedure for upgrading the toaster? Do we
 just go through _all_ your instructions from scratch, or do we have to miss
 some out?

check against what you already have installed, and just do those that have 
features you want/need.
daemontools is the same, apart from the nifty new 'clear' stuff
ucspi is the same, so is autoresponder

if you decide to upgrade qmail/vpopmail to get the latest patches and version, 
remember to recompile qmailadmin, which is still the same version but uses 
vpopmail libraries.



 Obviously I don't want to mess up my existing configuration.

re-installing qmail will not over-write control, you will only need to do up 
to 'make setup check'

Remember to hang on to your source trees, they are your record of what has 
been installed.

I write a shell script for each package, then all I have to do is change the 
version number and run it (mostly)

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] badmailfrom error - unable to read controls

2006-04-10 Thread Bob Hutchinson
On Monday 10 Apr 2006 15:57, Frédéric Heynen wrote:
 Hi,



 I need help about the badmailfrom file.



 I have try to download one of the following file from the web :

  http://www.futurahost.com/webs.new/downloads/qmail/badmailfrom
 http://www.futurahost.com/webs.new/downloads/qmail/badmailfrom


 http://www.sa-blacklist.stearns.org/sa-blacklist/sa-blacklist.current.at-d
o mains
 http://www.sa-blacklist.stearns.org/sa-blacklist/sa-blacklist.current.at-do
m ains

 http://www.kendryl.net/badmailfrom



 When I restart Qmail and I make a telnet connection on my server, I receive
 the following error :



 421 unable to read controls (#4.3.0)



 Any idea ?

check the permissions on badmailfrom




 Thanks in advance,



 Fred Heynen

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] clamav-0.88.1

2006-04-07 Thread Bob Hutchinson
On Friday 07 Apr 2006 11:30, Nikki Locke wrote:
 I guess it's about time I contributed something :-)

 The problem with the patch seems to be that they have renamed the FILE
 handle for the log file from logg_fd to logg_fs. I have patched the
 patch, and it seems to work.

 Mailing this patch in plain text may wrap some of the lines (line 7 almost
 certainly), so I have included it as an attachment as well - I hope
 attachments get through the mailing list OK?

Got the attachment and it works fine, all compiled and installed without error 
on my dev box, now to install it on some production boxes.

Thanks!


 Nikki

  clamav-0.88.1-stderr.patch 
 diff -urN ../clamav-0.81-orig/clamd/clamd.c ./clamd/clamd.c
 --- ../clamav-0.81-orig/clamd/clamd.c   Tue Jan 18 17:42:35 2005
 +++ ./clamd/clamd.c Tue Feb  1 16:23:45 2005
 @@ -137,8 +137,13 @@
  if((cpt = cfgopt(copt, LogFile))) {
 logg_file = cpt-strarg;
 if(strlen(logg_file)  2 || (logg_file[0] != '/'  logg_file[0] !=
 '\\'  logg_file[1] != ':')) {
 +   if (strcmp(logg_file,stderr)!=0) {
 fprintf(stderr, ERROR: LogFile requires full path.\n);
 exit(1);
 +   }
 +   else {
 +   use_stderr=1;
 +   }
 }
 time(currtime);
 if(logg(+++ Started at %s, ctime(currtime))) {
 diff -urN ../clamav-0.81-orig/shared/output.c ./shared/output.c
 --- ../clamav-0.81-orig/shared/output.c Wed Jan 26 03:06:20 2005
 +++ ./shared/output.c   Tue Feb  1 16:23:45 2005
 @@ -115,7 +115,9 @@
  #ifdef CL_THREAD_SAFE
 pthread_mutex_lock(logg_mutex);
  #endif
 -   if(!logg_fs) {
 +   if(use_stderr) {
 +   logg_fs = stderr;
 +   } else if(!logg_fs) {
 old_umask = umask(0037);
 if((logg_fs = fopen(logg_file, a)) == NULL) {
 umask(old_umask);
 @@ -150,7 +152,7 @@
 free(timestr);
 }

 -   if(logg_size) {
 +   if(logg_size  !use_stderr) {
 if(stat(logg_file, sb) != -1) {
 if(sb.st_size  logg_size) {
 logg_file = NULL;
 diff -urN ../clamav-0.81-orig/shared/output.h ./shared/output.h
 --- ../clamav-0.81-orig/shared/output.h Mon May 10 19:14:14 2004
 +++ ./shared/output.h   Tue Feb  1 16:23:45 2005
 @@ -28,6 +28,7 @@

  int mdprintf(int desc, const char *str, ...);

 +int use_stderr;
  int logg(const char *str, ...);
  void logg_close(void);
  extern short int logg_verbose, logg_lock, logg_time;

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] LogWatch and MultiLog

2006-04-06 Thread Bob Hutchinson
On Thursday 06 Apr 2006 13:00, Nikki Locke wrote:
 Bob Hutchinson wrote:
  On Wednesday 05 Apr 2006 19:55, Nikki Locke wrote:
   People with CentOS and RedHat get LogWatch installed by default.
   Unfortunately, out of the box LogWatch does not grok MultiLog files at
   all.
 
  More recent versions of Logwatch do support qmail running with Multilog.
  Look for qmail-pop3d, qmail-pop3ds, qmail-send and qmail-smtpd in the
  scripts/services directory.

 Thanks again, Bob.

 I've installed the latest logwatch, and that works much better. Pity CentOS
 hasn't already got it.

Some things, Logwatch and Clamav in particular, I always install myself from 
source and keep up to the latest stable version. I'm using Debian myself and 
for most things the apt update system works fine.


 I must be rubbish at searching Google - putting in logwatch multilog
 didn't find anything useful in the first 5 pages yesterday.

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] Sorting spam mail into a separate folder

2006-04-06 Thread Bob Hutchinson
On Thursday 06 Apr 2006 16:30, Nikki Locke wrote:
 Thanks, Bob.

 I'm still ever so slightly confused, as I seem to have both
 /var/qmail/bin/maildirmake AND  /usr/lib/courier-imap/bin/maildirmake, and
 I'm not sure which one I'm supposed to use.

 It occurred to me to ask myself what version of courier-imap I had, so my
 fingers (which sometimes have a better memory than my brain) typed ident
 /usr/lib/courier-imap/bin/maildirmake - turns out I don't have ident.
 Wonder what package it comes with? Of course, yum provides ident provides
 thousands of hits :-( So I went to the source (Luke :-), and I've got 4.0.6
 (that's what the toaster says to install, so that's what I've got).

I think you need to use the courier-imap one, if the .SPAM folder is to be 
visible in squirrelmail. That's what happened when I installed 4.x, (for a 
customer) which has a whole acl (access control) system. Without it the 
folder just was not there.

so:

MAILDIRMAKE=/usr/lib/courier-imap/bin/maildirmake
MAILDIRACL=/usr/lib/courier-imap/bin/maildiracl

use this where the simpler one is in the filter. It only gets used if there is 
no .SPAM directory, eg on the first time a spamassassin-detected email passes 
through the filter, one that has 'X-Spam-Flag: YES' in the headers.

`$MAILDIRMAKE -f SPAM $VUSERDIR/Maildir;$MAILDIRACL -set \
$VUSERDIR/Maildir INBOX.SPAM owner aceilrstwx;chown -R vpopmail.vchkpw \
$VUSERDIR/Maildir/.SPAM`

(note the backticks)

I worked this out by creating a folder in squirrelmail and then looking to see 
what it did ;-)

As I recall there was a man page for maildiracl.
I don't have access to that box anymore, and my own box is running an older 
version of courier-imap which works OK so I haven't changed it.


 Nikki

 [I've top posted this because in this rare instance it seemed to be clearer
 - hope you don't mind.]

 Bob Hutchinson wrote:
  maildrop is picky about it's filter files and not very helpful about
  spotting errors ;-(
 
  here is a filter to kick-start you (watch out for wrapping):
  import EXT
  import HOST
 
  VPOPBIN=/home/vpopmail/bin
  QMAILDIRMAKE=/var/qmail/bin/maildirmake
 
  VUSERDIR=`$VPOPBIN/vuserinfo -d [EMAIL PROTECTED]
  VMAILDIR=$VUSERDIR/Maildir
  SPAMDIR=$VUSERDIR/Maildir/.SPAM
 
  if (/^X-Spam-Flag: *YES/)
  {
 `test -d $SPAMDIR`
 if( $RETURNCODE == 1 )
 {
 `$QMAILDIRMAKE $SPAMDIR;chown -R vpopmail.vchkpw $SPAMDIR`
 }
 to $SPAMDIR/
  }
  else
  {
 to $VMAILDIR/
  }
 
  #
  # use this for courier-imap v4.xx
  # MAILDIRMAKE=/usr/lib/courier-imap/bin/maildirmake
  # MAILDIRACL=/usr/lib/courier-imap/bin/maildiracl
  # `$MAILDIRMAKE -f SPAM $VUSERDIR/Maildir;$MAILDIRACL -set
  $VUSERDIR/Maildir INBOX.SPAM owner aceilrstwx;chown -R vpopmail.vchkpw
  $VUSERDIR/Maildir/.SPAM` #
 
  then put something like this in your .qmail-user file
 
  |/usr/local/bin/maildrop 
  | /home/vpopmail/domains/mydomain.com/spam-mailfilter

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] QmailMRTG and IMAP graphs

2006-04-05 Thread Bob Hutchinson
On Wednesday 05 Apr 2006 14:26, Juan Jose Miquel wrote:
 Hello,

 Is there any way to get imap, imap-ssl graphics using QmailMRTG???

 The only info i get is in maillog file.

You would have to write your own mrtg filter

have a look at
http://people.ee.ethz.ch/~oetiker/webtools/mrtg/
there is a contrib directory on the download page, you might find some 
inspiration there.


HTH
-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] LogWatch and MultiLog

2006-04-05 Thread Bob Hutchinson
On Wednesday 05 Apr 2006 19:55, Nikki Locke wrote:
 People with CentOS and RedHat get LogWatch installed by default.
 Unfortunately, out of the box LogWatch does not grok MultiLog files at all.

 I've searched as thoroughly as I can, but I haven't found a solution to
 this yet.

 So, although I'm not a Perl programmer, I'm fiddling with the LogWatch
 scripts at the moment, trying to get it to work.

 If I do, I'll be able to feed all the MultiLog logs into LogWatch.

 Does anyone else here have LogWatch, and, if so, what have you done about
 this?

More recent versions of Logwatch do support qmail running with Multilog.
Look for qmail-pop3d, qmail-pop3ds, qmail-send and qmail-smtpd in the 
scripts/services directory.



 Would anyone be interested in seeing the result if/when I get it working?

 Is there likely to be anything interesting in the pop3ds, pop3d and smtpd
 files? If so, are there separate LogWatch scripts for them, or do they all
 come under qmail as far as LogWatch is concerned?

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] Sorting spam mail into a separate folder

2006-04-05 Thread Bob Hutchinson
On Wednesday 05 Apr 2006 19:55, Nikki Locke wrote:
 I would like to sort my spam tagged email into a separate spam folder
 automatically. I've seen lots of different ways to do that, or varying
 complexity, on the 'Net.

 Is there an easy way, that works well with the Toaster?

yeah, maildrop
search the archive for this list for details, roundabout mid-february


-- 
-
Bob Hutchinson
Midwales dot com
-


[toaster] clamav-0.88.1

2006-04-05 Thread Bob Hutchinson
clamav-0.88.1 came out today.

One of the toaster patches failed: (0.87)

patching file ./clamd/clamd.c
Hunk #1 succeeded at 138 (offset 1 line).
patching file ./shared/output.c
Hunk #1 FAILED at 115.
Hunk #2 succeeded at 158 (offset 6 lines).
1 out of 2 hunks FAILED -- saving rejects to file ./shared/output.c.rej
patching file ./shared/output.h
patching file etc/clamd.conf
Hunk #1 succeeded at 5 with fuzz 1.
patching file etc/freshclam.conf


-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] Submitting spam to Bayesian filter from SquirrelMail

2006-04-05 Thread Bob Hutchinson
On Wednesday 05 Apr 2006 19:55, Nikki Locke wrote:
 Bob Hutchinson wrote:
  The squirrelmail spam-button plugin works for me.

 ..

  This will allow your customers to train spamassassin.
 
  Wether they will or not is another matter ;-(

 Pity the plugin doesn't delete the spam mail automatically.

I bet there is a way, but I don't understand the squirrelmail API enough to 
identify the mail and delete it.


 There is at least one user (me) who will be using it religously!

Personally I'm sticking to TMDA, despite the collateral mail.

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] Submitting spam to Bayesian filter from SquirrelMail

2006-04-04 Thread Bob Hutchinson
On Tuesday 04 Apr 2006 19:16, Nikki Locke wrote:
 Ken Schweigert wrote:
  On 4/4/06, Nikki Locke [EMAIL PROTECTED] wrote:
   I would like to use the Bayesian spam filter. To that end, I need all
   the users here to be able to mark mail as spam, so it can be sent
   through sa- learn. Ideally I think I need to be able to submit non-spam
   mail too.
 
  Squirrelmail has a lot of plugins that you can use.  Though I haven't
  used any of these, here is where the spam related plugins are:
 
  http://www.squirrelmail.org/plugins_category.php?category_id=3
 
  Spam Buttons sounds promising.

The squirrelmail spam-button plugin works for me.
Create two email accounts on the same box as squirrelmail or where you have 
spamassassin running

Here are the salient settings for spam-button's config.php:

$is_spam_resend_destination = '[EMAIL PROTECTED]';
$is_not_spam_resend_destination = '[EMAIL PROTECTED]';

$spam_report_email_method = 'bounce';

$is_spam_note_success = _(Successfully queued for spam report);
$is_not_spam_note_success = _(Successfully queued for ham report);

set up a cron to run sa-learn, something like

sa-learn --spam $spamdir
sa-learn --ham $hamdir

where $spamdir is /home/vpopmail/domains/adomain.com/learn-spam/Maildir/new 
for the above learn-spam account
do the same for ham
move the mail to cur or delete afterwards

see man sa-learn for details

This will allow your customers to train spamassassin.

Wether they will or not is another matter ;-(

good luck.


 Thanks for that - I'm playing with it now. I notice that SquirrelMail 1.4
 is now up to version 1.4.6, which contains some important-looking security
 fixes. Hmm, I wonder if it is safe to install it over what I have from the
 toaster?

 Nikki

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] Rejecting invalid mail addresses at the RCPT TO stage

2006-04-03 Thread Bob Hutchinson
On Monday 03 Apr 2006 18:52, Nikki Locke wrote:
 Is there an easy way of getting qmail's SMTP server to reject invalid

 addresses at the RCPT TO stage?

That's what the chkuser patch does. (At least that's what I think you mean)
have a look at chkuser_settings.h in the patched source tree, there are a 
number of settings that may affect how it works for you.



 It would save a lot of disk space and processing power when I'm hit with
 thousands of spams a day.

chkuser does this very nicely ;-)

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] whitelisting an email address

2006-03-30 Thread Bob Hutchinson
On Thursday 30 Mar 2006 18:14, Shane Chrisp wrote:
 On Thu, 2006-03-30 at 09:00 -0800, Noel Sanchez wrote:
  How do I whitelist an email address or a domain? I have spamassassin
  installed per the toaster and have set the spam level to 5. A certain
  domain for some reason is being marked as 8, but I need to allow them
  access to send us email. I have searched archives and spamassassin but
  only read about editing user_prefs. I don’t have user_prefs for each
  user.

 If your only using spamassassin, then you can use the line in local.cf

 whitelist_from [EMAIL PROTECTED]

 then restart spamassassin.

 Or if your using simscan, you can do it in /var/qmail/control/simcontrol

 [EMAIL PROTECTED]:clam=yes,spam=no

umm, this would disable spamassassin for all mail *to* [EMAIL PROTECTED], not 
*from*

The whitelist_from [EMAIL PROTECTED] directive would work though


 then issue a /var/qmail/bin/simscanmk


 cheers
 Shane

  @4000442c0e3c2ad87ba4 [32041] info: spamd: connection from mail
  [127.0.0.1] at port 41001
 
  @4000442c0e3c2fcf8a44 [32041] info: spamd: processing message
  [EMAIL PROTECTED] for clamav:89
 
  @4000442c0e3d113dfa84 [32041] info: spamd: identified spam
  (7.5/5.0) for clamav:89 in 0.6 seconds, 2047 bytes.
 
  @4000442c0e3d115128ac [32041] info: spamd: result: Y  7 -
  AWL,BAYES_00,HTML_MESSAGE,MSGID_DOLLARS,RATWARE_MS_HASH,RATWARE_OUTLOOK_N
 ONAME
  scantime=0.6,size=2047,user=clamav,uid=89,required_score=5.0,rhost=mail,r
 addr=127.0.0.1,rport=41001,mid=[EMAIL PROTECTED]
 ,bayes=0,autolearn=no

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] whitelisting an email address

2006-03-30 Thread Bob Hutchinson
On Thursday 30 Mar 2006 18:53, Noel Sanchez wrote:
 I did edited simcontrol and added:

 myriadsoft.com:clam=yes,spam=no
 myrdata.com:clam=yes,spam=no

are you hosting mail for these domains?



 and it let the email through, /var/log/spamd/current didn't log it.

 It looks like it worked because it let it through, should I have edited
 local.cf?

 Thanks




 -Original Message-
 From: Bob Hutchinson [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 30, 2006 9:33 AM
 To: toaster@shupp.org
 Subject: Re: [toaster] whitelisting an email address

 On Thursday 30 Mar 2006 18:14, Shane Chrisp wrote:
  On Thu, 2006-03-30 at 09:00 -0800, Noel Sanchez wrote:
   How do I whitelist an email address or a domain? I have spamassassin
   installed per the toaster and have set the spam level to 5. A

 certain

   domain for some reason is being marked as 8, but I need to allow

 them

   access to send us email. I have searched archives and spamassassin

 but

   only read about editing user_prefs. I don't have user_prefs for each
   user.
 
  If your only using spamassassin, then you can use the line in local.cf
 
  whitelist_from [EMAIL PROTECTED]
 
  then restart spamassassin.
 
  Or if your using simscan, you can do it in

 /var/qmail/control/simcontrol

  [EMAIL PROTECTED]:clam=yes,spam=no

 umm, this would disable spamassassin for all mail *to* [EMAIL PROTECTED],
 not
 *from*

 The whitelist_from [EMAIL PROTECTED] directive would work though

  then issue a /var/qmail/bin/simscanmk
 
 
  cheers
  Shane
 
   @4000442c0e3c2ad87ba4 [32041] info: spamd: connection from mail
   [127.0.0.1] at port 41001
  
   @4000442c0e3c2fcf8a44 [32041] info: spamd: processing message
   [EMAIL PROTECTED] for clamav:89
  
   @4000442c0e3d113dfa84 [32041] info: spamd: identified spam
   (7.5/5.0) for clamav:89 in 0.6 seconds, 2047 bytes.
  
   @4000442c0e3d115128ac [32041] info: spamd: result: Y  7 -

 AWL,BAYES_00,HTML_MESSAGE,MSGID_DOLLARS,RATWARE_MS_HASH,RATWARE_OUTLOOK_
 N

  ONAME

 scantime=0.6,size=2047,user=clamav,uid=89,required_score=5.0,rhost=mail,
 r

 addr=127.0.0.1,rport=41001,mid=[EMAIL PROTECTED]

 COM

  ,bayes=0,autolearn=no

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] whitelisting an email address

2006-03-30 Thread Bob Hutchinson
On Thursday 30 Mar 2006 20:07, Noel Sanchez wrote:
 No, I am not hosting their mail. The problem was that they, Myriadsoft
 from San Diego, tried to send us emails. My mail server rejected it. I
 edited simcontrol and ran /var/qmail/bin/simscanmk. They can now send
 mail to us. /var/log/spamd/current doesn't log it. All works well.

well I'll be darned, it doesn't make sense but if it works
Just had a look at the simscan README

First the sender address will be looked up and then the recipients.
Without any matches, no scans will be done.

so there you are, it does both!

Sorry Shane, my bad ;-(



 -Original Message-
 From: Bob Hutchinson [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 30, 2006 10:43 AM
 To: toaster@shupp.org
 Subject: Re: [toaster] whitelisting an email address

 On Thursday 30 Mar 2006 18:53, Noel Sanchez wrote:
  I did edited simcontrol and added:
 
  myriadsoft.com:clam=yes,spam=no
  myrdata.com:clam=yes,spam=no

 are you hosting mail for these domains?

  and it let the email through, /var/log/spamd/current didn't log it.
 
  It looks like it worked because it let it through, should I have

 edited

  local.cf?
 
  Thanks
 
 
 
 
  -Original Message-
  From: Bob Hutchinson [mailto:[EMAIL PROTECTED]
  Sent: Thursday, March 30, 2006 9:33 AM
  To: toaster@shupp.org
  Subject: Re: [toaster] whitelisting an email address
 
  On Thursday 30 Mar 2006 18:14, Shane Chrisp wrote:
   On Thu, 2006-03-30 at 09:00 -0800, Noel Sanchez wrote:
How do I whitelist an email address or a domain? I have

 spamassassin

installed per the toaster and have set the spam level to 5. A
 
  certain
 
domain for some reason is being marked as 8, but I need to allow
 
  them
 
access to send us email. I have searched archives and spamassassin
 
  but
 
only read about editing user_prefs. I don't have user_prefs for

 each

user.
  
   If your only using spamassassin, then you can use the line in

 local.cf

   whitelist_from [EMAIL PROTECTED]
  
   then restart spamassassin.
  
   Or if your using simscan, you can do it in
 
  /var/qmail/control/simcontrol
 
   [EMAIL PROTECTED]:clam=yes,spam=no
 
  umm, this would disable spamassassin for all mail *to*

 [EMAIL PROTECTED],

  not
  *from*
 
  The whitelist_from [EMAIL PROTECTED] directive would work though
 
   then issue a /var/qmail/bin/simscanmk
  
  
   cheers
   Shane
  
@4000442c0e3c2ad87ba4 [32041] info: spamd: connection from

 mail

[127.0.0.1] at port 41001
   
@4000442c0e3c2fcf8a44 [32041] info: spamd: processing message
[EMAIL PROTECTED] for clamav:89
   
@4000442c0e3d113dfa84 [32041] info: spamd: identified spam
(7.5/5.0) for clamav:89 in 0.6 seconds, 2047 bytes.
   
@4000442c0e3d115128ac [32041] info: spamd: result: Y  7 -

 AWL,BAYES_00,HTML_MESSAGE,MSGID_DOLLARS,RATWARE_MS_HASH,RATWARE_OUTLOOK_

  N
 
   ONAME

 scantime=0.6,size=2047,user=clamav,uid=89,required_score=5.0,rhost=mail,

  r
 
 
 addr=127.0.0.1,rport=41001,mid=[EMAIL PROTECTED]
 
  COM
 
   ,bayes=0,autolearn=no

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] attacked by spammer

2006-03-30 Thread Bob Hutchinson
://mail.yahoo.com

 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] Using maildrop with toaster quota support

2006-03-28 Thread Bob Hutchinson
On Tuesday 28 Mar 2006 13:00, David wrote:
 Bob Hutchinson wrote:
  On Thursday 23 Mar 2006 07:18, David wrote:
  Hi all,
 
  I would like to integrate maildrop at the .qmail file level, per-user.
 
  Something like a simple:
  |maildrop .mailfilter
 
  in the .qmail file (I read somewhere that I might need to |
  /usr/sbin/preline maildrop .mailfilter)
 
  I found a message in the list archives and have been referring to it at:
 
  http://www.mail-archive.com/toaster@shupp.org/msg03632.html
 
  Somebody (I think it was Bob Hutchinson) posted as part of an example in
  there:
 
  yeah, it was me ;-)
  I haven't figured out a way to get maildrop to check the quota on the fly
  either, ~vpopmail/bin/vuserinfo --help tells me that the -Q parameter
  returns a percentage, eg 45%, whereas -q just returns the quota set, not
  that helpful.
 
  So it should in principle be possible to write a script that tests the
  quota using -Q and returns something for maildrop to interpret and act
  upon. I'm not sure how exactly but this might get you started
 
  MAILDIRPERCENT=`~vpopmail/bin/vuserinfo -Q [EMAIL PROTECTED] | sed -e 
  's/%//'`
 
  $MAILDIRPERCENT should then contain 100 if the box is full
 
  Do let the list know if you crack it, I'm sure others will want to know
  too.
 
  MAILDIRQUOTA=`~vpopmail/bin/vuserinfo -q [EMAIL PROTECTED]
 
  in the maildrop filter file. Can anybody tell me if this works with the
  Shupp toaster? I have successfully integrated maildrop as my LDA in a
  Shupp toaster, but it seems blissfully unaware of users' quotas and
  quota warning/over-quota messages get lost, and when the account fills
  up, maildrop just spits errors and the mail stops with maildrop. I am
  looking for a way to make it quota-aware.
 
  Regards,
  David

 Thanks for the help Bob; I will mess about some more.

yeah, do, it might also be good to explore Adrian Pircalabu's suggestion of 
using deliverquota if you are using courier-imap.

I'd do it myself except I'm up to my ears at the moment...


 Regards,

 David

 PS Sorry for late reply - was away from my email for a few days.

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] Problem compiling courier-imap

2006-03-27 Thread Bob Hutchinson
On Monday 27 Mar 2006 03:27, Joao Manuel wrote:
 Hi,
 I'm installing the toaster but I got an error when  trying to compile
 courier-imap:

 ...
 [EMAIL PROTECTED] courier-imap-4.0.6]# chown -R vpopmail:vchkpw
 ../courier-imap-4.0.6
 [EMAIL PROTECTED] courier-imap-4.0.6]# su vpopmail
 [EMAIL PROTECTED] courier-imap-4.0.6]$ ./configure --with-redhat
 configure: error: sources are in ., but `cd .' does not work

 Any sugestions ? Thank you

I use

snip
# build as vpopmail
su -s /bin/bash -c './configure; make' vpopmail

make install-strip
make install-configure
snip

in my install script, running as root, works for me on Debian

HTH
-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] Problem compiling courier-imap

2006-03-27 Thread Bob Hutchinson
On Monday 27 Mar 2006 14:30, Joao Manuel wrote:
 Tks. In fact I've just found the problem: I was trying to compile it in
 root directory :-/

uhoh
use
/usr/local/src or /var/src
for all your compiles, then you know where they are, and hang on to them, you 
might well need to add a patch later, especially qmail ;-)



 - Original Message -
 From: Bob Hutchinson [EMAIL PROTECTED]
 To: toaster@shupp.org
 Sent: Monday, March 27, 2006 8:58 AM
 Subject: Re: [toaster] Problem compiling courier-imap

  On Monday 27 Mar 2006 03:27, Joao Manuel wrote:
  Hi,
  I'm installing the toaster but I got an error when  trying to compile
  courier-imap:
 
  ...
  [EMAIL PROTECTED] courier-imap-4.0.6]# chown -R vpopmail:vchkpw
  ../courier-imap-4.0.6
  [EMAIL PROTECTED] courier-imap-4.0.6]# su vpopmail
  [EMAIL PROTECTED] courier-imap-4.0.6]$ ./configure --with-redhat
  configure: error: sources are in ., but `cd .' does not work
 
  Any sugestions ? Thank you
 
  I use
 
  snip
  # build as vpopmail
  su -s /bin/bash -c './configure; make' vpopmail
 
  make install-strip
  make install-configure
  snip
 
  in my install script, running as root, works for me on Debian
 
  HTH
  --
  -
  Bob Hutchinson
  Midwales dot com
  -

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] Using maildrop with toaster quota support

2006-03-23 Thread Bob Hutchinson
On Thursday 23 Mar 2006 07:18, David wrote:
 Hi all,

 I would like to integrate maildrop at the .qmail file level, per-user.

 Something like a simple:
 |maildrop .mailfilter

 in the .qmail file (I read somewhere that I might need to |
 /usr/sbin/preline maildrop .mailfilter)

 I found a message in the list archives and have been referring to it at:

 http://www.mail-archive.com/toaster@shupp.org/msg03632.html

 Somebody (I think it was Bob Hutchinson) posted as part of an example in
 there:

yeah, it was me ;-)
I haven't figured out a way to get maildrop to check the quota on the fly 
either, ~vpopmail/bin/vuserinfo --help tells me that the -Q parameter returns 
a percentage, eg 45%, whereas -q just returns the quota set, not that 
helpful.

So it should in principle be possible to write a script that tests the quota 
using -Q and returns something for maildrop to interpret and act upon.
I'm not sure how exactly but this might get you started

MAILDIRPERCENT=`~vpopmail/bin/vuserinfo -Q [EMAIL PROTECTED] | sed -e 's/%//'`

$MAILDIRPERCENT should then contain 100 if the box is full

Do let the list know if you crack it, I'm sure others will want to know too.


 MAILDIRQUOTA=`~vpopmail/bin/vuserinfo -q [EMAIL PROTECTED]

 in the maildrop filter file. Can anybody tell me if this works with the
 Shupp toaster? I have successfully integrated maildrop as my LDA in a
 Shupp toaster, but it seems blissfully unaware of users' quotas and
 quota warning/over-quota messages get lost, and when the account fills
 up, maildrop just spits errors and the mail stops with maildrop. I am
 looking for a way to make it quota-aware.

 Regards,
 David

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] log files for each domain

2006-02-21 Thread Bob Hutchinson
On Tuesday 21 Feb 2006 09:59, Seferovic Edvin wrote:
 Hello Bill, Hello list members :D



 I've been using this toaster for quite a long time now. But now I have an
 extra wish :) Is it possible to have separate log files for each domain ?
 If so - where can I find any documentation about setting it up?

isoqlog will report per domain, per user etc
http://www.enderunix.org/isoqlog/




 Thank you in advance !



 Regards,



 Edvin

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] Message Quarantine

2006-02-21 Thread Bob Hutchinson
On Tuesday 21 Feb 2006 18:54, wtechgroup wrote:
 That works, but what is making the emails move on the default installation?
 When I had a default toaster installation, emails still moved to the
 postmaster account on their own and those emails were always spam.

.qmail-default was most likely pointed to postmaster


 Ryan

 On Tuesday 21 Feb 2006 12:51, wtechgroup wrote:
  Hello everyone,
 
 
 
  I've been using the toaster for about a year and a half now
  with absolutely no complaints. After that long on the net however, my
  server is finally starting to receive a fair amount of spam. According to
  everything I've read, spamassassin does not quarantine or delete
  messages. I've researched this for several days and I'm still puzzled why
  some

 emails

  that are spam get sent to the postmaster account on a domain and some
  just get tagged as spam and go through to the user. I have our spam rules

 locked

  in pretty tight and I've never had complains from my customers, but I'd
  like to have all tagged messages go to the respective postmaster accounts
  for each domain. Most of the messages that come through to the user that
  are tagged are above 10. What is grabbing certain spam messages and
  moving them to the postmaster accounts? How can I make all tagged
  messages go to the postmaster account?

 This is copied from an email on the vchkpw list:

 You would probably want to use maildrop to do this.  You could do it at
 a domain level or user level.

 In a user .qmail or the domain .qmail-default, you'd call maildrop

 |maildrop mailfilter

 Then you'd have a mailfilter file, in the same directory as the .qmail
 file, that looks similar to this:

 snip
 import EXT
 import HOST
 import HOME
 import FROM

 MAILDIRQUOTA=`~vpopmail/bin/vuserinfo -q [EMAIL PROTECTED]

 if ((/^X-Spam-Flag:.*YES/))
 {
`test -d ./Maildir/.SPAM`
if( $RETURNCODE == 1 )
{
`maildirmake ./Maildir/.SPAM;chown -R vpopmail.vchkpw
 ./Maildir/.SPAM`
}
to ./Maildir/.SPAM/
 }

 to ./Maildir/


 /snip

 I'm not totally sure about doing it in the .qmail-default.  I think you
 could and then if the mail isn't spam, just don't do anything with the
 message.  In that case, the call to vdelivermail should be called as
 normal and deliver the message.

 I prefer to filter per user and then have my users access their
 potential spam via webmail.  Seems to be working for me.  My users like
 not getting tons of junk that they have to download and delete anyway.
 I also have scripts that clean all tagged messages older than 7 days.
 That way if a user doesn't want to, they don't have to check their spam
 on the server and the server drives don't overflow with junk.  :)

  Thanks,
 
  Ryan

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] Message Quarantine

2006-02-21 Thread Bob Hutchinson
On Tuesday 21 Feb 2006 19:24, wtechgroup wrote:
 My .qmail-default file says:
 | /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox

 I thought that mailfilter works but I actually didn't get any emails for a
 little bit there. I disabled it and started receiving email again.

the mailfilter I posted earlier was designed to be instigated from a .qmail 
file inside the users dir, to make it work in .qmail-default you would have 
to put the full path to Maildir/


 Ryan

 -Original Message-
 From: Bob Hutchinson [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 21, 2006 2:05 PM
 To: toaster@shupp.org
 Subject: Re: [toaster] Message Quarantine

 On Tuesday 21 Feb 2006 18:54, wtechgroup wrote:
  That works, but what is making the emails move on the default

 installation?

  When I had a default toaster installation, emails still moved to the
  postmaster account on their own and those emails were always spam.

 .qmail-default was most likely pointed to postmaster

  Ryan
 
  On Tuesday 21 Feb 2006 12:51, wtechgroup wrote:
   Hello everyone,
  
  
  
   I've been using the toaster for about a year and a half now
   with absolutely no complaints. After that long on the net however, my
   server is finally starting to receive a fair amount of spam. According

 to

   everything I've read, spamassassin does not quarantine or delete
   messages. I've researched this for several days and I'm still puzzled

 why

   some
 
  emails
 
   that are spam get sent to the postmaster account on a domain and some
   just get tagged as spam and go through to the user. I have our spam

 rules

  locked
 
   in pretty tight and I've never had complains from my customers, but I'd
   like to have all tagged messages go to the respective postmaster

 accounts

   for each domain. Most of the messages that come through to the user
   that are tagged are above 10. What is grabbing certain spam messages
   and moving them to the postmaster accounts? How can I make all tagged
   messages go to the postmaster account?
 
  This is copied from an email on the vchkpw list:
 
  You would probably want to use maildrop to do this.  You could do it at
  a domain level or user level.
 
  In a user .qmail or the domain .qmail-default, you'd call maildrop
 
  |maildrop mailfilter
 
  Then you'd have a mailfilter file, in the same directory as the .qmail
  file, that looks similar to this:
 
  snip
  import EXT
  import HOST
  import HOME
  import FROM
 
  MAILDIRQUOTA=`~vpopmail/bin/vuserinfo -q [EMAIL PROTECTED]
 
  if ((/^X-Spam-Flag:.*YES/))
  {
 `test -d ./Maildir/.SPAM`
 if( $RETURNCODE == 1 )
 {
 `maildirmake ./Maildir/.SPAM;chown -R vpopmail.vchkpw
  ./Maildir/.SPAM`
 }
 to ./Maildir/.SPAM/
  }
 
  to ./Maildir/
 
 
  /snip
 
  I'm not totally sure about doing it in the .qmail-default.  I think you
  could and then if the mail isn't spam, just don't do anything with the
  message.  In that case, the call to vdelivermail should be called as
  normal and deliver the message.
 
  I prefer to filter per user and then have my users access their
  potential spam via webmail.  Seems to be working for me.  My users like
  not getting tons of junk that they have to download and delete anyway.
  I also have scripts that clean all tagged messages older than 7 days.
  That way if a user doesn't want to, they don't have to check their spam
  on the server and the server drives don't overflow with junk.  :)
 
   Thanks,
  
   Ryan

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] spamassassin

2006-02-16 Thread Bob Hutchinson
On Thursday 16 Feb 2006 19:52, Noel Sanchez wrote:
 Hello All. I have used the toaster without the options installed for
 quite some time, very happy with it. Now, my users have been getting
 many spam emails. So, I installed ALL options per the toaster. Very
 easy to do, thanks to Bill. Question, now that I have installed it, what
 now? I sent a spam email from outside into my mail server. Spamassassin
 recognizes it and puts it on my squirrelmails inbox and marks it as
 spam. That's great, but I isn't the point of simscan is to drop it
 automatically? I'd like to NOT receive ANY spam in my inbox. Maybe sent
 to a spam folder or drop it altogether. And if it doesn't put it in my
 inbox, where will it go? What if it marks an important email as spam
 when in fact it isn't? I'm only trying to understand how this works. I'd
 like for the spam to NOT show up in my squirrelmail inbox at all if
 possible and maybe be sent automatically to a spam folder that I create
 inside of squirrelmail or in outlook for my outlook users. Did I not
 config properly?

 Thanks

install maildrop

put something like this in .qmail file for the user

|/usr/local/bin/maildrop  /home/vpopmail/domains/domain.name/mailfilter-spam

here is a mailfilter. it is generic, so it works for any user
ps. maildrop is picky, so no empty lines/comments in the if statement ;-)

import EXT
import HOST

VPOPBIN=/home/vpopmail/bin
QMAILDIRMAKE=/var/qmail/bin/maildirmake

MAILDIRQUOTA=`$VPOPBIN/vuserinfo -q [EMAIL PROTECTED]
VUSERDIR=`$VPOPBIN/vuserinfo -d [EMAIL PROTECTED]
VMAILDIR=$VUSERDIR/Maildir
SPAMDIR=$VUSERDIR/Maildir/.SPAM

if (/^X-Spam-Flag: *YES/)
{
`test -d $SPAMDIR`
if( $RETURNCODE == 1 )
{
`$QMAILDIRMAKE $SPAMDIR;chown -R vpopmail.vchkpw $SPAMDIR`
}
to $SPAMDIR/
}
else
{
to $VMAILDIR/
}

you might need to use courier-imap's maildirmake (if that is what you're 
using). I found that I had to use it where version 4.xx is installed, to 
create some ACL support files.

HTH
-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] Clamav upgrade

2006-02-05 Thread Bob Hutchinson
On Saturday 04 Feb 2006 16:42, Tom Collins wrote:
 On Feb 3, 2006, at 10:58 PM, Bill Rowe wrote:
  **Unmatched Entries**
 Received signal: wake up: 478 Time(s)
 WARNING: Current functionality level = 6, recommended = 7: 142
  Time(s)
 WARNING: Your ClamAV installation is OUTDATED!: 420 Time(s)
 DON'T PANIC! Read http://www.clamav.net/faq.html: 420 Time(s)
 Giving up on database.clamav.net...: 4 Time(s)
 WARNING: Invalid DNS reply. Falling back to HTTP mode.: 12 Time(s)
 freshclam daemon 0.87.1 (OS: linux-gnu, ARCH: i386, CPU: i686): 8
  Time(s)
 WARNING: Local version: 0.87.1 Recommended version: 0.88: 278
  Time(s)
 freshclam daemon 0.88 (OS: linux-gnu, ARCH: i386, CPU: i686): 3
  Time(s)
 Trying again in 5 secs...: 8 Time(s)

 The problem is that you aren't rotating your logs, even with the
 freshclam script I provided.  The counts on the messages are a pretty
 good indication of that.

 I've only run servers with RedHat, so I assume that's what you're
 running (I don't know if logrotate is standard on other distributions).
   If you're not RedHat, then you might have to make some changes to the
 config.

 Check your /var/log/messages for possible errors reported by logrotate.
   Make sure your freshclam is logging to /var/log/freshclam.log.  Make
 sure logrotate is running before logwatch.

If logrotate is run *before* logwatch. the logs that logwatch would parse will 
have been rotated away, unless 'delaycompress' is used in logrotate.d, in 
which case logwatch will have to be configured to look for logs like 
messages.0 or freshclam.log.1
Logwatch looks for datestamps, midnight to midnight, so logrotate can 
interfere with the accuracy of logwatch reports. Ensuring that Archive=yes is 
set in logwatch.conf helps overcome this, but can cause logwatch to slow down 
on big busy servers.

my 2c's worth ;-)

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] Clamav upgrade

2006-02-04 Thread Bob Hutchinson
On Saturday 04 Feb 2006 06:58, Bill Rowe wrote:
 On Thu, 2 Feb 2006 11:53:42 -0700, Bill Rowe wrote:
  On Thu, 02 Feb 2006 08:52:44 -0800, Bill Shupp wrote:
  Tom Collins wrote:
  On Feb 1, 2006, at 8:27 PM, Bill Rowe wrote:
  Did a Toaster install about 6 weeks ago and included Clamav
  V0.87.
  Upgraded to V0.88  just recently. Everything seems ok BUT the
  update
  email I get each day claims that I'm running a mixture of
  V0.87
  
  V0.88. I've  checked everywhere that I can think of but
  solution
  eludes me.
 
  Make sure you're rotating your logs.  I had the same problem
  until I
  added a file to logrotate.d:
 
  # more /etc/logrotate.d/freshclam
  /var/log/freshclam.log {
  daily
  notifempty
  missingok
  postrotate
  /usr/bin/killall -HUP freshclam 2 /dev/null || true
  endscript
  }
 
  I think Bill's added this to his recent toaster installs, but it
  wasn't
  there in earlier releases.
 
  No, it's still missing.  I'll make sure it gets in the new one.
 
  Regards,
 
  Bill
 
  Did a restart on the computer just to make sure but same message
  this
  am.
  Just changed the rotate setup. Will comment tomorrow.
  Thanks.
  Bill Rowe
  Netcan Inc.
  [EMAIL PROTECTED]
  11:51:46 AM on 2/2/2006

 Hate to say it but neither Bill's solution or yours worked for me.
 Here is a snip of the logwatch message I'm getting...

 - clam-update Begin 

daily.cvd updated

 **Unmatched Entries**
Received signal: wake up: 478 Time(s)
WARNING: Current functionality level = 6, recommended = 7: 142
 Time(s)
WARNING: Your ClamAV installation is OUTDATED!: 420 Time(s)
DON'T PANIC! Read http://www.clamav.net/faq.html: 420 Time(s)
Giving up on database.clamav.net...: 4 Time(s)
WARNING: Invalid DNS reply. Falling back to HTTP mode.: 12 Time(s)
freshclam daemon 0.87.1 (OS: linux-gnu, ARCH: i386, CPU: i686): 8
 Time(s)
WARNING: Local version: 0.87.1 Recommended version: 0.88: 278
 Time(s)
freshclam daemon 0.88 (OS: linux-gnu, ARCH: i386, CPU: i686): 3
 Time(s)
Trying again in 5 secs...: 8 Time(s)

  -- clam-update End -

 If I do a clamd -V or a freshclam -V it comes back with V0.88, so
 why/where is it getting confused?

 When I did the upgrade to V0.88 I went to the 0.87 source folder and
 did a make clean and then went through the 0.88 install. Is this the
 right way to do the upgrade, and if so is there anything else to do?
 I did run a simscanmk -g and email headers are OK.

I found it necessary to really kill freshclam, -HUP was not enough
killall -TERM freshclam
sleep 5
/usr/local/bin/freshclam -d

Alternately run freshclam as a cron

Also look in /usr/local/lib and check that symlink libclamav.so really points 
to the most recent library, if not clear them out and re-install


HTH
-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] Problem with roaming

2006-01-31 Thread Bob Hutchinson
On Tuesday 31 Jan 2006 11:48, [EMAIL PROTECTED] wrote:
 Hello,

 I've upgraded my old qmail+vpopmail 5.2.2 installation with qmail toaster
 0.8.1 and vpopmail 5.4.13.

 All work fine but I'm not able to use roaming-users.

 Vpopmail is compiled with:

 ./configure --enable-logging=y --enable-roaming-users

 and qmail start with:

 #!/bin/sh
 QMAILDUID=`id -u vpopmail`
 NOFILESGID=`id -g vpopmail`
 MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
 export CHKUSER_RCPTLIMIT=100
 exec /usr/local/bin/softlimit -m 800 /usr/local/bin/tcpserver -v -R -l
 0 -x /home/vpopmail/etc/tcp.smtp.cdb -c $MAXSMTPD -u $QMAILDUID -g
 $NOFILESGID 0 smtp /usr/local/bin/fixcrio /var/qmail/bin/qmail-smtpd
 /home/vpopmail/bin/vchkpw /bin/true 21


 Mi trouble is that the file open-smtp is not updated, so pop3 before smtp
 authentication does not work.

 I can not figure why this problem. May be a permission related problem?
 This is mi /home/vpopmail/etc contents:

 ls -asl
 total 36
4 drwxr-xr-x2 vpopmail vchkpw   4096 Jan 31 10:10 .
4 drwxr-xr-x8 vpopmail vchkpw   4096 Oct 14  2002 ..
4 -rw-r--r--1 vpopmail vchkpw 25 Jan 31 10:03 inc_deps
4 -rw-r--r--1 vpopmail vchkpw 42 Jan 31 10:03 lib_deps
8 -rwxrwxrwx1 vpopmail vchkpw   6393 Jan 28 19:16 open-smtp
0 -rw-r--r--1 vpopmail vchkpw  0 Jan 28 19:16 open-smtp.lock
4 -rw-r--r--1 vpopmail vchkpw 30 Oct 14  2002 tcp.smtp
4 -rw-r--r--1 root root 2094 Jan 31 10:04 tcp.smtp.cdb
4 -rw-r--r--1 vpopmail vchkpw   1106 Jan 28 19:55
 vlimits.default

 Any suggestion? Thanks in advance.

are you running clearopensmtp on a cron?
eg
9-59/10 * * * * /home/vpopmail/bin/clearopensmtp


-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] simscan problem

2006-01-23 Thread Bob Hutchinson
On Monday 23 Jan 2006 10:17, aim mix wrote:
 but if i sent email from [EMAIL PROTECTED] to [EMAIL PROTECTED] the simscan
 is not there.
 (only if same domain or from vpopmail virtual domain)  using webmail or
 pop3. From outside email server(domain), it's ok.

make sure that Squirrelmail is using SMTP, not Sendmail, and make sure that 
SMTP is running on localhost

pop3 has nothing to do with it, that is outgoing



 normally if from outside domain simscan is there like this..

 Received: by simscan 1.1.0 ppid: 1305, pid: 1306, t: 37.7764s
 scanners: attach: 1.1.0 clamav: 0.87.1/m:35/d:1246 spam: 3.0.4

   *Return-Path:* [EMAIL PROTECTED]
 *Delivered-To:* [EMAIL PROTECTED]
 *Received:* (qmail 16506 invoked by uid 89); 23 Jan 2006 18:05:29 +0400
 *Received:* from unknown (HELO mail.domain.com) (x.x.x.x)
  by 0 with SMTP; 23 Jan 2006 18:05:29 +0400
 *Received:* from x.x.x.
  (SM authenticated user [EMAIL PROTECTED])
  by mail.domain.com with HTTP;
  Mon, 23 Jan 2006 18:05:29 +0400 (MYT)
 *Message-ID:* [EMAIL PROTECTED]
 *Date:* Mon, 23 Jan 2006 18:05:29 +0400 (MYT)
 *Subject:* Test SimScan
 *From:* [EMAIL PROTECTED]
 *To:* [EMAIL PROTECTED]
 *User-Agent:* SM/1.4.5
 *MIME-Version:* 1.0
 *Content-Type:* text/plain;charset=iso-8859-1
 *Content-Transfer-Encoding:* 8bit
 *X-Priority:* 3 (Normal)
 *Importance:* Normal

 Thanks.

 Regards,

 Aimmix

 On 1/21/06, Bob Hutchinson [EMAIL PROTECTED] wrote:
  On Friday 20 Jan 2006 02:52, aim mix wrote:
   greetings,
  
   i've enable simscan per domain setting. right now, simscan will bypass
   local domain from vpopmail. i've 2 domains here. how to avoid simscan
 
  from
 
   bypass local domain, if i send email from [EMAIL PROTECTED] to
   [EMAIL PROTECTED](same domain).
 
  if you are sure this is what you really want to do,
  set your tcp.smtp to use simscan for local mail
 
  127.:allow,QMAILQUEUE=/var/qmail/bin/simscan
 
 
  HTH
  --
  -
  Bob Hutchinson
  Midwales dot com
  -

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] simscan problem

2006-01-20 Thread Bob Hutchinson
On Friday 20 Jan 2006 02:52, aim mix wrote:
 greetings,

 i've enable simscan per domain setting. right now, simscan will bypass
 local domain from vpopmail. i've 2 domains here. how to avoid simscan from
 bypass local domain, if i send email from [EMAIL PROTECTED] to
 [EMAIL PROTECTED](same domain).

if you are sure this is what you really want to do,
set your tcp.smtp to use simscan for local mail

127.:allow,QMAILQUEUE=/var/qmail/bin/simscan


HTH
-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] tls.c problem

2005-12-19 Thread Bob Hutchinson
On Friday 16 Dec 2005 23:56, Bill Shupp wrote:
 Yalcin Cekic wrote:
  Hi All,
 
  I want to install a qmail mail box using shupp toaster.
  During the compile qmail I have received the error given below
  ***
  ./compile tls.c
  tls.c:12: error: conflicting types for 'strerror'
  /usr/include/string.h:256: error: previous declaration of 'strerror' was
  here
  make: *** [tls.o] Error 1
  ***
 
  I dont know what the problem, I searched shupp archive for this error but
  I could not find any answer to solve my problem.
  I am using debian sarge with testing apt source
  Any help is welcome,

 It is in the archives:

 http://www.mail-archive.com/toaster@shupp.org/msg03083.html

 Regards,

 Bill

I ran across this problem last night after adding a patch to vpopmail (running 
Debian testing), and because it's a busy little server and I wanted it up and 
running quickly I tried to resolve it by commenting out line 12 in tls.c on 
the grounds that it is already declared in strings.h.
qmail compiled fine after that, and tls appears to be working, but I'm not at 
all sure I did the right thing 8-|


-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] Deleting all mail

2005-12-09 Thread Bob Hutchinson
On Friday 09 Dec 2005 13:30, Nikki Locke wrote:
 One of the domains on my server only exists to route mail sent to a
 particular old email address on to its new owner. All other mail addressed
 to that domain is junk (even postmaster mail). No mail is ever sent from
 that domain.

 I therefore went in to the qmailadmin web page, opened the postmaster
 account, chose it in the modify user list, and selected the All mail
 deleted radio button.

 However, mail still appears in the squirrelmail mailbox!

 What do I do to ensure the mail is quietly accepted and then completely
 ignored, not taking up any disk space?

Have a look at the .qmail-default for that domain and see what it did, some 
(older) versions of qmailadmin didn't do it right IIRC

I use an alias 'drop'
echo '#'  .qmail-drop
Then point any accounts that collect unwanted mail to 'drop'


HTH
-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] Backups

2005-12-08 Thread Bob Hutchinson
On Thursday 08 Dec 2005 18:15, Nikki Locke wrote:
  wrote:
   I am currently backing up /var/qmail/users, /var/qmail/control,
   /var/qmail/alias and /home/vpopmail/domains, but excluding the Maildir
 
  /var/qmail
 
   directories. Anything else I should add? Anything I can remove (backup
   space costs money :-)?
 
  You can't be serious...

 Why not? The server and a limited amount of space on a backup server comes
 at a fixed price. Additional backup space is extra.

 Looking at the directories, /home/vpopmail wastes most of its space in the
 Trash folders, which I see no point in backing up.

If you don't want to backup actual mail, skip any folder called new/ cur/ or 
tmp/ under /home/vpopmail/domains/*. Skipping Maildir/ will also skip the 
imap or sqwebmail stuff, probably not what you want. This is pretty easy if 
you use rsync which will also minimise bandwidth and preserve permissions

HTH
-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] QMAIL TOASTER MIGRATE ...

2005-12-08 Thread Bob Hutchinson
On Thursday 08 Dec 2005 16:22, Krzysztof Gorski wrote:
 Hello friends .



 I have small question about migrating qmail toaster to another server.

 I'd like to backup my current configuration including user's mailbox and
 restore them on new server.



 I don't know how to do it.

 After first migrating process, many users get once more time all of their
 messages.

 It's a big problem for me, because some users have about 10 000 messages
 and my company has about 100 employees.

Make sure that the new server has the same uid/gid numbers for users qmaill, 
qmaild, qmailr, qmails, qmailq, qmailp, vpopmail and maybe clamav and groups 
nofiles, qmail, vchkpw and maybe clamav  as the old one, that will save you a 
lot of headscratching later. See /etc/passwd and /etc/group

If you are moving to a new ip as well, set your MX's dns TTL to a short 
timeout (eg 5 minutes) a day or so before you change the dns records so that 
it propagates faster. Just remember to set it back again after ;-)

You could also trawl through the archives for this list, the qmail list and 
the vchkpw list for more ideas.




 Please HELP .



 Thanks

 Chris Gorski

 



 Chris Gorski

 IT Manager

 Pentacomp Systemy Informatyczne

 ul. Lektykarska 29, 01-687 Warsaw, Poland

 tel. +48 22 639 32 32 - 35, fax +48 22 639 32 31

 www.pentacomp.com

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] spam/virus-check outsourcing ???

2005-11-14 Thread Bob Hutchinson
On Monday 14 Nov 2005 17:44, Sloath wrote:
snip

 The other thing to check is the /var/qmail/control/simcontrol file
 Make sure clam and spam are set to yes, otherwise they won't be invoked.

and don't forget to run
/var/qmail/bin/simscanmk


HTH
-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] Issues with qmailmrtg7 statistics

2005-09-22 Thread Bob Hutchinson
On Thursday 22 Sep 2005 14:00, Jason S wrote:
 On 9/21/05, Bob Hutchinson [EMAIL PROTECTED] wrote:
  On Wednesday 21 Sep 2005 18:29, Sloath wrote:
   Hi all,
  
   I have a system set-up according to the guide, with qmail logging using
   multilog to /var/log/qmail and using qmailmrtg7 for creating graphs.
  
   I've been investigating a few peaks in my messages/hour graph..
  
   Looking at the qmailmrtg7 code for counting messages... if increments a
   counter for every line that has a success, failure or deferral.
   Then at the end it returns two numbers, each multiplied by 12...
   (success*12, (failure+success)*12).
   It took me a few minutes to figure this out; it only counts messages
   from the last 300 seconds (5 minutes), and as we graph messages per
   hour it multiplies by 12 to get an hours worth... This turns 54
   messages in the last 5 minutes into a plot of 648 messages/hour.
 
  I found that out when I implemented a trigger on messages ;-)
 
   So when interpreting the 5 minute average graph, you have to look at
   any peak and divide by 12, to get the actual number of messages sent in
   the 5 minutes it represents
  
   Wouldn't it be of more use to graph messages/5 minutes or a running
   total of messages per hour based on the actual previous 12 5-minute
   totals?
  
   Has anyone patched qmailmrtg7.c to allow it to take into account
   CHKUSER rejecting messages when counting SMTP totals? At the moment it
   only counts tcpserver and rblsmtpd deny messages.
 
  hmm yes good point.
 
   Would simply adding the following(before line 291) to qmailmrtg7.c
   cover this?
   if ((tmpstr1 = strstr(TmpBuf, CHKUSER rejected rcpt))!=NULL) {
   --tallow;
   ++tdeny;
   }
 
  I've added this to a copy of qmailmrtg7.c and ran make, fine, it's now
  running, I'll watch the graph and see what happens, so far so good.
 
  A quick look at the qmail-smtpd log showed a 'CHKUSER rejected relaying'
  so
  I've changed the string to 'CHKUSER rejected' to catch them all
 
  It won't catch 'CHKUSER no auth resource' or 'CHKUSER mbx overquota' but
  I've
  never seen either in my logs and nor has logwatch.
 
  patch is attached
 
 
  HTH
  --
  -
  Bob Hutchinson
  Midwales dot com
  -

 Yes, I patched mine awhile back to give the 'actual' messages per 5 min
 interval instead of the 'hourly average' which is what it currently gives.
 Just took off the *12. This seems to be a change in the most recent
 version(s) of qmailmrtg. I remember a year or so ago, it didn't do that...

 I think...

qmailmrtg7-4.0 has '*12' in it, I don't know about older ones.

Personally I don't mind the per hourly rate output, and it's easy enough to 
change. The CHKUSER issue is a problem for those using Tonito's patch though, 
thanks to Sloath for pointing it out. 


-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] Issues with qmailmrtg7 statistics

2005-09-22 Thread Bob Hutchinson
On Thursday 22 Sep 2005 15:20, Bob Hutchinson wrote:
 On Thursday 22 Sep 2005 14:00, Jason S wrote:
  On 9/21/05, Bob Hutchinson [EMAIL PROTECTED] wrote:
   On Wednesday 21 Sep 2005 18:29, Sloath wrote:
Hi all,
   
I have a system set-up according to the guide, with qmail logging
using multilog to /var/log/qmail and using qmailmrtg7 for creating
graphs.
   
I've been investigating a few peaks in my messages/hour graph..
   
Looking at the qmailmrtg7 code for counting messages... if increments
a counter for every line that has a success, failure or deferral.
Then at the end it returns two numbers, each multiplied by 12...
(success*12, (failure+success)*12).
It took me a few minutes to figure this out; it only counts messages
from the last 300 seconds (5 minutes), and as we graph messages per
hour it multiplies by 12 to get an hours worth... This turns 54
messages in the last 5 minutes into a plot of 648 messages/hour.
  
   I found that out when I implemented a trigger on messages ;-)
  
So when interpreting the 5 minute average graph, you have to look at
any peak and divide by 12, to get the actual number of messages sent
in the 5 minutes it represents
   
Wouldn't it be of more use to graph messages/5 minutes or a running
total of messages per hour based on the actual previous 12 5-minute
totals?
   
Has anyone patched qmailmrtg7.c to allow it to take into account
CHKUSER rejecting messages when counting SMTP totals? At the moment
it only counts tcpserver and rblsmtpd deny messages.
  
   hmm yes good point.
  
Would simply adding the following(before line 291) to qmailmrtg7.c
cover this?
if ((tmpstr1 = strstr(TmpBuf, CHKUSER rejected rcpt))!=NULL) {
--tallow;
++tdeny;
}
  
   I've added this to a copy of qmailmrtg7.c and ran make, fine, it's now
   running, I'll watch the graph and see what happens, so far so good.
  
   A quick look at the qmail-smtpd log showed a 'CHKUSER rejected
   relaying' so
   I've changed the string to 'CHKUSER rejected' to catch them all
  
   It won't catch 'CHKUSER no auth resource' or 'CHKUSER mbx overquota'
   but I've
   never seen either in my logs and nor has logwatch.
  
   patch is attached
  
  
   HTH
   --
   -
   Bob Hutchinson
   Midwales dot com
   -
 
  Yes, I patched mine awhile back to give the 'actual' messages per 5 min
  interval instead of the 'hourly average' which is what it currently
  gives. Just took off the *12. This seems to be a change in the most
  recent version(s) of qmailmrtg. I remember a year or so ago, it didn't do
  that...
 
  I think...

 qmailmrtg7-4.0 has '*12' in it, I don't know about older ones.

 Personally I don't mind the per hourly rate output, and it's easy enough to
 change. The CHKUSER issue is a problem for those using Tonito's patch
 though, thanks to Sloath for pointing it out.

oops that's Tonino ;-)

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] Issues with qmailmrtg7 statistics

2005-09-21 Thread Bob Hutchinson
On Wednesday 21 Sep 2005 18:29, Sloath wrote:
 Hi all,

 I have a system set-up according to the guide, with qmail logging using
 multilog to /var/log/qmail and using qmailmrtg7 for creating graphs.

 I've been investigating a few peaks in my messages/hour graph..

 Looking at the qmailmrtg7 code for counting messages... if increments a
 counter for every line that has a success, failure or deferral.
 Then at the end it returns two numbers, each multiplied by 12...
 (success*12, (failure+success)*12).
 It took me a few minutes to figure this out; it only counts messages
 from the last 300 seconds (5 minutes), and as we graph messages per hour
 it multiplies by 12 to get an hours worth... This turns 54 messages in
 the last 5 minutes into a plot of 648 messages/hour.

I found that out when I implemented a trigger on messages ;-)


 So when interpreting the 5 minute average graph, you have to look at any
 peak and divide by 12, to get the actual number of messages sent in the
 5 minutes it represents

 Wouldn't it be of more use to graph messages/5 minutes or a running
 total of messages per hour based on the actual previous 12  5-minute
 totals?

 Has anyone patched qmailmrtg7.c to allow it to take into account CHKUSER
 rejecting messages when counting SMTP totals? At the moment it only
 counts tcpserver and rblsmtpd deny messages.

hmm yes good point.


 Would simply adding the following(before line 291)  to qmailmrtg7.c
 cover this?
  if ((tmpstr1 = strstr(TmpBuf, CHKUSER rejected rcpt))!=NULL) {
 --tallow;
 ++tdeny;
 }

I've added this to a copy of qmailmrtg7.c and ran make, fine, it's now 
running, I'll watch the graph and see what happens, so far so good.

A quick look at the qmail-smtpd log showed a 'CHKUSER rejected relaying' so 
I've changed the string to 'CHKUSER rejected' to catch them all

It won't catch 'CHKUSER no auth resource' or 'CHKUSER mbx overquota' but I've 
never seen either in my logs and nor has logwatch.

patch is attached


HTH
-- 
-
Bob Hutchinson
Midwales dot com
-
--- qmailmrtg7.c.org2004-11-05 16:37:11.0 +
+++ /usr/local/src/qmailmrtg7-4.2/qmailmrtg7.c  2005-09-21 20:11:19.0 +0100
@@ -288,6 +288,10 @@
 } else if ((tmpstr1 = strstr(TmpBuf,  rblsmtpd:))!=NULL) {
   ++tdeny;
 }
+   else if ((tmpstr1 = strstr(TmpBuf, CHKUSER rejected))!=NULL) {
+  --tallow;
+  ++tdeny;
+}
 break;

   case 'c':


Re: [toaster] gmake problems

2005-08-25 Thread Bob Hutchinson
On Thursday 25 Aug 2005 15:19, Mo Mule wrote:
 Hi all,

 I am helping a friend set up qmail with all the fixings offered by this
 list.

 He is running Mandrake 10.1 (3 CD version) with a basic install (with
 URPMI), and high security.

 He is stuck on the courier-imap section - specifically with the ./configure
 command after

 tar -xjf tar/courier-authlib-0.56.tar.bz2
 cd courier-authlib-0.56
 ./configure

maybe
./configure --with-redhat


 It spits out toward the end:

 checking for perl5... /usr/bin/perl5
 checking for courier-config... no
 then it displays a lot of configure: WARNING: === messages about it
 thinking he is running Redhat.

 Trying to run gmake after this will not work.

 Any ideas?

 Thanks,

 Deion Mule Christopher

 --Mule was here!--
 --Republican Team Leader And Proud Of It!--
 http://www.gopteamleader.com/about.asp



 Original Message Follows
 From: rene marticke [EMAIL PROTECTED]
 Reply-To: toaster@shupp.org
 To: toaster@shupp.org
 Subject: [toaster] High CPU-Load clamd
 Date: Thu, 25 Aug 2005 11:26:15 +0200

 Hi group,

 At one of my mailserver something magic happen.
 Since 6pm yesterday, the CPU-Load is near 100% constant. So the system is
 very slow.
 The Process is the clamd. (I use toaster + simscan + clamd + spamd)
 I wonder, that there is no mail  to scan by clamd for eg. 20 Minutes but
 the load don't go down.

 Can you give me some hints ?

 regards rene

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] update to qmail-logwatch

2005-08-16 Thread Bob Hutchinson
On Wednesday 10 Aug 2005 08:31, David wrote:
  -Original Message-
  From: Bob Hutchinson [mailto:[EMAIL PROTECTED]
  Sent: Saturday, 6 August 2005 10:08 PM
  To: toaster@shupp.org
  Subject: [toaster] update to qmail-logwatch
 
 
  I have fixed a number of bugs, especially in the CHKUSER stuff in
  qmail-smtpd
 
  http://midwales.com/downloads/logwatch/logwatch-qmail-1.0.7.tar.gz

 I was getting a lot of stuff like this in my logwatch reports:

 /etc/log.d/scripts/services/qmail-send: line 5: =: command not found
 /etc/log.d/scripts/services/qmail-send: line 6: =: command not found
 /etc/log.d/scripts/services/qmail-send: line 7: =: command not found
 /etc/log.d/scripts/services/qmail-send: line 8: =: command not found
 /etc/log.d/scripts/services/qmail-send: line 9: =: command not found
 /etc/log.d/scripts/services/qmail-send: line 10: =: command not found

 Running RedHat 9.

 So... I added this line:

 #!/usr/perl

 To the beginning of these files:

 /etc/log.d/scripts/services/qmail-pop3d
 /etc/log.d/scripts/services/qmail-pop3d3
 /etc/log.d/scripts/services/qmail-send
 /etc/log.d/scripts/services/qmail-smtpd

Sorry not to answer sooner, been away walking the hills.

I'm using logwatch-6.1.2, perhaps yours is older.
I have added a note to the README


 and now I get cool stuff like:

 Chkuser Accepts to (Threshold of 1):
   [EMAIL PROTECTED] - 54 Time(s)
   [EMAIL PROTECTED] - 19 Time(s)
   [EMAIL PROTECTED] - 5 Time(s)
   [EMAIL PROTECTED] - 2 Time(s)
   [EMAIL PROTECTED] - 2 Time(s)
   [EMAIL PROTECTED] - 1 Time(s)
   [EMAIL PROTECTED] - 1 Time(s)
   [EMAIL PROTECTED] - 1 Time(s)
   [EMAIL PROTECTED] - 1 Time(s)
   [EMAIL PROTECTED] - 1 Time(s)
   [EMAIL PROTECTED] - 1 Time(s)
   [EMAIL PROTECTED] - 1 Time(s)

 Simscan Viruses (Threshold of 1):
   HTML.Phishing.Bank-1 - 1 Time(s)


 in my logs!! ...did I do the right thing ?

looks about right, now tweak the thresholds 
in /etc/log.d/conf/services/qmail-smtpd.conf to reduce the size of the 
logwatch output.

HTH
-- 
-
Bob Hutchinson
Midwales dot com
-


[toaster] update to qmail-logwatch

2005-08-06 Thread Bob Hutchinson
I have fixed a number of bugs, especially in the CHKUSER stuff in qmail-smtpd

http://midwales.com/downloads/logwatch/logwatch-qmail-1.0.7.tar.gz


-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] clamav 0.86.2

2005-07-25 Thread Bob Hutchinson
On Monday 25 Jul 2005 13:52, Christopher Grello wrote:
 Quoting Bob Hutchinson [EMAIL PROTECTED]:
  Just to confirm that the 0.85 patches work with clamav 0.86.2, released
  this morning
 
 
  --
  -
  Bob Hutchinson
  Midwales dot com
  -

 What patches?

from http:/shupp.org/toaster/

wget http://shupp.org/patches/clamav-0.86.1-stderr.patch
wget http://shupp.org/patches/clamav-0.86.1-conf.patch
wget http://shupp.org/patches/clamav-0.86.1-freshclamconf.patch



 - Chris

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] Configuration Question...

2005-07-22 Thread Bob Hutchinson
On Friday 22 Jul 2005 22:50, Damian Barry wrote:
 I just installed a qmail toaster. I can send and receive email but I
 had a question about the following configuration files:

 /var/qmail/supervise/*/run

 A year or so ago there were some instructions listed to edit the
 tcpserver -l 0 to be -l domain.com.
 This is taken into consideration in scripts provided by
 www.lifewithqmail.com. What is the significance?

from man tcpserver

-l localname
  Do not look up the local host name in DNS; use localname for the 
environment variable $TCPLOCALHOST. A common choice for
  localname is 0. To avoid loops, you must use this option for 
servers on TCP port 53.


 I made the change manually (not using the scripts at the other site
 which get them from a file setting) but I'm wondering if the toaster
 instructions should include this for future users?

 Thanks

 Damian

-- 
-
Bob Hutchinson
Midwales dot com
-


[toaster] chkuser and tmda

2005-07-21 Thread Bob Hutchinson
I have chkuser installed, as per Shupp toaster, but it appears to be 
preventing TMDA confirms from being delivered, is there anything I can do?

Here is the gist of the error message, edited to protect etc:
[EMAIL PROTECTED]:
1.2.3.4 does not like recipient.
Remote host said: 511 sorry, no mailbox here by that name (#5.1.1 - chkuser)
Giving up on 1.2.3.4.

chkuser_settings.h is stock

CHKUSER_EZMLM_DASH looks like it should cover, but it doesn't apparently ;-(


Any help would be greatly appreciated

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] Safe move account/domain from one server to other

2005-07-14 Thread Bob Hutchinson
On Thursday 14 Jul 2005 14:46, Helio Nunes wrote:
 Hi
 Does anyone know  how could I move an entire domain from one server to
 other without losing mail content and/or having permissions problems? I
 have in both last Toaster version w/ MYSQL auth. Some users are using
 squirrelmail and have some mail in it.
 I tried to create same domain/accounts/passwords in the target server and
 after copied from the origin to the target
 server /home/vpopmail/domains/domain.com directory over the empty .
 Some files under each user dir did not enherited the right permision. As
 far as I had only 150 users I did it manually.  Now I have to move a bigger
 domain.

If you ensure that all the qmail users and vpopmail and vchkpw users have the 
same uid/gid you will have far fewer problems. Look in /etc/passwd 
and /etc/groups for the numbers. I use rsync running under ssh for transfer 
myself, running as root.
Using rsync you can copy over the domain beforehand, then when you are ready 
and are waiting for the dns to resolve do it again just after removing the 
domain concerned from rcpthosts and /var/qmail/users/assign on the old 
machine and putting the same entries on the new one. Once the dns resolves 
the mail will flow into the new box. Getting the mail users to clear out 
their popboxes first will help too, less to transfer.

You might also want to check the qmail mailing list archives, plenty there on 
this subject.

HTH
-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] mailbox not found error - solved

2005-07-08 Thread Bob Hutchinson
On Thursday 07 Jul 2005 16:15, Hank wrote:
 I had a more qmail aware friend look at my configuration, and while I
 have no idea how it happened, the problematic domain got added to the
 /var/qmail/control/locals file. Once I removed the domain from that
 file and restarted qmail, everything now works perfectly.

 Does anyone have any ideas on how that got added to the locals file?
 I am running Webmin/Virtualmin on this server (and other servers), but
 I've never had this happen before.

Don't use webmin's qmail frontend for anything except looking at the queue, 
it's broken as far as a qmail/vpopmail/qmailadmin setup is concerned


 thanks for all your suggestions.

 -Hank

-- 
-
Bob Hutchinson
Midwales dot com
-


[toaster] clamav-0.86

2005-06-21 Thread Bob Hutchinson
The toaster patches for clamav-0.85.1 work fine with clamav-0.86, which came 
out yesterday

-- 
-
Bob Hutchinson
Midwales dot com
-


[toaster] logwatch-qmail

2005-06-20 Thread Bob Hutchinson
For those of you interested in parsing qmail multilog files in logwatch,
I have added simscan and CHKUSER filters to qmail-smtpd

http://midwales.com/hutch/downloads/logwatch/logwatch-qmail-1.0.6.tar.gz

Feedback welcome of course ;-)

-- 
-
Bob Hutchinson
Midwales dot com
-


[toaster] clamav problem

2005-05-27 Thread Bob Hutchinson
Hi all,
This is about an install of clamav on Debian testing and set up to run with 
qmail, according to the toaster. 
I have done this install a couple of times with no problems at all, working 
with simscan, but this install is giving problems.
This line appears in the qmail smtpd log:

clamdscan: error while loading shared libraries: libc.so.6: failed to map 
segment from shared object: Cannot allocate memory

/lib/libc.so.6 exists and has the same size and perms as other my Debian 
setups. Compilation goes fine, and there is nothing in config.log that sticks 
out. ld.so.conf is correct and the same as well. gcc et al are all from debian 
packages, everything uptodate.

freshclam is going fine.

I sent several EICAR test emails and all were delivered leaving the above error 
message, as do clean emails.

running clamdscan from the command line works, although it did not do so until 
I copied them out of vpopmail and set chmod 666

Simscan therefore looks like the stumbling block.

Here is it's configure:

./configure --enable-user=clamav \
--enable-clamav=y \
--enable-spam=n \
--enable-ripmime=y \
--enable-attach=y \
--enable-received=y \
--enable-per-domain=y \
--enable-regex=y \
--enable-dropmsg=y

Again, no problems compiling, it's all done by the same script I've used for 
the other installs, same users, same uid/gid, same everything AFAIK.

Upon inspection, the other installs have spamassassin installed but not used, 
too much cpu crunching for my kit.

Any Ideas?


-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] clamav problem

2005-05-27 Thread Bob Hutchinson
On Friday 27 May 2005 19:43, Tom Collins wrote:
 On May 27, 2005, at 11:35 AM, Bob Hutchinson wrote:
  clamdscan: error while loading shared libraries: libc.so.6: failed to
  map segment from shared object: Cannot allocate memory

 Increase the softlimit in the run file for qmail-smptd.

bingo!

Thanks a lot!


 --
 Tom Collins  -  [EMAIL PROTECTED]
 QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
 You don't need a laptop to troubleshoot high-speed Internet:
 sniffter.com

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] toaster throughput

2005-05-25 Thread Bob Hutchinson
On Tuesday 24 May 2005 18:01, Fabrizio Frosali - Impulso Srl wrote:
 Hi all,

 I've to send a lot of emails (500.000) in little time (30 mins)
 (all legitimate emails: last minute infos)

 I need some advice on hardware and configuration to use.
 i.e. How much can I raise concurrencyremote on a 3 GHz Pentium 4 Server
 with 2 GB RAM ?
 (Bandwidth is not a problem)

/var/qmail/control/concurrencylocal and /var/qmail/control/concurrencyremote
these two files set the concurrency limits for qmail-send

If that is not enough have a look in conf-spawn in the source tree, If you 
change that you will of course have to recompile.


HTH
-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] Virus Stats

2005-05-13 Thread Bob Hutchinson
On Friday 13 May 2005 00:38, Alex wrote:
 I just have to say that this is THE coolest addition to Bill's toaster!

 Just to show off :
 http://webmail.russianeast.com  - added to SquirrelMail login screen via
 login_notes plugin

Nice one...


 Thanks Rick!

 quote who=Rick Macdougall

  Hi,
 
  Great, added all those updates and added a mailing list.
 
  0.82 is available at www.limelyte.com/software.php
 
  Regards,
 
  Rick

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] Paranoid tcpserver

2005-04-29 Thread Bob Hutchinson
On Friday 29 Apr 2005 05:59, Bill D'Anjou wrote:
 Could someone provide an example or two of how to modify this file so that
 tcpserver runs in paranoid mode - and returns an error message to servers
 with bad (reverse) DNS.

 Thank-you.

 #!/bin/sh
 QMAILDUID=`id -u vpopmail`
 NOFILESGID=`id -g vpopmail`
 MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
 exec /usr/local/bin/softlimit -m 800 \
 /usr/local/bin/tcpserver -v -H -R -l 0 \
 -x /home/vpopmail/etc/tcp.smtp.cdb -c $MAXSMTPD \
 -u $QMAILDUID -g $NOFILESGID 0 smtp \
 /var/qmail/bin/qmail-smtpd \
 /home/vpopmail/bin/vchkpw /bin/true 21

I think you need a -p in there
from cr.yp.to/ucspi-tcp/tcpserver.html

-p: Paranoid. After looking up the remote host name in DNS, look up the IP 
addresses in DNS for that host name, and remove the environment variable 
$TCPREMOTEHOST if none of the addresses match the client's IP address.

I haven't used this, but it might work with Maciej's patch

also, see
http://www.qmail.org/top.html
search for 'reverse'

HTH
-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] QMAILADMIN - Warning Messages on Configure

2005-04-20 Thread Bob Hutchinson
On Wednesday 20 Apr 2005 17:03, Allen Taylor wrote:
 Folks,

 I'm having a problem with qmailadmin install using the Toaster for
 Qmail provided by Bill Shupp at: http://shupp.org/toaster/

 When attempting to configure I get the following WARNING messages and
 Qmailadmin fails to install in the Apache cgi-bin directory:

 ./configure --enable-help --enable-htmldir /usr/local/apache2/htdocs/
 --enable-cgibindir /usr/local/apache2/cgi-bin/ --enable-imagedir
 /usr/local/apache2/htdocs/images/

 configure: WARNING: you should use --build, --host, --target
 configure: WARNING: invalid host type: /usr/local/apache2/htdocs/
 configure: WARNING: you should use --build, --host, --target
 configure: WARNING: invalid host type: /usr/local/apache2/cgi-bin/
 configure: WARNING: you should use --build, --host, --target
 configure: WARNING: invalid host type:
 /usr/local/apache2/htdocs/images/

 I've used QMAILADMIN  this toaster in the past and never had any
 problems whatsoever.  Any suggestions?

./configure \
--enable-help \
--enable-htmldir=/usr/local/apache2/htdocs \
--enable-cgibindir=/usr/local/apache2/cgi-bin \
--enable-imagedir=/usr/local/apache2/htdocs/images \
--enable-imageurl=/images

try that
also have a good look at ./configure --help

HTH
-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] couriertcpd

2005-04-13 Thread Bob Hutchinson
On Wednesday 13 Apr 2005 17:14, Carl Parrish wrote:
 When using the toaster should something called couriertcpd be running?

 when I run vpopmailctl stat I get

 /service/qmail-pop3d: up (pid 21698) 0 seconds
 /service/qmail-pop3d/log: up (pid 10372) 20751 seconds
 /service/qmail-pop3ds: up (pid 21769) 0 seconds
 /service/qmail-pop3ds/log: up (pid 10469) 20751 seconds

 so I ran vpopmailctl starttl start
 Starting qmail-pop3d
 Starting qmail-pop3ds


 then check out my log
 tail -f /var/log/qmail/pop3d/current
 @4000425d449d2442ad3c tcpserver: fatal: unable to bind: address
 already used
 @4000425d449e2636dc1c tcpserver: fatal: unable to bind: address
 already used
 @4000425d449f2af8c544 tcpserver: fatal: unable to bind: address
 already used
 @4000425d44a02a46e234 tcpserver: fatal: unable to bind: address
 already used

 So I'm thinking I must still have something running that's preventing
 vpopmail from doing its thing.

 netstat -a -p --tcp | fgrep php gives me
 tcp0  0 *:pop3s *:*
 LISTEN 6468/couriertcpd
 tcp0  0 *:pop3  *:*
 LISTEN 5600/couriertcpd

You want something like 
netstat -atp

tcp0  0 *:pop3s   *:*   LISTEN18105/tcpserver
tcp0  0 *:pop3 *:*   LISTEN18103/tcpserver

/var/lib/courier-imap/etc has settings you will want to alter

HTH

 So now I'm not sure if couriertcpd *should* be running or if that should
 say vpopmail.

 Any thoughts?

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] qmail maillog

2005-04-04 Thread Bob Hutchinson
On Monday 04 Apr 2005 20:09, List wrote:
  List wrote:
  I am using the lastest which is 0.7.9 but i dont seem to log anything to
  maillog.
  I believed vpopmail is properly configure.
 
  $
  ./configure --enable-roaming-users --enable-learn-passwords
  --enable-domainquotas --enable-logging=v
 
  But it is still not logging.
 
  Figure out where Syslog is logging your MAIL facility.  Perhaps it's not
  maillog.  T
  he configuration above will log to the MAIL facility.

 In /etc/syslog.conf

 It says :-

 # Log all the mail messages in one place.
 mail.*  /var/log/maillog

 Is there any other place i should look into?

how about trying

grep -r 'vpopmail' /var/log/*

then pick through the output.

login to pop3 with a false login/pw deliberately, that should appear in the 
log

HTH
-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] From: Address in Bounced Mails

2005-04-03 Thread Bob Hutchinson
On Saturday 02 Apr 2005 03:51, YM wrote:
 Hi,

 Just wonder if there's any way that we can hide those bounced mail from
 using the email server's FQDN but the postmaster email address of
 respective domains?

 For example, if I have 2 domains in the same server -- mydom1.com and
 mydom2.com. Those bounced or error emails bounced to the senders from
 mydom1.com will be issued using [EMAIL PROTECTED] instead of
 [EMAIL PROTECTED] Same applies to mydom2.com.

 Possible?

You could try putting a maildrop filter 
in /var/qmail/alias/.qmail-mailer-daemon

personally I would just drop them by putting a # in the above file. Most of it 
is spambounces and dumb autoresponder stuff. CHKUSER will stop typos and if 
the .qmail-default has catchall they'll get it all anyway.

HTH
-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] shupps toaster

2005-03-21 Thread Bob Hutchinson
On Monday 21 Mar 2005 19:12, Michael Di Martino wrote:
 I have setup the toaster according the websites instructions.
 I added two options CLAMAV and SIMSCAN. Either of which I can get to
 work

 clamav throws the following error on my toaster
 Any ideas on how to solve this?

 2005-03-21 10:11:27.954654500 LibClamAV Error: cl_loaddbdir(): Can't
 open directory /var/lib/clamav
   ^
that was not installed as per toaster...
My guess is you still have an old install lurking, get rid of that first, and 
check the clamav list archives, it happens regularly.
http://lurker.clamav.net/list/clamav-users.html

HTH
-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] rcpthosts

2005-03-21 Thread Bob Hutchinson
On Monday 21 Mar 2005 19:34, Carl Parrish wrote:
 Okay after a few days of being able to get pop mail. (but not imap or
 being able to use my server for outgoing mail). I now get this error
 when trying to send mail to my account.

 Diagnostic-Code: smtp; 553 sorry, that domain isn't in my list of
 allowed rcpthosts (#5.5.3 - chkuser)

 but when I look in /var/qmail/control/rcpthosts I have both
 mail.domain.com and domain.com listed there.
 (wasn't sure which should be there so put both and it seemed to work for
 awhile)
make sure domain.com is not in locals as well

if mail.domain.com receives mail in the form of [EMAIL PROTECTED] then it 
should be there, otherwise take it out.


 Others sending to the same email address are getting *this* error msg
 Sorry, no mailbox here by that name. (#5.1.1)

 I can login to that user though qmailadmin, but my mail client hasn't
 gotten any new mail to that account since yesterday.

 qmailctl stat looks like this.

 /service/qmail-send: up (pid 5411) 0 seconds
 /service/qmail-send/log: up (pid 5985) 556382 seconds
 /service/qmail-smtpd: up (pid 20712) 1963 seconds
 /service/qmail-smtpd/log: up (pid 6048) 556382 seconds
 messages in queue: 2
 messages in queue but not yet preprocessed: 0

check your logs in /var/log/qmail/current
You may still have sendmail (or whatever) running, which might be why 
qmail-send will not start.

and where is qmail-pop3d?


 I've tried qmailctl restart but qmail-send is still up for only 0
 seconds. (not even sure if that's a problem or not).

 I've been trying to read the qmail book by John Levine, but now I'm
 afraid that the patches he talks about don't match up with the ones in
 toaster.

 I've gone to dnsstuff.com and used the email tester there. I get back
 Successful connect: Got a good response [250 ok]
 But I still haven't gotten any mail today.

 Any idea what I'm doing wrong?

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] shupps toaster

2005-03-21 Thread Bob Hutchinson
On Monday 21 Mar 2005 20:56, Michael Di Martino wrote:
 -Original Message-
 From: Bob Hutchinson [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 21, 2005 2:30 PM
 To: toaster@shupp.org
 Subject: Re: [toaster] shupps toaster

 On Monday 21 Mar 2005 19:12, Michael Di Martino wrote:
  I have setup the toaster according the websites instructions.
  I added two options CLAMAV and SIMSCAN. Either of which I can get to
  work
 
  clamav throws the following error on my toaster Any ideas on how to
  solve this?
 
  2005-03-21 10:11:27.954654500 LibClamAV Error: cl_loaddbdir(): Can't
  open directory /var/lib/clamav

^
 that was not installed as per toaster...
 My guess is you still have an old install lurking, get rid of that
 first, and check the clamav list archives, it happens regularly.
 http://lurker.clamav.net/list/clamav-users.html

 HTH
 --
 -
 Bob Hutchinson
 Midwales dot com

 ---



 How did u get get rid of the old one?

I always install clamav from source, then I know where they go, /usr/local/*

if you have updatedb try
locate clam
or
find / -name clam*

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] patch without vpopmail

2005-03-19 Thread Bob Hutchinson
On Saturday 19 Mar 2005 14:27, Bill D'Anjou wrote:
 A great document!  Very helpful for a newbie like me.

 Just a couple questions I want to setup a box that will only run qmail
  the optional items (spamassassin, etc).  I'm assuming the patch that's
 included with the toaster won't apply in such an installation.  What do I
 need to do differently?

 Also, I'd appreciate some direction on running qmail in paranoid mode
 (checking forward/reverse DNS).
from man tcpserver
Data-gathering options:

   -h (Default.) Look up the remote host name in DNS to set the 
environment variable $TCPREMOTEHOST.

   -H Do not look up the remote host name in DNS; remove the 
environment variable $TCPREMOTEHOST. To avoid loops, you must use
  this option for servers on TCP port 53.

   -p Paranoid. After looking up the remote host name in DNS, look up 
the IP addresses in DNS for that host name,  and  remove
  the environment variable $TCPREMOTEHOST if none of the addresses 
match the client's IP address.

   -P (Default.) Not paranoid.


 Lastly, I've grown accustomed to running tail -f /var/log/maillog to see
 sort of realtime mail activity.  I noticed after completing this toaster
 install, stuff gets logged elsewhere.  What's the nearest equivalent to
 what I'm accustomed to seeing?

 Thank-you for any/all assistance.

/var/log/qmail 

multilog works a bit differently to syslog

tail -f /var/log/qmail/current | tai64nlocal 

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] Problems with qmail install.

2005-03-17 Thread Bob Hutchinson
On Thursday 17 Mar 2005 16:57, Carl Parrish wrote:
 Not sure this is a problem or not but in the toaster for installing
 courier-imap it says
 Edit /usr/lib/courier-imap/etc/authdaemonrc
   * Change authmodulelist=... to authmodulelist=authvchkpw
 for me authdaemonrc already said
 authmodulelist=authcustom authcram authuserdb authvchkpw authshadow
 authpwd

edit  authmodulelist=authvchkpw
That's how mine is and it works ;-)

HTH
-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] Problems with qmail install.

2005-03-15 Thread Bob Hutchinson
On Tuesday 15 Mar 2005 16:49, Carl Parrish wrote:
 On Tue, 2005-03-15 at 11:02 +0200, Eero Volotinen wrote:
   Not same error in log. (and I'm concerned that *something* in xinetd
   may have been important) typing ps -ef | grep xinetd gives me.
   root  5248 1  0 Feb22 ?00:00:01 xinetd -stayalive -
   pidfile /var/run/xinetd.pid
   is it safe to kill that ps?
 
  try first to kill -TERM and then with -9 (KILL KILL!). Remember also
  disable xinetd startup using chkconfig xinetd off
 
  --
  Eero

 Okay the old version of qmail seems to be no more. Now when I type
 qmailctl start and tail /var/log/qmail/smtpd/current I get
 @40004237103c1d7367e4 tcpserver: status: 0/20

 So I'm guessing that's all good. However when I run inst_check I'm still
 getting
 ! /etc/tcp.smtp.cdb is missing
 ...try: /var/qmail/bin/qmailctl cdb

 qmailctl cdb doesn't seem to help. Any thoughts?

your tcp.smtp should be in /home/vpopmail/etc/

check your run file in
/var/qmail/supervise/qmail-smtpd/

looks like it is pointing to /etc/tcp.smtp.cdb, which is not the way toaster 
does it, that is more vanilla qmail install

#this is how you build it
cd /home/vpopmail/etc
echo '127.:allow,RELAYCLIENT='  tcp.smtp
/usr/local/bin/tcprules tcp.smtp.cdb tcp.smtp.tmp  tcp.smtp

also ensure that you have something like this in your crontab:
9-59,10 * * * * /home/vpopmail/bin/clearopensmtp 21  /dev/null
if you are using pop-before-smtp

svc -du /service/qmail* /service/qmail*/log
will restart your qmail services

then check with
ps ax 
or
ps auxwwwf
readproctitle should only have dots after it.
you can see what the runfiles actually ran.

netstat -at
to check which tcp ports are in use.

HTH
-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] new toaster user...a few basic questions

2005-03-03 Thread Bob Hutchinson
On Thursday 03 Mar 2005 03:08, Hank wrote:
  Well, maybe virtualadmin could be hacked to work with vpopmail.  Instead
  of touching qmail manually, it could just call vadddomain.  I doubt
  you're the first person to want that.

 Well, I dug a little more and found this in the release notes for a
 development version of Virtualmin:

 Added support for Qmail+VPOPMail as a new mail system. When enabled,
 all mailboxes and aliases are created in VPOPMail instead of using
 Unix users.

 I'm testing it out now.

Interesting, please do report back 8-)
Webmin's qmailadmin module is pretty useless with vpopmail, although the queue 
viewer is handy

-- 
-
Bob Hutchinson
Midwales dot com
-


[toaster] FYI clamav-0.83

2005-02-15 Thread Bob Hutchinson
clamav-0.83 compiles with the current 0.82 patches

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] Problems sending large files

2005-02-13 Thread Bob Hutchinson
On Sunday 13 Feb 2005 16:28, David wrote:
 Hi all,

 I have the latest (.76) version of Bill's toaster installed on a rh9 box,
 and some users of the system have been experiencing problems using outlook
 when attemptimg to send large file attachments.

 When trying to send a 17MB attachment recently I got a typical result:

 Your server has unexpectedly terminated the connection. Possible causes for
 this include server problems, network problems, or a long period of
 inactivity. Subject 'acrobat reader', Account:
 'mail.aberfoylecomputers.com', Server: '192.168.100.1', Protocol: SMTP,
 Port: 25, Secure(SSL): No, Error Number: 0x800CCC0F

 ie. it just times out, taking a lot longer than expected (on the inside of
 the firewall this time, connection to the server is LAN - should only take
 about 10-20 seconds).

 Is there a maximum message size limit? I have searched for similar
 problems, and will keep searching, but if anyone has any ideas I'd be very
 grateful for some help.

first off check the clamav settings, there is an option on size limit there
but I suspect that that is not the problem, but resources. If it was a preset 
limit, the refusal would be instant, but the above looks like a croak.

Are you running clamav/spamassassin?
The latter especially can be very resource-hungry

You need to note the exact time the event occurs and look at the logs
/var/log/qmail/smtpd/current for the incoming
/var/log/clamd/current for av scanning
wherever spamassasin logs to

and finally look to see if it got out in
/var/log/qmail/current (probably not)

check your softlimits in the various run files.

HTH
-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] pop3ds problem

2005-02-10 Thread Bob Hutchinson
On Thursday 10 Feb 2005 10:55, [EMAIL PROTECTED] wrote:
 Dear All,

 I have upgraded my system from SuSE 8.0 to 9.1.  I found there is a
 problem in qmail-pop3ds.  I have tried to use stunnel3_wrapper instead of
 stunnel but it does not work.

I don't know the stunnel3-wrapper but this works for me

exec /usr/local/bin/softlimit -m $softlimit \
/usr/local/bin/tcpserver -v -H -R -l 0 -v \
-c $maxconnect \
-u $VPOPMAILUID -g $VPOPMAILGID 0 995 \
/usr/sbin/stunnel -f -p /var/qmail/control/servercert.pem \
-l /var/qmail/bin/qmail-popup -- qmail-popup $HOST \
/home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir 21


running
stunnel -V

stunnel 3.26 on i386-pc-linux-gnu PTHREAD+LIBWRAP with OpenSSL 0.9.7e 25 Oct 
2004

snip and lots more


 2005-02-10 18:45:25.824732500 Error: Either program or remote service must
 be specified
 2005-02-10 18:45:25.834533500
 2005-02-10 18:45:25.834539500 Usage:
 2005-02-10 18:45:25.834540500
 2005-02-10 18:45:25.834542500   stunnel3_wrapper
 2005-02-10 18:45:25.834544500 [-V] [-c | -T] [-D level] [-C
 cipherlist] [-p pemfile]
 2005-02-10 18:45:25.834547500 [-v level] [-A certfile] [-a
 directory] [-t timeout]
 2005-02-10 18:45:25.834550500 [-u ident_username] [-s setuid_user]
 [-g setgid_group] [-n protocol]
 2005-02-10 18:45:25.834554500 [-R randfile] [-E egdsock] [-B
 bytes] [-P filename ]
 2005-02-10 18:45:25.834557500 [-d [host:]port [-f] ]
 2005-02-10 18:45:25.834612500 [-r [host:]port | { -l | -L }
 program [-- args] ]
 2005-02-10 18:45:25.834615500
 2005-02-10 18:45:25.834617500   -S is not supported. -P only takes
 filenames.

 What should I do to fix the problem? Thanks a lot.

 Regards,
 Qing

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] FYI: clamav-0.82

2005-02-07 Thread Bob Hutchinson
On Monday 07 Feb 2005 16:14, Eero Volotinen wrote:
 Bob Hutchinson wrote:
  clamav-0.82 is out.
  The 0.81 patches work fine
  http://heanet.dl.sourceforge.net/sourceforge/clamav/clamav-0.82.tar.gz
 
  wget http://shupp.org/patches/clamav-0.81-stderr.patch
  wget http://shupp.org/patches/clamav-0.81-conf.patch
  wget http://shupp.org/patches/clamav-0.81-freshclamconf.patch

 Why need to apply them?

Only if you want to upgrade to the latest clamav


 --
 Eero

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] Compiler error with toaster 0.7

2005-01-08 Thread Bob Hutchinson
On Saturday 08 Jan 2005 23:37, Lars E. D. Jensen wrote:
 Hi list

 I get these errors when trying to compile netqmail 1.05 with the 0.7 final
 toaster...:

 ./compile chkuser.c
 chkuser.c:37:22: vpopmail.h: No such file or directory
 chkuser.c:38:19: vauth.h: No such file or directory
 chkuser.c:39:29: vpopmail_config.h: No such file or directory
 chkuser.c: In function `realrcpt':
 chkuser.c:682: warning: comparison between pointer and integer
 chkuser.c:803: warning: assignment makes pointer from integer without a
 cast chkuser.c:824: error: dereferencing pointer to incomplete type
 chkuser.c:824: error: `BOUNCE_MAIL' undeclared (first use in this function)
 chkuser.c:824: error: (Each undeclared identifier is reported only once
 chkuser.c:824: error: for each function it appears in.)
 chkuser.c:829: error: dereferencing pointer to incomplete type
 chkuser.c:830: error: dereferencing pointer to incomplete type
 chkuser.c:834: error: dereferencing pointer to incomplete type
 make: *** [chkuser.o] Error 1


 The Makefile contains:
 VPOPMAIL_HOME=/var/vpopmail
 SMTPD_CHKUSER_OBJ=chkuser.o
 VPOPMAIL_LIBS=`head -1 $(VPOPMAIL_HOME)/etc/lib_deps`

 /var/vpopmail is where vpopmail is installed. And vpopmail.h is
 in /var/vpopmail/include/vpopmail.h

 I'm not a patch wizard :) What should I do?

Add the above path to /etc/ld.so.conf and then run ldconfig
and try again


 --
 Med venlig hilsen / Best regards
 Lars E. D. Jensen - DCmedia - TYPO3 Business Solutions
 +45 3116 5002 / +45 3695 9177
 [EMAIL PROTECTED] - http://dcmedia.biz

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] Compiler error with toaster 0.7

2005-01-08 Thread Bob Hutchinson
On Sunday 09 Jan 2005 00:19, Lars E. D. Jensen wrote:
   The Makefile contains:
   VPOPMAIL_HOME=/var/vpopmail
   SMTPD_CHKUSER_OBJ=chkuser.o
   VPOPMAIL_LIBS=`head -1 $(VPOPMAIL_HOME)/etc/lib_deps`
  
   /var/vpopmail is where vpopmail is installed. And vpopmail.h is
   in /var/vpopmail/include/vpopmail.h
  
   I'm not a patch wizard :) What should I do?
 
  Add the above path to /etc/ld.so.conf and then run ldconfig
  and try again

 Ok, now I've added all the paths that I could see, but it still gives the
 same error.

 Any suggestions?

Well, mine is set to /home/vpopmail/lib in etc/ld.so.conf, which is where the 
library manager looks for things
so maybe

/var/vpopmail/lib

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] Toaster 0.7b1

2004-12-17 Thread Bob Hutchinson
On Friday 17 December 2004 19:37, Evgeny Gesin wrote:
 Bill,
 I install software in this order:

 1. Unzip and patch qmail.
 2. Unzip, patch/make/install daemontools, ucspi-tcp,
 ucspi-ssl, *remove sources*.
 3. Make/install qmail.
 4. Unzip/make/install vpopmail, *remove sources*.
 5. make clean qmail, patch with chkuser-0.7b2.patch
 and make/install qmail again, *remove sources*.

hang on to your sources for awhile, re use them and run 
'make clean' before 'make'


 Please note, that I remove sources, and there are no
 sources after step 5, and vpopmail.h, vauth.h,
 vpopmail_config.h are not available after step 4.

these 3 are in /home/vpopmail/lib
add that to /etc/ld.so.conf and run ldconfig, then redo install


 I checked your toaster, I think if I remove vpopmail
 sources not in 4, but after step 5 qmail will compile.
 But anyway, this indicates, that three header files
 were not needed to compile qmail with
 chkuser-0.7b2.patch, right?

 Evgeny Gesin
 http://www.alltelescopes.com

 --- Bill Shupp [EMAIL PROTECTED] wrote:
  Evgeny Gesin wrote:
  I have no problems with previous
  qmail-toaster-0.7b3.patch and chkuser-0.7b2.patch.
  
  But when patching with
 
  qmail-toaster-0.7b5.patch.bz2
 
  ./compile chkuser.c
  chkuser.c:37:22: vpopmail.h: No such file or
 
  directory
 
  chkuser.c:38:19: vauth.h: No such file or directory
  chkuser.c:39:29: vpopmail_config.h: No such file or
  directory
  
  Is chkuser-0.7b2.patch not affected these headers?
 
  0.7b2 uses the old 1.0 version of *chkusr*.  0.7b4
  and 0.7b5 use the 2.0
  series of *chkuser*.  Note the name change.
 
  Where is vpopmail installed?  Do the include
  directives in chkuser.c match?
 
  Regards,
 
  Bill

 __
 Do you Yahoo!?
 All your favorites on one personal page – Try My Yahoo!
 http://my.yahoo.com

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] fresh install - can't get smtp auth to work

2004-12-15 Thread Bob Hutchinson
On Wednesday 15 December 2004 07:16, Bill Shupp wrote:
 Scott Ramshaw wrote:
  I am having what I assume is a weird issue, because it isn't working.
  I have a fresh install on RHES 3 and vpopmail 5.4.0.  Followed the
  instructions for Bill's smtp-auth patch to netqmail 1.05.  Everything
  seems to be working, except for smtp-auth.
 
  [EMAIL PROTECTED] root]# telnet localhost 25
  Trying 127.0.0.1...
  Connected to hostname (127.0.0.1).
  Escape character is '^]'.
  220 hostname ESMTP
  ehlo
  250-hostname
  250-STARTTLS
  250-PIPELINING
  250-8BITMIME
  250-SIZE 0
  250 AUTH LOGIN PLAIN CRAM-MD5
  AUTH LOGIN
  503 auth not available (#5.3.3)
 
  same result for plain and cram-md5
 
  my qmail-smtpd run line is:
 
  exec /usr/local/bin/softlimit -m 500 /usr/local/bin/tcpserver -v
  -R -l $LOCAL -x /etc/tcp.smtp.cdb -c $MAXSMTPD -u 91 -g 91 0 smtp
  /usr/local/bin/rblsmtpd /var/qmail/bin/qmail-smtpd 21

and rblsmtpd could do with arguments too,

eg
 -t 10 -r sbl-xbl.spamhaus.org


 You're missing the authentication argument to qmail-smtd.  It should go:

 /var/qmail/bin/qmail-smtpd /home/vpopmail/bin/vchkpw /bin/true 21

 Regards,

 Bill

-- 
-
Bob Hutchinson
Midwales dot com
-


[toaster] rcppto patches

2004-12-14 Thread Bob Hutchinson
Has anyone managed to integrate a realrcptto/validrcptto type patch into a 
shupp toaster install? I'm not sure if it is what I want as some of our 
customers want to receive *all* the mail directed to their domain, but I'm 
hoping I can find one that allows some form of wildcard in the lookup.


-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] rcppto patches

2004-12-14 Thread Bob Hutchinson
On Tuesday 14 December 2004 17:19, Bill Shupp wrote:
 Bob Hutchinson wrote:
 Has anyone managed to integrate a realrcptto/validrcptto type patch into a
 shupp toaster install? I'm not sure if it is what I want as some of our
 customers want to receive *all* the mail directed to their domain, but I'm
 hoping I can find one that allows some form of wildcard in the lookup.

 That's what chkuser does.  If you want wildcards, then set a catchall.

OK, I will RTFM sime more ;-)


 Regards,

 Bill

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] rcppto patches

2004-12-14 Thread Bob Hutchinson
On Tuesday 14 December 2004 17:19, Bill Shupp wrote:
 Bob Hutchinson wrote:
 Has anyone managed to integrate a realrcptto/validrcptto type patch into a
 shupp toaster install? I'm not sure if it is what I want as some of our
 customers want to receive *all* the mail directed to their domain, but I'm
 hoping I can find one that allows some form of wildcard in the lookup.

 That's what chkuser does.  If you want wildcards, then set a catchall.

Thanks Bill, working a treat.

I had to add /home/vpopmail/include to ld.so.conf and run ldconfig, obvious 
really but I thought I'd mention it in case anyone else stumbles over that.

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] pop3 logging

2004-12-10 Thread Bob Hutchinson
On Friday 10 December 2004 10:39, Jose Luis Canciani wrote:
 Thanks for your answers Bob. Unfortunatly I'm not using LDAP...
 But I've seen some logs of the POP3 Server that comes with Courier package
 and it seems they have what I need: username and bytes transferred. If I
 can make it work, I'll post the scripts to get the bandwidth per domain.

Yes, please do let us know, I'm sure this is an issue for many sysadmins


 Thanks again!

 --
 Jose Canciani.

 On Wed, 8 Dec 2004 18:10:06 +, Bob Hutchinson [EMAIL PROTECTED] 
wrote:
  On Wednesday 08 December 2004 12:29, Jose Luis Canciani wrote:
   The problem is that isoqlog will not analyze qmail-pop3d logs, only
   qmail-send logs. And even if it could, the pop3 logs does not show
   username and/or size of downloaded messages, it only shows ip and ports
   used by the connections.
 
  yep
 
   That's why I first asked about the POP3_LOGLEVEL parameter that I think
   it could be set to show this kind of data in the logs.
 
  I found this on
  http://www.nrg4u.com/qmail/QLDAPINSTALL
 
  Environment variables setable via tcpserver, envdir or plain old env/sh:
 
  snip
 
  POP3_LOGLEVEL
 
   Level of log verbosity in qmail-pop3d.
   Default: 0 (NULL)
   Affects: qmail-pop3d
   Example: 3
   Levels:
   0 = no logging
   1 = fatal errors
   2 = login/logout accounting
   3 = session errors
   4 = verbose
   Note: integer value, everything will be logged through tcpserver
   Note2: this is a hack so that this log level does not interfere with the
  one of auth_pop.
 
  This would appear to be a qmail-ldap specific thing, no mention of it in
  man qmail-pop3d (netqmail-1.05) nor can I find any reference to
  POP3_LOGLEVEL in my source tree, which is stock toaster
 
  If you are running qmail-ldap try setting environment variable as above
 
   Nobody is collecting pop3 bandwidth size on a per domain basis??
  
   On Tuesday 07 December 2004 22:22, Jose Luis Canciani wrote:
Thanks for the info. One doubt only, are those graphs separated by
domain? I mean, if I have several domains in vpopmail, will
qmail-mrtg give me the bandwidth for each one?
  
   No, qmail-mrtg does not, but isoqlog will, per domain and per user, but
   no graphs as it stands.
  
   qmail-mrtg will show you traffic, and can be configured to send alerts
   if trigger points are breached, alerting you to yet another tsunami of
   spam. - Hide quoted text -
  
On Wed, 8 Dec 2004 00:23:20 +, Bob Hutchinson
[EMAIL PROTECTED]
  
   wrote:
 On Tuesday 07 December 2004 20:06, Jose Luis Canciani wrote:
  Hi everybody.
 
  I'm creating a platform for a hosting service and I need to know
  how much bandwidth each domain is consuming. I've partially
  managed to do it reading isoqlog reporting (based on qmail-send
  logs). Now I'm trying to find POP3 bandwidth for qmail-pop3d. I
  haven't found too much information on the internet. On the
  qmail-ldap big picture a parameter called POP3_LOGLEVEL is shown.
  Searching with that keyword, google show me only a couple of
  mailling list messages, one of those suggest to put
  POP3_LOGLEVEL=3 so that qmail-pop3 would show the username of the
  person. So I've added POP3_LOGLEVEL=3; export POP3_LOGLEVEL to
  /var/qmail/supervise/qmail-pop3d/run and restarted pop3 service
  but nothing has changed. Does anyone know something about this
  parameter o something else that would help? I haven't tried
  courier pop3 server, maybe someone could tell me if it could be
  configured for what I need?

 isoqlog will give you daily figures, in and out for each user, very
 easy to install.

 awstats can be configured to use qmail logs and will give greater
 detail, but it's not so easy to setup

 qmail-mrtg from inter7 is also useful for (almost) realtime graphs

 so is logwatch, for daily reports. There is an addon to logwatch
 5.1 at

 http://midwales.com/downloads/logwatch/logwatch-qmail-1.0.3.tar.gz

 and don't forget iptables

  Thank you!
  --
  Jose Luis Canciani
  Ing. en Sistemas de Informacion.
 
 
 
 
 
 
  
  This message was sent using IMP, the Internet Messaging Program.

 --
 -
 Bob Hutchinson
 Midwales dot com
 -
  
   --
   -
   Bob Hutchinson
   Midwales dot com
   -
  
  
  
  
  
  
   
   This message was sent using IMP, the Internet Messaging Program.
  
  
   
   This message was sent using IMP, the Internet Messaging Program.
 
  --
 
 
  -
  Bob Hutchinson
  Midwales dot com

Re: [toaster] Qmail stop delivering after 5-6 hours

2004-12-09 Thread Bob Hutchinson
On Thursday 09 December 2004 02:52, Michael wrote:
 Hello Bob

 BH if you have any 'fancy features', like spam, rbl, mfcheck etc switch
 them off, I have not any 'fancy features'
 BH check /var/qmail/bin/qmail-showctl

 BH check your permissions, ownership, sticky bits etc
 it's OK. mail delivered after boot/reboot about 5-6 hours.

 BH use telnet to see what is going on with your mail reception, although
 the BH below suggests that it is remote delivery that is not working
 somtetime telnet 127.0.0.1 return 220 - mail.tarsu.kz OK, sometime no.

telnet 127.0.0.1 25 should return immediately

I just tried
[EMAIL PROTECTED]/# telnet mail.tarsu.kz 25
Trying 213.211.121.20...
Connected to mail.tarsu.kz.
Escape character is '^]'.
220 mail.tarsu.kz ESMTP
HELO
250 mail.tarsu.kz
quit
221 mail.tarsu.kz
Connection closed by foreign host.

Looks OK to me

Read the files
TEST.deliver and TEST.receive in your qmail source

look at the logs immediately after a test and look carefully at the output
/var/log/qmail/current
/var/log/qmail/smtpd/current
/var/log/qmail/pop3d/current

ps axwwwf
the above command will give you the full command line of your daemontools 
services

the line
readproctitle service errors:
should only have dots after it, anything else on that line indicates an error


 BH use recordio in your smtp 'run' file, then you can see it all.
 what is recordio?
part of ucspi-tcp-0.88

should be in /usr/local/bin/recordio

example:

RECORDIO=/usr/local/bin/recordio
RBL=
#RECORDIO=
#RBL=/usr/local/bin/rblsmtpd -t 10 -r bl.spamcop.net

QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
if [ -z $QMAILDUID -o -z $NOFILESGID -o -z $MAXSMTPD ]; then
echo QMAILDUID, NOFILESGID, or MAXSMTPD is unset in
echo /var/qmail/supervise/qmail-smtpd/run
exit 1
fi

exec /usr/local/bin/softlimit -m 200 \
/usr/local/bin/tcpserver -v -R -l 0 \
-x /etc/tcp.smtp.cdb -c $MAXSMTPD \
-u $QMAILDUID -g $NOFILESGID 0 25 \
$RECORDIO \
$RBL \
/var/qmail/bin/qmail-smtpd 21


HTH
-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] pop3 logging

2004-12-08 Thread Bob Hutchinson
On Tuesday 07 December 2004 22:22, Jose Luis Canciani wrote:
 Thanks for the info. One doubt only, are those graphs separated by domain?
 I mean, if I have several domains in vpopmail, will qmail-mrtg give me the
 bandwidth for each one?

No, qmail-mrtg does not, but isoqlog will, per domain and per user, but no 
graphs as it stands.

qmail-mrtg will show you traffic, and can be configured to send alerts if 
trigger points are breached, alerting you to yet another tsunami of spam.


 On Wed, 8 Dec 2004 00:23:20 +, Bob Hutchinson [EMAIL PROTECTED] 
wrote:
  On Tuesday 07 December 2004 20:06, Jose Luis Canciani wrote:
   Hi everybody.
  
   I'm creating a platform for a hosting service and I need to know how
   much bandwidth each domain is consuming. I've partially managed to do
   it reading isoqlog reporting (based on qmail-send logs).
   Now I'm trying to find POP3 bandwidth for qmail-pop3d. I haven't found
   too much information on the internet. On the qmail-ldap big picture a
   parameter called POP3_LOGLEVEL is shown. Searching with that keyword,
   google show me only a couple of mailling list messages, one of those
   suggest to put POP3_LOGLEVEL=3 so that qmail-pop3 would show the
   username of the person. So I've added POP3_LOGLEVEL=3; export
   POP3_LOGLEVEL to
   /var/qmail/supervise/qmail-pop3d/run and restarted pop3 service but
   nothing has changed. Does anyone know something about this parameter o
   something else that would help? I haven't tried courier pop3 server,
   maybe someone could tell me if it could be configured for what I need?
 
  isoqlog will give you daily figures, in and out for each user, very easy
  to install.
 
  awstats can be configured to use qmail logs and will give greater detail,
  but it's not so easy to setup
 
  qmail-mrtg from inter7 is also useful for (almost) realtime graphs
 
  so is logwatch, for daily reports. There is an addon to logwatch 5.1 at
 
  http://midwales.com/downloads/logwatch/logwatch-qmail-1.0.3.tar.gz
 
  and don't forget iptables
 
   Thank you!
   --
   Jose Luis Canciani
   Ing. en Sistemas de Informacion.
  
  
  
  
  
  
   
   This message was sent using IMP, the Internet Messaging Program.
 
  --
  -
  Bob Hutchinson
  Midwales dot com
  -

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [toaster] pop3 logging

2004-12-08 Thread Bob Hutchinson
On Wednesday 08 December 2004 12:29, Jose Luis Canciani wrote:
 The problem is that isoqlog will not analyze qmail-pop3d logs, only
 qmail-send logs. And even if it could, the pop3 logs does not show username
 and/or size of downloaded messages, it only shows ip and ports used by the
 connections.

yep


 That's why I first asked about the POP3_LOGLEVEL parameter that I think it
 could be set to show this kind of data in the logs.

I found this on 
http://www.nrg4u.com/qmail/QLDAPINSTALL

Environment variables setable via tcpserver, envdir or plain old env/sh:

snip

POP3_LOGLEVEL

 Level of log verbosity in qmail-pop3d.
 Default: 0 (NULL)
 Affects: qmail-pop3d
 Example: 3
 Levels:
 0 = no logging
 1 = fatal errors
 2 = login/logout accounting
 3 = session errors
 4 = verbose
 Note: integer value, everything will be logged through tcpserver
 Note2: this is a hack so that this log level does not interfere with the one
of auth_pop.


This would appear to be a qmail-ldap specific thing, no mention of it in man 
qmail-pop3d (netqmail-1.05) nor can I find any reference to POP3_LOGLEVEL in 
my source tree, which is stock toaster

If you are running qmail-ldap try setting environment variable as above


 Nobody is collecting pop3 bandwidth size on a per domain basis??

 On Tuesday 07 December 2004 22:22, Jose Luis Canciani wrote:
  Thanks for the info. One doubt only, are those graphs separated by
  domain? I mean, if I have several domains in vpopmail, will qmail-mrtg
  give me the bandwidth for each one?

 No, qmail-mrtg does not, but isoqlog will, per domain and per user, but no
 graphs as it stands.

 qmail-mrtg will show you traffic, and can be configured to send alerts if
 trigger points are breached, alerting you to yet another tsunami of spam.
 - Hide quoted text -

  On Wed, 8 Dec 2004 00:23:20 +, Bob Hutchinson
  [EMAIL PROTECTED]

 wrote:
   On Tuesday 07 December 2004 20:06, Jose Luis Canciani wrote:
Hi everybody.
   
I'm creating a platform for a hosting service and I need to know how
much bandwidth each domain is consuming. I've partially managed to do
it reading isoqlog reporting (based on qmail-send logs).
Now I'm trying to find POP3 bandwidth for qmail-pop3d. I haven't
found too much information on the internet. On the qmail-ldap big
picture a parameter called POP3_LOGLEVEL is shown. Searching with
that keyword, google show me only a couple of mailling list messages,
one of those suggest to put POP3_LOGLEVEL=3 so that qmail-pop3 would
show the username of the person. So I've added POP3_LOGLEVEL=3;
export POP3_LOGLEVEL to
/var/qmail/supervise/qmail-pop3d/run and restarted pop3 service but
nothing has changed. Does anyone know something about this parameter
o something else that would help? I haven't tried courier pop3
server, maybe someone could tell me if it could be configured for
what I need?
  
   isoqlog will give you daily figures, in and out for each user, very
   easy to install.
  
   awstats can be configured to use qmail logs and will give greater
   detail, but it's not so easy to setup
  
   qmail-mrtg from inter7 is also useful for (almost) realtime graphs
  
   so is logwatch, for daily reports. There is an addon to logwatch 5.1 at
  
   http://midwales.com/downloads/logwatch/logwatch-qmail-1.0.3.tar.gz
  
   and don't forget iptables
  
Thank you!
--
Jose Luis Canciani
Ing. en Sistemas de Informacion.
   
   
   
   
   
   

This message was sent using IMP, the Internet Messaging Program.
  
   --
   -
   Bob Hutchinson
   Midwales dot com
   -

 --
 -
 Bob Hutchinson
 Midwales dot com
 -






 
 This message was sent using IMP, the Internet Messaging Program.


 
 This message was sent using IMP, the Internet Messaging Program.

-- 
-
Bob Hutchinson
Midwales dot com
-


  1   2   >