anybody using smtp-auth with qmail ? (NOT smtp after pop)

1999-11-12 Thread Olivier M.

Netscape & Outlook allow to setup a login/passwd pair for
smtp outgoing mails : I saw a kind of patch on http://www.nimh.org, but
I can't understand how it work : it doesn't call any "checkpasswd" program.

Is anybody using this (or other smtp-auth) patch ? If possible with vmailmgrd.

Regards,
Olivier



Benchmark of Qmail SMTPD

1999-11-12 Thread Hotdog

"qmail is a secure, reliable, efficient, simple message transfer agent. It is meant as 
a replacement for the entire sendmail-binmail system on typical Internet-connected 
UNIX hosts", yeah,yeahbut in my feeling, it is not so fast at all.(I have use 
qmail for nearly 1 year!)

And following is the data of my test:

ServerMTA  OS   Time spend(1000 letters)  Server 
Hardware   Server status
---
202.96.237.177   Qmail1.03 FreeBSD3.3314  secondsK62 350,64MRam 4G 
IDE  little load
202.96.210.242   Sendmail8.10  FreeBSD3.2202  secondsPII450*2,1GRam 
36G SCSIlittle load
202.101.18.155   Qmail1.03 FreeBSD3.2555  seconds
PII450*2,512MRam,36G SCSI  heavy load
202.101.18.157   Qmail1.03 FreeBSD3.2404  seconds
PII450*2,512MRam,36G SCSI  No any load

(Average value of 3 tests.)

All letters was sent to MTA by port 25,and to a local address.


The data show:
1. Qmail is more slow  than sendmail;
2. Qmail can run more fast in some worm-eaten computer. (Impossible? but it is really!)

WHY ?  WHY ?

And the following is my test program:

/*  speed.c  */
#include 
#include 
#include 
#include "connect.c"

void main()
{
  int i;
  time_t time1,time2;
  int handle;
  char s[1024];
  FILE *f;

  time(&time1);
  printf(" Now test start at %d...\n",time1);
  handle=opensockets("127.0.0.1",25);
  readsockets(handle,s);
  writesockets(handle,"helo localhost");
  readsockets(handle,s);
  for (i=1;i<=1000;i++)
  {
if (i%100==0) printf("send letter %d...\n",i);
writesockets(handle,"mail from:<>");
readsockets(handle,s);
writesockets(handle,"rcpt to:");   //please change host to 
local hostnae
readsockets(handle,s);
writesockets(handle,"data");
readsockets(handle,s);
f=fopen("speed.c","r");
while (!feof(f))
{
  fscanf(f,"%s",s);
  writesockets(handle,s);
}
fclose(f);
writesockets(handle,".");
readsockets(handle,s);
if (strstr(s,"250 ok")==NULL) printf("error at %d!\n",i);
  }
  writesockets(handle,"quit");
  readsockets(handle,s);
  close(handle);
  time(&time2);
  printf("End at %d,total use %d seconds.\n",time2,time2-time1);
}



Hotdog
hotdog#soim.com



qmail Digest 12 Nov 1999 11:00:01 -0000 Issue 818

1999-11-12 Thread qmail-digest-help


qmail Digest 12 Nov 1999 11:00:01 - Issue 818

Topics (messages 32818 through 32918):

Re: qmail, Linux, and NetApp/NFS
32818 by: Pedro Melo
32819 by: Pedro Melo

more mailq questions
32820 by: scott f. lanes
32833 by: Dave Sill
32844 by: Anand Buddhdev

Qmail - Address Rewrite
32821 by: Subba Rao
32824 by: Russell Nelson

Re: qmail-1.03-maxrcpt.patch
32822 by: Russell Nelson
32825 by: Andres Mendez
32837 by: Magnus Bodin
32839 by: Mikko Hänninen
32845 by: Anand Buddhdev

vpopmail installation error
32823 by: john
32828 by: Peter Green
32841 by: Ken Jones

qmailanalog question
32826 by: jkk.techno-link.com

Re: Prepatched IMAP anyone?
32827 by: Mirko Zeibig
32885 by: Sam

Queuing question...
32829 by: John P. Looney
32831 by: Chris Johnson
32835 by: John P. Looney

Big DNS-patch also for t-online.de required
32830 by: Frank Tegtmeyer

New Document for Qmail install
32832 by: Subba Rao

Re: Permission bits
32834 by: Dave Sill

Re: how to give preference to qmail-remote over qmail-smtpd?
32836 by: Dave Sill

Re: qmail tuning question
32838 by: Dave Sill
32855 by: Markus Stumpf
32887 by: scott f. lanes
32890 by: Fred Lindberg
32892 by: scott f. lanes
32899 by: Fred Lindberg

Virus?
32840 by: Derek Harkness

Message sequence/ordering when using MAILDIR format
32842 by: Curtis Generous
32843 by: Petr Novotny
32846 by: Russell Nelson
32847 by: Curtis Generous
32849 by: Curtis Generous
32851 by: Russell Nelson

Patches for badmailfrom and RCPT max qty
32848 by: Martin Paulucci

Global .qmail file
32850 by: Derek Callaway
32852 by: Chris Johnson
32853 by: Derek Callaway
32854 by: Petr Novotny

mailquotacheck
32856 by: Luis Bezerra
32857 by: Petr Novotny

Re: Creating a Structured Directory in Qmail for Users
32858 by: Bruce Guenter

Large message killing system
32859 by: Matthew Callaway
32860 by: Matthew Callaway
32862 by: Dave Sill

mailquotacheck one more time
32861 by: Luis Bezerra

Unknown command in qmail startup/shutdown script
32863 by: Nicole & Ron McIntosh
32866 by: Dave Sill
32867 by: eric
32868 by: Nicole & Ron McIntosh
32869 by: Dave Sill
32870 by: Nicole & Ron McIntosh

one more time mailquotacheck
32864 by: Luis Bezerra

Re: qmail remote delivery logic
32865 by: Dave Sill

qmail-pop3d message ordering (fwd)
32871 by: Derek Callaway
32874 by: Russell Nelson

Okie i think just one more question
32872 by: Nicole & Ron McIntosh
32873 by: Dave Sill
32876 by: Nicole & Ron McIntosh
32877 by: Dave Sill
32880 by: Nicole & Ron McIntosh
32881 by: Dave Sill

Newbie (if u could not tell)
32875 by: Michael M. Honse
32878 by: Dave Sill
32882 by: Michael M. Honse

Ricardo Cerqueira and qmail-1.03-maxrcpt.patch
32879 by: Andres Mendez

tcpserver/qmail-pop3d/checkpasswd command
32883 by: Nicole & Ron McIntosh

RBL
32884 by: Noah Sutherland

tcpserver fatal error
32886 by: Nicole & Ron McIntosh
32896 by: Nicole & Ron McIntosh

badmailfrom
32888 by: Eldar Imangulov
32909 by: Markus Stumpf

logging confusion..
32889 by: Marc-Adrian Napoli

Big Todo Patch
32891 by: Eric Huss
32893 by: Russell Nelson
32898 by: David Villeger

VPOPMAIL CONFIGURING PROBLEM - Urgent
32894 by: john

Starting POP3 service - Clear Document
32895 by: john
32910 by: Markus Stumpf

problems with multiple instances of qmail.
32897 by: Dongping Deng
32911 by: Markus Stumpf

Maildrop samples
32900 by: Subba Rao
32904 by: Benjamin de los Angeles Jr.

Vpopmail-3.4.10 with RH6.1 problem
32901 by: john
32906 by: Ken Jones

Stop Delivery of Incoming Mail Temporarily
32902 by: Carl Perry
32907 by: Adam Michaud
32912 by: Markus Stumpf

Mail abuse in syslog
32903 by: Subba Rao
32913 by: Markus Stumpf

pop3 How To
32905 by: john
32908 by: Benjamin de los Angeles Jr.
32916 by: Doug Lumpkin

Vchkpw
32914 by: eric

Re: delivery to a directory
32915 by: Florian G. Pflug

anybody using smtp-auth with qmail ?  (NOT smtp after pop)
32917 by: Olivier M.

Benchmark of Qmail SMTPD
32918 by: Hotdog

Administrivia:

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

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

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

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



Message is looping .. why ?

1999-11-12 Thread Puck

Hi there,

i have the following domains in control/virtualdomains :

4ofborg.net
just-kidding.de
n-online.net

in ~justkidding/.qmail-bs-klasse i have :

[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]


Everytime i send mail to [EMAIL PROTECTED] i get :

Message-ID: 
Return-Path: <>
Delivered-To: [EMAIL PROTECTED]
Received: (qmail 14114 invoked by uid 512); 8 Nov 1999 15:05:55 -
Delivered-To: [EMAIL PROTECTED]
Received: (qmail 14111 invoked for bounce); 8 Nov 1999 15:05:55 -
Date: 8 Nov 1999 15:05:55 -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: failure notice
X-Mozilla-Status2: 

Hi. This is the qmail-send program at mohawk.n-online.net.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<[EMAIL PROTECTED]>:
This message is looping: it already has my Delivered-To line. (#5.4.6)

--- Below this line is a copy of the message.



What's wrong ?

Thanx,
  Thomas



Re: Benchmark of Qmail SMTPD

1999-11-12 Thread Stuart Harris

> "qmail is a secure, reliable, efficient, simple message transfer agent. It
> is meant as a replacement for the entire sendmail-binmail system on typical
> Internet-connected UNIX hosts", yeah,yeahbut in my feeling, it is not
> so fast at all.(I have use qmail for nearly 1 year!)
>
> And following is the data of my test:
>
> ServerMTA  OS   Time spend(1000 letters)
> Server Hardware   Server status
>

-
> --
> 202.96.237.177   Qmail1.03 FreeBSD3.3314  secondsK62
> 350,64MRam 4G IDE  little load
> 202.96.210.242   Sendmail8.10  FreeBSD3.2202  seconds
> PII450*2,1GRam 36G SCSIlittle load
> 202.101.18.155   Qmail1.03 FreeBSD3.2555  seconds
> PII450*2,512MRam,36G SCSI  heavy load
> 202.101.18.157   Qmail1.03 FreeBSD3.2404  seconds
> PII450*2,512MRam,36G SCSI  No any load
>
> (Average value of 3 tests.)
>
>
Yes but your tests are not accurate as you have used different computers
with different loads. also what is the net connection (if you sent mails
over the net..) if you look at the first test would quite probably
outperform sendmail if it had the same memory/cpu/disk speed, as it managed
todo it taking only 112 seconds longer with a _MUCH_ slower processor and a
_LOT_ less Ram. and IDE Disks.. if you want to send test results and say
'its not so fast at all' try running the tests (both sendmail & qmail on the
same machine, obv at different times ;p) and posting those.. I'd be
intersted to see them..


+---  -+
| Stuart Harris - UNIX Systems Administrator - |
| REDNET Networking & Internet Ltd --- |
| (t) + 44 (0)1494 751882 (e) stuart(@)red.net --- |
| (p) 19E4 12AD 8CD4 BA62 6FA3  9524 7595 0361 B933 E1F8 - |
+---  -+



Re: Benchmark of Qmail SMTPD

1999-11-12 Thread Curtis Generous

According to Hotdog:
> 
> "qmail is a secure, reliable, efficient, simple message transfer
> agent. It is meant as a replacement for the entire sendmail-binmail
> system on typical Internet-connected UNIX hosts", yeah,yeahbut in
> my feeling, it is not so fast at all.(I have use qmail for nearly 1
> year!)
> 
> 
> And following is the data of my test:
> 
> ServerMTA  OS   Time spend(1000 letters)  Server 
>Hardware   Server status
> 
>---
> 202.96.237.177   Qmail1.03 FreeBSD3.3314  secondsK62 350,64MRam 
>4G IDE  little load
> 202.96.210.242   Sendmail8.10  FreeBSD3.2202  secondsPII450*2,1GRam 
>36G SCSIlittle load
> 202.101.18.155   Qmail1.03 FreeBSD3.2555  seconds
>PII450*2,512MRam,36G SCSI  heavy load
> 202.101.18.157   Qmail1.03 FreeBSD3.2404  seconds
>PII450*2,512MRam,36G SCSI  No any load
> 
> (Average value of 3 tests.)
> 
> All letters was sent to MTA by port 25,and to a local address.
> 
> The data show:
> 1. Qmail is more slow  than sendmail;
> 2. Qmail can run more fast in some worm-eaten computer. (Impossible? but it is 
>really!)
> 
> WHY ?  WHY ?

We did some similar benchmarks on Qmail 1.03 (with and without LDAP,
with and without MAILDIR) and Sendmail 8.x (with mail.local) a few
weeks ago, all running on similarly configured SPARC Ultra 2's (2 x 300MHZ / 
512MB / dual SCSI).

We used the postfix smtp-source.c and the Netscape MailBench tools to
measure, record, and plot the performance.

We too saw the same slower 'drain' rates on the inbound SMTP message traffic
associated with QMAIL.  However some observations from our test:

0) QMAIL and SENDMAIL performed equally well at small msgs rates.

1) SENDMAIL was much faster at delivering mail into a users mailbox at moderate 
   msgs rate (2 x 4 times).

2) At high msg rates (msg/sec), the load on the SENDMAIL machine was very
   high (load average routinely at above 90+). This of course put the
   machine to it's knees.  It stopped accepting inbound traffic. We had
   the load control features on sendmail disabled (QueueLA and RefuseLA
   options and Sendmail was configured to do synchronous delivery).

3) We never were able to get QMAIL-SMTPD to stop accepting inbound SMTP traffic.
   Because of the asynchronous nature of the local delivery with QMAIL,
   it did take much longer for QMAIL to finish delivering all of the
   messages (at high msg rates) to the local user, but the load on the
   machine never got high enough to cause any problems (peaked at 16 on
   one occasion).

IMHO, QMAIL behaved more appropriately in environments where inbound
traffic loads cannot be anticipated (e.g. ISPs around 7:00pm local time
:-), QMAIL just kept accepting email.

--curtis



Re: Maildrop samples

1999-11-12 Thread Keith Burdis

On Thu 1999-11-11 (22:10), Subba Rao wrote:
> 
> I know this question has been asked quite a few
> times on this list. Currently, I am using "deliver-maildir"
> MDA to get my email. I have installed "Maildrop", since
> for "Procmail" there is a lot of work around. I am not
> able to find any good sample Maildrop filters, from which
> I can learn.

There are some examples in the maildropex(5) man page.

  - Keith
-- 
Keith Burdis - MSc (Computer Science) - Rhodes University, South Africa
IRC: Panthras   JAPHQEFH
---



Re: Stop Delivery of Incoming Mail Temporarily

1999-11-12 Thread Russell Nelson

Carl Perry writes:
 > I'm having a problem with my NIS server dying now and then and all my
 > user's are complaining of lost mail.  qMail returns a "no mailbox here
 > by that name" message.

Use users/assign (man qmail-users).  It doesn't rely on stat'ing the
user's home directory.  It'll try to switch to the homedir, it won't
exist, and the mail will be deferred as you desire.

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



Re: pop3 How To

1999-11-12 Thread Keith Burdis

On Fri 1999-11-12 (12:32), john wrote:
> 
>Hi,
>
>Is there anyone who can clearly specify how to start pop3 and smtp
>services ?
>
>Does anyone have a clear document.

I'd suggest taking a look at Dave Sill's "Life With Qmail", specifically
sections "2.8.  Start qmail" and "5.2. POP and IMAP servers".
You can find it at:

  http://Web.InfoAve.Net/~dsill/lwq.html

 - Keith
-- 
Keith Burdis - MSc (Computer Science) - Rhodes University, South Africa
IRC: Panthras   JAPHQEFH
---



Re: Benchmark of Qmail SMTPD

1999-11-12 Thread Russell Nelson

Hotdog writes:
 > "qmail is a secure, reliable, efficient, simple message transfer
 > agent. It is meant as a replacement for the entire sendmail-binmail
 > system on typical Internet-connected UNIX hosts", yeah,yeahbut
 > in my feeling, it is not so fast at all.(I have use qmail for
 > nearly 1 year!)
 > 
 > The data show:
 > 1. Qmail is more slow  than sendmail;
 > 2. Qmail can run more fast in some worm-eaten computer. (Impossible? but it is 
 >really!)
 > 
 > WHY ?  WHY ?

Because sendmail is playing "fast and loose" with your email.  Because
it runs as one monolithic program, it delivers straight to a user's
mailbox from the incoming SMTP stream.  This is also why sendmail has
had so many security lapses, and is not likely to ever be as secure as
qmail.  It's design is not trustworthy.

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



Re: pop3 How To

1999-11-12 Thread Benjamin de los Angeles Jr.


The scripts are now in 

http://members.surfshop.net.ph/~bench/qmail/


On Thu, 11 Nov 1999, Doug Lumpkin wrote:

> Please do post...
> 
> --
> Doug Lumpkin
> [EMAIL PROTECTED]
> - Original Message -
> From: Benjamin de los Angeles Jr. <[EMAIL PROTECTED]>
> To: john <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Thursday, November 11, 1999 8:43 PM
> Subject: Re: pop3 How To
> 
> 
> >
> > Install daemontools-0.61 and qmail's pop3d.
> > I have a modified qmail and pop3d init scripts derived from Dan Sill's
> > example which works with ucspi-tcp-0.84 and daemontools-0.61.
> > Message me if you want the scripts, and I will be post it on my
> > homepage.
> >
> 
> 



Re: Mail abuse in syslog

1999-11-12 Thread Subba Rao

On  0, Markus Stumpf <[EMAIL PROTECTED]> wrote:
> On Thu, Nov 11, 1999 at 10:53:45PM -0500, Subba Rao wrote:
> > Nov 11 22:43:51 starsys qmail: 942378231.489619 delivery 34: deferral: 
>Connected_to_189.9.90.12_but_greeting_failed./Remote_host_said:_553-See_http://mail-abuse.org/dul/>/553-If_you_feel_we_mistreat_you,_do_contact_us./553_Ask_HELP_for_our_contact_information./
> > 
> > Why am I getting this message? All the outbound/inbound mail is transfering fine.
> 
> DUL (as you can read if you follow the above URL) is Dial-Up User List. It's
> an RBL type service that hold lists of dial-in IP adresses.
> Mailers participating in this initiative do not accept eMails from these
> IP addresses as they are typically used by SPAMmers.
> The IP address your mailer used/uses is in this list.
> This only affects outbound messages and only to mail servers using the
> DUL list.
> 
>   \Maex

How can my Qmail server relay to my ISP's mail server to avoid this
problem? I tried to set the environment variable like MAILHOST and MAILUSER
to point to my ISP account. It still doesn't work.

Subba Rao
[EMAIL PROTECTED]
http://pws.prserv.net/truemax/



Re: Ricardo Cerqueira and qmail-1.03-maxrcpt.patch

1999-11-12 Thread Ricardo Cerqueira

On Thu, Nov 11, 1999 at 09:54:56PM +0100, Andres Mendez wrote:
> The patch 1.01 doesn't work if you have qmail 1.03.
> 
> Ricardo Cerqueira posted a new one which worked with 1.03, but the file was
> corrupted or truncated.
> 
I've just tried to use that patch (I extracted it from the mail, just to be sure) over 
a clean source and it applied perfectly! Where does it fail you?

--
root@avalon (/tmp/tests/qmail-1.03) # patch -p1 < ../qmail-1.03-maxrcpt.patch 
patching file `qmail-smtpd.c'
root@avalon (/tmp/tests/qmail-1.03) #
--

Anyway, here it goes again.

Regards;
Ricardo


-- 
+---
| Ricardo Cerqueira  -  [EMAIL PROTECTED]
| PGP Key fingerprint  -  B7 05 13 CE 48 0A BF 1E  87 21 83 DB 28 DE 03 42 
| FCCN/RCCN  -  Fundacao para a Computacao Cientifica Nacional 
| Av. Brasil, 101 / 1700-066 Lisboa / Portugal *** Tel: (+351) 218440100


diff -u qmail-1.03/qmail-smtpd.c qmail-1.03-maxrcpt/qmail-smtpd.c
--- qmail-1.03/qmail-smtpd.cMon Jun 15 11:53:16 1998
+++ qmail-1.03-maxrcpt/qmail-smtpd.cFri Nov  5 20:11:54 1999
@@ -27,6 +27,8 @@
 #define MAXHOPS 100
 unsigned int databytes = 0;
 int timeout = 1200;
+int rcptcounter = 0;
+int maxrcpt = -1;
 
 int safewrite(fd,buf,len) int fd; char *buf; int len;
 {
@@ -58,6 +60,7 @@
 void err_noop() { out("250 ok\r\n"); }
 void err_vrfy() { out("252 send some mail, i'll try my best\r\n"); }
 void err_qqt() { out("451 qqt failure (#4.3.0)\r\n"); }
+void err_excessrcpt() { out("666 Too many recipients specified (#5.5.4)\r\n"); }
 
 
 stralloc greeting = {0};
@@ -109,6 +112,7 @@
   if (liphostok == -1) die_control();
   if (control_readint(&timeout,"control/timeoutsmtpd") == -1) die_control();
   if (timeout <= 0) timeout = 1;
+  if (control_readint(&maxrcpt,"control/maxrcpt") == -1) die_control();
 
   if (rcpthosts_init() == -1) die_control();
 
@@ -240,6 +244,7 @@
 void smtp_mail(arg) char *arg;
 {
   if (!addrparse(arg)) { err_syntax(); return; }
+  rcptcounter = 0;
   flagbarf = bmfcheck();
   seenmail = 1;
   if (!stralloc_copys(&rcptto,"")) die_nomem();
@@ -248,7 +253,9 @@
   out("250 ok\r\n");
 }
 void smtp_rcpt(arg) char *arg; {
+  rcptcounter++; 
   if (!seenmail) { err_wantmail(); return; }
+  if (checkrcptcount() == 1) {err_excessrcpt(); }
   if (!addrparse(arg)) { err_syntax(); return; }
   if (flagbarf) { err_bmf(); return; }
   if (relayclient) {
@@ -392,6 +399,12 @@
   if (*qqx == 'D') out("554 "); else out("451 ");
   out(qqx + 1);
   out("\r\n");
+}
+
+int checkrcptcount() {
+  if (maxrcpt == -1) {return 0;}
+  else if (rcptcounter > maxrcpt) {return 1;}
+  else {return 0;}
 }
 
 struct commands smtpcommands[] = {



Re: Mail abuse in syslog

1999-11-12 Thread Markus Stumpf

On Fri, Nov 12, 1999 at 07:56:14AM -0500, Subba Rao wrote:
> How can my Qmail server relay to my ISP's mail server to avoid this
> problem? I tried to set the environment variable like MAILHOST and MAILUSER
> to point to my ISP account. It still doesn't work.

create a file control/smtproutes containing

:mail.your.isp


This will route eMail for all hosts/domains not listed in
control/locals
control/virtualdomains
to host
mail.your.isp

\Maex

-- 
SpaceNet GmbH |   http://www.Space.Net/   | Yeah, yo mama dresses
Research & Development| mailto:[EMAIL PROTECTED] | you funny and you need
Joseph-Dollinger-Bogen 14 |  Tel: +49 (89) 32356-0| a mouse to delete files
D-80807 Muenchen  |  Fax: +49 (89) 32356-299  |



Re: Message is looping .. why ?

1999-11-12 Thread Markus Stumpf

On Fri, Nov 12, 1999 at 11:59:31AM +0100, Puck wrote:
> Everytime i send mail to [EMAIL PROTECTED] i get :
> 
> Message-ID: 
> Return-Path: <>
> Delivered-To: [EMAIL PROTECTED]
> Received: (qmail 14114 invoked by uid 512); 8 Nov 1999 15:05:55 -
> Delivered-To: [EMAIL PROTECTED]
> Received: (qmail 14111 invoked for bounce); 8 Nov 1999 15:05:55 -
> Date: 8 Nov 1999 15:05:55 -
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: failure notice
> X-Mozilla-Status2: 
> 
> Hi. This is the qmail-send program at mohawk.n-online.net.
> I'm afraid I wasn't able to deliver your message to the following addresses.
> This is a permanent error; I've given up. Sorry it didn't work out.
> 
> <[EMAIL PROTECTED]>:
> This message is looping: it already has my Delivered-To line. (#5.4.6)
> 
> --- Below this line is a copy of the message.

And here would be the interesting part: the headers of the original
message. Take a look at the "Delivered-To: lines. These show the way
the deliveries went.

\Maex

-- 
SpaceNet GmbH |   http://www.Space.Net/   | Yeah, yo mama dresses
Research & Development| mailto:[EMAIL PROTECTED] | you funny and you need
Joseph-Dollinger-Bogen 14 |  Tel: +49 (89) 32356-0| a mouse to delete files
D-80807 Muenchen  |  Fax: +49 (89) 32356-299  |



Qmail log message

1999-11-12 Thread Subba Rao

Hello

I have one other question about relaying to my ISP's mail server.
Yesterday, while trying to send mail to a list, I found this in
my syslog.

Nov 12 07:58:17 caesar qmail: 942411497.876636 delivery 4: deferral: 
Connected_to_128.6.190.2_but_greeting_failed./Remote_host_said:_553-See_http://mail-abuse.org/dul/>/553-If_you_feel_we_mistreat_you,_do_contact_us./553_Ask_HELP_for_our_contact_information./

This mail server is not allowing any mail to be relayed from a dial-up
mail server. I have defined the following environment variables

MAILHOST=ibm.net
MAILUSER=subb3
QMAILHOST=ibm.net
QMAILUSER=subb3

How can I relay my mail to my ISP's mail server? Makes me wonder, why I
had to put so much effort into setting up my Qmail server.

Subba Rao
[EMAIL PROTECTED]
http://pws.prserv.net/truemax/



Re: Mail abuse in syslog

1999-11-12 Thread Subba Rao

On  0, Markus Stumpf <[EMAIL PROTECTED]> wrote:
> On Fri, Nov 12, 1999 at 07:56:14AM -0500, Subba Rao wrote:
> > How can my Qmail server relay to my ISP's mail server to avoid this
> > problem? I tried to set the environment variable like MAILHOST and MAILUSER
> > to point to my ISP account. It still doesn't work.
> 
> create a file control/smtproutes containing
> 
> :mail.your.isp
> 
> 
> This will route eMail for all hosts/domains not listed in
> control/locals
> control/virtualdomains
> to host
> mail.your.isp
> 
>   \Maex
> 

Thank you for replying. I did this what you suggested. Deos the mail
that is in the qmail use the smtproutes, to get delivered? The initial
mail, I sent out is still in the mailq. How do I flush it out?

Subba Rao
[EMAIL PROTECTED]
http://pws.prserv.net/truemax/



Re: Large message killing system

1999-11-12 Thread Matthew Callaway

Dave Sill wrote:

> >It's obvious that 150 MB of mail is a lot to process on such a pokey
> >little machine, but it seems a bit odd for the machine to completely
> >choke and die.
>
> If you push an underpowered system running antiquated software to the
> breaking point, don't be surprised if it breaks.
>
> Is that 16 MB RAM parity, ECC (:-), or pot luck? Do you have adequate
> swap?
>
> If qmail croaks a system, either the hardware or the OS is buggy.
>
> -Dave

The swap space is 50 MB, which seems adequate to me.

I realize that the machine is old, and is running software that has
updates, but the point is that a heavily loaded mail program shouldn't
*kill* a machine.  I would understand slow performance.  How can you be
sure that the hardware or the OS is buggy, and not qmail?  I'm not that
familiar with qmail.  Could it be that qmail could be reconfigured to
handle mail without bringing the system to its knees?

MC



RE: Ricardo Cerqueira and qmail-1.03-maxrcpt.patch

1999-11-12 Thread Andres Mendez

> I've just tried to use that patch (I extracted it from the mail, just to
be sure) over a clean source and it applied perfectly! Where does it fail
you?
>
> --
> root@avalon (/tmp/tests/qmail-1.03) # patch -p1 <
../qmail-1.03-maxrcpt.patch
> patching file `qmail-smtpd.c'
> root@avalon (/tmp/tests/qmail-1.03) #
> --

Haven't you seen that the file ends with "{". I don't know a lot about file
patching but a source code can't finish opening something "{".

I've done the same as you, and this is what happens:

root@avalon (/tmp/tests/qmail-1.03) # patch -p1 <
../qmail-1.03-maxrcpt.patch
patching file `qmail-smtpd.c'
Hunk #1 FAILED at 27.
Hunk #2 FAILED at 60.
Hunk #3 FAILED at 112.
Hunk #4 FAILED at 244.
Hunk #5 FAILED at 253.
Hunk #6 FAILED at 399.
6 out of 6 hunks FAILED -- saving rejects to qmail-smtpd.c.rej
root@avalon (/tmp/tests/qmail-1.03) #

And here I attach qmail-smtpd.c.rej


 qmail-smtpd.c.rej


Re: Ricardo Cerqueira and qmail-1.03-maxrcpt.patch

1999-11-12 Thread Peter Green

On Fri, Nov 12, 1999 at 02:23:09PM +0100, Andres Mendez wrote:
> > I've just tried to use that patch (I extracted it from the mail, just to
> > be sure) over a clean source and it applied perfectly! Where does it
> > fail you?
> >
> > --
> > root@avalon (/tmp/tests/qmail-1.03) # patch -p1 <
> ../qmail-1.03-maxrcpt.patch
> > patching file `qmail-smtpd.c'
> > root@avalon (/tmp/tests/qmail-1.03) #
> > --
> 
> Haven't you seen that the file ends with "{". I don't know a lot about file
> patching but a source code can't finish opening something "{".

File patching can end with whatever it wants, as it is not complete source
code. The line that ends with '{' is followed in the C source file by more
lines.

> I've done the same as you, and this is what happens:

Me too:

(pcg@micah) ~> lynx -source http://pobox.com/~djb/software/qmail-1.03.tar.gz > 
qmail-1.03.tar.gz
(pcg@micah) ~> tar -xzf qmail-1.03.tar.gz 
(pcg@micah) ~> cd qmail-1.03
/home/pcg/qmail-1.03
(pcg@micah) ~/qmail-1.03> patch -p1 < ../qmail-1.03-maxrcpt.patch 
patching file `qmail-smtpd.c'
(pcg@micah) ~/qmail-1.03>

What other patches have you applied to your source?

/pg
-- 
Peter Green
Gospel Communications Network, SysAdmin
[EMAIL PROTECTED]



qmail on Linux

1999-11-12 Thread Joe Millay

Hello,

I have installed Red Hat Linux 6.1 and included sendmail. Now, I think I
want to go with qmail, and have read the installation FAQ and the
docuemtn the FAQ instructed me to read about stopping sendmail. My
question is:

Would it be better to re-install Linux without sendmail and then install
qmail? I have not configured sendmail, so suppose it is a wash. But, I
am new to this email-server thing and I don't want sendmail to interfere
with qmail.


Any thoughts would be appreciated. By the way, this list is great. I've
been on it for only one day, perused the archives, etc and have learned
so much.

Thank you,
Joe Millay



Re: qmail on Linux

1999-11-12 Thread Thorkild Stray

On Fri, 12 Nov 1999, Joe Millay wrote:

> Hello,
> I have installed Red Hat Linux 6.1 and included sendmail. Now, I think I
> want to go with qmail, and have read the installation FAQ and the
> docuemtn the FAQ instructed me to read about stopping sendmail. My
> question is: 
> Would it be better to re-install Linux without sendmail and then install
> qmail? I have not configured sendmail, so suppose it is a wash. But, I
> am new to this email-server thing and I don't want sendmail to interfere
> with qmail.

A simple rpm-command will delete all references to sendmail.

rpm -e sendmail

If I recall correctly.

There is no need to reinstall the rest.

-- 
Thorkild



Re: qmail on Linux

1999-11-12 Thread Peter Green

On Fri, Nov 12, 1999 at 09:06:16AM -0500, Joe Millay wrote:
> Hello,
> 
> I have installed Red Hat Linux 6.1 and included sendmail. Now, I think I
> want to go with qmail, and have read the installation FAQ and the
> docuemtn the FAQ instructed me to read about stopping sendmail. My
> question is:
> 
> Would it be better to re-install Linux without sendmail and then install
> qmail? I have not configured sendmail, so suppose it is a wash. But, I
> am new to this email-server thing and I don't want sendmail to interfere
> with qmail.

It really is a wash. You can simply:

/etc/rc.d/init.d/sendmail stop
rpm -e sendmail

You'll probably need to finagle some packages that require sendmail, but
it's usually not a big deal. I've --force'd and --nodeps'd many a package
without too much harm... :)

If you're reluctant to uninstall sendmail totally because you're unsure if
it might break something, just stop the sendmail service, remove
/usr/lib/sendmail and /usr/sbin/sendmail, and link both to
/var/qmail/bin/sendmail (once you have qmail installed).

/pg
-- 
Peter Green
Gospel Communications Network, SysAdmin
[EMAIL PROTECTED]



Re: qmail on Linux

1999-11-12 Thread Simon Rae

Check out Dave Sill's excellent 'Life with qmail'. It fully explains how to
switch from sendmail.

http://Web.InfoAve.Net/~dsill/lwq.html

Si

Joe Millay wrote:

> Hello,
>
> I have installed Red Hat Linux 6.1 and included sendmail. Now, I think I
> want to go with qmail, and have read the installation FAQ and the
> docuemtn the FAQ instructed me to read about stopping sendmail. My
> question is:
>
> Would it be better to re-install Linux without sendmail and then install
> qmail? I have not configured sendmail, so suppose it is a wash. But, I
> am new to this email-server thing and I don't want sendmail to interfere
> with qmail.
>
> Any thoughts would be appreciated. By the way, this list is great. I've
> been on it for only one day, perused the archives, etc and have learned
> so much.
>
> Thank you,
> Joe Millay



Re: Large message killing system

1999-11-12 Thread Dave Sill

Matthew Callaway <[EMAIL PROTECTED]> wrote:

>I realize that the machine is old, and is running software that has
>updates, but the point is that a heavily loaded mail program shouldn't
>*kill* a machine.

When you say "kill", do you mean the system actually crashes, or just
slows to a crawl? If it crashes, that either a kernel bug or a
hardware error. If it slows dramatically, that's just what happens
when a system is severely overloaded.

>I would understand slow performance.  How can you be
>sure that the hardware or the OS is buggy, and not qmail?

Assuming your system is really crashing, that has to be due to a
hardware error or kernel bug because there's nothing an application
like qmail can do to cause a crash. The worst that an application can
do is kill itself. Or does your OS have a crash() system call?

>I'm not that
>familiar with qmail.  Could it be that qmail could be reconfigured to
>handle mail without bringing the system to its knees?

Sure. Set concurrencylocal to 1, concurrencyremote to 1, and run
tcpserver with "-c1".

-Dave



Re: qmail on Linux

1999-11-12 Thread Dave Sill

Joe Millay <[EMAIL PROTECTED]> wrote:

>Would it be better to re-install [Red Hat] Linux without sendmail and
>then install qmail?

That would be nice, but there are two problems with that approach: (1) 
it's almost(?) impossible to install RHL without getting sendmail,
even if you don't select it, because it's a prerequisite for many
other packages, and (2) it's completely unnecessary: just do "rpm -e
--nodeps sendmail".

-Dave



Re: qmail on Linux

1999-11-12 Thread Brian Estes

I did this ...

rpm -e sendmail

BUT if you installed other rpms that rely on sendmail you must remove them
first.


- Original Message -
From: Joe Millay <[EMAIL PROTECTED]>
To: qmail <[EMAIL PROTECTED]>
Sent: Friday, November 12, 1999 9:06 AM
Subject: qmail on Linux


> Hello,
>
> I have installed Red Hat Linux 6.1 and included sendmail. Now, I think I
> want to go with qmail, and have read the installation FAQ and the
> docuemtn the FAQ instructed me to read about stopping sendmail. My
> question is:
>
> Would it be better to re-install Linux without sendmail and then install
> qmail? I have not configured sendmail, so suppose it is a wash. But, I
> am new to this email-server thing and I don't want sendmail to interfere
> with qmail.
>
>
> Any thoughts would be appreciated. By the way, this list is great. I've
> been on it for only one day, perused the archives, etc and have learned
> so much.
>
> Thank you,
> Joe Millay
>
>



Re: qmail on Linux

1999-11-12 Thread Chris Garrigues

> From:  Dave Sill <[EMAIL PROTECTED]>
> Date:  Fri, 12 Nov 1999 09:43:50 -0500 (EST)
>
> Joe Millay <[EMAIL PROTECTED]> wrote:
> 
> >Would it be better to re-install [Red Hat] Linux without sendmail and
> >then install qmail?
> 
> That would be nice, but there are two problems with that approach: (1) 
> it's almost(?) impossible to install RHL without getting sendmail,
> even if you don't select it, because it's a prerequisite for many
> other packages, and (2) it's completely unnecessary: just do "rpm -e
> --nodeps sendmail".

I use a modified version of the install image that includes qmail and excludes 
sendmail.  Works like a charm, but it's a bit of an effort to get it to that 
point.

Chris

-- 
Chris Garrigues virCIO
http://www.DeepEddy.Com/~cwg/   http://www.virCIO.Com
+1 512 432 4046 +1 512 374 0500
4314 Avenue C
O-  Austin, TX  78751-3709


  My email address is an experiment in SPAM elimination.  For an
  explanation of what we're doing, see http://www.DeepEddy.Com/tms.html 

Nobody ever got fired for buying Microsoft,
  but they could get fired for relying on Microsoft.



 PGP signature


Re: Benchmark of Qmail SMTPD

1999-11-12 Thread Dave Sill

[EMAIL PROTECTED] wrote:

>"qmail is a secure, reliable, efficient, simple message transfer
>agent. It is meant as a replacement for the entire sendmail-binmail
>system on typical Internet-connected UNIX hosts", yeah,yeahbut in
>my feeling, it is not so fast at all.(I have use qmail for nearly 1
>year!) 
>
>And following is the data of my test:
>
>[results deleted]
>
>All letters was sent to MTA by port 25,and to a local address.

Your test demonstrated that sendmail delivered a flood of messages to
a single local user faster than qmail. Big deal. Either MTA will
deliver messages to a user faster than they can read them, so who
cares? :-)

As Russ pointed out, sendmail might have been faster at this task, but 
qmail was more reliable and secure. Reliability and security don't
come without cost. Did you verify that both MTA's actually delivered
all of the messages you sent?

Also, your test is highly dependent upon the local delivery mechanism, 
and you gave no details about that whatsoever. Sendmail doesn't do
local delivery at all: it hands messages off to /bin/mail or procmail
or some other Message Delivery Agent (MDA). What did the sendmail in
your test use? qmail can do local delivery itself to either an mbox or 
maildir mailbox, or it can use an external MDA like /bin/mail or
procmail. To be fair, your test should have used the same MDA sendmail 
used. Did it?

Benchmarking is *very* hard to get right. I suggest you leave it to
experts until you know how to do it properly.

-Dave



Re: vpopmail installation error

1999-11-12 Thread Mark Evans

> 
> On Thu, Nov 11, 1999 at 08:44:50PM +0800, john wrote:
> > When I was installing VPOPMAIL in RH 6.1 i issued the command
> > 
> > immediately I got an warning message saying :
> > 
> > Warning : Clock skew detected. Your installation may be incomplete.
> 
> This is a warning from 'make'. Whenever I see this message, it's because the
> system clock has somehow gotten offtrack. Usually not a good sign, might be
> a hardware (CMOS?) error.

You can also get this where the source is on an NFS mounted filesystem and
the server and *ALL* clients do not have their clocks in step.

-- 
Mark Evans
St. Peter's CofE High School
Phone: +44 1392 204764 X109
Fax: +44 1392 204763



Re: Queuing question...

1999-11-12 Thread Mark Evans

>  For some reason, qmail seems to be taking a long time (perhaps forever)
> to deliver certain mails. Some mails seem to sit in the queue for ages,
> and I can't work out how to discern why they are being delayed. It may
> be that the destination host isn't there - but I can't tell that.
> Sendmail was always nice enough to tell me if mails were being
> delayed...how can I get qmail to tell me what's up ?

Do something like "host -t MX " then try traceroute and ping on
the MX hosts given. Also try telnet to port 25 on them.

This will tell you if
a) it's there
b) it's accepting SMTP mail.

>  Second, when I run a fetchmail, to get mails from a very remote host,
> it dumps them in the local queue (fetchmail connects to port 25 locally,
> for delivery). qmail-qstat shows them sitting there, and they are never
> delivered - until I do something like "/etc/rc.d/init.d/qmail.init
> restart" - and then they are delivered inside a second.

What happens with mail sent using qmail-inject?

Have you tried the tests described in TEST.* (in the source directory)?

-- 
Mark Evans
St. Peter's CofE High School
Phone: +44 1392 204764 X109
Fax: +44 1392 204763



Re: Benchmark of Qmail SMTPD

1999-11-12 Thread David Dyer-Bennet

Dave Sill <[EMAIL PROTECTED]> writes on 12 November 1999 at 10:02:55 -0500

 > Benchmarking is *very* hard to get right. I suggest you leave it to
 > experts until you know how to do it properly.

While I agree with the first sentence, I can't agree with the second.
Trying to do benchmarking is *very* educational.  I do understand the
frustration of seeing incorrect benchmarks about something we care
about published.
-- 
David Dyer-Bennet / Join the 20th century before it's too late! / [EMAIL PROTECTED]
http://dd-b.lighthunters.net/ (photos) Minicon: http://www.mnstf.org/minicon
http://www.dd-b.net/dd-b (sf) http://ouroboros.demesne.com/ Ouroboros Bookworms



qmailanalog question

1999-11-12 Thread jkk

Hello,

qmail-1.03, qmailanalog-0.70

I'm truing to make two quieries for a user:

1. Who the user sends mail to (and how many)?
2. Who the user receives mail from (and how many)?

So, I do the folloing with my processed "mail.log":

cat mail.log | xsender [EMAIL PROTECTED] | zrecipients
cat mail.log | xrecipient [EMAIL PROTECTED] | zsenders

The first one works fine, but the second one doesn't.
May be I'm wrong somewhere ...

Thanks for help.

-
| Georgi Kupenov, | |
| tel.: +359-2-9630641| ProLink Ltd.|
|   +359-2-9630651| |
-




Re: RBL

1999-11-12 Thread David Dyer-Bennet

Noah Sutherland <[EMAIL PROTECTED]> writes on 11 November 1999 at 14:43:25 -0800
 > I am trying to set up the RBL for the first time. It just is *not*
 > working. OK, first, here is the recommended startup line from the web
 > site:
 > tcpserver 0 25 tcpcontrol /etc/smtp.cdb /usr/local/bin/smtplog qmail-smtpd
 > 2>&1 | logger -p mail.notice &
 > 
 > Since I'm running ucspi 0.84, I believe I shouldn't use tcpcontrol
 > (correct?) so here is my current startup line:
 > /usr/local/bin/tcpserver -c100 -u502 -g501 -x/etc/tcp.smtp.cdb 0 25
 > /var/qmail/bin/smtplog /var/qmail/bin/qmail-smtpd 2>&1 | logger -p
 > mail.notice &

What method of RBL are you trying to use?  The standard qmail method
requires running rblsmtpd, which I don't see you doing.  There were
some old patches to integrate the functionality into qmail; were you
using those instead?

Anyway, here's what I do (sorry for the complexity; it doesn't need to
be this messy, but I'm afraid if I fake it I'll get something wrong):

rblzones="rbl.maps.vix.com relays.mail-abuse.org dul.maps.vix.com"
rblprog="/usr/bin/rblsmtpd"
rblcmd=""
for zn in $rblzones ; do
rblcmd="$rblcmd $rblprog -b -r $zn"
done

(this produces an rblcmd that looks something like "/usr/bin/rblsmtpd
-b -r dul.maps.vix.com /usr/bin/rblsmtpd -b -r relays.mail-abuse.org
/usr/bin/rbmsmtpd -b -r rbl.maps.fix.com", but with no line breaks in it)

/usr/local/bin/supervise /var/run/tcpserver-qmail /usr/local/bin/tcpserver -v -pR 
-c50 -u70 -g70 -x/etc/tcp.smtp.cdb 0 smtp $rblcmd /var/qmail/bin/qmail-smtpd 2>&1 | 
/var/qmail/bin/splogger smtpd 2 &

What this ends up being is a big stack of programs which do their
thing, and then exec other programs to do another thing.  The last one
invoked is the actual qmail-smtpd.

Here's what my tcp.smtp looks like:

# tcpcontrol(8) rules for qmail smtp daemon
#
# In general, anywhere I want to allow relaying from, I probably want
# to ignore spamblocks too.

# Allow relaying from my own addresses -- at gofast
206.147.220.161-165:allow,RELAYCLIENT="",RBLSMTPD=""
#
# Blaisdell poly USWest static address
63.224.10.78:allow,RELAYCLIENT="",RBLSMTPD=""
#
# Lydy at work (All of MultiLogic, really used just by Lydy)
206.144.140.:allow,RELAYCLIENT="",RBLSMTPD=""
#
# Finally, allow anything else, but without relaying
# (Domains to refuse entirely would go above this)
:allow

And this has to be compiled into a cdb with a command like
tcprules tcp.smtp.cdb ddbfoobar < tcp.smtp
-- 
David Dyer-Bennet / Join the 20th century before it's too late! / [EMAIL PROTECTED]
http://dd-b.lighthunters.net/ (photos) Minicon: http://www.mnstf.org/minicon
http://www.dd-b.net/dd-b (sf) http://ouroboros.demesne.com/ Ouroboros Bookworms



log rotation

1999-11-12 Thread Brian Estes



could someone post their log rotation script I can use. 
The goal would be not to loose any data, short of shutding down the 
server
 
Thanks
<><
Brian


Re: Mail abuse in syslog

1999-11-12 Thread Mark Evans

> 
> 
> Hello,
> 
> I saw this in my syslog file.
> 
> Nov 11 22:43:51 starsys qmail: 942378231.489619 delivery 34: deferral: 
>Connected_to_189.9.90.12_but_greeting_failed./Remote_host_said:_553-See_http://mail-abuse.org/dul/>/553-If_you_feel_we_mistreat_you,_do_contact_us./553_Ask_HELP_for_our_contact_information./

Someone at mail-abuse.org came up with the idea of creating a list to enable
ISP's to "blacklist" their pools of dialups.
Apparently they assumed that the "stuff it all to a smarthost" is the correct
way to do SMTP email. Possibly because it's the only thing the likes of
Netscape and IE can handle. Even though this approach isn't, AFAIK, even
mentioned, let alone advised in any RFC.

The actual RFC complient way is to do an MX DNS lookup and attempt to 
connect in the order of the preference field. Which the DUL will quite
happily break.

IIRC somewhere in the docs there are instructions on how to hack qmail
to send through a specific relay machine. Alternativly complain to your
ISP or change ISP's.

-- 
Mark Evans
St. Peter's CofE High School
Phone: +44 1392 204764 X109
Fax: +44 1392 204763



Re: Mail abuse in syslog

1999-11-12 Thread Russell Nelson

Mark Evans writes:
 > > Nov 11 22:43:51 starsys qmail: 942378231.489619 delivery 34: deferral: 
 >Connected_to_189.9.90.12_but_greeting_failed./Remote_host_said:_553-See_http://mail-abuse.org/dul/>/553-If_you_feel_we_mistreat_you,_do_contact_us./553_Ask_HELP_for_our_contact_information./

 > IIRC somewhere in the docs there are instructions on how to hack qmail
 > to send through a specific relay machine.

Yes, he should have ibm.net's SMTP server listed in control/smtproutes 
as the default entry.

 > Alternativly complain to your
 > ISP or change ISP's.

It's not his ISP.  His ISP (ibm.net) has no control over this.  It's
dialups are going to be listed in the DUL whether or not ibm.net
cooperates.

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



Re: log rotation

1999-11-12 Thread waskita adijarto

On Fri, 12 Nov 1999, Brian Estes wrote:

> Date: Fri, 12 Nov 1999 10:57:31 -0500
> From: Brian Estes <[EMAIL PROTECTED]>
> To: qmail <[EMAIL PROTECTED]>
> Subject: log rotation
> 
> could someone post their log rotation script I can use. The goal would be not to 
>loose any data, short of shutding down the server

if you use cyclog, there's not much need for log rotation script.

-w-



Re: log rotation

1999-11-12 Thread farber

Is there a way to make cyclog use a bit more intuitive file name?
@4937823749383 and @43948389393 just don't do it for me.

Paul Farber
Farber Technology
[EMAIL PROTECTED]
Ph  570-628-5303
Fax 570-628-5545

On Fri, 12 Nov 1999, waskita adijarto wrote:

> On Fri, 12 Nov 1999, Brian Estes wrote:
> 
> > Date: Fri, 12 Nov 1999 10:57:31 -0500
> > From: Brian Estes <[EMAIL PROTECTED]>
> > To: qmail <[EMAIL PROTECTED]>
> > Subject: log rotation
> > 
> > could someone post their log rotation script I can use. The goal would be not to 
>loose any data, short of shutding down the server
> 
> if you use cyclog, there's not much need for log rotation script.
> 
> -w-
> 
> 



thank you

1999-11-12 Thread Nicole & Ron McIntosh



I finally got Qmail up and running without errors, 
thanx for all the help.
Nicole & Ron McIntosh 



Re: Mail abuse in syslog

1999-11-12 Thread David Dyer-Bennet

Mark Evans <[EMAIL PROTECTED]> writes on 12 November 1999 at 16:22:40 +

 > Someone at mail-abuse.org came up with the idea of creating a list to enable
 > ISP's to "blacklist" their pools of dialups.

Um, no.  ISPs aren't expected to report this themselves.  And the idea
came about because they noticed more and more spam coming from dial-up
IPs. 

And at least on my system, it blocks far more spam than anything else
I use, AND blocks far fewer legitemate connections than RBL or ORBS
have.   (Wow; just looked at the most recent stats, and for this
period I'm wrong; RSS blocked 75, DUL blocked 53, and RBL blocked 8.
I check them in that order.)
-- 
David Dyer-Bennet / Join the 20th century before it's too late! / [EMAIL PROTECTED]
http://dd-b.lighthunters.net/ (photos) Minicon: http://www.mnstf.org/minicon
http://www.dd-b.net/dd-b (sf) http://ouroboros.demesne.com/ Ouroboros Bookworms



deliverable message header parsing

1999-11-12 Thread Derek Callaway

Is there a way I can pipe the headers of each incoming message that is
successfully delivered through a program? I wish to insert certain fields
from the headers (From, Subject, To, etc.) into a MySQL database.

--
Derek Callaway <[EMAIL PROTECTED]> 
Programmer; CE Net, Inc.
(302) 854-5440 Ext. 206



Re: log rotation

1999-11-12 Thread Russell Nelson

[EMAIL PROTECTED] writes:
 > Is there a way to make cyclog use a bit more intuitive file name?
 > @4937823749383 and @43948389393 just don't do it for me.

No.  Logfiles are rolled over based on their size, not their date.
Write a front-end.

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



Re: deliverable message header parsing

1999-11-12 Thread Markus Stumpf

On Fri, Nov 12, 1999 at 11:56:19AM -0500, Derek Callaway wrote:
> Is there a way I can pipe the headers of each incoming message that is
> successfully delivered through a program? I wish to insert certain fields
> from the headers (From, Subject, To, etc.) into a MySQL database.

If "successfully" is an option and not a must, you can configure a
extra delivery in  extra.h  in the qmail source tree.
I use
#define QUEUE_EXTRA "Tlog\0"
#define QUEUE_EXTRALEN 5
wich causes a copy of *each* message to be delivered to user "log".

I have a small awk programm in ~alias/.qmail-log which does some
header processing and additional logging.

\Maex

-- 
SpaceNet GmbH |   http://www.Space.Net/   | Yeah, yo mama dresses
Research & Development| mailto:[EMAIL PROTECTED] | you funny and you need
Joseph-Dollinger-Bogen 14 |  Tel: +49 (89) 32356-0| a mouse to delete files
D-80807 Muenchen  |  Fax: +49 (89) 32356-299  |



Re: RBL

1999-11-12 Thread Noah Sutherland

On Fri, 12 Nov 1999, David Dyer-Bennet wrote:

> What method of RBL are you trying to use?  The standard qmail method
> requires running rblsmtpd, which I don't see you doing.  There were
> some old patches to integrate the functionality into qmail; were you
> using those instead?

I was trying the patches. That's what I get for going to the qmail web
page and searching for rbl. ;)

Thanks. I think I have it working now.

Sincerely,
Noah Sutherland   System Administrator - Internet On-Ramp
[EMAIL PROTECTED]

To get my PGP public key, please email to [EMAIL PROTECTED]
or you can get it at BAL's public key server at http://pgp.ai.mit.edu/



Re: deliverable message header parsing

1999-11-12 Thread Derek Callaway

On Fri, 12 Nov 1999, Markus Stumpf wrote:


> 
> If "successfully" is an option and not a must, you can configure a
> extra delivery in  extra.h  in the qmail source tree.
> I use
> #define QUEUE_EXTRA "Tlog\0"
> #define QUEUE_EXTRALEN 5
> wich causes a copy of *each* message to be delivered to user "log".
> 
> I have a small awk programm in ~alias/.qmail-log which does some
> header processing and additional logging.
> 
>   \Maex

Thanks, but I need something that's reliable. :\

--
Derek Callaway <[EMAIL PROTECTED]> 
Programmer; CE Net, Inc.
(302) 854-5440 Ext. 206





Re: delivery to a directory

1999-11-12 Thread Phil Howard

Florian G. Pflug wrote:

> > I'm not sure I find this or not.  I didn't find something literally that,
> > but I found many "virtual" things there.  Part of the problem, I think, is
> > that there isn't a precise meaning for "virtual".
> Well.. you are right - but "virtualdomain" ist quite precise, if you stay in
> the qmail context ;-)

How about "virtualusers".

What I am looking at doing will include fuzzy matching of existing users
from a database, and optionally users don't need to exist to be delivered.


> > If it uses /var/qmail/users/assign then it's not what I want, and not what I
> > call virtual.  To me, one of the attributes of virtual is that there is no
> > table of mapping between a user e-mail address and where to deliver, but
> > instead, the determination of where to deliver is a functional relation to
> > the e-mail address.
> It´s virtual, the same as you have "virtual" http-hosts...

There's virtual by IP, virtual by Host, and I've twisted both concepts
around using some CGI code, too.


> But I guess I know what you want - from the address [EMAIL PROTECTED], you
> want the mail to be stored in "/somepath/domain.com/user" - not a
> "static" mapping, "calculated" from the address? Then you could think about
> patching/rewriting qmail-local - altough maybe you should hink about writing
> you own smtp-server/mda for that purpose.

That's the point I want to start from.  Then from there employ more ideas
to change it even further.  It looks like maildir is so simple I can just
do the delivery right in my own code.  I won't have to parse any headers.
And presumebly, what qmail-local pipes to my program is exactly what goes
in the file, so it should be trivial.


> jes - create /users/assign from the database.. ;-))

There will be a many-to-one relationship in the address to mailbox mapping.
So this is probably not scalable.


> > At the same time there may be a catch.  The default delivery for the local
> > host (e.g. listed in locals, for users in /etc/passwd, with distinct uids),
> > is not maildir, but "./Mailbox".  I need to be able to leave local users as
> > all "./Mailbox" by default (unless overridden in a .qmail file for each user
> > individually), yet have maildirs used for all the virtualdomains users without
> > creating zillions of .qmail files.
> you could make .qmail files for local users, overiding the Maildir default
> to Mailbox - or just take one machine for all those thousands of users and
> "virtual"domains, and another one for the shell accounts.

The shell accounts won't go through my delivery program.  But if my program
does the actual maildir create/write/link/delete steps, then it won't matter
what the default is, which can stay Mailbox ... everything going through my
program will be maildir anyway.  I just need to make sure I'm not going to
run into something unexpected.


> > We'll be doing the web interface for administration as an integral part of
> > the whole internet service administration, working through a central database
> > that records every service, not just e-mail.  E-mail configuration will then
> > be derived from that database much like web configuration, DNS configuration,
> > and so forth.  I will be able to add a new customer, specify domains, and
> > let them add their own users and subdomains, and it will automatically set
> > up their e-mail, radius for dialup, routing for dedicated DSL, web service,
> > and whatever else (the exact system hasn't been chosen, yet).
> Wow.. Zero Administration ISP - sounds quite cool.

Yeah ... put myself out of a job.

-- 
Phil Howard | [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
  phil  | [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
  at| [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
  ipal  | [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
 dot| [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
  net   | [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]



Re: qmail tuning question

1999-11-12 Thread Dave Sill

"scott f. lanes" <[EMAIL PROTECTED]> wrote:

>>Stop qmail, delete queue files, restart qmail. There are tools on
>>www.qmail.org to make this easier.
>
>is this just as simple as deleting the files within each one of the
>numbered directories in /var/qmail/queue/remote and /var/qmail/queue/mess?

Yes. Well, all queue subdirectories, not just remote and mess--though
those are the most likely suspects.

-Dave



RE: Newbie (if u could not tell)

1999-11-12 Thread Dave Sill

"Michael M. Honse" <[EMAIL PROTECTED]> wrote:

>?? if the error is not from qmail any idea where its from ?

Sendmail:

de5@sws5$ telnet 208.129.195.197 25
Trying 208.129.195.197...
Connected to 208.129.195.197.
Escape character is '^]'.
220 mail.ablecompor.com ESMTP Sendmail 8.8.8/8.8.8; Fri, 12 Nov 1999 11:35:49 -0800 
(PST)

-Dave



Re: logging confusion..

1999-11-12 Thread Dave Sill

"Marc-Adrian Napoli" <[EMAIL PROTECTED]> wrote:

>I'm assuming that there aer two things coming up in my log:
>
>1. The incoming smtpd connections that qmail-smtpd is dealing with, and
>
>2. The qmail-send program which is deciding whether to spawn qmail-lspawn or
>qmail-rspawn for outgoing mails.

Correct.

>Now, if my assumption is right, can anyone else think of any other handy
>information to log?

Nope.

>And, can anyone suggest how i use qmail-analog to parse my mail.log file?
>Running matchup < /var/log/mail.log just cats the mail.log file and gives me
>no useful information :(

You're not running matchup right. You should feed it *only* the
qmail-send entries, and you have to strip the syslog gunk off.

-Dave



Re: qmailanalog question

1999-11-12 Thread Dave Sill

Warning: egregious use of "cat" ahead.

<[EMAIL PROTECTED]> wrote:

>qmail-1.03, qmailanalog-0.70
>
>I'm truing to make two quieries for a user:
>
>1. Who the user sends mail to (and how many)?
>2. Who the user receives mail from (and how many)?
>
>So, I do the folloing with my processed "mail.log":
>
>cat mail.log | xsender [EMAIL PROTECTED] | zrecipients
>cat mail.log | xrecipient [EMAIL PROTECTED] | zsenders
>
>The first one works fine, but the second one doesn't.
>May be I'm wrong somewhere ...

Does "xrecipient [EMAIL PROTECTED] 


Re: Maildrop samples

1999-11-12 Thread Jay Swackhamer

From: Keith Burdis <[EMAIL PROTECTED]>
> There are some examples in the maildropex(5) man page.

There are dozens more examples in the qmail-uce anti-spam package on
Mr.Sam's page.
http://www.geocities.com/SiliconValley/Peaks/5799/qmail-uce.html


--
Jay Swackhamer <[EMAIL PROTECTED]>
WCi system/network administrator





Re: qmail on Linux

1999-11-12 Thread Kevin Waterson

Joe Millay wrote:

> Would it be better to re-install Linux without sendmail and then install
> qmail? I have not configured sendmail, so suppose it is a wash. But, I
> am new to this email-server thing and I don't want sendmail to interfere
> with qmail.

No need to re-install, infact it would make no difference as sendmail is
part of the base install of rh and will install no matter what you do.
( I have fixed this behaviour and removed sendmail from the RH distro and
put in qmail, along with some other goodies, will release it soon)

I have also made up a simple script to automate the process of installing
qmail on redhat using rpms.
The rpms and install script can be found on my ftp at
ftp.oceania.net
I think in the /pub/linux/qmail directory

WARNING.
The install script will stop and delete sendmail and any dependant
packages.
these include nmh, exmh, fetchmail

Enjoy

Kevin



Re: deliverable message header parsing

1999-11-12 Thread Fred Lindberg

On Fri, 12 Nov 1999 13:55:19 -0500 (EST), Derek Callaway wrote:

>Thanks, but I need something that's reliable. :\

The described option is 100% reliable if done right. I assume you mean
that you need to know with certainty if delivery was successful.

qmail-send knows both the message and what has succeeded/failed. For
local delivery only, qmail-local, for remote only qmail-remote. Modify
to add your logging.

I'd be leery adding that amount of overhead to qmail-remote, but if
it's for local only ... Size is less relevant for qmail-send (there is
only one) and done right it could be cheap.

If you run a single UID pop system, you can add a program delivery to
the relevant .qmail. 100% reliable if done right and simpler.


-Sincerely, Fred

(Frederik Lindberg, Infectious Diseases, WashU, St. Louis, MO, USA)




big todo patch

1999-11-12 Thread Racer X

doh, meant to send this to the list instead of just to russ :)

disclaimer: some of what i'm talking about may be slightly off.

if i'm not mistaken, the point of the big-todo patch is to keep the
individual queue directories from containing a huge amount of files.  the
default qmail install uses 23 directories, and if you have (say) 25000
messages queued up, each directory will probably have over 1000 files in it.

the problem with that is that there are some filesystems that get VERY slow
on readdir() calls with lots of files in the directory.  i think this is a
well known problem with ext2fs on linux, i know i've seen it happen before
when i had 2 postmaster messages in my maildir one morning.  using
big-todo can alleviate this problem by reducing the number of files in each
queue directory to something that readdir() can cope with better.

however, it's probably only useful for a site that does a LOT of small
messages, each with different senders and recipients.  if you're just
running a list server or something i doubt it will make much difference.
still, i doubt it will hurt anything in any case, but someone else might
want to comment on that.

shag
=
Judd Bourgeois|   CNM Network  +1 (805) 520-7170
Software Architect|   1900 Los Angeles Avenue, 2nd Floor
[EMAIL PROTECTED]   |   Simi Valley, CA 93065

Quidquid latine dictum sit, altum viditur.




Sorting incoming mail.

1999-11-12 Thread Tristan Hannover

Hello,

I was curious if anyone uses maildrop (or equivalents) to sort incoming
mail to various folders (depending on subject, from, to), or even
rewrite various headers on demand.
And if so, would anyone please show me the correct to integrate maildrop
into qmail?  Maildrop's homepage shows its setup for sendmail, but makes
no references for qmail.

I tried to use the procmail startup files, and when replaced procmail
with maildrop string (for piping incoming messages to it), my qmail no
longer receives any mail.  

Thanks,
Tris



RE: problems with multiple instances of qmail.

1999-11-12 Thread Dongping Deng

On Thu, Nov 11, 1999 at 05:15:14PM -0800, Dongping Deng wrote:
>> If I only inject to one of them (both qmail/qmail2 are running), it also
>> works fine. It seems the two instances start to do something funny. Any
>> ideas?

>You're running out of filedescriptors (either for that users (qmail*)
>or system wide). Increase the limits and it should work. For that you
>either have to use "ulimit" before starting qmail, configure some
>kernel limits or even build a new kernel.

Thanks, I did found the error message "VFS: file-max limit 4096 reached" in
dmesg.

It's still weird. I have concurencyremote=250 for each instance, and the
open files value obtained from ulimit is 1024 ( 1024 >> 2*250 + 5). It seems
to me there's enough margin for it.  BTW, how is the requirement for
filedescriptor > 2*concurrencyremote + 5 working for mulitiple qmail
instances?

dp



[Slightly OT] OSS & Best Practices

1999-11-12 Thread Jeff Taylor

Apologies to non-developers for a slightly off topic post.  I am
writing on Open Source Software & Best Practices (e.g., peer review,
source code management, ego-less programming, and defect tracking).
The first draft is at muskrat.home.texas.net/oss_bp.html.  I am
looking for other examples.  If you have any comments, stories,
etc. please e-mail with them directly.

Thank you,
  Jeffrey L. Taylor