qmail Digest 29 Sep 1999 10:00:01 -0000 Issue 774

Topics (messages 30963 through 31008):

vpopmail and quotas
        30963 by:  Ana Bel�n Santos
        30965 by:  Marcin Jaskowiak
        30971 by:  Frank Tegtmeyer
        30972 by:  Luis Campos de Carvalho

users/assign - what the hell ...
        30964 by:  Thomas Foerster

size of messages
        30966 by:  Ana Bel�n Santos
        30967 by:  Russell Nelson

Concurrent deliveries
        30968 by:  Matthew Harrell
        30983 by:  Dave Sill

POP Problem
        30969 by:  Qmail-User
        30970 by:  Mark Nelson
        30993 by:  Qmail-User

Please help!!! Tarpit patch fail after qmail-uce patch!!!
        30973 by:  Nguyen Dang Phuoc Dong
        30974 by:  Nguyen Dang Phuoc Dong
        30981 by:  Dave Sill

Re: pop3d - Unable to scan $HOME/Maildir??
        30975 by:  Dave Sill

Re: IMAP advice
        30976 by:  Mirko Zeibig

Re: tcpserver won't allow incomming connections OR relay for clients
        30977 by:  Dave Sill

getting mail just on reboot
        30978 by:  Giorgio Bozio
        30979 by:  Anand Buddhdev
        30980 by:  Dave Sill

Re: When will qmail back off to the next MX?
        30982 by:  David Dyer-Bennet

What's my domain name on PacBell DSL for qmail's "config-fast"?
        30984 by:  Warren 'Llama' Ernst
        30985 by:  Jedi/Sector One

A Web based status script ...
        30986 by:  Jim Arnott

Newsgroups
        30987 by:  Thomas Booms EDV
        30988 by:  Patrick Berry

London qmail training?
        30989 by:  Russell Nelson

Re: Grave Difficulties (lspawn, Maildir, etc)
        30990 by:  jarrid jeeby
        30991 by:  Dave Sill
        30992 by:  jarrid jeeby

Re: POP3d Problem
        30994 by:  Qmail-User
        30995 by:  Patrick Berry
        30997 by:  Qmail-User
        31005 by:  Andre Oppermann
        31007 by:  Qmail-User

save mail on server question
        30996 by:  Michael Boyiazis
        30998 by:  Sam
        31000 by:  Michael Boyiazis

Almost there (pop server)
        30999 by:  Marek Narkiewicz
        31001 by:  Erik Howard

Logging in says "No mail." But there is mail!
        31002 by:  Warren 'Llama' Ernst
        31003 by:  Dustin Marquess
        31004 by:  James J. Lippard
        31008 by:  Serban Udrea

Questions about logging
        31006 by:  Sven Veckes

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To bug my human owner, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------


 Hello, I have a linux server with qmail, I have installed the
vpopmail package ( version 3.4.9) and
I have find the following problem:

    -Imagine I configure the quota for a pop user to 10Mbytes (10240000
bytes) in the vpasswd file, and the size of the Maildir directory for
this user is 1Mbyte .
    -I send a mail to this user with a size of 30Mbytes.
    - Vdelivermail will enter the user Maildir and add up the sizes of
all the files in this directory,
but the total size in this moment is 1Mbytes so the message will be
deliver because the Maildir size
is smaller than 10Mbytes.
    -Now, the size of the Maildir directory for that user is 31Mbytes,
but his quota is 10Mbytes!!!

.....imagine if I send a mail of 1Gbyte instead one of 30Mbytes......

The problem is that vdelivermail compares:

    the size of the Maildir directory  < HARD_QUOTA limit

instead of:

the size of the Maildir directory + the size of the message to
deliver < HARD_QUOTA limit

Has anybody this problem?? How It can be fixed??










On Tue, 28 Sep 1999, Ana [iso-8859-1] Bel�n Santos wrote:

> Has anybody this problem?? How It can be fixed??

patching sources? ;)

Greetings,
Marcin Jaskowiak






> Has anybody this problem?? How It can be fixed??
I don't think the quota mechanism is a solution for this.

I would recommend to establish a policy that

a) allows any user to receive any big mail
b) ensures that the POP-storage doesn't fill up over time

All users must have accepted this policy.

Write a script that does the following:

1. Check if the user is over your limit, if not quit.
2. Delete all mail that is over a specified time limit.
3. If the user is still over his (space) limit, delete
   mail beginning at the oldest going to newest until
   enough space is freed.
   Ensure not to delete mail that is newer than a specified
   time (f.e. two or three days).
4. Generate a mail that tells the user which mail was deleted
   (Sender, Receiver, Return-Path, Delivered-To:, Message-Id,
    Date, Subject, ...)

Share the script with us.

Regards, Frank




On Tue, 28 Sep 1999, Ana [iso-8859-1] Bel�n Santos wrote:

        Ana, you must mail the vpopmail's development team, at
[EMAIL PROTECTED] The list people will answer your questions.
        
        I already forwarded your message to the list.
        Subscribe it, mailing the [EMAIL PROTECTED], and get the
answer.
        
        Everybody have a nice day. :-)

>  Hello, I have a linux server with qmail, I have installed the
> vpopmail package ( version 3.4.9) and
> I have find the following problem:
> 
>     -Imagine I configure the quota for a pop user to 10Mbytes (10240000
> bytes) in the vpasswd file, and the size of the Maildir directory for
> this user is 1Mbyte .
>     -I send a mail to this user with a size of 30Mbytes.
>     - Vdelivermail will enter the user Maildir and add up the sizes of
> all the files in this directory,
> but the total size in this moment is 1Mbytes so the message will be
> deliver because the Maildir size
> is smaller than 10Mbytes.
>     -Now, the size of the Maildir directory for that user is 31Mbytes,
> but his quota is 10Mbytes!!!
> 
> .....imagine if I send a mail of 1Gbyte instead one of 30Mbytes......
> 
> The problem is that vdelivermail compares:
> 
>     the size of the Maildir directory  < HARD_QUOTA limit
> 
> instead of:
> 
> the size of the Maildir directory + the size of the message to
> deliver < HARD_QUOTA limit
> 
> Has anybody this problem?? How It can be fixed??
> 
> 
> 
> 
> 
> 

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
                                                    Luis Campos de Carvalho
               System Administrator at ECB -- Escola Paulista de Medicina

"What goes up, must come down. Ask any system administrator."
                                    -- By Signal11 ([EMAIL PROTECTED])
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=






Hi there,

perhaps i would understand what users/assign is used for if the
docu would exist in german.
Could someone explain it to me what to do with users/assign ?
My system with many vdomains works very well without that file !

Thanks a lot !!
  Thomas




Can qmail deliver a message of any size?? Is there a limit??

Ana





Ana Bel�n Santos writes:
 > Can qmail deliver a message of any size?? Is there a limit??

How big is your queue's filesystem, and the filesystem you're
delivering the mail to?

-- 
-russ nelson <[EMAIL PROTECTED]>  http://russnelson.com
Crynwr sells support for free software  | PGPok | Government schools are so
521 Pleasant Valley Rd. | +1 315 268 1925 voice | bad that any rank amateur
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | can outdo them. Homeschool!





Can I get some pointers as to why I'm only getting somewhere between 25 and 50
concurrent deliveries even though I have 120 in concurrencylocal.  Attached is
the qmailanalog output.  Basically, I seem to get horrible transfer rates on
this machine and I'm trying to figure out why.

-- 
  Matthew Harrell                          Programmer - a red-eyed mumbling
  Bit Twiddlers, Inc.                       mammal capable of conversing with
  [EMAIL PROTECTED]                 inanimate objects.
Basic statistics

qtime is the time spent by a message in the queue.

ddelay is the latency for a successful delivery to one recipient---the
end of successful delivery, minus the time when the message was queued.

xdelay is the latency for a delivery attempt---the time when the attempt
finished, minus the time when it started. The average concurrency is the
total xdelay for all deliveries divided by the time span; this is a good
measure of how busy the mailer is.

Completed messages: 0

Total delivery attempts: 20240
  success: 20176
  failure: 27
  deferral: 37
Total ddelay (s): 42525.935013
Average ddelay per success (s): 2.107749
Total xdelay (s): 44799.167297
Average xdelay per delivery attempt (s): 2.213398
Time span (days): 0.0403037
Average concurrency: 12.865




Matthew Harrell <[EMAIL PROTECTED]> wrote:

>Can I get some pointers as to why I'm only getting somewhere between 25 and 50
>concurrent deliveries even though I have 120 in concurrencylocal.  Attached is
>the qmailanalog output.  Basically, I seem to get horrible transfer rates on
>this machine and I'm trying to figure out why.

>From our discussions earlier this month, it looked like your systems
were simply doing what they could. qmail can only run 120 deliveries
if there's sufficient CPU and I/O and network bandwidth. And, of
course, it's got to have sufficient pending deliveries to non-tcpto'd
hosts.

Things to look for:

    high "so", "cs",  in vmstat
    low "id" in vmstat
    high load average
    high "bi"/"bo" in vmstat
    insufficient network bandwidth
    lots of deliveries to tcpto'd hosts
    poor nameserver latency

What constitutes "high", "low", "insufficient", "lots", etc. isn't
carved in stone. I suggest you find a group of experts for your OS
(Linux, if I remember correctly) and work with them. This really isn't 
a qmail-specific problem.

-Dave




I have done the following:


$ /var/qmail/bin/maildirmake $HOME/Maildir
$ echo ./Maildir/ > ~/.qmail


as the user who is the owner of the maildir.  Then from the command line
entered the following to start the pop3d


tcpserver -v -R 0 pop3 /var/qmail/bin/qmail-popup mail.mydomain.com \
        /bin/checkpassword /var/qmail/bin/qmail-pop3d maildir 2>&1 | \
        /var/qmail/bin/splogger pop3d &



After all the above was done I tried connecting via a pop client and I get
the message:


The server could not be found (Account: 'mail.mydomain.com', Error number
0x800ccc0d.


By the way I am using Outlook 98 as my mail client.  I realise this is a
very newbie type question but I am very new to this.  Any help would be
greatly appreciated.


Regards

Vivian





> 
> tcpserver -v -R 0 pop3 /var/qmail/bin/qmail-popup mail.mydomain.com \
>         /bin/checkpassword /var/qmail/bin/qmail-pop3d maildir 2>&1 | \
>         /var/qmail/bin/splogger pop3d &
> 
I suspect that it should be Maildir with a capital M not maildir with a small m

Mark.

----------------------------------------------------
Mark Nelson - System Manager
Tradezone International Ltd, Exchange Square 
Middlesbrough, TS1 1DE, UK.   +44 (0)1642 216 255
Fax +44 (0)1642 216 201
E-Mail  : [EMAIL PROTECTED]

Linux is like a Vorlon.  It is incredibly powerful, 
gives terse, cryptic answers and has a lot of things
going on in the background.




I tried changing this but no to no joy.  Outlook still says server could
not be found.  I dropped to DOS and then tried to ping the server and
there was no problem.

Vivian

On Tue, 28 Sep 1999, Mark Nelson wrote:

> > 
> > tcpserver -v -R 0 pop3 /var/qmail/bin/qmail-popup mail.mydomain.com \
> >         /bin/checkpassword /var/qmail/bin/qmail-pop3d maildir 2>&1 | \
> >         /var/qmail/bin/splogger pop3d &
> > 
> I suspect that it should be Maildir with a capital M not maildir with a small m
> 
> Mark.
> 
> ----------------------------------------------------
> Mark Nelson - System Manager
> Tradezone International Ltd, Exchange Square 
> Middlesbrough, TS1 1DE, UK.   +44 (0)1642 216 255
> Fax +44 (0)1642 216 201
> E-Mail  : [EMAIL PROTECTED]
> 
> Linux is like a Vorlon.  It is incredibly powerful, 
> gives terse, cryptic answers and has a lot of things
> going on in the background.
> 





Hello all,

After applied Qmail-UCE patch, I can't continue with the tarpit patch, and
vice versa. The attach file is the qmail-smtpd.c.rej. Please tell me what I
have to do? I'm not familiar with patch/diff program.

Thank you inadvanced!

Dong






Hello all,

After applied Qmail-UCE patch, I can't continue with the tarpit patch, and
vice versa. The attach file is the qmail-smtpd.c.rej. Please tell me what I
have to do? I'm not familiar with patch/diff program.

Thank you inadvanced!

Dong

qmail-smtpd.c.rej





"Nguyen Dang Phuoc Dong" <[EMAIL PROTECTED]> wrote:

>After applied Qmail-UCE patch, I can't continue with the tarpit patch, and
>vice versa. The attach file is the qmail-smtpd.c.rej. Please tell me what I
>have to do? I'm not familiar with patch/diff program.

"man diff" and "man patch", if available, should help, but basically
diff just compares two files and displays the differences by line
number. Since you've applied one patch already, your line numbers
don't match those in the second patch. Given the "context" (unchanged
lines surrounding a change), patch can usually figure out where to
make the change. If it can't, it creates a .rej file containing the
unapplied patches, which you can manually apply.

>***************
>*** 96,101 ****
>  int bmfok = 0;
>  stralloc bmf = {0};
>  struct constmap mapbmf;
>  
>  void setup()
>  {
>--- 96,103 ----
>  int bmfok = 0;
>  stralloc bmf = {0};
>  struct constmap mapbmf;
>+ int tarpitcount = 0;
>+ int tarpitdelay = 5;
>  
>  void setup()
>  {

For example, in qmail-smtpd.c, in the vicinity of line 96, locate the
declaration of mapbmf and add the lines declaring tarpitcount and
tarpitdelay.

-Dave




[EMAIL PROTECTED] wrote:

>pop-3 stream tcp nowait root /var/qmail/bin/qmail-popup qmail-popup \
>mailer.famvid.com /var/qmail/bin/checkpoppasswd \
>/var/qmail/bin/qmail-pop3d Maildir &
>
>( I've tried wtih and without the trailing '&', what's that for anyway?
>)

The ampersand (&) tells the shell running a command to run the command 
in the background. To see the difference, at a shell prompt do:

    sleep 10

then

    sleep 10 &

inetd.conf entries should *not* be run in the background.

-Dave




On Mon, Sep 27, 1999 at 10:03:40AM -0400, Mullen, Patrick wrote:
> I want to run IMAP, but I want my connection (or
> at least the uname/password) to be be secure /
> encrypted.  On that note, I'd also like my POP
> daemon to at least encrypt the uname/passwd.
> 
> What IMAP daemon is recommended?  I use the 
> Maildir format.  I want an IMAP daemon which is
Well I do not use Maildir but there a patches for the UW-imapd at the
qmail-homepage. For the security:
I have done this by using stunnel, which is a SSL-wrapper for daemons.
You will need OpenSSL for this to work.
I have tcpserver listening on port 993, the standard ssl'ed imapd-port, the
command is as follows
stunnel -p /var/ssl/certs/stunnel.pem -l imapd

Using RedHat 6.0 and pam_open_smtp I allow relaying to those hosts having
connected through this procedure as well.

Internally I have set up another, non-secured imapd, as the mailserver is an
old Pentium-75 with only 64MB of RAM. This one will only allow connections
from internal-networks with tcpserver:
mirko@picard:[mirko]> o /etc/tcprules.d/imapd
127.0.0.1:allow
192.168.0.:allow
:deny

You may use the same approach with ipop3d as well.


Regards
Mirko




Ryan Sharon <[EMAIL PROTECTED]> wrote:

>Sep 27 19:56:17 portal qmail: tcpserver: warning: dropping connection,
>unable to read /etc/tcp.smtp.cdb: input/output error

Have you investigated this message? "Input/output error" usually means
there's a hardware problem such as an unreadble block on the
disk. Does "wc /etc/tcp.smtp.cdb" give an error?

># pop3 is obviously having a hard time...
>        sh -c "start-stop-daemon --start --user qmaild \
>            --exec /usr/bin/tcpserver -q -- \
>            0 pop-3 /usr/sbin/qmail-popup `hostname`.`dnsdomainname` \
>            /usr/bin/checkpassword /usr/sbin/qmail-pop3d Maildir &"

What does POP have to do with it? And how is it obvious it's "having a 
hard time"?

-Dave




I'm experiencing a strange behaviour of qmail. I installed it on freebsd 3.1 
server; it gets mail from smtp just when the machine reboots, if a mail is 
sent to an account of the server and the server is already running it 
doesn't get in; it is received just at the next reboot. Pop3 delivery works 
averytime, anyway. I tried to configure qmail smtp both as under tcpserver 
then in Inetd and the result is the same. Any idea about this? how can I 
solve this problem? (other then rebooting every 10 minutes)
Please, since I'm not subscriber to this list; email me directly to this 
adress too.
thank you,
Giorgio

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com




On Tue, Sep 28, 1999 at 01:58:48PM +0000, Giorgio Bozio wrote:

Sounds like a permissions problem on the trigger file. It should look
like this:

bash-2.03$ ls -al /var/qmail/queue/lock/trigger 
prw--w--w-  1 qmails  qmail  0 Sep 28 17:00 /var/qmail/queue/lock/trigger

If it doesn't look like the above, change to the qmail source directory
and run "make setup check" (or manually correct the permissions/ownership).

> I'm experiencing a strange behaviour of qmail. I installed it on freebsd 3.1 
> server; it gets mail from smtp just when the machine reboots, if a mail is 
> sent to an account of the server and the server is already running it 
> doesn't get in; it is received just at the next reboot. Pop3 delivery works 
> averytime, anyway. I tried to configure qmail smtp both as under tcpserver 
> then in Inetd and the result is the same. Any idea about this? how can I 
> solve this problem? (other then rebooting every 10 minutes)
> Please, since I'm not subscriber to this list; email me directly to this 
> adress too.

-- 
See complete headers for more info




"Giorgio Bozio" <[EMAIL PROTECTED]> wrote:

>I'm experiencing a strange behaviour of qmail. I installed it on freebsd 3.1 
>server; it gets mail from smtp just when the machine reboots, if a mail is 
>sent to an account of the server and the server is already running it 
>doesn't get in; it is received just at the next reboot. Pop3 delivery works 
>averytime, anyway. I tried to configure qmail smtp both as under tcpserver 
>then in Inetd and the result is the same. Any idea about this? how can I 
>solve this problem? (other then rebooting every 10 minutes)
>Please, since I'm not subscriber to this list; email me directly to this 
>adress too.

Sounds like qmail-send dies shortly after booting, which is a classic
symptom of not running it under csh, nohup, or some other mechanism to 
detach it from the controlling tty. How are you running qmail-start?
Do you see all of the qmail processes running?

-Dave




Russell Nelson <[EMAIL PROTECTED]> writes on 27 September 1999 at 17:27:30 -0400
 > David Dyer-Bennet writes:
 >  > Russell Nelson <[EMAIL PROTECTED]> writes on 27 September 1999 at 16:44:19 -0400
 >  >  >  > Should we be giving any consideration to the question of whether, on
 >  >  >  > the average, secondary MXs are less reliable than primary?  I don't
 >  >  >  > think we should; I don't think we should warp the implementation to
 >  >  >  > accommodate incorrectly configured systems.
 >  >  > 
 >  >  > Aren't you doing just that?  Right now, qmail works fine for machines
 >  >  > which are correctly configured but sometimes inaccessible.  
 >  > 
 >  > It doesn't work fine in the scenario I outlined at the beginning of my
 >  > message.  In that situation, the mail will sit on the qmail system
 >  > until it expires, when there's a perfectly good secondary MX system
 >  > sitting there waiting to accept it.  This is not my definition of
 >  > "works fine". 
 > 
 > Right, but you're suggesting that nobody will notice the lack of
 > reception of email for seven days.  If they make configuration changes
 > without testing them (and I count leaving a down machine down as
 > such), and then don't notice that something is broken for a week, then
 > I'll wager that they'll be suited just as well without email.

They will continue to receive email, as I understand it, except from
qmail sites.  So they won't see an obvious symptom such as "no email
arriving". 

 > You're also presuming that they have the ability to read email off the
 > "secondary" host.  It would be very unusual for a host which functions
 > identically to another to be given a lower priority.  Much more often,
 > the secondary host is one which is configured only to relay mail to
 > the primary.

I'm presuming that the primary and secondaries are boundary hosts that
feed into some internal pool of systems for mail handlings.  This is
not uncommon at larger sites, but by no means universal either.

 >  >  > Various people (not you) are talking about warping the
 >  >  > implementation to accommodate incorrectly configured systems.
 >  >  > There's a ton of different ways you can configure your system so
 >  >  > that email bounces.  Why should a remote system bother to work
 >  >  > around any of them?  I mean, there's the chance that the SMTP
 >  >  > server might be configured with the wrong hostname, so the client
 >  >  > should strip off the hostname for the RCPT TO: lines, right??
 >  > 
 >  > The secondary MX exists to cover cases when the primary is down.  It's
 >  > not an "incorrectly configured" DNS to have a primary MX listed that
 >  > happens to be down at the moment!
 > 
 > And a firewall which accepts connections for a down host is not
 > misconfigured or broken by design??

I'd agree that it is, in fact, misconfigured or broken.  I also
believe it's a very easy mistake to make, since the mail hosts will
presumably not be down all that often.  
-- 
David Dyer-Bennet         ***NOTE ADDRESS CHANGES***          [EMAIL PROTECTED]
http://dd-b.lighthunters.net/ (photos) Minicon: http://www.mnstf.org/minicon
http://www.dd-b.net/dd-b (sf) http://ouroboros.demesne.com/ Ouroboros Bookworms
Join the 20th century before it's too late!




All,

Having worked through various document and RPMs and
finally getting the Summersoft RPM to install with
nary a complaint, I'm trying to get things to actually
work.

I read the man pages and attempted to comprehend them
(especially the INSTALL ones) and am now going
throughthe qmail-HOWTO.

My Linux box is connected via a Pacific Bell DSL line.
It has a static IP address but not necessarily a
domain name. I have called it "lllama.pacbell.net" on
my local subnet with the various Linux configuration
files, and "config-fast" identifies it as such.

However, lllama.pacbell.net isn't in any real DNS out
there. I never intended it to be.  This Linux box
doesn't act like a server to anyone out on the
Internet, and I am happy to use its IP address for
those times I access it.

So, since there's no DNS entry, ./config complained
when I tried to run it.

Anyway, mail isn't even being delivered locally on
this box. The maillog has the followign interesting
line:

failure:Sorry,_I_couldn't_find_any_host_named_lllama.pacbell.net._(#5.1.2)/

So, what is a DSL-based qmail installer to do?

I eagerly await amazing responses.

Virtually,
Warr



__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com




Warren 'Llama' Ernst wrote:
> So, since there's no DNS entry, ./config complained
> when I tried to run it.
> So, what is a DSL-based qmail installer to do?

  Dont call your machine "something.pacbell.net" : the pacbell.net
domain is not your, and you'd better use a fake domain name on your own
machine (llama.org ?) . Then, set up a little DNS on your machine
serving the llama.org domain and Qmail should be fine.
  BTW, a french Linux box was lamely hacked some times ago thru a bind
vulnerability by a guy called "llama". We took a little revenge because
he was running the same out-of-box distribution and had a static IP
address. Does that guy have something to do with you ?

-- 
         Frank DENIS aka Jedi/Sector One aka DJ Chrysalis <[EMAIL PROTECTED]>
                -> Software : http://www.jedi.claranet.fr <-
                 -> Music : http://www.mp3.com/chrysalis <-




This is a qmail web based status script
It does not use an http server, just tcpserver and qmailanalog.

Place it in /usr/local/bin edit the QMAILANALOG and LOGDIR if needed and run :

        /usr/local/bin/tcpserver 0 80 /usr/local/bin/qstat

Give it a try let me know if you find any bugs.

-jim



-------

#!/bin/sh
#qstat vre 0.1 - qmail web based stats
#Jim Arnott
#(c) Bridge Information Systems
#See DISCLAMER below
#[EMAIL PROTECTED]
#To use: /usr/local/bin/tcpserver 0 80 /usr/local/bin/qstat
#You must also have qmailanalog installed.

QMAILANALOG=/usr/local/qmailanalog/bin
LOGDIR=/var/qmail/log
maxlines=1000000

cmd=`head -1 | awk '{print $2}'`

type=`echo $cmd | awk -F\/ '{print $2}'`
cmd=`echo $cmd | awk -F\/ '{print $3}'`

if [ -z "$type" ]
then
        type=last
fi

if [ -z "$cmd" ]
then
        cmd=menu
fi
#echo type=$type
#echo cmd=$cmd

case $type in
last) log="`ls -1 $LOGDIR/@* | sort | tail -1`" label="last log file";;
last2) log="`ls -1 $LOGDIR/@* | sort | tail -2`" label="last 2 log files";;
last1000lines) log="`ls -1 $LOGDIR/@* | sort `" maxlines=1000 label="last 1000 
lines";;
all) log="`ls -1 $LOGDIR/@* | sort`" label="all log files";;
*) log="`ls -1 $LOGDIR/@* | sort | tail -1`" type=last label="last log file";;
esac
        
case $cmd in
menu)
        echo "<center><b><font color="#000000"><font size=+2>Qmail Stats Page - 
$label</font></font></b></center><P><ul>"
        echo "<li><a href=/$type/zoverall> Show overall stats </a></li>"
        echo "<li><a href=/$type/zsuccesses> Show qmail successes </a></li>"
        echo "<li><a href=/$type/zfailures> Show qmail failures </a></li>"
        echo "<li><a href=/$type/zdeferrals> Show qmail deferrals </a></li>"
        echo "<li><a href=/$type/zrecipients> Show recipients stats </a></li>"
        echo "<li><a href=/$type/zsenders> Show senders stats </a></li>"
        echo "<li><a href=/$type/zrhosts> Show rhosts stats </a></li>"
        echo "<li><a href=/$type/zrxdelay> Show rxdelay stats </a></li>"
        echo "<li><a href=/$type/zsendmail> Show sendmail stats </a></li>"
        echo "<li><a href=/$type/zsuids> Show suids stats </a></li>"
        echo "<li><a href=/$type/show> Show log lines </a></li>"
        echo "<li><a href=/$type/ps> Show qmail processes </a></li>"
        echo "</ul><p>Which log(s) ? [<a href=/last/>last</a>][<a 
href=/last2/>last two</a>][<a href=/last1000lines/>last 1000 lines</a>][<a 
href=/all/>all</a>]"
        exit
        ;;
zoverall|zdeferrals|zfailures|zrecipients|zrhosts|zrxdelay|zsenders|zsendmail|zs
uccesses|zsuids) 
        echo "<pre>"
        cat $log | tail -$maxlines | $QMAILANALOG/matchup | $QMAILANALOG/$cmd
        echo "</pre>"
        exit
        ;;
show)
        echo "<pre>"
        cat $log | tail -$maxlines 
        echo "</pre>"
        exit
        ;;
ps)
        echo "<pre>"
        ps -aef | egrep 'qmail|img' | egrep -v egrep
        echo "</pre>"
        exit
        ;;
esac

echo error
exit 

DISCLAIMER

"qstat" is distributed free of charge exept for *"Financial Information" 
purposes. It should not be considered an
official product of Bridge Information Systems.  James R. Arnott
supports "qstat" in his spare time and as time permits.

NO WARRANTY:

BECAUSE "qstat" IS DISTRIBUTED FREE OF CHARGE, THERE IS ABSOLUTELY NO
WARRANTY PROVIDED, TO THE EXTENT PERMITTED BY APPLICABLE STATE LAW.
EXCEPT WHEN OTHERWISE STATED IN WRITING, BRIDGE INFORMATION SYSTEMS,
JAMES R. ARNOTT AND/OR OTHER PARTIES
PROVIDE "stat" "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK
AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD
THE "stat" PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
NECESSARY SERVICING, REPAIR OR CORRECTION.
 
IN NO EVENT WILL BRIDGE INFORMATION SYSTEM ,
JAMES R. ARNOTT, AND/OR ANY OTHER PARTY WHO MAY MODIFY AND
REDISTRIBUTE "qstat", BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY LOST
PROFITS, LOST MONIES, OR OTHER SPECIAL, INCIDENTAL OR CONSEQUENTIAL
DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE (INCLUDING BUT NOT
LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES
SUSTAINED BY THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH
OTHER PROGRAMS) THE PROGRAM, EVEN IF YOU HAVE BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES, OR FOR ANY CLAIM BY ANY OTHER PARTY.

*If your primary business is distributing Financial Information
you can not use this script.






Hi all,

are there (feeding) servers which have groups about qmail?

Thomas







On 9/28/99 at 7:28 PM, [EMAIL PROTECTED] (Thomas Booms EDV) wrote:

> Hi all,
> 
> are there (feeding) servers which have groups about qmail?
> 
> Thomas

I believe that this list (and the archive) is about the best place to find talk
about qmail.  I checked deja and no qmail specific groups showed up.  You might
find some flame wars in the sendmail groups though ;-)

Pat
--
Freestyle Interactive | http://www.freestyleinteractive | 415.778.0610






Is there any interest in a London qmail training session?  The final
cost would be dependent on the number of participants (in other words,
talk it up among UK people using qmail), but if I can't do it for less
than $800 per participant there's no point in doing it.  So, there's
an upper bound on the price; the variable is whether it happens or not.

-- 
-russ nelson <[EMAIL PROTECTED]>  http://russnelson.com
Crynwr sells support for free software  | PGPok | Government schools are so
521 Pleasant Valley Rd. | +1 315 268 1925 voice | bad that any rank amateur
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | can outdo them. Homeschool!




Dave,

Thank you for your suggestions.  I have made a few further attempts and my 
results are below.  Things could be better.  :|

> >/var/qmail/rc reads:
> >exec env - PATH="/var/qmail/bin:$PATH" \
> >  qmail-start " cat /var/qmail/control/defaultdelivery " \
> >  accustamp
>
>I see two problems. First, you should have:
>
>     `cat /var/qmail/control/defaultdelivery`

Used double and single quote as per your second message to avoid white 
space.


>Second, you're sending qmail-start's output to accustamp, but
>accustamp just timestamps standard input and writes it to standard
>output. You should redirect accustamp's output to a file or logging
>program, e.g.:
>
>exec env - PATH="/var/qmail/bin:$PATH" \
>   qmail-start " cat /var/qmail/control/defaultdelivery " \
>   accustamp > /var/log/qmail.log &
>or
>   accustamp | splogger qmail &

Implemented both but logs show nothing. (see below)


> >I can send mail out through SMTP but the only way I can allow relaying is 
>to
> >rm rcpthosts.  Putting the /etc/tcp.smtp values into a cdb with many
> >different IP's specifying ,RELAYCLIENT="" is not working.  Applying the
> >relayclient patch to use control/relay* is not working.  I am wide open 
>for
> >relay abuse until this is corrected.  I am aware of the number of people
> >with relay problems but I feel I have triple checked all of the most 
>common
> >problems.
>
>What is tcpserver logging? What does you tcp.smtp look like?

tcp.smtp is:
127.:allow,RELAYCLIENT=""
192.168.0.:allow,RELAYCLIENT=""
:allow

I output syslog to tty6 so the log is full of I/O errors (when I reboot).  
All I get on tty6 is failed logins and cache cleanups by 'named'.

If there are any details I have left out, they are probably concerning my 
network configuration.  The box has two NICs, one on the NT Domain LAN 
(192.168.0.2), the other on the NET.  Outgoing it is used as a gateway with 
masqerading and a packet firewall controls the incoming.  I can waork around 
the relaying problem (albeit messy), but not being able to receive mail is a 
big problem.  Even though everything appears to be running, qmail is simply 
not listening/accepting - and therefore not telling me about it.

If this sounds too difficult to troubleshoot via a mailing list, please 
suggest some simple tests or scripts that I can use to eliminate variables.  
I honestly need help with this one.

[EMAIL PROTECTED]

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com




"jarrid jeeby" <[EMAIL PROTECTED]> wrote:

>>exec env - PATH="/var/qmail/bin:$PATH" \
>>   qmail-start " cat /var/qmail/control/defaultdelivery " \
>>   accustamp > /var/log/qmail.log &
>>or
>>   accustamp | splogger qmail &
>
>Implemented both but logs show nothing. (see below)

Hmm. I haven't actually tried logging directly to a file, so that
conceivably might not work according to plan, but the splogger method
is tried and true. If you're not seeing anything, you need to take a
look at your syslog.conf, probably in /etc. splogger logs to facility
2, by default, which is useally (always?) "mail". Look for a
syslog.conf entry containing "mail.debug". That's where your qmail
logs should be going. If there is no such entry, add one, point it to
a file, and "kill -HUP" the syslogd process.

>>What is tcpserver logging? What does you tcp.smtp look like?
>
>tcp.smtp is:
>127.:allow,RELAYCLIENT=""
>192.168.0.:allow,RELAYCLIENT=""
>:allow
>
>I output syslog to tty6 so the log is full of I/O errors (when I reboot).  
>All I get on tty6 is failed logins and cache cleanups by 'named'.

tcpserver doesn't log to syslog unless you use splogger. Same comments 
as above.

-Dave




Thank you for the quick reply,

>is tried and true. If you're not seeing anything, you need to take a
>look at your syslog.conf, probably in /etc. splogger logs to facility
>2, by default, which is useally (always?) "mail". Look for a
>syslog.conf entry containing "mail.debug". That's where your qmail
>logs should be going. If there is no such entry, add one, point it to
>a file, and "kill -HUP" the syslogd process.

On tty6 I see that syslog sucessfully restarted.  The conf looks like this 
now:  (new line possibly redundant)

*.* /dev/tty6
*.=info;*.=notice      /usr/adm/messages
*.=debug      /usr/adm/debug
mail.debug      /usr/adm/debug.mail

Both debug and debug.mail show nothing.  Doh!

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com




After I have started to the pop3d I get a pid for the daemon and then a
little while later I get the following:

[1]+  Done                    tcpserver -v -R 0 pop3
/var/qmail/bin/qmail-popup
mail.cyberscapes.com.au /bin/checkpassword /var/qmail/bin/qmail-pop3d
Maildir 2>
&1 | /var/qmail/bin/splogger pop3d


Regards

Vivian





On 9/29/99 at 8:07 AM, [EMAIL PROTECTED] (Qmail-User) wrote:


> I tried changing this but no to no joy.  Outlook still says server could
> not be found.  I dropped to DOS and then tried to ping the server and
> there was no problem.

Try telneting to the server at port 110.  This should tell you if pop3 is
listening or not.

> After I have started to the pop3d I get a pid for the daemon and then a
> little while later I get the following:
> 
> [1]+  Done                    tcpserver -v -R 0 pop3
> /var/qmail/bin/qmail-popup
> mail.cyberscapes.com.au /bin/checkpassword /var/qmail/bin/qmail-pop3d
> Maildir 2>
> &1 | /var/qmail/bin/splogger pop3d

You might consider running your pop3d server though supervise.  This way, it is
stops running it will be started again.  There is ample documentation on this in
Life with Qmail. 

http://web.infoave.net/~dsill/lwq.html

We should put the URL for lwq in the footer of every message ;-)

Pat
--
Freestyle Interactive | http://www.freestyleinteractive | 415.778.0610







I tried telneting to the POP3 port 110

and I got the follwoing message:

+OK POP3 <2477938557797@neptune> v7.55 APOP server ready


So I assume all is ok there, I will try and run pop3d under supervise,
what puzzles me is that I get logs for what is going wrong in
/var/log/qmail/qmail-pop3d


Vivian





Qmail-User wrote:
> 
> I tried telneting to the POP3 port 110
> 
> and I got the follwoing message:
> 
> +OK POP3 <2477938557797@neptune> v7.55 APOP server ready

This is not qmail!

It should look like this (with your hostname of course):
+OK <[EMAIL PROTECTED]>

> So I assume all is ok there, I will try and run pop3d under supervise,
> what puzzles me is that I get logs for what is going wrong in
> /var/log/qmail/qmail-pop3d

Nothing is ok here. First desinstall the old POP3 server and then
reread LWQ step by step again.

-- 
Andre




I have disbaled this pop3 server in inetd.conf, where else would I have to
disable it?  The one I disabled was installed by default by Red Hat 6.0.

Vivian

On Wed, 29 Sep 1999, Andre Oppermann wrote:

> Qmail-User wrote:
> > 
> > I tried telneting to the POP3 port 110
> > 
> > and I got the follwoing message:
> > 
> > +OK POP3 <2477938557797@neptune> v7.55 APOP server ready
> 
> This is not qmail!
> 
> It should look like this (with your hostname of course):
> +OK <[EMAIL PROTECTED]>
> 





>From a coworker doing some qmail fiddling:

Is there any way to modify the qmail server so that it forces the mail
client to disallow save mail on server?

I got an error from Netscape Mail once that read:

  The POP3 mail server does not support UIDL, which Netscape Mail needs to
implement the "Leave on Server"
and "Maximum Message Size" options.  To download your mail, turn off these
options in the MailServer panel of Preferences.



I disabled UIDL on qmail permanently, but I did not get this error again.

Does anyone one know how to get this behavior all the time? (get the error
message)

Thanks,
   mike.



________________________________________________________
NetZero - We believe in a FREE Internet.  Shouldn't you?
Get your FREE Internet Access and Email at
http://www.netzero.net/download/index.html




Michael Boyiazis writes:

> I disabled UIDL on qmail permanently, but I did not get this error again.
> 
> Does anyone one know how to get this behavior all the time? (get the error
> message)

Add code to pop3d which deletes everything that hasn't been deleted yet
when pop3d receives a QUIT.

Don't do something stupid like deleting everything just before the process
terminates.  Or someone who crashes in a middle of downloading the first
message in a hundred message mailbox will wind up with losing all of his
mail.

A much better solution would be a cron job that goes through everyone's
Maildir/cur and Maildir/new, and deletes all messages older than a certain
number of days.


-- 
Sam





Sam,
     What he really wanted to do was to force the user to
have to check 'do not leave messages on the server' so
that they'd know it ahead of time and not be surprised when
the mail they just cleared out of their PC was the only copy.

Being privy to a lot of the support mail that comes in, I know
that is asking a lot of your normal messenger/outlook user.

I'd prefer the cron method myself.  We'll see where things
end up...

Thanks,
> 
> Michael Boyiazis writes:
> 
> > I disabled UIDL on qmail permanently, but I did not get 
> this error again.
> > 
> > Does anyone one know how to get this behavior all the time? 
> (get the error
> > message)
> 
> Add code to pop3d which deletes everything that hasn't been 
> deleted yet
> when pop3d receives a QUIT.
> 
> Don't do something stupid like deleting everything just 
> before the process
> terminates.  Or someone who crashes in a middle of 
> downloading the first
> message in a hundred message mailbox will wind up with losing 
> all of his
> mail.
> 
> A much better solution would be a cron job that goes through 
> everyone's
> Maildir/cur and Maildir/new, and deletes all messages older 
> than a certain
> number of days.
> 


Michael Boyiazis -----
[EMAIL PROTECTED]      

NetZero
Mail/Sys/Network Admin



________________________________________________________
NetZero - We believe in a FREE Internet.  Shouldn't you?
Get your FREE Internet Access and Email at
http://www.netzero.net/download/index.html




Hi again.  I almost have my setup as I would like it.  I have used vpopmail to add 
popaccounts for my users.  I have checked the popserver and connected to it remotely.  
All is well.  I can use qmail as a relay if I use my equipment to dial in.  The only 
problem 
is that when I send emails to the users I have added the mails do not arrive at their 
correct destination.  I have looked in /var/log/maillog and there is no error message 
by the 
actual email.  Can anyone suggest what may be wrong or how I could trace this? CHeers,
--
Marek Narkiewicz, Webmaster Intercreations
Reply to <-marek @ intercreations . com->
"Ticking away, the moments that make up a dull day"
Pink Floyd
Time





Are these users part of the same domain, or virtual domain? Qmail bounces
mail for domains not listed in control/rcpthosts. Make sure your virtual
domains and rcpthosts files are setup correctly. Also make sure any .qmail
files and MailDir directories are owned by the correct users. Being a new
qmail admin, this was my main problem.

What program are you using to log messages?

Erik
"The lottery is a tax on those who are bad at math"

----- Original Message -----
From: Marek Narkiewicz <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 28, 1999 6:03 PM
Subject: Almost there (pop server)


> Hi again.  I almost have my setup as I would like it.  I have used
vpopmail to add
> popaccounts for my users.  I have checked the popserver and connected to
it remotely.
> All is well.  I can use qmail as a relay if I use my equipment to dial in.
The only problem
> is that when I send emails to the users I have added the mails do not
arrive at their
> correct destination.  I have looked in /var/log/maillog and there is no
error message by the
> actual email.  Can anyone suggest what may be wrong or how I could trace
this? CHeers,
> --
> Marek Narkiewicz, Webmaster Intercreations
> Reply to <-marek @ intercreations . com->
> "Ticking away, the moments that make up a dull day"
> Pink Floyd
> Time
>
>





All,

Quick question that I'm sure is simple.

qmail is running, and my MTUs work fine. Unfortunately, when I and my users
log in, the login message is "No mail."

But that's not true. I can elm to my mailbox and there is mail! There can be
new mail too!

But that login message mocks me:

"No mail."
"No mail."
"No mail."

Any thoughts? I'm still using the Mailbox format until I get things
straightened out.

Virtually,
Warr





On Tue, 28 Sep 1999, Warren 'Llama' Ernst wrote:

> All,
> 
> Quick question that I'm sure is simple.
> 
> qmail is running, and my MTUs work fine. Unfortunately, when I and my users
> log in, the login message is "No mail."
> 
> But that's not true. I can elm to my mailbox and there is mail! There can be
> new mail too!
> 
> But that login message mocks me:
> 
> "No mail."
> "No mail."
> "No mail."
> 
> Any thoughts? I'm still using the Mailbox format until I get things
> straightened out.

        If you're running a Linux system with an up-to-date shadow suite
(or something similar) you'll find an option in your /etc/login.defs to
enable Maildir support.

                                        -Dustin






On Tue, 28 Sep 1999 20:40:44 -0700 in 
<001201bf0a2c$691536e0$[EMAIL PROTECTED]> "Warren 'Llama' Ernst" 
<[EMAIL PROTECTED]> wrote:
>     [ The following text is in the "iso-8859-1" character set. ]
>     [ Your display is set for the "US-ASCII" character set.  ]
>     [ Some characters may be displayed incorrectly. ]
> 
> All,
> 
> Quick question that I'm sure is simple.
> 
> qmail is running, and my MTUs work fine. Unfortunately, when I and my users
> log in, the login message is "No mail."
> 
> But that's not true. I can elm to my mailbox and there is mail! There can be
> new mail too!
> 
> But that login message mocks me:
> 
> "No mail."
> "No mail."
> "No mail."
> 
> Any thoughts? I'm still using the Mailbox format until I get things
> straightened out.
> 
> Virtually,
> Warr

Check out /etc/profile for something like this:

                /bin/mail -E
                case $? in
                0) 
                        echo "You have new mail."
                        ;;
                2) 
                        echo "You have mail."
                        ;;
                esac 

Whatever is checking for mail is clearly not looking in the same
place for the user's default mailbox as qmail is.

Jim Lippard    [EMAIL PROTECTED]     http://www.discord.org/
Unsolicited bulk email charge:    $500/message.   Don't send me any.
PGP Fingerprint:  0C1F FE18 D311 1792 5EA8  43C8 7AD2 B485 DE75 841C




On Tue, Sep 28, 1999 at 10:38:50PM -0500, Dustin Marquess wrote:
> On Tue, 28 Sep 1999, Warren 'Llama' Ernst wrote:
> 
> > All,
> > 
> > Quick question that I'm sure is simple.
> > 
> > qmail is running, and my MTUs work fine. Unfortunately, when I and my users
> > log in, the login message is "No mail."
> > 
> > But that's not true. I can elm to my mailbox and there is mail! There can be
> > new mail too!
> > 
> > But that login message mocks me:
> > 
> > "No mail."
> > "No mail."
> > "No mail."
> > 
> > Any thoughts? I'm still using the Mailbox format until I get things
> > straightened out.
> 
>       If you're running a Linux system with an up-to-date shadow suite
> (or something similar) you'll find an option in your /etc/login.defs to
> enable Maildir support.
> 
>                                       -Dustin
> 
> 
< Here we are at the end of your message >

Hmmm! I've done this on my system and it's not working. I have the following
setting in login.defs:

QMAIL_DIR       MyMail/incoming

My mailbox is a Maildir structure called incoming in the directory MyMail in my
homedirectory.

Regards
Serban

PS. For the moment I'm the only user but this will change.

-- 
Serban Udrea
GSI - Plasma Physics Department
Darmstadt, Germany




Hi,
1)      Is there any tool to set a more readable format of a timestamp than
accustamp does (or some to      convert).
        I'm using 'cyclog' for logging.


2)      How to log the username and and hostname from apop connection when
using the 'qmail-run4' scripst's??
        


Best regards

-- 
========================
Sven Veckes
KDD Telecomet 
mailto:[EMAIL PROTECTED]
=======================


Reply via email to