Re: qmail-remote (cry wolf?)

2001-06-09 Thread Jos Backus

On Sat, Jun 09, 2001 at 05:58:49PM +, Mark wrote:
 It's a bummer that ktrace is like that on FreeBSD. It doesn't show the
 *current* system call that the process is sitting on. Conversely,
 truss on Solaris does this nicely...

But FreeBSD does have a (procfs-based) truss.

-- 
Jos Backus _/  _/_/_/Modularity is not a hack.
  _/  _/   _/-- D. J. Bernstein
 _/  _/_/_/ 
_/  _/  _/_/
[EMAIL PROTECTED] _/_/   _/_/_/use Std::Disclaimer;



Re: qmail-remote (cry wolf?)

2001-06-09 Thread Jos Backus

On Sat, Jun 09, 2001 at 08:11:41PM +, Mark wrote:
 On Sat, Jun 09, 2001 at 01:00:46PM -0700, Jos Backus allegedly wrote:
  But FreeBSD does have a (procfs-based) truss.
 
 Right. But it suffers from the same problem that ktrace does in that
 it starts with the next system call, not the current one. Leastwise it
 does on a 4.3 I have access to, do you get something different?

Nope (I'm still at PRE_SMPNG, waiting for -current to stabilize (hah!)).

One idea would be to run the process under truss, and pipe the truss output
through multilog, providing one with a syscall activity history without the
danger of filling up partitions (as would likely happen when using ktrace).

-- 
Jos Backus _/  _/_/_/Modularity is not a hack.
  _/  _/   _/-- D. J. Bernstein
 _/  _/_/_/ 
_/  _/  _/_/
[EMAIL PROTECTED] _/_/   _/_/_/use Std::Disclaimer;



Re: tcpserver: Return 553 instead of 451?

2001-05-30 Thread Jos Backus

On Wed, May 30, 2001 at 10:34:29PM -0700, Bruce Lane wrote:
 63.102.43.25:allow,RBLSMTPD=Access denied due to spamming.

63.102.43.25:allow,RBLSMTPD=-Access denied due to spamming.

should do the trick. From http://cr.yp.to/ucspi-tcp/rblsmtpd.html:

However, if $RBLSMTPD begins with a hyphen, rblsmtpd removes the hyphen
and uses a 553 error code. This tells legitimate clients to bounce the
message immediately. 

-- 
Jos Backus _/  _/_/_/Modularity is not a hack.
  _/  _/   _/-- D. J. Bernstein
 _/  _/_/_/ 
_/  _/  _/_/
[EMAIL PROTECTED] _/_/   _/_/_/use Std::Disclaimer;



Re: AIX 3.25 install?

2001-04-11 Thread Jos Backus

On Wed, Apr 11, 2001 at 08:12:34AM -0700, Leitha discount wrote:
 Yes, actually the home file is there.  That was why I didn't understand the
 compile error.

Weird. I wonder whether the right subdir is used. Can you apply this patch and
show me the output?

--- install.c.orig  Wed Apr 11 09:50:52 2001
+++ install.c   Wed Apr 11 09:51:23 2001
@@ -78,9 +78,11 @@
   int fdin;
   int fdout;
 
+  system("/bin/pwd");
   if (fchdir(fdsourcedir) == -1)
 strerr_die2sys(111,FATAL,"unable to switch back to source directory: ");
 
+  system("/bin/pwd");
   fdin = open_read(file);
   if (fdin == -1)
 strerr_die4sys(111,FATAL,"unable to read ",file,": ");

-- 
Jos Backus _/  _/_/_/"Modularity is not a hack."
  _/  _/   _/-- D. J. Bernstein
 _/  _/_/_/ 
_/  _/  _/_/
[EMAIL PROTECTED] _/_/   _/_/_/use Std::Disclaimer;



Re: AIX 3.25 install?

2001-04-10 Thread Jos Backus

On Tue, Apr 10, 2001 at 10:09:06AM -0700, Leitha discount wrote:
 0706-317 ERROR: Unresolved or undefined symbols detected:
 .fchdir

AIX 3 doesn't have fchdir(). You should be able to find the answer to this in
the archives, as this has come up a couple of times before.

-- 
Jos Backus _/  _/_/_/"Modularity is not a hack."
  _/  _/   _/-- D. J. Bernstein
 _/  _/_/_/ 
_/  _/  _/_/
[EMAIL PROTECTED] _/_/   _/_/_/use Std::Disclaimer;



Re: AIX 3.25 install?

2001-04-10 Thread Jos Backus

On Tue, Apr 10, 2001 at 02:00:51PM -0700, Leitha discount wrote:
 Thanks for that suggestion, I guess I didn't see the reference to that one
 the first time out.  It did help us get further.  But, now we are getting
 this message:
./install
 install: fatal: unable to read home: file does not exist

One of the things ``make'' does is create a file named ``home'' in the build
directory:

make output
cat home.sh  | sed s}QMAIL}"`head -1 conf-qmail`"}g   home
chmod 755 home
/make output

lizzy:/usr/ports/mail/qmail/work/qmail-1.03# ls -l home
-rwxr-xr-x  1 root  wheel  204 Apr 10 20:17 home
lizzy:/usr/ports/mail/qmail/work/qmail-1.03# 

Is it there?

Jos

 The error code from the last failed command is 111.
 
 Make Quitting.
 
 Well, home is there.  So I'm not sure what it is looking for?
 
 Any suggestions are greatly appreciated.
 Leitha
 - Original Message -
 From: "Jos Backus" [EMAIL PROTECTED]
 To: "Leitha discount" [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Tuesday, April 10, 2001 10:45 AM
 Subject: Re: AIX 3.25 install?
 
 
 On Tue, Apr 10, 2001 at 10:09:06AM -0700, Leitha discount wrote:
  0706-317 ERROR: Unresolved or undefined symbols detected:
  .fchdir
 
 AIX 3 doesn't have fchdir(). You should be able to find the answer to this
 in
 the archives, as this has come up a couple of times before.
 
 --
 Jos Backus _/  _/_/_/"Modularity is not a hack."
   _/  _/   _/-- D. J. Bernstein
  _/  _/_/_/
 _/  _/  _/_/
 [EMAIL PROTECTED] _/_/   _/_/_/        use Std::Disclaimer;
 
 
 
 

-- 
Jos Backus _/  _/_/_/"Modularity is not a hack."
  _/  _/   _/-- D. J. Bernstein
 _/  _/_/_/ 
_/  _/  _/_/
[EMAIL PROTECTED] _/_/   _/_/_/use Std::Disclaimer;



Re: our qmail server shutdown help ??

2000-10-18 Thread Jos Backus

On Sat, Mar 18, 2000 at 10:23:36AM +0800, zhangshouhui wrote:
 We use freebsd2.2.8 and freebsd2.2.7,,Our system run rightly one year,
 now when shut down  in /etc/messages   SHOW:
  increase maxuser cluster

Are you running a GENERIC kernel? What is maxusers set to? See
/sys/i386/conf/kernelname for its value (GENERIC if you are running the
GENERIC kernel).

Btw, 2.2.[78] is ancient. I suggest you look into upgrading to 4.1.1, the
latest stable release.

-- 
Jos Backus _/  _/_/_/"Modularity is not a hack."
  _/  _/   _/-- D. J. Bernstein
 _/  _/_/_/ 
_/  _/  _/_/
[EMAIL PROTECTED] _/_/   _/_/_/use Std::Disclaimer;



Re: qmail + freebsd = reboot

2000-09-16 Thread Jos Backus

On Fri, Sep 15, 2000 at 10:25:00AM +0200, Didier Derny wrote:
 there r bugs, in qmail + 1 in freebsd (at least for 3.x)

This was a FreeBSD kernel bug, fixed (in RELENG_3) in if.c rev. 1.64.2.4:

http://www.FreeBSD.org/cgi/cvsweb.cgi/src/sys/net/if.c.diff?r1=1.64.2.3r2=1.64.2.4

-- 
Jos Backus _/  _/_/_/"Modularity is not a hack."
  _/  _/   _/-- D. J. Bernstein
 _/  _/_/_/ 
_/  _/  _/_/
[EMAIL PROTECTED] _/_/   _/_/_/use Std::Disclaimer;



Re: Messages don't get deleted

2000-04-12 Thread Jos Backus

[Yes, I know this is off-topic...]

   find . -type f -exec rm -f {} \;

find . -type f -print | perl -ne 'chop; unlink;'

or, depending on your level of paranoia and your find supporting -print0,

find . -type f -print0 | perl -0ne 'chop; unlink;'

-- 
Jos Backus  _/ _/_/_/  "Reliability means never
   _/ _/   _/   having to say you're sorry."
  _/ _/_/_/ -- D. J. Bernstein
 _/  _/ _/_/
[EMAIL PROTECTED]  _/_/  _/_/_/  use Std::Disclaimer;



Re: Encryption and t-shirts

2000-02-25 Thread Jos Backus

  Front: "Don't queue mail with sendmail"
  Back: "Send mail with qmail"

I'd buy one, too.

-- 
Jos Backus  _/ _/_/_/  "Reliability means never
   _/ _/   _/   having to say you're sorry."
  _/ _/_/_/ -- D. J. Bernstein
 _/  _/ _/_/
[EMAIL PROTECTED]  _/_/  _/_/_/  use Std::Disclaimer;



Re: Problems compiling with AIX

2000-01-14 Thread Jos Backus

On Thu, Jan 13, 2000 at 01:31:54PM -0800, Guillermo Villasana Cardoza wrote:
 ld: 0706-006 Cannot find or open library file: -l resolv
 ld:open(): No such file or directory

AIX doesn't have libresolv.a.

  ./load qmail-remote control.o constmap.o timeoutread.o  timeoutwrite.o t
 
  imeoutconn.o tcpto.o now.o dns.o ip.o  ipalloc.o ipme.o quote.o ndelay.a
  case.a
  sig.a open.a  lock.a seek.a getln.a stralloc.a alloc.a substdio.a
  error.a  str.a
   fs.a auto_qmail.o  `cat dns.lib` `cat socket.lib`

What's in load, dns.lib and socket.lib?

  collect2: ld returned 8 exit status
  ld: 0711-317 ERROR: Undefined symbol: __res_query
  ld: 0711-317 ERROR: Undefined symbol: .__dn_expand
  ld: 0711-317 ERROR: Undefined symbol: .__res_init
  ld: 0711-317 ERROR: Undefined symbol: __res_search

They live in libc:

libc.a
../../../../../../../src/bos/usr/ccs/lib/libc/res_query.c f  -
.res_query   T 372076
.res_querydomain T 371004
res_queryD 181752  12
res_querydomain  D 181728  12

-- 
Jos Backus  _/ _/_/_/  "Reliability means never
   _/ _/   _/   having to say you're sorry."
  _/ _/_/_/ -- D. J. Bernstein
 _/  _/ _/_/
[EMAIL PROTECTED]  _/_/  _/_/_/  use Std::Disclaimer;



Re: daemontools and qmailanalog

1999-12-31 Thread Jos Backus

Here's a quick hack:

#!/usr/local/bin/perl

while () {
  if (my($s,$t,$rest)=/^\@.(\w{15})(\w{8})(.*)/) {
$s = hex($s);
$t = hex($t); $t =~ s/500$//;
$_ = "$s.$t$rest\n";
  }
} continue {
  print;
}

exit 0;

-- 
Jos Backus  _/ _/_/_/  "Reliability means never
   _/ _/   _/   having to say you're sorry."
  _/ _/_/_/ -- D. J. Bernstein
 _/  _/ _/_/
[EMAIL PROTECTED]  _/_/  _/_/_/  use Std::Disclaimer;



Re: when does qmail-local add the Deliverd-To line?

1999-12-08 Thread Jos Backus

On Wed, Dec 08, 1999 at 04:41:13PM +0100, Markus Wuebben wrote:
 Problem is now that I am missing the Delivered-To line, qmail normally
 adds.

You can add it yourself by prepending $ENV{'DTLINE'} to the safecat input.

-- 
Jos Backus  _/ _/_/_/  "Reliability means never
   _/ _/   _/   having to say you're sorry."
  _/ _/_/_/ -- D. J. Bernstein
 _/  _/ _/_/
[EMAIL PROTECTED]  _/_/  _/_/_/  use Std::Disclaimer;



Re: qmail-send hogging resources on upgraded FreeBSD system

1999-11-15 Thread Jos Backus

On Mon, Nov 15, 1999 at 09:47:05AM -0500, Chris Hardie wrote:
 USER   PID %CPU %MEM   VSZ  RSS  TT  STAT STARTED  TIME COMMAND
 qmails   12849 95.6  0.8   820  464  p6  R11:57AM 1234:39.21 qmail-send

What does

# cd /var/tmp; ktrace -p 12849; sleep 10; ktrace -C; kdump | less

say about what qmail-send is doing?

(Don't forget to ``rm /var/tmp/ktrace.out'' afterwards.)

I have a feeling that you will need to do

rm -f `cat TARGETS`
make
make setup check

in the qmail source directory

(or ``cd /usr/ports/mail/qmail; make deinstall reinstall clean'' if you are
using the port.)

Hth,
-- 
Jos Backus  _/ _/_/_/  "Reliability means never
   _/ _/   _/   having to say you're sorry."
  _/ _/_/_/ -- D. J. Bernstein
 _/  _/ _/_/
[EMAIL PROTECTED]  _/_/  _/_/_/  use Std::Disclaimer;



Re: qmail-send hogging resources on upgraded FreeBSD system (resolved)

1999-11-15 Thread Jos Backus

On Mon, Nov 15, 1999 at 11:26:39AM -0500, Chris Hardie wrote:
 This seems to have fixed things, thanks.

Great.

 Primitive observation tells me it was something to do with the trigger
 file and it's relationship with the upgrade kernel and system binaries,
 but I'll leave the final analysis to the more qmail-knowledgable.

At one point I was seeing the exact same thing (I think it was after moving
the default system binary format from a.out to ELF). It had nothing to do with
the trigger perms (which is the usual culprit).  Rebuilding/reinstalling qmail
fixed things.

-- 
Jos Backus  _/ _/_/_/  "Reliability means never
   _/ _/   _/   having to say you're sorry."
  _/ _/_/_/ -- D. J. Bernstein
 _/  _/ _/_/
[EMAIL PROTECTED]  _/_/  _/_/_/  use Std::Disclaimer;



Re: Queue stalls

1999-10-10 Thread Jos Backus

On Sat, Oct 09, 1999 at 09:04:53AM -0500, Kevin Sawyer wrote:
 OK, I'm finally on to something.  I'm seeing this in my logs:
 
 warning: trouble opening local/xx/x; will try again later
 warning: trouble opening remote/xx/x; will try again later

(This probably isn't very useful but anyhow...)

On Fridaymorning a system that handles diagnostic messages was being flooded
by thousands of emails coming from another system that had been having a
connectivity problem. The todo queue grew to over 10.000 entries and I was
seeing loads of the above messages as well. Scary.

Another thing I was seeing was that even after the todo queue had been emptied
and with 6000 messages still to be delivered locally, local concurrency kept
sticking around 1-2 out of 10.  When sending an ALRM to qmail-send this number
would temporarily go up to 10 but dwindle to 1 again shortly after.

Unfortunately, it turned out that because of the amount of logging output all
this activity produced, the interesting entries were pushed out of the logs
:-( I have doubled the queue depth since, so maybe next time I'll have some
hard evidence.

The thing that scared me most was that it took qmail over 15 minutes to
process the todo queue. As a result, several time-critical heartbeat messages
from other systems were not delivered in time, triggering (admittedly false)
alerts.

So, I'm really hoping that the new zeroseek technology that qmail 2 supposedly
will be using will address this todo issue.

-- 
Jos Backus  _/ _/_/_/  "Reliability means never
   _/ _/   _/   having to say you're sorry."
  _/ _/_/_/ -- D. J. Bernstein
 _/  _/ _/_/
[EMAIL PROTECTED]  _/_/  _/_/_/  use Std::Disclaimer;



Re: Daemontools?

1999-09-30 Thread Jos Backus

On Thu, Sep 30, 1999 at 11:01:10AM -0400, Dave Sill wrote:
 One downside to 0.61 is that its tai65n timestamps are incompatible
 with qmailanalog.

Just for info: I use the following to make 0.61 work with qmailanalog-0.70:

(
test -f pending  cat pending
(
cd /service/qmail/log/main
for f in @* current
do
  case $f in
*.gz) zcat $f;;
*) cat $f;;
  esac
done
) | tai64n2time \
) | between $YESTERDAY $TODAY | matchup  qmailmatchup.out 5 pending

between is

#!/usr/local/bin/perl

(my $program=$0)=~s%.*/%%;

die "usage: $program from to\n" unless @ARGV = 2;

my $from = shift;
my $to = shift;

while () {
  if (/^(\d+)/) {
print if $from = $1  $1 = $to;
next;
  }
  print;
}

exit 0;

and tai64n2time is

#!/usr/local/bin/perl

while () {
  if (my($s,$t,$rest)=/^\@.(\w{15})(\w{8})(.*)/) {
$s = hex($s);
$t = hex($t); $t =~ s/500$//;
$_ = "$s.$t$rest\n";
  }
} continue {
  print;
}

        exit 0;

-- 
Jos Backus  _/ _/_/_/  "Reliability means never
   _/ _/   _/   having to say you're sorry."
  _/ _/_/_/ -- D. J. Bernstein
 _/  _/ _/_/
[EMAIL PROTECTED]  _/_/  _/_/_/  use Std::Disclaimer;



Re: Recording the envelope-from in Received: line

1999-09-23 Thread Jos Backus

On Wed, Sep 22, 1999 at 03:32:07PM -0400, John R. Levine wrote:
 In article [EMAIL PROTECTED] you write:
 With sendmail and Postfix (or so I've heard) it is possible to record the
 envelope-from address in the Received: line. This is deemed useful by my
 colleagues for tracing mails trough broken e-mail gateways.
 
 qmail puts that in Delivered-To:

Um, that's the effective envelope recipient. I'm looking for the envelop
_sender_. Normally that ends up in the Return-Path: upon final delivery.

-- 
Jos Backus  _/ _/_/_/  "Reliability means never
   _/ _/   _/   having to say you're sorry."
  _/ _/_/_/ -- D. J. Bernstein
 _/  _/ _/_/
[EMAIL PROTECTED]  _/_/  _/_/_/  use Std::Disclaimer;



Re: Recording the envelope-from in Received: line

1999-09-23 Thread Jos Backus

On Wed, Sep 22, 1999 at 11:30:09AM +0200, Andre Oppermann wrote:
  Note the envelope-from comment.
  Is there any way to achieve the same effect with qmail?
 
 Yes, that patch is in qmail-ldap's qmail-smtpd.c. It's on www.nrg4u.com.
 But it would only record the first rcpt-to to avoid making bcc public.

Um, I'm looking for the envelope _sender_...

-- 
Jos Backus  _/ _/_/_/  "Reliability means never
   _/ _/   _/   having to say you're sorry."
  _/ _/_/_/ -- D. J. Bernstein
 _/  _/ _/_/
[EMAIL PROTECTED]  _/_/  _/_/_/  use Std::Disclaimer;



Re: Recording the envelope-from in Received: line

1999-09-23 Thread Jos Backus

On Thu, Sep 23, 1999 at 11:41:30AM +0200, Andre Oppermann wrote:
 Well, then have a look at the header of this email...
 
 In my first answer it was:
 
 Received: from unknown (HELO pipeline.ch) ([195.134.128.41])
   (envelope-sender [EMAIL PROTECTED])
   by mailtoaster1.pipeline.ch (qmail-ldap-1.03) with SMTP
   for [EMAIL PROTECTED]; 22 Sep 1999 09:29:01 -

Cool! I didn't look at the header before, sorry.

Now it's of course a matter of patches being politically acceptable here...

Thanks,
-- 
Jos Backus  _/ _/_/_/  "Reliability means never
   _/ _/   _/   having to say you're sorry."
  _/ _/_/_/ -- D. J. Bernstein
 _/  _/ _/_/
[EMAIL PROTECTED]  _/_/  _/_/_/  use Std::Disclaimer;



Recording the envelope-from in Received: line

1999-09-21 Thread Jos Backus

With sendmail and Postfix (or so I've heard) it is possible to record the
envelope-from address in the Received: line. This is deemed useful by my
colleagues for tracing mails trough broken e-mail gateways.

For example, consider the following line:

Received: from dfw7-1.relay.mail.uu.net (localhost.origin-it.com [127.0.0.1])
  by gw-nl1.origin-it.com with ESMTP id XAA04842
  for [EMAIL PROTECTED]; Tue, 21 Sep 1999 23:09:42 +0200
  (MEST)
  (envelope-from [EMAIL PROTECTED])

Note the envelope-from comment.
Is there any way to achieve the same effect with qmail?

[Side note: I'm asking because we are currently reevaluating our use of
sendmail. Postfix is a strong contender;  Wietse Venema is a personal friend
of a couple of my colleagues.]

Thanks,
-- 
Jos Backus  _/ _/_/_/  "Reliability means never
   _/ _/   _/   having to say you're sorry."
  _/ _/_/_/ -- D. J. Bernstein
 _/  _/ _/_/
[EMAIL PROTECTED]  _/_/  _/_/_/  use Std::Disclaimer;



Re: Potential hole?

1999-09-08 Thread Jos Backus

What about Dan's suggestion?

http://www.ornl.gov/its/archives/mailing-lists/qmail/1999/03/msg00918.html

-- 
Jos Backus  _/ _/_/_/  "Reliability means never
   _/ _/   _/   having to say you're sorry."
  _/ _/_/_/ -- D. J. Bernstein
 _/  _/ _/_/
[EMAIL PROTECTED]  _/_/  _/_/_/  use Std::Disclaimer;



Re: Squashing 20,000 rumors...

1999-08-24 Thread Jos Backus

On Tue, Aug 24, 1999 at 12:51:47PM -, Martin Ouwehand wrote:
 Which makes me wonder: why aren't the todo and intd trees hashed like mess,
 info, remote and local ?

From what I have heard, Dan's zeroseek technology, scheduled for incorporation
in qmail 2.0, is supposed to address this problem in a generic fashion.


-- 
Jos Backus  _/ _/_/_/  "Reliability means never
   _/ _/   _/   having to say you're sorry."
  _/ _/_/_/ -- D. J. Bernstein
 _/  _/ _/_/
[EMAIL PROTECTED]  _/_/  _/_/_/  use Std::Disclaimer;



Re: queue modification

1999-08-10 Thread Jos Backus

On Tue, Aug 10, 1999 at 09:22:03AM -0400, David Harris wrote:
 I've got a queue full of messages to an SMTP server that is dead. I don't want
 them all to be bounced, but rather, I want to have these messages sent to
 another address and thus SMTP server than they are destined. Is there any way
 to muck with the queue to implement this? I don't mind taking down qmail-send
 for a bit to change things.

Use an smtproutes entry perhaps, and SIGALRM qmail-send?

dead.host:[my.ip.add.ress]

?

-- 
Jos Backus  _/ _/_/_/  "Reliability means never
   _/ _/   _/   having to say you're sorry."
  _/ _/_/_/ -- D. J. Bernstein
 _/  _/ _/_/
[EMAIL PROTECTED]  _/_/  _/_/_/  use Std::Disclaimer;



Re: Compile error with AIX 3.2.5

1999-07-14 Thread Jos Backus

On Wed, Jul 14, 1999 at 12:58:27PM +1100, Brian Salter-Duke wrote:
 AIX 3.2.5 doesn't have fchdir(2).
 
 Try replacing
 
  if (fchdir(fdsourcedir) == -1)
 
 with
   if (chdir(".") == -1)

Looks like my (broken) suggestion a few years back (mine was a 3.2.4 system).

Please try the following patch and let me know whether it works for you.

# diff -u install.c.orig install.c
--- install.c.orig  Wed Jul 14 11:02:55 1999
+++ install.c   Wed Jul 14 11:08:15 1999
@@ -1,3 +1,5 @@
+#include sys/param.h
+
 #include "substdio.h"
 #include "strerr.h"
 #include "error.h"
@@ -10,6 +12,7 @@
 #define FATAL "install: fatal: "

 int fdsourcedir = -1;
+char sourcedir[MAXPATHLEN+1];

 void h(home,uid,gid,mode)
 char *home;
@@ -78,7 +81,7 @@
   int fdin;
   int fdout;

-  if (fchdir(fdsourcedir) == -1)
+  if (chdir(sourcedir) == -1)
 strerr_die2sys(111,FATAL,"unable to switch back to source directory: ");

   fdin = open_read(file);
@@ -157,6 +160,11 @@
   fdsourcedir = open_read(".");
   if (fdsourcedir == -1)
 strerr_die2sys(111,FATAL,"unable to open current directory: ");
+
+  getcwd(sourcedir,MAXPATHLEN);
+  if (sourcedir == (char *)0)
+strerr_die2sys(111,FATAL,"unable to open current directory: ");
+

   umask(077);
   hier();


Btw, the FreeBSD getcwd(3) manpage says:

 These routines have traditionally been used by programs to save the name
 of a working directory for the purpose of returning to it.  A much faster
 and less error-prone method of accomplishing this is to open the current
 directory (`.') and use the fchdir(2) function to return.

AIX 4.x does have fchdir(2).

Cheers,
-- 
Jos Backus  _/ _/_/_/  "Reliability means never
   _/ _/   _/   having to say you're sorry."
  _/ _/_/_/ -- D. J. Bernstein
 _/  _/ _/_/
[EMAIL PROTECTED]  _/_/  _/_/_/  use Std::Disclaimer;



Re: Completely off topic: supervise cron?

1999-06-09 Thread Jos Backus

On Wed, Jun 09, 1999 at 04:26:11PM +0200, Chris Garrigues wrote:
 Would it work to run cron under supervise?

All cron's I know daemonize themselves (by, say, double-forking and
disassociating themselves from their ctty). Hence: no.

-- 
Jos Backus  _/ _/_/_/  "Reliability means never
   _/ _/   _/   having to say you're sorry."
  _/ _/_/_/ -- D. J. Bernstein
 _/  _/ _/_/
[EMAIL PROTECTED]  _/_/  _/_/_/  use Std::Disclaimer;



Re: Is qmail's log method inefficient?

1999-05-24 Thread Jos Backus

On Sun, May 23, 1999 at 04:45:26PM +0200, Balazs Nagy wrote:
 Oh, I'm sorry.  It doesn't work if I stopped fifo and wanted to use errorsto
 again ;)

errorsto will block when there's no reader on the other side of the fifo (if
that's what you mean ;)

-- 
Jos Backus  _/ _/_/_/  "Reliability means never
   _/ _/   _/   having to say you're sorry."
  _/ _/_/_/ -- D. J. Bernstein
 _/  _/ _/_/
[EMAIL PROTECTED]  _/_/  _/_/_/  use Std::Disclaimer;



Re: Is qmail's log method inefficient?

1999-05-24 Thread Jos Backus

On Sat, May 22, 1999 at 08:53:42PM +0200, Balazs Nagy wrote:
 I didn't try it out on other platforms (UnixWare 7.1 will be done), but on
 Linux errorsto didn't work after fifo generated the named pipe.  Apparently
 because of waiting for the fifo process to poll out the log info.

jos:/tmp% uname -a
FreeBSD jos.bugworks.com 4.0-CURRENT FreeBSD 4.0-CURRENT #3: Sat May 22
22:15:50 CEST 1999 [EMAIL PROTECTED]:/usr/src/sys/compile/JOS  i386
jos:/tmp% fifo fifo | cat -n 
[1] 539 540
jos:/tmp% errorsto fifo sh -c 'date 12'
 1  Sun May 23 14:32:32 CEST 1999
jos:/tmp% errorsto fifo sh -c 'date 12'
 2  Sun May 23 14:32:34 CEST 1999
jos:/tmp% 

Works fine here...

-- 
Jos Backus  _/ _/_/_/  "Reliability means never
   _/ _/   _/   having to say you're sorry."
  _/ _/_/_/ -- D. J. Bernstein
 _/  _/ _/_/
[EMAIL PROTECTED]  _/_/  _/_/_/  use Std::Disclaimer;



Re: Is qmail's log method inefficient?

1999-05-20 Thread Jos Backus

On Thu, May 20, 1999 at 07:53:48AM +0300, Anand Buddhdev wrote:
 errorsto is supposed to write to a file. splogger is not a file. I don't
 think the above will work.

fifo's are your friend.

... errorsto /my/fifo ...

fifo /my/fifo | splogger

-- 
Jos Backus  _/ _/_/_/  "Reliability means never
   _/ _/   _/   having to say you're sorry."
  _/ _/_/_/ -- D. J. Bernstein
 _/  _/ _/_/
[EMAIL PROTECTED]  _/_/  _/_/_/  use Std::Disclaimer;



Re: [Off-topic] Simplicity (Re: What's a DSN?)

1999-05-18 Thread Jos Backus

Maybe you mean

"Non sunt entia multiplicanda praeter necessitatem."
-- Sir William of Ockam

(also known as "Ockam's razor")?

-- 
Jos Backus  _/ _/_/_/  "Reliability means never
   _/ _/   _/   having to say you're sorry."
  _/ _/_/_/ -- D. J. Bernstein
 _/  _/ _/_/
[EMAIL PROTECTED]  _/_/  _/_/_/  use Std::Disclaimer;



Re: [Off-topic] Simplicity (Re: What's a DSN?)

1999-05-18 Thread Jos Backus

Grr. Sorry for the off-topic off-topic post, I should have _read_ Harald's
post before replying...

-- 
Jos Backus  _/ _/_/_/  "Reliability means never
   _/ _/   _/   having to say you're sorry."
  _/ _/_/_/ -- D. J. Bernstein
 _/  _/ _/_/
[EMAIL PROTECTED]  _/_/  _/_/_/  use Std::Disclaimer;



Re: revalias equivalent / perl to read cdbs

1999-03-30 Thread Jos Backus

On Tue, Mar 30, 1999 at 08:23:09PM -, Efgé wrote:
 On a related note, has anyone written perl code to read (maybe write)
 a cdb ?

CDB_File-0.7 (available at a CPAN near you), courtesy of Tim Goodwin is your
friend. Sorry, no link handy.

-- 
Jos Backus  _/  _/_/_/"Reliability means never
   _/  _/   _/ having to say you're sorry."
  _/  _/_/_/   -- D. J. Bernstein
 _/  _/  _/_/
[EMAIL PROTECTED]  _/_/   _/_/_/use Std::Disclaimer;



Re: failure notice (fwd)

1999-03-25 Thread Jos Backus

Hi Greg,

On Tue, Mar 23, 1999 at 06:02:16PM -0500, xs wrote:
 hey all, since it seems that jos' email address is no longer valid, i'd
 figure i'd throw the question out here for an answer.

[EMAIL PROTECTED] works (I changed jobs twice quite a while ago).

 hi there jos, i was taking a look at your toolarge program and i had a few
 questions:
 
 in:
 
 echo '|condredirect $USER-toolarge $HOME/toolarge test'.qmail-default
 echo '|$HOME/toolarge bounce"'.qmail-toolarge
 
 i currently have "./Maildir/" in my .qmail, now would i enter this code
 before or after "./Maildir/",

Before. You would use

$ cat $HOME/.qmail
|condredirect $USER-toolarge $HOME/toolarge test
./Maildir/

and

$ cat $HOME/.qmail-toolarge
|$HOME/toolarge bounce


 or does the fact that it's in .qmail-default make qmail look at it first
 then .qmail?

Nope, you can stick this in whatever .qmail file you wish, as long as you take
care to point ``$USER-toolarge'' to ~user/.qmail-toolarge.

 thanks for the help.

Hope this does.

Cheers,
-- 
Jos Backus  _/  _/_/_/"Reliability means never
   _/  _/   _/ having to say you're sorry."
  _/  _/_/_/   -- D. J. Bernstein
 _/  _/  _/_/
[EMAIL PROTECTED]  _/_/   _/_/_/use Std::Disclaimer;



Re: anyone done this: one mail domain, but users are split over two internal qmail-servers

1999-01-06 Thread Jos Backus

off-topic
You still needed a whopping *64K* to run a complete office productivity suite
though (AppleWorks under ProDOS). Those where the days...
/off-topic

-- 
Jos Backus  _/  _/_/_/"Reliability means never
   _/  _/   _/ having to say you're sorry."
  _/  _/_/_/   -- D. J. Bernstein
 _/  _/  _/_/
[EMAIL PROTECTED]  _/_/   _/_/_/use Std::Disclaimer;



Re: Frivolous forking

1998-12-23 Thread Jos Backus

Russell Nelson writes:
 This is a red herring.  /var/qmail/owners is chmod 700.

owners?

-- 
Jos Backus  _/  _/_/_/"Reliability means never
   _/  _/   _/ having to say you're sorry."
  _/  _/_/_/   -- D. J. Bernstein
 _/  _/  _/_/
[EMAIL PROTECTED]  _/_/   _/_/_/use Std::Disclaimer;