Re: RBL-type header checking

2001-06-08 Thread Ben Beuchler

On Fri, Jun 08, 2001 at 02:02:23AM -0400, Michael T. Babcock wrote:

 I've written a filter in Python that scans for Received: lines and
 checks IP addresses found therein against a configurable list of
 RBL type services.  It is in beta stages and definately under
 development, but it is very functional (doesn't crash for me
 anymore).
 
 http://www.fibrespeed.net/code/spamcheck.tar.gz

404

-- 
Ben Beuchler   There is no spoon.
[EMAIL PROTECTED]-- The Matrix



Re: ORBS - NOT!

2000-11-27 Thread Ben Beuchler

On Mon, Nov 27, 2000 at 07:01:20PM -0600, Chris Olson wrote:

 OK.  I assumed that all installations of qmail used this.  I'm running a
 Corel Server Version (Debian) Linux box and qmail 1.03 came with the
 distribution.  This is a fresh install and the script has not been
 modified.  The startup script is /etc/init.d/qmail   Here's a copy of
 the startup script for your review.

snip

 supervise /var/lock/qmail-smtpd tcpserver -v -x/etc/tcp.smtp.cdb
 -u$QMAILDUID -g$QMAILDGID 0 25 \
 rblsmtpd -rrelays.orbs.org /var/qmail/bin/qmail-smtpd 21 | setuser

Two options: replace "-rrelays.orbs.org" with "-routputs.orbs.org" or
delete "rblsmtpd -rrelays.orbs.org" from the line, leaving the rest
intact.

The first option would continue to give you the benefit of spam
filtering without blocking the 'manual list' and the second option would
remove RBL filtering entirely.

Ben


-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: ORBS - NOT!

2000-11-27 Thread Ben Beuchler

On Tue, Nov 28, 2000 at 05:42:58AM +0100, Henning Brauer wrote:

 Am Dienstag, 28. November 2000 02:01 schrieb Chris Olson:
 
  rblsmtpd -rrelays.orbs.org /var/qmail/bin/qmail-smtpd 21 | setuser
  qmaill accustamp | \
  setuser qmaill cyclog -s500 -n5 /var/log/qmail/qmail-smtpd 
 
 Sorry Chris,
 
 how braindead are you? Is it really _so_ hard to see where orbs is used here? 
 You should have read a least the documentation before wasting bandwidth and 
 our time.

plonk

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Amazon says the book will be out next month. Russ?

2000-11-26 Thread Ben Beuchler


I know the book topic has been beat to death (something like 575
messages in the archives) but Amazon claims that it will be available
next month.  Nothing at all appears on the O'Reilly site except for the
old "Ask Tim" columns from 1998.

http://www.amazon.com/exec/obidos/ASIN/1565926285/qid=975305593/sr=1-4/102-8514671-6796143

Russ?  John?

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: Courier or qmail

2000-11-21 Thread Ben Beuchler

On Tue, Nov 21, 2000 at 04:39:21PM -0600, Jamin Collins wrote:

 Has anyone on the list used Courier as a complete mail server?  If so,
 how does it compare to qmail?
 
 I started looking at qmail because of the security flaws that other's
 have reported in sendmail.  However, now that I'm looking more into
 qmail, the lack of static licensing concerns me.  I may be wrong, but
 from the looks of it, Courier does most of what qmail does, and
 provides a more standard license with the software.

Mr. Sam's code seems to be pretty solid.  We're using Courier-IMAP
together w/ qmail and vpopmail.  However, I would be a little
uncomfortable using it in a production environment until it has obtained
a little maturity.  There are still bugs being found and squashed fairly
regularly...

qmail, on the other hand, is as rock-solid MTA.

Just my personal opinion.  I don't know enough C to truly evaluate the
code on either one.

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: control files on an NFS share?

2000-11-21 Thread Ben Beuchler

On Tue, Nov 21, 2000 at 05:10:06PM -0700, Sean Reifschneider wrote:

 On Thu, Nov 16, 2000 at 06:04:31PM -0600, Ben Beuchler wrote:
 I am primarily concerned about files like 'rcpthosts'.  They are read on
 every invocation of qmail-smtpd.  Am I going to be looking at
 significant overhead from reading a file like that over NFS?
 
 Not if you turn the NFS caching options up high enough...
 
 I tried to set up /var/qmail/control on an NFS partition at some point,
 and it was failing.  Or was that /etc/tcpcontrol for the CDBs?  I forget
 now...  It was very unhappy though, wouldn't run at all.
 
 Sean

I think I'll leave 'em on local disks and just rsync 'em up...

Sounds like the smart way to go.

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: sending messages from sysadm to users

2000-11-21 Thread Ben Beuchler

On Tue, Nov 21, 2000 at 10:50:03PM -0700, Andy Bradford wrote:

 Thus said David Ryan on Wed, 22 Nov 2000 16:13:43 +1100:
 
  The main difference is that I do not want them to be able to
  reply-to-all. I had used a mailing list but someone did a reply-to-all
  and caused all sorts of trouble.
 
 Use ezmlm to setup a mailing list and then make the list moderated so 
 only you can post to the list.  Then, even if they do a reply-to-all it 
 will only be approved by you (or bounced back if you don't want to 
 accept any posts).  You could probably concoct your own solution using 
 .qmail files, however, I think ezmlm would be easier. :-)

Or borrow a page from the vpopbull program (included as part of
vpopmail) and devise a script that hardlinks copies of the message into
each users Maildir.  You *are* using Maildirs, right?

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: Best IMAP or Maildir ??

2000-11-20 Thread Ben Beuchler

On Tue, Nov 21, 2000 at 04:46:59PM +, Dennis Kavadas wrote:

 Just wanted to know, from users experience, the best/suggested 
 IMAP server to use with QMail, I need it to be bullet proof (what else 
 :))

I'm very happy with Courier-IMAP.

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: MX record not updating

2000-11-17 Thread Ben Beuchler

On Fri, Nov 17, 2000 at 01:07:23PM -0500, Andy Abshagen wrote:

 Well like I said all other mail is going to the new server.  It is
 just mail from the list itself.  In fact your mail sent directly to me
 was received on the new server not the old.  So I was kinda thinking
 that the list server is caching the dns information or something.  Not
 really sure though.

Well, since DJB wrote dnscache specifically for mail servers (at least
initially) it would surprise me greatly to learn he was NOT cacheing DNS
info on the list server.

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



control files on an NFS share?

2000-11-16 Thread Ben Beuchler

Our one qmail/vpopmail server is about to become a node in a load
balanced pool of mail servers.  I plan to mount the queue via NFS (I am
now, in fact) but am wondering about the control files.  It seems that
at least SOME of them should be safe to share over NFS.  Any thoughts or
recommendations?

Thanks,
Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: control files on an NFS share?

2000-11-16 Thread Ben Beuchler

On Thu, Nov 16, 2000 at 02:49:24PM -0800, [EMAIL PROTECTED] wrote:

 On Thu, Nov 16, 2000 at 05:40:27PM -0600, Ben Beuchler wrote:
  Our one qmail/vpopmail server is about to become a node in a load
  balanced pool of mail servers.  I plan to mount the queue via NFS (I am
  now, in fact) but am wondering about the control files.  It seems that
 
 Ouch. You will, at some stage, lose mail this way. Is it actually working?

I mis-spoke.  The queue is, of course, local.  The spool is on the NFS
share.  I slipped into "boss speak" there for a second.  My boss for
some reason persists in referring to the spool as the queue...

  at least SOME of them should be safe to share over NFS.  Any thoughts or
  recommendations?
 
 Anything but queue is probably ok.

I am primarily concerned about files like 'rcpthosts'.  They are read on
every invocation of qmail-smtpd.  Am I going to be looking at
significant overhead from reading a file like that over NFS?

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: No local deliveries

2000-11-13 Thread Ben Beuchler

On Mon, Nov 13, 2000 at 10:59:58AM -0600, Chris Olson wrote:

 two days trying to diagnose the problem, but so far no luck.  qmail will
 accept mail from remote servers and from local clients that is destined
 for a local mailbox, but it never gets delivered to the local mailbox. 
 It appears to end up in the queue and it stays there.  I'm using the

What Do The Logs Say? (TM)

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: no ESMTP prompt after some messages

2000-11-13 Thread Ben Beuchler

On Mon, Nov 13, 2000 at 09:07:07PM +0100, Davide Giunchi wrote:

 if i do a "telnet server smtp"  i get the "escape caracter is..." line and
 after that nothing, this continue
 until i reboot the server. I get the following error in another qmail
 server 
 
 Here it's my startup line:
 ---
  csh -cf '/var/qmail/rc '
   QMAILUID=`id -u qmaild` 
   NOFILESGID=`id -g qmaild`
   /usr/local/bin/tcpserver -H -R -x /etc/tcp.smtp.cdb -c100 -u$QMAILUID
 -g$NOFIL
 ESGID 0 smtp /var/qmail/bin/qmail-smtpd   /dev/null 2/dev/null

Is it possible that you have hit your concurrency limit?  If so, that's
exactly what happens:  It accepts the connection but will not launch the
qmail-smtpd process until a session becomes available.

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: qmail 1.04

2000-11-10 Thread Ben Beuchler

On Fri, Nov 10, 2000 at 12:41:20AM -0500, Russell Nelson wrote:

 Create a virtualdomain (say, example.com:example), and create a -owner
 file (say, ~example/.qmail-foo-owner).  Send email to [EMAIL PROTECTED]
 The envelope sender gets set to [EMAIL PROTECTED]  If
 that mail bounces, its delivery is controlled by
 ~example/.qmail-example-foo-owner, not ~example/.qmail-foo-owner as
 you might expect.  Oops.

That *is* an interesting situation.

Speaking of qmail updates, have there been any grumblings from DJB in
the last decade or so about actually releasing a new version?

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: VERP and Lotus

2000-11-09 Thread Ben Beuchler

On Thu, Nov 09, 2000 at 10:41:21AM +0100, Markus Stumpf wrote:

 On Wed, Nov 08, 2000 at 04:46:29PM -0800, Ben Beuchler wrote:
  Connected to scooby.helpsystems.com.
  Escape character is '^]'.
  220 SMTP service ready
 
 This doesn't look like a Lotus Mailserver.

Based on what some others have posted, I think you're right.
 
  helo doofus
  250 Requested mail action okay, completed
  mail from:[EMAIL PROTECTED]
  553 Requested action not taken: mailbox name not allowed
 
 I'd say that is a completely screwed up smtp server or maybe a firewall.

I'll ask 'em about firewalls...

 I usually simply ignore these errors, because I am really tired to try
 to work around the 1000th broken mailserver out there written by ppl or a
 company or maintained by someone who doesn't have a clue.
 They don't pay someone who knows what he's doing, so why should I invest
 time (and thus my company's money) just to get mail through their
 broken system.
 I'd also do myself a favour and save some bits of bandwidth and cpu cycles
 and block those hosts/addresses (tcpcontrol and/or badmailfrom).

The problem is that we're an ISP.  The people who bought the mailing
list are the ones behind the broken box, whatever it may be.  They
either get their messages or take their business elsewhere.

I'll pursue the firewall angle today.

Thanks...

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: VERP and Lotus

2000-11-09 Thread Ben Beuchler

On Thu, Nov 09, 2000 at 03:16:31PM +1100, Brett Randall wrote:

 On Wed, 8 Nov 2000, [EMAIL PROTECTED] wrote:
 
  [insyte@blah insyte]$ telnet scooby.helpsystems.com 25
  Trying 209.32.71.125...
  Connected to scooby.helpsystems.com.
  Escape character is '^]'.
  220 SMTP service ready
  helo doofus
  250 Requested mail action okay, completed
  mail from:[EMAIL PROTECTED]
  553 Requested action not taken: mailbox name not allowed
  quit
  221 SMTP server closing transmission channel
  Connection closed by foreign host.
  [insyte@blah insyte]$
 
 220 notes.crazy.com ESMTP Service (Lotus Domino Release 5.0.4) ready
 at Thu, 9 Nov 2000 15:12:27 +1100
 helo doofus
 250 notes.crazy.com Hello doofus ([10.0.0.1]), pleased to meet you
 mail from:[EMAIL PROTECTED]
 250 [EMAIL PROTECTED] Sender OK
 
 No probs here.

My session and yours don't look at all similar.  Odd.

Has anyone seen a session similar to mine before?  I have no idea what I
was talking to, as it certainly doesn't appear to have been a Lotus
Domino box as I was informed.

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: VERP and Lotus

2000-11-09 Thread Ben Beuchler

On Wed, Nov 08, 2000 at 11:07:00PM -0800, Ben Beuchler wrote:

 220 SMTP service ready
 helo doofus
 250 Requested mail action okay, completed
 mail from:[EMAIL PROTECTED]
 553 Requested action not taken: mailbox name not allowed
 quit
 221 SMTP server closing transmission channel

Just in case anyone encounters a similar problem, it was traced back to
a "Watchguard" firewall that was prohibiting the "=" in SMTP
transactions.  Turned that off and it works like a charm.  

Thanks for all your help!

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: Need to delete bulk mail from the Q

2000-11-09 Thread Ben Beuchler

On Thu, Nov 09, 2000 at 11:38:09AM +0700, Dian Pamilih wrote:

  My question is, can I delete all these messages from the queue in one shot?
  and if so, how would I go about
  doing so.
 
 get this utility: http://www.redwoodsoft.com/~dru/programs/mailRemove.py
 it's very handy to remove some unwanted queue.

Very cool!  I'd been planning to implement just that functionality
myself sometime in the next couple of days.  You just saved me some
work!

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: qmail 1.04

2000-11-09 Thread Ben Beuchler

On Thu, Nov 09, 2000 at 11:45:44AM -0500, Russell Nelson wrote:

 argue that it needs a qmail-conf program just like djbdns has.  You

Granted.

 could also argue that virtualdomains and -owner files don't work

What's wrong with 'virtualdomains'?

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: Courier

2000-11-09 Thread Ben Beuchler

On Thu, Nov 09, 2000 at 04:18:29PM -0500, Dave Sill wrote:

 It borrows heavily from qmail (maildirs, extension addresses,
 modularity, delivery instructions) but adds a lot (DSN, filtering,
 IMAP, POP, webmail) and "fixes" things Sam thought qmail did wrong
 (single-RCPT delivery, always-send-8, licensing, no bouncing of local
 recipients during SMTP dialogue, not actively maintained).
 
 I've grabbed it, but I haven't installed it anywhere yet. I don't have 
 a lot of experience with Sam's code: procmail has always been good
 enough for me, and courier-imap was too functionally limited for the
 one IMAP installation I set up. The Courier web pages don't say much
 about security other than there are four setuid root modules.

I use Courier-IMAP alongside vpopmail (Courier-IMAP will authenticate
against vpop) and maildrop.  Both have impressed me with their stability
and logical design.  I have not used the complete MTA, though.

What did you find limited about the functionality of Courier-IMAP?

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: Possible bug in qmailanalog matchup program?

2000-11-08 Thread Ben Beuchler

On Wed, Nov 08, 2000 at 12:21:16PM -0500, James Morgenstein wrote:

 I am attempting to process about 500 MB of qmail log files but continue to
 run into the following bug when running the matchup program:
 
   matchup: fatal: unable to write fd 5: file descriptor not open

man matchup

It's not a bug.

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



VERP and Lotus

2000-11-08 Thread Ben Beuchler

Good afternoon, y'all...

Has anyone exprienced problems with VERP and recipients behind Lotus
Domino?  I've been having some problems with a few of my ezmlm
recipients that are using Lotus Domino as their mail server.  It appears
that Domino flagrantly flies in the face of RFC822 by rejecting any
"mail from:blah" containing an equals sign.  Ex:

[insyte@blah insyte]$ telnet scooby.helpsystems.com 25
Trying 209.32.71.125...
Connected to scooby.helpsystems.com.
Escape character is '^]'.
220 SMTP service ready
helo doofus
250 Requested mail action okay, completed
mail from:[EMAIL PROTECTED]
553 Requested action not taken: mailbox name not allowed
quit
221 SMTP server closing transmission channel
Connection closed by foreign host.
[insyte@blah insyte]$ 

Anyone else seen this?  Does anyone have any spiffy ideas for working
around this?  Perhaps some way to rewrite the headers to a few specific
users to eliminate the VERP?

I tried posting this to the ezmlm list, but I haven't seen any traffic
there for weeks...

Thanks,
Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



VERP and Lotus

2000-11-08 Thread Ben Beuchler

Good afternoon, y'all...

Has anyone exprienced problems with VERP and recipients behind Lotus
Domino?  I've been having some problems with a few of my ezmlm
recipients that are using Lotus Domino as their mail server.  It appears
that Domino flagrantly flies in the face of RFC822 by rejecting any
"mail from:blah" containing an equals sign.  Ex:

[insyte@blah insyte]$ telnet scooby.helpsystems.com 25
Trying 209.32.71.125...
Connected to scooby.helpsystems.com.
Escape character is '^]'.
220 SMTP service ready
helo doofus
250 Requested mail action okay, completed
mail from:[EMAIL PROTECTED]
553 Requested action not taken: mailbox name not allowed
quit
221 SMTP server closing transmission channel
Connection closed by foreign host.
[insyte@blah insyte]$

Anyone else seen this?  Does anyone have any spiffy ideas for working
around this?  Perhaps some way to rewrite the headers to a few specific
users to eliminate the VERP?

I tried posting this to the ezmlm list, but I haven't seen any traffic
there for weeks...

Thanks,
Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



vacation questions

2000-10-05 Thread Ben Beuchler

I have written my own vacation program to fit in with some unusual
configs we have here.  My question is this:  What other considerations
in designing a good vacation program have I not thought of?  I know
there are all sorts of ways a poorly implemented vacation program can
cause all sorts of nasty loops.  

So far the only feature I have in place to prevent that is that it keeps
a flat text file containing the addresses to which it has already sent
it's vacation message.  Subsequent messages from the same sender are
safely stored in the Maildir but not replied to.

Any thoughts/recommendations?  Should I be looking for any special
headers or similar thoughts?

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



svscan weirdness...

2000-10-05 Thread Ben Beuchler

I am using svscan to start qmail and dnscache.  I use a similar config
on our mail server and it works fine.  But on my Linux workstation, when
I reboot I get screens full of errors.  I do a 'killall svscan
supervise' and the errors stop.  Then I start up svscan from the command
line using exactly the same syntax as in the rc.local file (I just type
"svscan /service ") and it works perfectly.  Here's the actual errors
and configs:

--
svscan: warning: unable to start supervise dnscache: file does not exist
svscan: warning: unable to start supervise dnscache/log: file does not exist
svscan: warning: unable to start supervise qmail-smtpd: file does not exist
svscan: warning: unable to start supervise qmail-smtpd/log: file does not exist
svscan: warning: unable to start supervise qmail-send/log: file does not exist
svscan: warning: unable to start supervise qmail-send: file does not exist
--

svscan is started like this, from /etc/rc.d/rc.local:

--
#!/bin/sh

/usr/local/bin/svscan /service 
--

And /service looks like this:

petra:~$ ls -ld /service/
drwxr-xr-x   2 root root 4096 Jul 21 18:58 /service/
petra:~$ ls -l /service/ 
total 0
lrwxrwxrwx   1 root root   14 Jun 19 15:57 dnscache - /etc/dnscache//
lrwxrwxrwx   1 root root   32 Jul 21 18:28 qmail-send - 
/var/qmail/supervise/qmail-send//
lrwxrwxrwx   1 root root   32 Jul 21 17:51 qmail-smtpd - 
/var/qmail/supervise/qmail-smtpd/

And the same contents of each of the relevant directories:

petra:~$ ls -l /etc/dnscache/
total 20
drwxr-sr-x   4 root root 4096 Jun 19 15:57 log/
drwxr-sr-x   5 root root 4096 Sep  2 14:30 root/
-rwxr-xr-x   1 root root  236 Jun 19 15:56 run*
-rw---   1 root root  128 Jun 19 15:56 seed
drwx--S---   3 root root 4096 Oct  5 10:57 supervise/
petra:~$ cat /etc/dnscache/run 
#!/bin/sh
exec 21
exec seed
ROOT=/etc/dnscache/root; export ROOT
IP=127.0.0.1; export IP
IPSEND=0.0.0.0; export IPSEND
CACHESIZE=100; export CACHESIZE
exec envuidgid dnscache \
softlimit -o250 -d300 \
/usr/local/bin/dnscache

petra:~$ ls -l /var/qmail/supervise/qmail-send/
total 12
drwxr-xr-x   3 root root 4096 Jul 21 18:02 log/
-rwxr-xr-x   1 root root   29 Jul 21 17:35 run*
drwx--   2 root root 4096 Oct  5 10:57 supervise/
petra:~$ cat /var/qmail/supervise/qmail-send/run 
#!/bin/sh
exec /var/qmail/rc
petra:~$ cat /var/qmail/rc
#!/bin/sh

exec /usr/bin/env - PATH="/var/qmail/bin:$PATH" qmail-start ./Maildir/

petra:~$ ls -l /var/qmail/supervise/qmail-smtpd/
total 12
drwxr-xr-x   3 root root 4096 Jul 21 18:22 log/
-rwxr-xr-x   1 root root  125 Jul 21 18:56 run*
drwx--   2 root root 4096 Oct  5 10:57 supervise/
petra:~$ cat /var/qmail/supervise/qmail-smtpd/run 
#!/bin/sh
exec /usr/local/bin/tcpserver -R -q -p -x /etc/tcp.smtp.cdb -u1002 -g102 0 smtp \
/var/qmail/bin/qmail-smtpd 21


Anyone see any red flags here?

Thanks,
Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: vacation questions

2000-10-05 Thread Ben Beuchler

On Thu, Oct 05, 2000 at 12:21:59PM -0400, Peter Samuel wrote:

 As the author of the qmail-vacation program, let me give you a run
 down of features that have been requested by me and others (and most
 of them are not implemented yet).

Outstanding!  Thank you.  I could not have asked for a more complete
response.

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: svscan weirdness...

2000-10-05 Thread Ben Beuchler

On Thu, Oct 05, 2000 at 12:57:47PM -0400, Dave Sill wrote:

 svscan: warning: unable to start supervise dnscache: file does not exist
 
 Déjà vu.

Yeah... I saw the other post merest moments after I sent mine.
 
 Add:
 
   PATH=$PATH:/usr/local/bin
   export PATH
 
 before running svscan.

D'oh... I knew it had to be something simple.

Thanks!

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: IMAP support

2000-10-05 Thread Ben Beuchler

On Thu, Oct 05, 2000 at 07:00:31PM -0400, Casey Allen Shobe wrote:

 I've been having the worst luck getting an imap server working.  I had 
 whatever came with my distro (I think the washington one), but when I'd try 
 to get a list of folders it (after an hour or so) showed me every folder on 
 my system.  Not what I want.
 
 I tried cyrus, but can't seem to get it working with qmail, and I want my 
 users to each have a home directory and be in passwd anyways.
 
 Any advice?  What IMAP servers do you guys use?  How do you set IMAP up?

Courier is my favorite.

http://www.inter7.com/courierimap/

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)

2000-10-03 Thread Ben Beuchler

On Tue, Oct 03, 2000 at 10:33:21AM -0400, Jan Knepper wrote:

 Right now I seem to run into something else that I do not quite
 understand...
 When sending messages to pobox.njn.org qmail reports
 "Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)/" I
 first thought that the host might be down or something, but it would
 have to be down for more than 12 hours right now.
 
 Any idea's?

Yeah.  Try making the connection:

petra:~$ dnsmx pobox.njn.org
0 pobox.njn.org
petra:~$ telnet pobx.njn.org 25
telnet pobox.njn.org 25
Trying 199.20.127.7...


And it times out.  So the host is down.

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: Qmail not sending to Certain Servers

2000-10-03 Thread Ben Beuchler

On Tue, Oct 03, 2000 at 04:19:03PM -0500, Kathleen Farber wrote:

 Thank you everyone for your quick responses.  For once I'm glad to
 know it's not me.  Any where I could do some reading on how to read
 qmail logs? Maybe then I'd understand some of this a little more when
 issues arise.

As other have recommended, read the qmail-log man page.  Then get
yourself a copy of qmLogsort from the main qmail page.  It digs through
your logs and sorts them by message, so you don't have to dig through
50 log entries to find the five that relate to the message you're
tracking.  Makes the logs much easier to read.

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: Qmail not sending to Certain Servers

2000-10-02 Thread Ben Beuchler

On Mon, Oct 02, 2000 at 09:08:46AM -0500, Kathleen Farber wrote:

 There are certain servers that any domain on my server can not send
 too.  It just never is recieved. No messages bounce or anything.  Any
 idea's or thoughts what might be causing this?

All together now:

What Do The Logs Say?(TM)

Really, the logs are your friends.  Every message that your server has
attempted to deliver will have several log entries, one of which will
explain why the message has not been delivered.  It will most likely
indicate that the message was deferred for some reason.  But the logs
are very verbose about those reasons and will describe exactly why the
message was not delivered.

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: Qmail not sending to Certain Servers

2000-10-02 Thread Ben Beuchler

On Mon, Oct 02, 2000 at 07:22:44PM -0500, Kathleen Farber wrote:

 The logs say absolutely nothing.  that's the disturbing part.  The
 email sends but never is recieved or bounced or nothing.  Just amazes
 me theres nothing reporting anywhere.

OK...  If you could please post actual log entries, that would be
appreciated.  It eliminates a lot of questions.  However, assuming we
see nothing unusual when you do get around to posting the relevant log
sections, if the last entry for a particular message was "timestamp
delivery somenumber: success: message from remote host" then the
message was delivered to the remote host and any problems after that are
problems on their end.  You won't see that "success" message unless the
remote server has acknowledged receipt of the message.

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: Opening a Port

2000-09-28 Thread Ben Beuchler

On Thu, Sep 28, 2000 at 02:26:40PM -0300, Mark Walsh wrote:

 I need to open port 443 on my Linux Firewall.  How do I do that?

Ask a Linux list.  This is the qmail list.

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: Unable to read controls

2000-09-27 Thread Ben Beuchler

On Wed, Sep 27, 2000 at 10:41:03AM -0600, Bruce Guenter wrote:

  There's your problem.  Nobody can list the contents of /var/qmail/control,
  because the execute bits aren't set.  Do a `chmod 755 /var/qmail/control`
  and everything should work.
 
 Just to be pedantic, The 'r' bit is for listing the directory, but the
 'x' bit controls access to the files in the directory.  So, qmail would
 have been able to list the files but not open them.

petra:~$ ls -ld testing/
dr--r--r--   2 insyte   users4096 Sep 27 12:18 testing/
petra:~$ ls testing/
/bin/ls: testing/MegabitServiceCenter: Permission denied
petra:~$ chmod 555 testing/
petra:~$ ls -ld testing/
dr-xr-xr-x   2 insyte   users4096 Sep 27 12:18 testing/
petra:~$ ls -l testing/
total 4
-rw-r--r--   1 insyte   users  32 Sep 27 12:18 StupidTestFile

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: daemontools

2000-09-26 Thread Ben Beuchler

Today, Dave Kitabjian wrote:
 
 Do my eyes deceive me or are you really finally printing and selling
 one
 of the qmail tshirts?
 
   http://www.cafepress.com/qmail0a/
  
Yeah.  I signed up at the cafepress site.
  
All four variations are there:
  
   http://www.cafepress.com/qmail0a/
   http://www.cafepress.com/qmail0d/
   http://www.cafepress.com/qmail1a/
   http://www.cafepress.com/qmail1d/
  
There are links to all those "storefronts" from my qmail tshirts
page:  http://vern.com/tshirts/qmail/
  
I haven't even ordered one myself.  Their tshirt selection leaves
something to be desired.  The only have one color, white, and they
don't have anything over XL.
  
But the mugs and mouse pads are cool...
  
Vern

On Tue, Sep 26, 2000 at 09:04:06PM +0200, Alexander Jernejcic wrote:

  I recommend whoever it is that is doing the lovely qmail shirts (I'll be
  ordering mine shortly!) should do one that says "What Do The Logs
  Say?(tm)".  I know I would buy one...
  
 
 where to order, where - please ...
 
 ==
 Alexander Jernejcic  
 email:[EMAIL PROTECTED]
 
 begin LOVE-LETTER-UND-NIX-DAZUGELERNT.txt.vbs
 I am a Signature, not a Virus!
 end
 
 ======
 
 

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: daemontools

2000-09-26 Thread Ben Beuchler

On Tue, Sep 26, 2000 at 12:25:37PM -0700, Matt Brown wrote:

 Ben Beuchler [EMAIL PROTECTED] writes:
 
  I haven't even ordered one myself.  Their tshirt selection leaves
  something to be desired.  The only have one color, white, and they
  don't have anything over XL.
 
 Eh?  The page I'm looking at quotes 2x, 3x and 4x sizes for $3 more.

I just pasted in an old email from the guy who designed them.  That was
many moons ago...

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: daemontools

2000-09-26 Thread Ben Beuchler

On Tue, Sep 26, 2000 at 02:21:39PM -0700, [EMAIL PROTECTED] wrote:

  Thoughts?  Objections?  Contentions?
  
 The LWQ URL?

He mentioned that.  http://lwq.w3.to  redirects to the current home of
LWQ.

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: daemontools

2000-09-25 Thread Ben Beuchler

On Mon, Sep 25, 2000 at 03:49:14PM -0600, Stephen Bosch wrote:

 *sounds familiar*
 
 Okay... my turn!
 
 All together now...
 
 "What do the logs say?"TM
 
 (svscan ails silently... =) )

I recommend whoever it is that is doing the lovely qmail shirts (I'll be
ordering mine shortly!) should do one that says "What Do The Logs
Say?(tm)".  I know I would buy one...

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: No Transport Provider Available

2000-09-22 Thread Ben Beuchler

It ain't qmail.

http://support.microsoft.com/support/kb/articles/Q197/4/17.ASP?LN=EN-USSD=gnFR=0

On Fri, Sep 22, 2000 at 05:55:14PM -0300, Mark Walsh wrote:

 I had someone put in a Linux Firewall with QMail as the Mail server.
 Lately, I had lost their support and I am at a bit of a loss.  The
 problem that I have is that most of my company is on Microsoft
 Outlook.  Most or all of the employees are experiencing difficulties
 in sending EMail.  They attempt to send email, either locally or
 remotely and get the message
 
 There is No Transport Provider Available.
 
 Sometimes I can send mail, sometimes I can't.  I had removed The
 Personal folders and accounts from individual computers and for a
 time it seemed to repair it.  But now everyone is doing it?  I
 starting to wonder if it is actually the QMAil.  Where Do I start
 looking there?
 
 Mark Walsh

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: Re: Users all of a sudden have to download all email from server???

2000-09-21 Thread Ben Beuchler

On Thu, Jul 13, 2000 at 03:47:30PM +0200, Anton Pirnat wrote:

 had one customer with a smiliar thing.. no matter what mail servers
 were using, it seems to be a Outlook related problem. As far we could
 see this behaviour only causes if someone tries not to delete the
 mails after reading them through Outlook. So sometimes Outlook gets
 only the new one..  or even all again in one bunch. This never
 happened with other mail clients. 

I narrowed it down to using LAST (deprecated) vs. UIDL (preferred).  I
belive Outlook tries to use LAST which qmail-pop3d does not support.

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: pop3 running as...

2000-09-20 Thread Ben Beuchler

On Wed, Sep 20, 2000 at 05:14:54PM -0400, andy wrote:

 As per the "humorous" thread, none of you are obliged to answer, and
 if I in any way come off as and asshole or idiot feel free to harass
 me. ( Oh shit! that wasn't an asshole thing to say was it? )
 
Hmmm...  No comment.  ;-)
  
 Is qmail-popup\qmail-pop3d supposed to run as root?

Aye.  Otherwise it would be unable to spawn kids as the necessary user.

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: tcprules question

2000-09-20 Thread Ben Beuchler

On Wed, Sep 20, 2000 at 06:13:39PM -0500, Brice Ruth wrote:

 This would make sense, wouldn't it?  But, it doesn't work :(
 
 I'm using tcprulescheck with a file that looks like this:
 
 .domain.net:allow,RELAYHOST=" "
 :deny
 
 and the response I get from tcprulescheck with TCPREMOTEHOST set to
 host.domain.net is:
 
 rule :
 deny connection

From the tcprules page on DJB's site:

tcpserver looks for rules with various addresses:

1) $TCPREMOTEINFO@$TCPREMOTEIP, if $TCPREMOTEINFO is set;
2) $TCPREMOTEINFO@=$TCPREMOTEHOST, if $TCPREMOTEINFO is set and
   $TCPREMOTEHOST is set;
3) $TCPREMOTEIP;
4) =$TCPREMOTEHOST, if $TCPREMOTEHOST is set;
5) shorter and shorter prefixes of $TCPREMOTEIP ending with a dot;
6) shorter and shorter suffixes of $TCPREMOTEHOST starting with a dot, 
   preceded by =, if $TCPREMOTEHOST is set;
7) =, if $TCPREMOTEHOST is set; and finally
8) the empty string.

It sounds to me like you want #6.

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: Pointers on qmail + vpopmail?

2000-09-19 Thread Ben Beuchler

On Tue, Sep 19, 2000 at 11:42:53AM -0400, Jonathan J. Smith wrote:

 Anyone willing to spend a little time and a few emails to help clear
 some things up for me?  I appreciate the time.

Sure.  But if you ask your questions actually on the list others with
similar questions will be able to read them...

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



multilog thrashing under svscan

2000-09-18 Thread Ben Beuchler

I'm trying to set up an autoturn implementation we've been using to run
under svscan with all the other spiffy daemontools.  The tcpserver
command that launches maildirserial and all that is running great, but
the log command is continually being restarted by supervise.  I'm quite
confused, as the log/run script is virtually identical to the others I'm
using for qmail-smtpd, qmail-send, etc.

Anyway, here's the svscan directory structure I'm working with, with the
autoturn directory symlinked into /service, with the rest of my svscan
proggies:

--
amazhan [11:53am] # ls -ld /var/qmail/supervise/autoturn
drwx--x--T  4 root  qmail  512 Sep 18 11:39 /var/qmail/supervise/autoturn
 ^
 Sticky bit IS set...

amazhan [11:54am] # ls -lR /var/qmail/supervise/autoturn
total 3
drwxr-xr-x  3 root  qmail  512 Sep 18 11:46 log
-rwxr-xr-x  1 root  qmail  225 Sep 18 11:39 run
drwx--  2 root  qmail  512 Sep 18 11:40 supervise

/var/qmail/supervise/autoturn/log:
total 2
-rw-r--r--  1 root  qmail   91 Sep 18 11:46 run
drwx--  2 root  qmail  512 Sep 18 11:47 supervise

/var/qmail/supervise/autoturn/log/supervise:
total 1
prw---  1 root  qmail   0 Sep 18 11:47 control
-rw---  1 root  qmail   0 Sep 18 11:30 lock
prw---  1 root  qmail   0 Sep 18 11:30 ok
-rw-r--r--  1 root  qmail  18 Sep 18 11:47 status

/var/qmail/supervise/autoturn/supervise:
total 1
prw---  1 root  qmail   0 Sep 18 11:39 control
-rw---  1 root  qmail   0 Sep 18 11:30 lock
prw---  1 root  qmail   0 Sep 18 11:30 ok
-rw-r--r--  1 root  qmail  18 Sep 18 11:40 status
--

And the actual "run" scripts:

--
amazhan [11:55am] # cat /var/qmail/supervise/autoturn/run 
#!/bin/sh
exec /usr/local/bin/tcpserver -l amazhan -H -q -R \
-x /etc/tcprules/tcp.autoturn.cdb -u74 -g1001 0 1338 \
sh -c 'cd /var/qmail/autoturn;maildirsmtp $TCPREMOTEIP autoturn-$TCPREMOTEIP- 
$TCPREMOTEIP AutoTURN' 21

amazhan [11:55am] # cat /var/qmail/supervise/autoturn/log/run 
#!/bin/sh
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t /var/log/autoturn
--

According to the multilog docs, /var/log/autoturn shouldn't even need to
exist, as it will create it if it doesn't.  But after it failed the
first time, I created the directory, owned by qmaill, with perms the
same as the other multilog directories (755).

What am I missing?  

Thanks, 
Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: multilog thrashing under svscan

2000-09-18 Thread Ben Beuchler

On Mon, Sep 18, 2000 at 06:25:42PM +0100, James Raftery wrote:

  /var/qmail/supervise/autoturn/log:
  total 2
  -rw-r--r--  1 root  qmail   91 Sep 18 11:46 run
 [snip]
  What am I missing?  
 
 chmod a+x /var/qmail/supervise/autoturn/log/run  :)

D'oh d'oh d'oh d'oh d'oh d'oh...

bangs head on wall repeatedly

Ouch.

Thanks!

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



RBL... Hmmm...

2000-09-18 Thread Ben Beuchler

/me digs through the rblsmtpd entries in his log after enabling RSS and
DUL...

Hmmm... It seems I could have saved a ton of trouble by just blackholing
all of .jp and .kr!  Heh heh...  Anyone tried that?

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: comparison vmailmgr - inter7

2000-09-15 Thread Ben Beuchler

On Fri, Sep 15, 2000 at 11:20:51AM +0200, Clemens Hermann wrote:

 there are two packages on the net fulfilling my needs - vmailmgr and
 the inter7 suite.  Could one say that one of the two is "better"? So
 fare I use the "Bruce Guenther way" for virtual mailusers but not his
 package (only "natural" qmail) and I am really satisfied.  Now I need
 to choose one of the two tools but I am not sure which would be the
 better choice for my purpose. It would be great if someone could give
 me a hint, I need the following things:

I am a fan of vpopmail by Inter7.
 
 virtual users

Of course.  Single UID/GID

 databases for users and aliases

CDB or MySQL.  Decide at compile time.  I believe you can mix and
match...

 pop access

Of course.

 imap access

Supported natively by Mr. Sam's excellent Courier-IMAP package.  We use
both IMAP and POP3 at the ISP where I work.

 quota support

Yep.

 html-mail-administration

qmailadmin, also by Inter7, is a full-featured admin package for
vpopmail.

 webmail

U...  I think there are three or four that Inter7 recommends and
work with native support for Vpop.  There was one written in house here
before I converted to vpop, so I haven't tried any of the others.
 
For me, another big plus of vpopmail is the outstanding support from
Ken Jones and the rest of the crew at Inter7.  On a couple of occasions
I have reported bugs to the list and had patches within six hours.
There are, of course, very active mailing lists for vpopmail and
qmailadmin.

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: Strange Problem

2000-09-15 Thread Ben Beuchler

On Fri, Sep 15, 2000 at 12:38:15AM -0400, Gadoury wrote:

 Logging is already setup using multilog.  I just haven't figured out how to
 read them.  I downloaded a couple of utilities for reading them but the
 documentation is a bit vague.

The best program for making them clear and easier to understand is
qmLogsort.  Groups the lines by message so you don't have to track a
single message across several pages of log files.
   
  But you've GOT to fix that relay problem.
 
 I am using tcpserver/tcprules and only have a few IPs enabled for relaying
 mail.  From my reading it seems to me that should keep it pretty much
 secure.  I am working on implementing the POP to SMTP scheme.

Ah, but your rcpthosts file is empty, which make qmail default back to
relaying for everyone.  The RELAYCLIENT variable in your tcprules only
serves to tell it to ignore rcpthosts for certain IPs.  Here, I can
prove it:

petra:~$ telnet mail.grayhat.org 25
Trying 210.228.3.165...
Connected to mail.grayhat.org.
Escape character is '^]'.
220 mail.grayhat.org ESMTP
helo doofus
250 mail.grayhat.org
mail from:[EMAIL PROTECTED]
250 ok
rcpt to:[EMAIL PROTECTED]
250 ok
quit
221 mail.grayhat.org
Connection closed by foreign host.
petra:~$ 

Being a non-malicious type, I did not rape and pillage your server.
However, I could have just as easily spammed 500,000 addresses from your
server.  Not a good thing.

Have fun...  And ADD THAT RCPTHOSTS FILE!!!

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: FW: e-mail problems

2000-09-15 Thread Ben Beuchler

First of all, nice to meet you.  I'm the funny looking guy that rides
into the building every morning on a black and white bike with green
tires.

Second, when are they seeing this error?  During a POP login or an SMTP
transaction?  And it appears that the error has been truncated.  Is this
how it appears on their screen or did you just not paste all of it?

Third, assuming this happens during a POP transaction, you would
probably get better support from the vpop list.  There is a subscribe
link a www.inter7.com/vpopmail.

Fourth, are you using POP before SMTP?  It sounds like it's having
difficulty recreating the tcp.smtp.cdb file.  Perhaps a permissions
issue on /home/vpopmail/etc?

Ben

On Fri, Sep 15, 2000 at 11:16:14AM -0500, Christian Nielsen wrote:

 I have been unable to find a fix or any suggestive information for a client
 who is getting the following error message:
 
 I need you to look at the following error message that keeps popping up
 on my screen every few minutes.it looks like the password dialog
 box with this message:
 
 The server responded
 les:fatal:unable to move
 /home/vpopmail/etc/tcp.smtp.tmp to
 
 
 We have several clients using qmail, but only one reporting this error.
 
 Any help would be greatfully received!
 
 THanks,
 Christian
 
 Christian Nielsen
 Systems Administrator
 Electronic Media Group Inc.
 Suite 440
 212 3rd Ave N
 Minneapolis MN 55401
 612-904-6656 x117
 
 

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: config or default ?? Confused

2000-09-14 Thread Ben Beuchler

On Thu, Sep 14, 2000 at 03:07:43PM -0700, Morpheuz wrote:

 the users of my server have to use user@domain as
 username with their passwords when checking their
 mails. I wonder if that is the default config of qmail
 or can be changed ? I'm trying to make it so that they
 just use username and password instead of user@domain
 as username. The previous guy who did it didn't leave
 any docs and I'm relatively new to this. Any help is
 greatly appreciated.
 Thanks

Sounds like you may be using vpopmail as an addon for qmail.  It adds
easy management of multiple virtual domains.

http://www.inter7.com/vpopmail/

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: svscan

2000-09-14 Thread Ben Beuchler

On Thu, Sep 14, 2000 at 11:45:59PM +0200, Jens Georg wrote:

 where to find svscan ?

http://cr.yp.to/daemontools.html

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: qmailanalog compiling problem

2000-09-14 Thread Ben Beuchler

On Thu, Sep 14, 2000 at 06:23:41PM -0500, Stephen Berg wrote:

 /usr/include/bits/errno.h:25: linux/errno.h: No such file or
 directory

I believe errno.h is part of the kernel source tree.  I'm going to guess
that you are using RedHat and did not install the kernel-devel package,
which includes all the kernel header files...

Do that and you should be good to go.

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: Strange Problem

2000-09-14 Thread Ben Beuchler

On Thu, Sep 14, 2000 at 10:51:01PM -0400, Gadoury wrote:

 For some reason qmail-smtpd decided to stop recieving local mail delivered
 from a remote host.  I am able to send mail from the local domain to a
 remote domain (the machine I am sending mail from in both cases is a remote
 machine)

We need to see the actual domain names, along with the full output from
qmail-showctl.  Also "qmail-smtpd decided to stop receiving" is a bit
vague.  What happens?  Are any errors generated during the smtp exchange
or written to the logs?

Thanks,
Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: Strange Problem

2000-09-14 Thread Ben Beuchler

On Thu, Sep 14, 2000 at 11:23:39PM -0400, Gadoury wrote:

 no problem. by decided to stop receiving I meant that it was recieving email
 fine but now it isnt.  The only things I have been making changes to are the
 startup scripts.  Logging is going directly to console for this as I don't
 currently have any programs set up to read the log files.  Any suggestions?

It looks to me like your configuration would work, although it IS a
wide-open relay.  The key here is this (all together now):

What Do the Logs Say? (tm)

The logs are your friends, so I would highly recommend you start doing
some logging.  Whether you use DJB's multilog or splogger doesn't really
matter.  Splogger would probably be easiest to set up.

Anyway, there are so many things that can stop delivery that it would be
silly to attempt any more troubleshooting without any logs.  

But you've GOT to fix that relay problem.  The first time someone
portscans your network you'll be used as a spam relay, which will get
you listed in RSS, ORBS, RBL, etc. and you will find yourself unable to
send mail to most of the internet.

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: question about uninstall

2000-09-13 Thread Ben Beuchler

On Wed, Sep 13, 2000 at 06:02:31PM -0400, shawn p . duffy wrote:

 I was thinking of uninstalling and reinstalling qmail so I could get even more
 familiar with it. If get rid of /var/qmail and edit the boot scripts I should
 be OK right? oh... also the /services dir and all of the qmail users and
 groups...

That should be fine...  Although there really isn't much reason to do
that.  You can install right over the top of an existing install without
any problems.

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: Lots of qmail-queue processes

2000-09-13 Thread Ben Beuchler

On Wed, Sep 13, 2000 at 03:35:09PM -0700, Sean Peterson wrote:

 Right, I recall reading that from the archives. How does one go about
 either,
 
 denying the problem mailer from sending email
 
 or
 
 changing qmail to deal with it in the right way?

If you can figure out from your tcpserver logs which IP is doing it, you
can add a 'deny' to your tcp rules.

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



removing messages FROM a specific user

2000-09-13 Thread Ben Beuchler

I encountered a weird problem today with a shudder majordomo list that
created a nasty mail loop and dumped over a thousand messages into our
remote queue. And yes, I will be converting the list from majordomo to
ezmlm tomorrow.  I ended up creating a quick script that dug through the
output of qmail-qread and cut out the message numbers, than ran that
through a find command that removed all of those messages from the
queue.  

It appears to have worked.  However, my question is this:  Was there a
better way to remove messages FROM a specific sender?  I've seen several
discussions on removing messages TO a specific user or domain...

Thanks,
Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: Questions...

2000-09-11 Thread Ben Beuchler

On Mon, Sep 11, 2000 at 09:36:07AM -0700, James Stevens wrote:

 2. Is there any way to view whats actually in queue as oppsed to just
 seeing numbers.. My boss likes being able to actually see the queue
 like in the old Sendmail.

qmHandle from the qmail home page (you did look there, didn't you?) does
just that.

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: Mail que

2000-09-11 Thread Ben Beuchler

On Mon, Sep 11, 2000 at 12:06:59PM -0700, Mike Jimenez wrote:

 How do I clear out my mail que?
 Thanks
 Mike

FAQ 7.2

It's in your source tree.
 
Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: Spam

2000-09-08 Thread Ben Beuchler

On Fri, Sep 08, 2000 at 08:37:55AM -0700, Mike Jimenez wrote:

 How do I setup my mail server to help reduce the amount of spam it
 receives.Or better what are the steps taken to do this.Also How do I
 properly block out certain Ip's from sending mail to my server.

http://www.summersault.com/chris/techno/qmail/qmail-antispam.html

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: qmail-start: cannot start: unable to read controls

2000-09-08 Thread Ben Beuchler

On Fri, Sep 08, 2000 at 12:47:16PM -0700, Steve Lewis wrote:

 from /var/log/messages:
 Sep  8 11:47:49 mybox qmail: 968438869.011886 alert: cannot start: unable
 to read controls

It means it is unable to read its control files.  That means you have an
ownership or perms problem somewhere in the /var/qmail/control tree or
on the actual files in the control directory.

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: problem!

2000-09-01 Thread Ben Beuchler

On Fri, Sep 01, 2000 at 05:41:53PM +0200, J.M. Roth wrote:

 Now, when I send mail to [EMAIL PROTECTED] the following appears in the log:
 967822786.320142 info msg 46208: bytes 1449 from [EMAIL PROTECTED] qp 10718 uid 502
 967822786.321317 starting delivery 15073: msg 46208 to local [EMAIL PROTECTED]
 967822786.321348 status: local 1/10 remote 0/20
 967822786.326289 delivery 15073: failure: 
Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/
 967822786.326542 status: local 0/10 remote 0/20
 967822786.330691 bounce msg 46208 qp 10720

vdelivermail doesn't look for the directory.  It looks for the entry in
vpasswd.  Is it there?
 
 Another question: can I mix several forwards and local deliveries in 1 dot-qmail 
file?
 f.e. .qmail-default
 | vdelivermail blabla
 someguy@somewhere
 someotherguy@somewhere
 | vdelivermail blabla2

man dot-qmail

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: rcpthosts prob

2000-09-01 Thread Ben Beuchler

On Fri, Sep 01, 2000 at 03:23:25PM -0500, Ronny Haryanto wrote:

 Have you rebuild the cdb file with tcprules? How do you start your
 smtpd? What does the smtpd log says when you connect?

And:  What does your tcpserver command line look like?  Have you tried
tcprulescheck?

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: relaying going into the bit bucket

2000-08-31 Thread Ben Beuchler

On Thu, Aug 31, 2000 at 04:39:39PM -0400, Matt Sherer wrote:

 First off, I've read the FAQ. :)
 
Congratulations!  I think you're maybe the third person to do that...

 I have a feeling it's something extremely simple, but I
 can't find it. The mail goes in, just never gets queued
 to be delivered (or something to that effect.)
 
 Any ideas?

Before anyone else says it:

What Do the Logs Say? (tm)

The logs are your best friend.  They are helpful and verbose.

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: % hack

2000-08-28 Thread Ben Beuchler

On Mon, Aug 28, 2000 at 04:56:46PM -0400, David M. Kufta wrote:

  Can someone please tell me how or what I would need to do to enable %
  hack in qmail ?  I have looked in the archives and have been unable
  to find a reference.

man qmail-send

Search for the string "percenthack"

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: VopMail and multiple domains

2000-08-25 Thread Ben Beuchler

On Fri, Aug 25, 2000 at 01:15:59PM -0300, Fernando Costa de Almeida wrote:

 Supose that I have two domains:
 
 domain1.com.br
 domain2.com.br
 
 And two users:
 
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 
 What I have to do is that all emails to user1 must be sent to user2,
 and vice-versa. How can I do this?

Make the Maildir for one a symlink to the Maildir for the other.
Haven't tried it, but it should work.

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: VopMail and multiple domains

2000-08-25 Thread Ben Beuchler

On Fri, Aug 25, 2000 at 02:16:01PM -0300, Fernando Costa de Almeida wrote:

 It worked perfectly. I was wondering too if it was possible to have a
 unique entry for this user, because each new user will have a entry in each
 domain (two identical passwords, etc)... Im reading the vpopmail
 documentation now, but if somebody has already donw this... :-)

If ALL the users in one domain will be the same as the user with the
same name in the second domain, you can make one domain an alias to the
other, using vaddaliasdomain.

That way [EMAIL PROTECTED] will automatically be exactly the same as
[EMAIL PROTECTED]

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: TCPLOGD

2000-08-25 Thread Ben Beuchler

On Fri, Aug 25, 2000 at 01:21:38PM +0200, Bolivar Diaz wrote:

 What is the function of TCPLOGD?

It is not a qmail program.

A simple google search returned multiple hits.  Please don't ask the
list to do what you could accomplish yourself with minimal effort.
 
 At any point of time the servers starts rejecting passwords when a client
 tries to check the e-mail, and the reason is "unable to fork: resource not
 available"

Several of the hundreds of references returned from the above mentioned
search describes some DOS attacks that would do what you are describing.
 
Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



correlating smtpd logs with qmail logs

2000-08-25 Thread Ben Beuchler

Anyone know of a reliable way to correlate a particular smtpd log entry
with the message it delivered?  On a busy server the time stamps are too
close together to figure it out that way...

Gracias,
Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: yahoo messages

2000-08-24 Thread Ben Beuchler

On Wed, Aug 23, 2000 at 11:13:14PM -0400, Alexander Pennace wrote:

  Any message sento to yahoo.com gives an error as follows:
  
  Aug 24 08:09:42 mail qmail: 96714598.526974 delivery 154:deferral:
  Connected_to_128.11.69.55_but_connection_died._(#4.4.2)/
  
  Can u tell help me why it is happening with yahoo.com
 
 It appears yahoo is having problems at its end. Nothing for you to
 worry about, unless all messages sent to yahoo ultimately bounce.

Yahoo has been having intermittent problems for over a week now.  I've
had anywhere between 20 and 200 messages in the outbound queue waiting
to be delivered to them...

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: qmail-qfilter

2000-08-24 Thread Ben Beuchler

On Thu, Aug 24, 2000 at 03:17:11PM -0300, Ricardo Albano wrote:

snip

 354 go aheadTesting
 .
 451 qq temporary problem (#4.3.0)

What Do the Logs Say? (tm)

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: dot-qmail and pipe not working properly

2000-08-23 Thread Ben Beuchler

On Wed, Aug 23, 2000 at 11:40:21PM +0800, Thomas Duterme wrote:

 cat .qmail-unsubscribe_education
 unsubscribe
 
 in /home/unsubscribe/.qmail, I have:
 ./Maildir/
 | /home/unsubscribe/MagazineUnsubscribe.py  /home/unsubscribe/unsub.log
 
 Now, the weird thing is that qmail won't pass the mail to stdin like it
 should (executing the second line of my .qmail...passing the mail to my
 python script).  I have tried: changing the ownership of the .py script (to
 alias and the grp to qmail) and it still won't work.  Any answers here?
 
 Also, in my Maildir, I eventually get multiple copies of this email. I
 believe this problem is somehow related, but I've been banging my head on
 the keyboard too much to see how.  Any help or ideas appreciated.

What Do the Logs Say? (tm)

Seriously, the logs will include the error message returned by your no
doubt broken Python script.  qmail most certainly did provide it the
message on stdin.  You are getting multiple messages because the message
is being deferred because the script is failing.  When it retries, it
retries the entire delivery, including the ./Maildir/ part.

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: vpopmail and large domains.

2000-08-23 Thread Ben Beuchler

On Wed, Aug 23, 2000 at 01:55:52PM -0500, Greg Moeller wrote:

 I've just installed vpopmail and it's working quite nice.

Spiffy.  Although this may be a more appropriate question for the
vpopmail list, not the qmail list.

 The only problem I've encountered is with it's method of finding a
 directory for a new user.  The concept is good, only 100 users per
 directory, but when it goes to find a new one, after a few thousand
 users it can get very slow(and IO intensive on the box)  I was testing
 with adding 50,000 users to a domain and it took several hours to get
 to 7000.  If I were to move our user base to vpopmail in a single
 maintence window, it'd take a week or more!  :)

Try using the '-s' flag to vadduser.  I suspect you are seeing slow
downs from rehashing the cdb file after each new user is added.  The
'-s' flag tells it to not try to recreate the cdb file.  Then when you
are all done, run 'vmkpasswd' and you're all set.  You should see a
significant speed increase.

I created around 6000 accounts in about 15 minutes.  Give or take 5
minutes...

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: obtaining TCPREMOTEIP during delivery

2000-08-20 Thread Ben Beuchler

On Sat, Aug 19, 2000 at 11:53:44PM -0400, Russell Nelson wrote:

 Ben Beuchler writes:
   It appears that $TCPREMOTEIP is only available to qmail-smtpd.  It is no
   longer in the environment during final message delivery.
 
 No, but you can get the same information from parsing the Received:
 headers:
 
 while() {
 last if /^$/;
 $address = $2 if /^Received:.*\((.*\@)?(\d+\.\d+\.\d+\.\d+)\)/;
 $ip = $address if /^  by (192\.203\.178\.\d+|\w+.crynwr.com) with SMTP;/;
 }

Aye...  I was trying to avoid that as maildrop's string handling isn't
quite on perl's level...  But I may just have to surrender to the
inevitable.

Thanks yet again,
Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: obtaining TCPREMOTEIP during delivery

2000-08-19 Thread Ben Beuchler

On Fri, Aug 18, 2000 at 11:37:31PM -0500, David Dyer-Bennet wrote:

 Sounds like a header-insert environment variable for qmail-smtpd is in
 order.  Then all the things that run before it, including tcpserver
 and rblsmtpd, could set up stuff in that variable which would become
 headers in the message, and then could be used at the user level for
 maildrop / procmail / autosorting / whatever.  I don't remember
 anybody doing this patch yet; anybody?

That certainly would be an extremely powerful tool.  Useful for all
sorts of things...

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: yahoo down?

2000-08-19 Thread Ben Beuchler

On Sat, Aug 19, 2000 at 01:30:22PM -0700, Al Sparks wrote:

 According to the 
http://www.qmail.org
 site, Yahoo! is using qmail.

I believe they use it for their outbound queue, but apparently not for
their inbound mail.

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



yahoo down?

2000-08-18 Thread Ben Beuchler

Is it just my imagination or am I seeing a larger than normal number of
yahoo.com messages building up in my remote queue?

I've tried a few telnet sessions to port 25 on mx7.mail.yahoo.com and
sometimes it gets through and sometimes it doesn't...

Annoyed,
Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



obtaining TCPREMOTEIP during delivery

2000-08-18 Thread Ben Beuchler

It appears that $TCPREMOTEIP is only available to qmail-smtpd.  It is no
longer in the environment during final message delivery.  I would like
to be able to use rblcheck and maildrop to allow opt-in
ORBS/RBL/DUL/RSS/etc. and would prefer to obtain the necessary info
directly from qmail rather than trying to parse the correct IP out of
the message header.

Any thoughts?

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: obtaining TCPREMOTEIP during delivery

2000-08-18 Thread Ben Beuchler

On Sat, Aug 19, 2000 at 03:52:36AM +0100, Ricardo Cerqueira wrote:

 Have you tried rblsmtpd? It works as a filter between tcpserver and
 qmail-smtpd, and checks against blacklists on the TCP/IP connection, not the 
 mail itself.

Yeah, in fact I'm using it now to check against the dul list.  However,
I would prefer to have some sort of opt-in choice, for our customers
that are afraid of losing legitimate mail.

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: CHANGING INETD

2000-08-18 Thread Ben Beuchler

On Fri, Aug 18, 2000 at 07:46:52PM -0700, Al Sparks wrote:

 Anyway, while on this thread it has occurred to me to ask why put qmail
 in either inetd or tcpserver?  Why not run it as a daemon?  At the
 moment my test box is running it in inetd because I did a quick
 cookbook install.  I didn't see anything, off hand anyway, that told me
 how to do that.  Coming from the sendmail world, that would be my
 initial preference (especially since the box would be dedicated to
 email anyway).

I'm sure several people on this list could explain why that is a bad
idea and why DJB chose not to design it that way, but I'll give you the
easy anser:  Because you can't.  It won't listen to a port all by
itself.  tcpserver creates the connection and then passes it off to
qmail-smtpd.

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: yahoo down?

2000-08-18 Thread Ben Beuchler

On Sat, Aug 19, 2000 at 01:57:49PM +1000, Brett Randall wrote:

 At times, in the past, I've even had bounces saying that a yahoo user
 doesn't exist. An e-mail the day after might go fine, then a few days
 later it'll go astray again...
 
 Definitely a few machines in that bank which need some heart surgery
 
 Perhaps they're using sendmail? :

Hmm.  Telnetting to the server on port 25 says that it is something
called YSmtp.  And sending it a 'help' command returns 
'250 OK.  Yahoo! MTA'.  Sounds like something proprietary...

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: 4.7.1 error reported to netscape mail client

2000-08-16 Thread Ben Beuchler

On Wed, Aug 16, 2000 at 01:55:08AM -0400, Dale Miracle wrote:

 I noticed a lot more e-mail activity lately and noticed people are
 sending to 5, 10, 15 people at a time.  You get a couple people doing
 that and the 20 connection limit in qmail's smtpd is pegged until it can
 deliver the mail.  I went through the log again looked for the date's
 and times he couldn't send mail and noticed that there pending remote
 deliveries of 20/20, 20/20, 20/20 .  Which was odd because the number of
 deliveries never went down.  I looked through log and found that a quite
 a few people had sent e-mail's to 5 and 10 people at a time and some of
 those mail servers were deferring connections.  I noticed the it was
 possible that he was trying to send at a time when the queue was 20/20
 and when he waited a minute or so the queue went down to 19/20 which
 allowed him to send.
 
 If this is so can i raise the number of connections?  I don't like
 re-compiling binaries once I got everything working fine, tempting fate
 it to easy. ;)  

If you review the man page for qmail-smtpd, it will explain the usage of
"concurrencyremote" which should solve your problem.

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: rblsmtpd emergency

2000-08-16 Thread Ben Beuchler

On Wed, Aug 16, 2000 at 07:08:28AM -0500, Mate Wierdl wrote:

 BTWY, I know many people are attached to using DNS for rbl lookups,
 but would not it be relatively simple to implement a server software
 using tcpserver that would just lookup an IP number in a .cdb database
 of IP numbers, and send an appropriate response?  A client might be
 similarly simple to implement using tcpclient.

That would not allow for the rapid changes necessary in a blackhole
list.  Imagine you are an ISP with several thousand customers.  Through
an oversight, your mail server is blacklisted.  Would you rather wait
for the tens or hundreds of thousands of sysadmins out there
administering mail servers to remove you from their blackhole list or
just submit it to the maintainer of the list and have it fixed in minute
or hours?

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: fastforward and \accounts

2000-08-16 Thread Ben Beuchler

On Wed, Aug 16, 2000 at 01:04:42PM -0700, R. Benjamin Shapiro wrote:

 The support_manager account gets copies of all incoming mail to these
 accounts. This isn't quite the intrusion that it might seem. Email
 accounts for personal use are provided and not snooped on. This just
 helps us make sure that customers problems are being resolved.
 
 Anyway, because username is a valid login on the machine, fastforward is
 never invoked. Is there any way to change make qmail do what I want?
 
 Changing the actual login names would work (duh), but isn't an option at
 our company. Any ideas?

I don't think this is possible with fastforward.  However, you could add
.qmail files to each user's homedir with the correct instructions.

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: Russ' rblsmtpd test robots.

2000-08-15 Thread Ben Beuchler

On Mon, Aug 14, 2000 at 04:30:24PM -0700, Russ Allbery wrote:

  I just implemented rblsmtpd using the MAPS DUL.  I sent a message off to
  Russ' testing bot and received the following reply:
 
 MAPS has recently dropped the TXT entries from their zones due to zone
 size problems; perhaps that's the problem?

To the best of my knowledge, they only dropped 'em from RSS.  However, I
have already figured out the problem and it was my own stupidity...  Our
mail server is behind a pair of load balancers (Foundry Server Irons, if
anyone cares) and a pair of firewalls.  The actual IP of the mail server
is not reachable on port 25.  Only the load balanced IP accepts
connections.

I'm going to temporarily allow port 25 directly to one of our mail
servers and retest...

Gracias,
Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



qmailanalog ideas?

2000-08-15 Thread Ben Beuchler

I'm trying to set up some quick scripts using qmailanalog.  I would like
to generate a report every morning on the previous 24 hours.  The new
multilog does not rotate based on time but rather on size, so that's a
bit awkward.  Has anyone arrived at a simple way to dig all the log
entries covering a specified period of time from a multilog directory?

Gracias,
Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



converting tai64n to something readable

2000-08-15 Thread Ben Beuchler

I know this spawned one of those never-ending threads last time I
brought it up, so I'm not asking for opinions on the usefulness or lack
thereof of the tai64n format.  I'm just trying to *understand* the
format...

I've read and reread DjB's documentation of the format and still find it
quite confusing.  For example, I still do not understand the
significance of the first eight bytes of the stamp.  I think it is the
reference point for the second four bytes, but why is it necessary?  Why
would the reference point change?  Why not select an arbitrary point in
time and make it the reference point?

I would also appreciate it if someone could sketch out some pseudo-code
for working with tai64n.  A task I have frequently wished I could
perform would be slicing out a section of a log file covering a
specified time range.  Since I do not know C, I do not have the luxury
of using libtai.  So I guess I would need a way of converting a specific
time to it's tai64n equivalent.

Thoughts?  Suggestions?

Thanks,
Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: converting tai64n to something readable

2000-08-15 Thread Ben Beuchler

On Wed, Aug 16, 2000 at 05:18:50PM +1200, Chris, the Young One wrote:

 http://cr.yp.to/libtai/tai64.html describes TAI64, TAI64N, and TAI64NA.
 
  Since I do not know C, I do not have the luxury
  of using libtai.
 
 Go to your local library and borrow KR. After reading chapter one,
 you'll learn most things you need to know. :-)
 
  So I guess I would need a way of converting a specific
  time to it's tai64n equivalent.
 
 troll
 his, her, its; not hi's, he'r, it's
 /troll
 
 Sorry Ben, I had to say that. :-) But seriously, look at the URL above.

Yeah, I seem to have a mental glitch lately that tells my fingers to
type "it's" in all the wrong places.

I've read the doc you mention.  I found it rather tough to follow.  I
just received some info from Russ that I think is unlocking my mental
block for me, so it may make some sense for me by tomorrow.

I do need to learn at least some C, I know.  So far I have found a
knoledge of Python and some Perl to be more useful. I'm assuming the
"KR" to which you refer is an introductory C text?

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Russ' rblsmtpd test robots.

2000-08-14 Thread Ben Beuchler

I just implemented rblsmtpd using the MAPS DUL.  I sent a message off to
Russ' testing bot and received the following reply:

==
Testing your DUL block.  See http://www.crynwr.com/spam/ for more info

Could not connect to 216.243.128.132: Connection timed out 
Attempting to run traceroute.  If the traceroute fails persistently,
then it's likely that the ISP where it fails is subscribed to the BGP3
version of the RBL, and is blocking RBL'ed hosts at the IP level.  You
should ask if that is indeed what they are doing.  If so, then you do
not need to use DNS blocking of the RBL.  
==

My question concerns the "Connection timed out" message.  Does this mean
that it literally was a time out?  Or will it give that message as well
if it receives the 553 from rblsmtpd?  (I'm running it with -b)  We are
not running the BGP version of DUL...  And the attached traceroute
reaches us just fine.

Thanks,
Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: 4.7.1 error in qmail

2000-08-12 Thread Ben Beuchler

On Fri, Aug 11, 2000 at 09:16:41PM -0400, Sean C Truman wrote:

 I Believe you get this message when you max out your SMTP connection
 if your are using ucspi tools the default on tcpserver is set to 40..
 use the flag -c (# of connections).

I don't believe that is the case.  In my experience when the tcpserver
managing smtp runs out of connections it just hangs.  It will accept
connections but will not actually launch qmail-smtpd.  When this has
happened to me, no error messages at all were generated.

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: courier-imap help

2000-08-10 Thread Ben Beuchler

On Thu, Aug 10, 2000 at 03:30:51PM -0500, Barry Smoke wrote:

 I need some help with a new problem with courier-imap  Is there a
 developers list for that I can join?

There is a courier-users list monitored by the sole developer.  It is
linked to from the courier home page.

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: Fastforward - mail groups

2000-08-09 Thread Ben Beuchler

On Wed, Aug 09, 2000 at 10:27:51AM -0400, Vu Vuong wrote:

 Can anyone tell me why my maillist doesn't work?  I use fastword and I
 have successfully created group files.  I placed them in /etc/mail/groups/

Not without seeing the "group" files and the aliases file used to call
it.  The relevant section of your log would also be useful.

We're not psychic.

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



qmail plain install v. freebsd port

2000-08-09 Thread Ben Beuchler

I installed and am using a normal install of qmail on a FreeBSD 4.0 box.
I just noticed today that it was also included in the ports collection
and is patched during the install process.  I am just curious if anyone
knows what the patch is for, as I have not experienced any problems.
Here's the patch, if your interested:

--- qmail-1.03/dns.c.103Mon Aug 17 16:06:58 1998
+++ qmail-1.03/dns.cWed Aug 26 16:28:56 1998
@@ -21,10 +21,12 @@
 static unsigned short getshort(c) unsigned char *c;
 { unsigned short u; u = c[0]; return (u  8) + c[1]; }
 
-static union { HEADER hdr; unsigned char buf[PACKETSZ]; } response;
+static struct { unsigned char *buf; } response;
+static int responsebuflen = 0;
 static int responselen;
 static unsigned char *responseend;
 static unsigned char *responsepos;
+static u_long saveresoptions;
 
 static int numanswers;
 static char name[MAXDNAME];
@@ -45,18 +47,33 @@
  errno = 0;
  if (!stralloc_copy(glue,domain)) return DNS_MEM;
  if (!stralloc_0(glue)) return DNS_MEM;
- responselen = lookup(glue.s,C_IN,type,response.buf,sizeof(response));
+ if (!responsebuflen)
+  if (response.buf = (unsigned char *)alloc(PACKETSZ+1))
+   responsebuflen = PACKETSZ+1;
+  else return DNS_MEM;
+
+ responselen = lookup(glue.s,C_IN,type,response.buf,responsebuflen);
+ if ((responselen = responsebuflen) ||
+ (responselen  0  (((HEADER *)response.buf)-tc)))
+  {
+   if (responsebuflen  65536)
+if (alloc_re(response.buf, responsebuflen, 65536))
+ responsebuflen = 65536;
+else return DNS_MEM;
+saveresoptions = _res.options;
+_res.options |= RES_USEVC;
+responselen = lookup(glue.s,C_IN,type,response.buf,responsebuflen);
+_res.options = saveresoptions;
+  }
  if (responselen = 0)
   {
if (errno == ECONNREFUSED) return DNS_SOFT;
if (h_errno == TRY_AGAIN) return DNS_SOFT;
return DNS_HARD;
   }
- if (responselen = sizeof(response))
-   responselen = sizeof(response);
  responseend = response.buf + responselen;
  responsepos = response.buf + sizeof(HEADER);
- n = ntohs(response.hdr.qdcount);
+ n = ntohs(((HEADER *)response.buf)-qdcount);
  while (n--  0)
   {
i = dn_expand(response.buf,responseend,responsepos,name,MAXDNAME);
@@ -66,7 +83,7 @@
if (i  QFIXEDSZ) return DNS_SOFT;
responsepos += QFIXEDSZ;
   }
- numanswers = ntohs(response.hdr.ancount);
+ numanswers = ntohs(((HEADER *)response.buf)-ancount);
  return 0;
 }
 


-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: qmail plain install v. freebsd port

2000-08-09 Thread Ben Beuchler

On Wed, Aug 09, 2000 at 07:20:32PM +0200, Magnus Bodin wrote:

 On Wed, Aug 09, 2000 at 12:17:59PM -0500, Ben Beuchler wrote:
  I installed and am using a normal install of qmail on a FreeBSD 4.0 box.
  I just noticed today that it was also included in the ports collection
  and is patched during the install process.  I am just curious if anyone
  knows what the patch is for, as I have not experienced any problems.
  Here's the patch, if your interested:
 
 Link from http://www.qmail.org/
 
 Christopher K. Davis has a patch to accept oversize DNS packets which works
 on both qmail's dns.c and tcpserver's dns.c. 

So THAT'S what that is...

Does anyone have any experience concerning how necessary that patch is?

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: surge in spam email (fwd) -- spamtest

2000-08-09 Thread Ben Beuchler

On Wed, Aug 09, 2000 at 10:31:34AM -0700, Darin O. wrote:

 petra:~$ ./spamtest 139.134.5.153
 rbl.maps.vix.com =
 rss.maps.vix.com =
 dul.maps.vix.com =
 relays.orbs.org = 127.0.0.4
 outputs.orbs.org =
 
 How can I get "spamtest" .. is this a script?  Is
 this useful tool available publicly?

I've had several requests for this, so I just stuck the code up on my
website.

http://www.squad51.net/spamtest.html

Thanks,
Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: tai64n -- why?

2000-08-06 Thread Ben Beuchler

On Sat, Aug 05, 2000 at 08:07:38PM -0700, Eric Cox wrote:

 But I'm getting back into it.  When I get it into a usable state I'll 
 post it on my website at www.ericcox.com.  Keep checking back...

Your mailstats program looks pretty cool.  Does it work with multilog
logs?  With tai64n and all that?

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: tai64n -- why?

2000-08-05 Thread Ben Beuchler

On Fri, Aug 04, 2000 at 07:11:52PM -0700, Russ Allbery wrote:

 syslog timestamps are amazingly annoying to try to parse.  TAI64 is
 trivial to parse.  This is a significant improvement.
 
 ISO date/time format would also have been easy to parse, and I would have
 been slightly happier with that, but TAI64 is definitely a *huge*
 improvement over syslog if you want to do anything at all automated with
 the logs.

OK.  I can see where that is a strong argument for TAI64n.  I have tried
to develop a way of converting from TAI64n to a human readable format
but I'm afraid I'm having difficulty comprehending the format.  Has
anyone written any perl/python code that translates to a human readable
format?  Or can offer a brief "pseudo-code" algorithm?

Or even a more clear description of the format would be helpful.  Dan's
writeup left me a bit lost...

Gracias,
Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: tai64n -- why?

2000-08-05 Thread Ben Beuchler

On Sat, Aug 05, 2000 at 11:54:41AM -0700, Eric Cox wrote:

 Have you looked into using libtai in your app?  It's Dan's library for
 using tai, and could be linked with your application.  I currently
 trying to write a Python wrapper for it so I can use it from my Python
 scripts...

You're my hero!  The reason I don't use libtai is that I don't program
in C.  I program in Python.  How much headway have you made?  Is it
usable?

Gracias,
Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: duplicating sendmail's virtusertable

2000-08-04 Thread Ben Beuchler

On Thu, Aug 03, 2000 at 11:05:47PM -0400, Sam Carleton wrote:

   I also need to change the from header from [EMAIL PROTECTED] to
   [EMAIL PROTECTED]  I am trying to stealth my user account because
   it is the only account able to su in as root.  I would prefer if folks
   do not know the user name on the account:)  (No, it isn't sam, that is
   simply my example g)
  
  Both of these can be accomplished using fastforward, available from
  http://www.qmail.org.
 
 I have installed fastforward and I am aliasing incoming mail from
 sam.carleton@domain to sam@domain, but I do not have a clue as to how to
 use fastforward to change the From: header on out going mail from
 sam@domain to sam.carleton@domain.  Can someone enlighten me?

My error.  I did not read your request carefully enough.  The "From: "
header is entirely under the control of your MUA (mutt, pine, mailx,
etc).  The envelope "from " header is controlled via your MTA (qmail, in
this case) and can be controlled either by using the sendmail wrapper
with a "[EMAIL PROTECTED]" or setting some environment variables
before calling qmail-inject.

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: Editing error messages

2000-08-04 Thread Ben Beuchler

On Fri, Aug 04, 2000 at 10:28:27AM -0500, Erich Zigler wrote:

 I was wondering if its possible to edit the error messages in qmail.
 And what is the simplest way to do it?
 
 For example, I want to change "This address is not in my rcpthosts"
 message to something different.

They are hard-coded.  Edit the code at your own risk.

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



  1   2   >