Long connect times

2001-06-14 Thread Jon Booth

Hi all,
I am using QMail with xinetd. It takes ages for a PC internally (allowed
to relay) to connect to the server. Outside servers can connect instantly. 
Where should I look to diagnose this problem

Thanks for any help

Jon Booth

Lucid Logic Pty. Ltd.
http://www.lucidlogic.com
+61 3 9853 7452
+61 412 767 030





Re: Long connect times

2001-06-14 Thread Jörgen Persson

On Thu, Jun 14, 2001 at 05:39:06PM +1000, Jon Booth wrote:
 Hi all,
 I am using QMail with xinetd. It takes ages for a PC internally (allowed
 to relay) to connect to the server. Outside servers can connect instantly. 
 Where should I look to diagnose this problem


I'm not familiar with xinetd but it might be configured to do reversed
DNS lookups for incoming connections. It will most probably delay the
connection if it can't do that properly.

By the way, tcpserver[1] is the prefered internet daemon for qmail.


Jörgen

[1] http://cr.yp.to/ucspi-tcp.html



Re: Long connect times

2001-06-14 Thread Jon Booth

That would make sense. How can I stop it from doing reverse lookups? Its
not practical from me to set up reverse DNS for these internal IPs.

Thanks
Jon

On Thu, 14 Jun 2001, [iso-8859-1] Jörgen Persson wrote:

 On Thu, Jun 14, 2001 at 05:39:06PM +1000, Jon Booth wrote:
  Hi all,
  I am using QMail with xinetd. It takes ages for a PC internally (allowed
  to relay) to connect to the server. Outside servers can connect instantly. 
  Where should I look to diagnose this problem
 
 
 I'm not familiar with xinetd but it might be configured to do reversed
 DNS lookups for incoming connections. It will most probably delay the
 connection if it can't do that properly.
 
 By the way, tcpserver[1] is the prefered internet daemon for qmail.
 
 
 Jörgen
 
 [1] http://cr.yp.to/ucspi-tcp.html
 




qmail date sync prob?

2001-06-14 Thread Tim Rainier

We have an extendnet box running Debian.  Our qmail program has a problem
where it will stop functioning until we do something to modify the date.
simply running a touch command on it, gets it back up and running.
any ideas?

Tim Rainier
Manufacturing Systems Analyst
Kalsec Inc.
Office: 800.800.6165 ext: 3354
Cell: 616.274.7118
Pager: 616.413.1607





mini-qmail with smtp

2001-06-14 Thread Clemens Hermann

Hi,

in a small network I want to have one qmail machine where all the clients can send 
their mails via smtp. This machine then will forward the mails via smtp to the 
smarthost of my provider.
If I got it rigt, much of a normal qmail installation is not needed because no local 
delivery is necessary, the mails are just piped through the server.
There is one problem I have with mini-qmail: My Provider does not support qmtp. Can I 
just replace the according passages with smtp or will this lead into trouble?
Second: mini-qmail has no queue. What happens if more mails arrive than the server is 
able to deliver if there is no way to queue?
Is there somthing in the web that an advise me how to build the intended setup?

tia

/ch



Re: Long connect times

2001-06-14 Thread Jörgen Persson

On Thu, Jun 14, 2001 at 06:15:17PM +1000, Jon Booth wrote:
 That would make sense. How can I stop it from doing reverse lookups? Its
 not practical from me to set up reverse DNS for these internal IPs.


I've got no clue how to do that with xinetd but it's use with qmail is
mentioned in their FAQ[1].

Jörgen
[1] http://www.xinetd.org/faq.html



 
 Thanks
 Jon
 
 On Thu, 14 Jun 2001, [iso-8859-1] Jörgen Persson wrote:
 
  On Thu, Jun 14, 2001 at 05:39:06PM +1000, Jon Booth wrote:
   Hi all,
   I am using QMail with xinetd. It takes ages for a PC internally (allowed
   to relay) to connect to the server. Outside servers can connect instantly. 
   Where should I look to diagnose this problem
  
  
  I'm not familiar with xinetd but it might be configured to do reversed
  DNS lookups for incoming connections. It will most probably delay the
  connection if it can't do that properly.
  
  By the way, tcpserver[1] is the prefered internet daemon for qmail.
  
  
  Jörgen
  
  [1] http://cr.yp.to/ucspi-tcp.html
  
 



how do we integrate antivirus with qmail

2001-06-14 Thread hari_bhr



hi all

how do i integrate antivirus scanner for incoming 
and out going mails.

i have qmail+vpopmail+mysql

any help will appriciate


Re: how do we integrate antivirus with qmail

2001-06-14 Thread Jeff Palmer

http://qmail-scanner.sourceforge.net

Jeff Palmer
[EMAIL PROTECTED]
At 02:59 PM 6/14/01 +0530, you wrote:
hi
all

how do i integrate antivirus scanner for
incoming and out going mails.

i have qmail+vpopmail+mysql

any help will
appriciate


Re: how do we integrate antivirus with qmail

2001-06-14 Thread Lars Hansson

 hi all
 
 how do i integrate antivirus scanner for incoming and out going mails.
 
 i have qmail+vpopmail+mysql
 
 any help will appriciate

http://qmail-scanner.sourceforge.net
All information you need should be there.

Cheers
Lars Hansson
Technical Consultant
Unet Inc., Philippines





Re: patching qmail-smtpd.c twice

2001-06-14 Thread ari



Apply one patch and check the messages, backup 
qmail-smtpd.c and apply the other, check the message also.

Apply one and then the other, if no strange 
messages, it's ok.

But at most time the patchs are not very big and 
they have the line number and instructions that must stay, include (+) or 
out (-), then the lines that must stay.


- Original Message - 

  From: 
  Sebastián E. 
  Brocher 
  To: [EMAIL PROTECTED] 
  Sent: Wednesday, June 13, 2001 10:59 
  PM
  Subject: patching qmail-smtpd.c 
  twice
  
  
  Hi, does somebody know if I can apply the 
  maxrcpt.patch (for limiting the rcpt's in each connection) and wildmart.patch 
  (one more used for anti-spam) in the same qmail-smtpd? If thats the case, in 
  what order should I appy the patches?
  
  I suppose otherwise I'd have to look at the 
  source and should do a patch for both things myself...
  
  Thanks in advance,
  
  
  Sebastián E. Brocher
  Tuxar
  http://www.tuxar.com
  (54-11)-4315-0016/17


Re: $EXT from users/assign

2001-06-14 Thread Charles Cazabon

Drew Raines [EMAIL PROTECTED] wrote:
 I'm setting up a mail server where my users each have a virtual email
 account in a Courier IMAP userdb file.  My qmail interface with this works
 great, but I foresee problems when I start switching over all my users...
 maintenance.

You're essentially re-creating a virtual domain manager here.  There's already
several good ones that are designed for qmail; Bruce Guenter's vmailmgr is
excellent, and I've heard good things about vpopmail, although I don't use it.
vmailmgr is at http://vmailmgr.org .

Charles
-- 
---
Charles Cazabon[EMAIL PROTECTED]
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
---



Re: mini-qmail with smtp

2001-06-14 Thread Charles Cazabon

Clemens Hermann [EMAIL PROTECTED] wrote:
 
 in a small network I want to have one qmail machine where all the clients
 can send their mails via smtp. This machine then will forward the mails via
 smtp to the smarthost of my provider.  If I got it rigt, much of a normal
 qmail installation is not needed because no local delivery is necessary, the
 mails are just piped through the server.  There is one problem I have with
 mini-qmail: My Provider does not support qmtp. Can I just replace the
 according passages with smtp or will this lead into trouble?

Sorry, I've never set up a mini-qmail -- in those circumstances, I normally
use Bruce Guenter's nullmailer.

 Second: mini-qmail has no queue. What happens if more mails arrive than the
 server is able to deliver if there is no way to queue?

If delivery fails, qmail returns an appropriate error code.  The program doing
the sending has to check whether the send was successful or not.

You're probably better off to just install a full qmail setup, have no local
domains (or just exclude any local users), and use smtproutes to send all mail
to your ISP's smarthost.

Charles
-- 
---
Charles Cazabon[EMAIL PROTECTED]
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
---



Re: qmail memory/queue issue

2001-06-14 Thread David Gartner

Christopher,

I dunno about any of this, but I do know that 2.4.1 has a nasty IDE bug.
 Consider upgrading yer kernel soon!

David

Christopher Ferry wrote:

 I have recently inherited a bulk mailing system from a recently acquired
 company.  All systems are running kernel 2.4.1 pre9 with reiserfs used on
 the /var/qmail/queue partition.
 Qmail version 1.03 patched with qmail-103.patch and the qmail-nosync.patch.
 Concurrency set to 255.  Here is the issue Our db of 3million+ users is
 split between the 3 servers and a perl script is run  and each message is
 piped to sendmail. Now The first time I used the system it worked
 flawlessly.  I have since found that when I run the script Qmail sits on the
 messages and fills up the queue.  For example on one system the
 /var/qmail/queue  partition now at 100% hold 809000 msgs only one
 preprocessed.  On top of this the memory has completely filled up as well..
 Seems to be a memory leak.. Because when qmail is stopped the memory is not
 relinquished.  My two question are why doesn't qmail immediately start
 sending out the messages in the queue and what is causing the leak. is it
 qmail or most likely the 2.4.1 pre9 kernel?

 Thanks

 Christopher Ferry
 unix administrator
 FortuneCity.com




Re: qmail memory/queue issue

2001-06-14 Thread peter green

* Christopher Ferry [EMAIL PROTECTED] [010614 09:59]:
   what is causing the leak. is it
 qmail or most likely the 2.4.1 pre9 kernel?

Though I don't use the patches you described, I would guess that the old
Franken-kernel you are using is probably the culprit. You are really asking
for trouble by using a pre-release (pre9) kernel, esp. one as early as
2.4.1pre9 (which is 2.4.0 plus some fixes).

Run, don't walk, to
[http://www.kernel.org/pub/linux/kernel/v2.4/linux-2.4.5.tar.bz2].

/pg
-- 
Peter Green : Architekton Internet Services, LLC : [EMAIL PROTECTED]
---
C is quirky, flawed, and an enormous success. - Dennis M. Ritchie
(Found in comp.compression)




Re: backup mail server help

2001-06-14 Thread Mike Cathey

Sorry, I forgot to include the list in the to...
Any comments would be greatly appreciated, esp. in regard to nfs locking...


Jeff,

You make a very valid point, however this can be overcome in many ways.
   I am currently researching this for my employer.  Here's a general
overview of how I'm planning on designing our network/servers.

--- - external net
|   |
   director1director2
|   |
--- - internal net
  | | |
 qmail1qmail2qmail3
  | | |
   \___ |  __/
   \|/
|
--- - gigabit 'nfs' net with backup 100Mb net
 ||
   NFS1 NFS2


I'm looking at using LVS (Linux Virtual Server) to handle the load
balancing/clustering.  We'll be using the cluster for www/pop3/dns/etc
as well.  LVS will allow us to add machines dynamically.

We'll be using qmail/ldap/ldap-control and 2 (or more) LDAP servers for
qmail configuration.  I've also considered having the cluster servers
boot off of CD and use a single disk for /tmp and the queue.

I haven't fully researched the NFS servers yet, but here is my idea.
The developer that made ReiserFS also wrote/is writing DRBD, which is
capable of doing network mirroring.  I am planning to use 2 e450s that I
have with Samba (for Win servers), NFS (mirrored with DRBD), and
heartbeat software to control the failover between the 2 servers.

There are 2 obvious alternatives to the NFS solution that I mentioned
though.  NetAPP makes an appliance (Filer) that can handle 6TB (RAID5)
storage which provides for (according to some friends of mine that use
them in a 75+ e6000/45+ win2k env) 5 9s of reliability.  I don't have
prices, but I've heard that one Filer can run $80k.  The other option
is a software solution (clustering/replication/failover) from Veritas,
which comes highly recommended.

DISCLAIMER:  I don't work for any of the above mentioned companies.

Would anyone be interested in helping me develop a FAQ for this?

Cheers,

Mike

Jeff Palmer wrote:

  And if your NFS server goes down,  both servers are useless.  In which
  case,  what was the point of having a backup server again?
 
  Jeff Palmer
  [EMAIL PROTECTED]
 
  At 09:57 AM 6/13/01 +0300, you wrote:
 
  Alternatively you can run two SMTP servers and one POP server. Do 
NAT for
  the two and export the partition with Maildirs(at the pop server) to the
  SMTP servers through NFS. The two servers seem to be one to the outside
  world. NFS can be insecure though.
 
  Joe.
  - Original Message -
  From: Henning Brauer [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Saturday, June 09, 2001 4:15 AM
  Subject: Re: backup mail server help
 
 
   On Fri, Jun 08, 2001 at 04:33:49PM -0700, Hank Wethington wrote:
What I'd like to accomplish is if Server A is unavailable, then mail
  goes to
server B. Once A is back up, server B sends the mail back to
  server A.
  Does
  
   On server B, add all domains in question to rcpthosts, but NOT to
  local
  or
  virtualdomains. That's it ;-))
  
   --
   * Henning Brauer, [EMAIL PROTECTED], http://www.bsws.de *
   * Roedingsmarkt 14, 20459 Hamburg, Germany   *
   Unix is very simple, but it takes a genius to understand the
  simplicity.
   (Dennis Ritchie)
  




RE: URGENT: Qmail-remote gone nuts

2001-06-14 Thread David U.

Here's an update.

I have an email address called [EMAIL PROTECTED] (run via vpopmail)

in /home/vpopmail/domains/everydns.net/support there is a .qmail file that just
says
cat .qmail:
[EMAIL PROTECTED]

So this forwards all [EMAIL PROTECTED] to [EMAIL PROTECTED]

However this morning it sent forwarded about 6000 times.

Now in my logs I have these just constantly appearing:
== /var/log/qmail/qmail-send/current ==
2001-06-14 08:02:02.460824500 starting delivery 6231: msg 562568 to remote
[EMAIL PROTECTED]
2001-06-14 08:02:02.460830500 status: local 0/10 remote 73/120
2001-06-14 08:02:02.460831500 starting delivery 6232: msg 562573 to remote
[EMAIL PROTECTED]
2001-06-14 08:02:02.460834500 status: local 0/10 remote 74/120
2001-06-14 08:02:02.465616500 delivery 6231: deferral:
Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)/
2001-06-14 08:02:02.465620500 status: local 0/10 remote 73/120
2001-06-14 08:02:02.466514500 delivery 6232: deferral:
Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)/
2001-06-14 08:02:02.466518500 status: local 0/10 remote 72/120
2001-06-14 08:02:04.460524500 starting delivery 6233: msg 562574 to remote
[EMAIL PROTECTED]
2001-06-14 08:02:04.460528500 status: local 0/10 remote 73/120
2001-06-14 08:02:04.460529500 starting delivery 6234: msg 562576 to remote
[EMAIL PROTECTED]
2001-06-14 08:02:04.460532500 status: local 0/10 remote 74/120
2001-06-14 08:02:04.460533500 starting delivery 6235: msg 562577 to remote
[EMAIL PROTECTED]
2001-06-14 08:02:04.460535500 status: local 0/10 remote 75/120
2001-06-14 08:02:04.462625500 starting delivery 6236: msg 562578 to remote
[EMAIL PROTECTED]
2001-06-14 08:02:04.462628500 status: local 0/10 remote 76/120
2001-06-14 08:02:04.465389500 starting delivery 6237: msg 562575 to remote
[EMAIL PROTECTED]

So I got rid of the support forward and now support seems to be reiceving mail
fine -- but how I do clear my queue when qmail-qstat reports:
messages in queue: 5046
messages in queue but not yet preprocessed: 0

and qmail-qread reports:
snip x ALOT
14 Jun 2001 11:14:28 GMT  #561180  671057  
remote  [EMAIL PROTECTED]
14 Jun 2001 11:16:24 GMT  #561379  691091  
remote  [EMAIL PROTECTED]
14 Jun 2001 11:18:22 GMT  #561578  710756  
remote  [EMAIL PROTECTED]
14 Jun 2001 11:20:21 GMT  #561777  730706  
remote  [EMAIL PROTECTED]
14 Jun 2001 11:22:19 GMT  #561976  750341  
remote  [EMAIL PROTECTED]
14 Jun 2001 11:24:29 GMT  #562175  770246  
remote  [EMAIL PROTECTED]
14 Jun 2001 11:26:48 GMT  #562374  790598  
remote  [EMAIL PROTECTED]
14 Jun 2001 11:29:13 GMT  #562573  810632  
remote  [EMAIL PROTECTED]
14 Jun 2001 11:31:23 GMT  #562772  830666  
remote  [EMAIL PROTECTED]
snip x ALOT

Thanks,
davidu


-Original Message-
From: David U. [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 14, 2001 7:33 AM
To: Qmail@List. Cr. Yp. To
Subject: URGENT: Qmail-remote gone nuts


Hi,

this morning I awoke to find some 6000 emails in my inbox from
[EMAIL PROTECTED] -- they were the same exact 6000 emails.

The inbox is [EMAIL PROTECTED]

Also in my ps list, I have about 80 qmail-remote spawns that look like this:

  998 ?S  0:00  |   |   \_ qmail-remote tomerwolf.com  tomer
 1012 ?S  0:00  |   |   \_ qmail-remote tomerwolf.com  tomer
 1016 ?S  0:00  |   |   \_ qmail-remote tomerwolf.com  tomer
 1038 ?S  0:00  |   |   \_ qmail-remote tomerwolf.com  tomer
 1039 ?S  0:00  |   |   \_ qmail-remote tomerwolf.com  tomer
 1063 ?S  0:00  |   |   \_ qmail-remote tomerwolf.com  tomer

What are those? How do I kill them off?  Why am I getting 6000 of the same
email?

I unfortunatly just cleared my inbox so I don't have headers.

Would this be an issue on my end?  If it is, am I now causing a massive headache
for their admin?

My site bandwidth is using a sustained 30K/s to his server this morning...

How can I quickly stop the problem, and find a solution, and discover what's
happening?

Thanks,
DavidU






RE: Long connect times

2001-06-14 Thread Mike Peppard

Try a stub resolver on the mailbox.  In addition
to your regular name server/cache you should get
decent response times.  The stub resolver
needn't take much ram or cpu.

If you didn't have a stub resolver already, you
will notice a nice performance boost.  Otherwise
try playing with the cache.  There are some
nice tools to figure out what your resolver is
doing on the djbdns site.  Oh.. get djbdns too.

Works here just fine.

-Mike

 -Original Message-
 From: Russell Nelson [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 14, 2001 10:00 AM
 To: Jon Booth
 Cc: [EMAIL PROTECTED]
 Subject: Re: Long connect times
 
 
 Jon Booth writes:
   Hi all,
   I am using QMail with xinetd. It takes ages for a PC 
 internally (allowed
   to relay) to connect to the server. Outside servers can 
 connect instantly. 
   Where should I look to diagnose this problem
 
 Reverse DNS for your internal hosts.  It's not optional.
 
 -- 
 -russ nelson [EMAIL PROTECTED]  http://russnelson.com
 Crynwr sells support for free software  | PGPok | 
 521 Pleasant Valley Rd. | +1 315 268 1925 voice | #exclude windows.h
 Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | 
 



Re: URGENT: Qmail-remote gone nuts

2001-06-14 Thread Charles Cazabon

David U. [EMAIL PROTECTED] wrote:
 
 this morning I awoke to find some 6000 emails in my inbox from
 [EMAIL PROTECTED] -- they were the same exact 6000 emails.

Perhaps their MTA isn't finishing the SMTP converstation properly, so they
think they need to try delivery again?

You said you don't have headers.  You should probably use recordio to capture
one of the SMTP sessions from their MTA; that will tell you what's wrong.

Charles
-- 
---
Charles Cazabon[EMAIL PROTECTED]
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
---



qmail y UUCP

2001-06-14 Thread GARGIULO Eduardo INGDESI

Hi. I'm looking for info about configure qmail to use UUCP.
I have the following configuration

smail(sub1.domain.edu)
   |
   |  dial-up
   |
 ---
|  smail(xxx.net)   |
|accept(sub1.domain.edu)|-- smail(domain.edu)
 ---sub1.domain.edu - host.xxx.net
 

messages to [EMAIL PROTECTED] are delivered to xxx.net,
and four or five times a day it sends them (dial-up) to
sub1.domain.edu using uucp. I want to switch from smail
to qmail but I don't know where to start from. Is there
anybody who could help me. Where can I find info about
this kind of configuration?

thanks

--yapedu/xgnu

PD: I resend this message because when I send the original,
receive the follwing error message ???

 -Original Message-
 From: PUB: Mailer-Daemon [mailto:[EMAIL PROTECTED]]
 Sent: Jueves 14 de Junio de 2001 12:14
 To: [EMAIL PROTECTED]
 Subject: NDN: qmail  UUCP
 
 
 Sorry. Your message could not be delivered to:
 
 test test (Mailbox or Conference is full.)
 



Re: URGENT: Qmail-remote gone nuts

2001-06-14 Thread Niles Rowland

[EMAIL PROTECTED] wrote:

 So I got rid of the support forward and now support seems to be
reiceving mail
 fine -- but how I do clear my queue when qmail-qstat reports:
 messages in queue: 5046
 messages in queue but not yet preprocessed: 0

Delete the queue and rebuild it.  A good tool for that is queue-fix.

Niles





Fw: many mails

2001-06-14 Thread Gianni Campanile

Can I qmail-queue more than one message at the time ?
 
 From the manual it seems that sender and message are only one,
 while recipients can be as many you wish. I would like
 to feed qmail-queue with a single file (or stdin) where all
 messages are packed together.
 
 Is it possibile ?
 What would be the strcuture of the file in that case ?
 
 Many thanks for your help.
 
Ciao

 - Original Message -
 From: Russell Nelson [EMAIL PROTECTED]
 To: Gianni Campanile [EMAIL PROTECTED]
 Sent: Wednesday, June 13, 2001 7:13 PM
 Subject: Re: many mails
 
 
  Gianni Campanile writes:
OK, I'll give up on preformance, at least for now. (I can not afford
 that
cost)
   
But still I don't like to call a the command qmail-inject for every
mail I have to send; Isn't there a better way to prepare thousands
of mails then to call the same command thousands times ?
 
  If they're all different, they have to go into the queue separately.
  You can call qmail-queue directly if you wish, as long as the email
  headers are fully canonicalized.
 
  --
  -russ nelson [EMAIL PROTECTED]  http://russnelson.com
  Crynwr sells support for free software  | PGPok |
  521 Pleasant Valley Rd. | +1 315 268 1925 voice | #exclude windows.h
  Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   |
 
 




missing syncdir lib??

2001-06-14 Thread Chris Moore

I know someone is going to think this is a stupid question, but I am having
problems rebuilding qmail-1.03+patches.  The 'make setup check' fails with
the following:

./load auto-str substdio.a error.a str.a
/usr/bin/ld: cannot find -lsyncdir
collect2: ld returned 1 exit status
make: ***[auto-str] Error 1

It appears I don't have 'libsyncdir.a' ??  What package includes this? I
just wanted to patch and upgrade my working qmail system, which installed
perfectly originally.

Thanks!
...
Chris



Re: many mails

2001-06-14 Thread Henning Brauer

On Wed, Jun 13, 2001 at 07:08:26PM +0200, Gianni Campanile wrote:
 OK, I'll give up on preformance, at least for now. (I can not afford that
 cost)

You still can call qmail-remote directly and switch back to qmail-inject
only if this failes. thus the mails you could send in the first trial don't
need to be queued. Someone postet the URL to an perl module doing this some
days ago, its name was Qspam or spamq. search the arvhives, you will find
the answer fast.

-- 
* Henning Brauer, [EMAIL PROTECTED], http://www.bsws.de *
* Roedingsmarkt 14, 20459 Hamburg, Germany   *
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)



Re: False alarms about services with tcpserver

2001-06-14 Thread Henning Brauer

On Wed, Jun 13, 2001 at 10:55:55AM +0200, Andrea Cerrito wrote:
 Thank you for your reply.
  On Tue, Jun 12, 2001 at 09:29:05PM -0400, David Means wrote:
   If there is a way to configure Mon to report a service as down after a
   number of failures, then that is my recommendation.  Just because a
  alertafter 2 15m
  gives an alert if the service failes 2 times within 15 minutes.
 I know that option, but I wish to understand why monitoring fails.
 I mean: if the monitoring is experiencing timeout, clients too will...
 right?

Just checked my mon configuration, I don't have an alertafter statement
there. I didn't had a single false positive for pop3.

Looks like your server running qmail-pop3d has some delays sometimes.
perhaps a tcpdump will show more.

-- 
* Henning Brauer, [EMAIL PROTECTED], http://www.bsws.de *
* Roedingsmarkt 14, 20459 Hamburg, Germany   *
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)



Re: qmail-ldap

2001-06-14 Thread Henning Brauer

On Tue, Jun 12, 2001 at 11:18:52PM +0530, Rohit Gupta wrote:
 where do i find qmail-ldap to download
 can anyone give me a hint

read http://www.lifewithqmail.org/ldap/. After that, download from nrg4u.com.
-- 
* Henning Brauer, [EMAIL PROTECTED], http://www.bsws.de *
* Roedingsmarkt 14, 20459 Hamburg, Germany   *
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)



Re: Hello , How to give Priority

2001-06-14 Thread Henning Brauer

On Wed, Jun 13, 2001 at 03:08:01PM +0530, RAGHVENDRA SHUKLA wrote:
 
 Hello ,
 How i can give priority in the qmail and how i can set delay
 factors for some mails/mailing lists .

You cannot.

-- 
* Henning Brauer, [EMAIL PROTECTED], http://www.bsws.de *
* Roedingsmarkt 14, 20459 Hamburg, Germany   *
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)



Re: warning: trouble opening remote

2001-06-14 Thread Dave Sill

Russell Nelson [EMAIL PROTECTED] wrote:

If you're running qmail configured as per
http://www.lifewithqmail.org, then the following commands will fix the 
problem:

svc -dx /service/qmail
setlock /service/qmail/supervise/lock sh -c 
'/var/qmail/queue/*/0/{348381,348335,348013}'

For LWQ, the service is /service/qmail-send, and I think that should
be ... sh -c 'rm /var/

-Dave



RE: Log Entry question

2001-06-14 Thread Drew Hawn

My run script is:

exec env - PATH=/var/qmail/bin:$PATH \
qmail-start '|dot-forward .forward
|preline /usr/bin/procmail'



-Original Message-
From: Chris Johnson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 13, 2001 5:09 PM
To: Drew Hawn
Cc: [EMAIL PROTECTED]
Subject: Re: Log Entry question


On Wed, Jun 13, 2001 at 04:47:13PM -0700, Drew Hawn wrote:
 Sendmail is not running.  When I ps-aux | grep tcpserver I get:
 
 qmaild 612  0.0  0.0  11520 ?SW   09:23   0:00 [tcpserver]

What does your run script look like?

Chris



Re: yet more trouble with daemontools and supervise

2001-06-14 Thread Dave Sill

Stephen Bosch [EMAIL PROTECTED] wrote:

Dave Sill wrote:
 
 Logging via splogger (syslog).

Which is deprecated in LWQ, now, correct?

Yes.

 Sure that's qmail-smtpd/log/run? Looks more like qmail-smtpd/run.

D'oh!

#!/bin/sh
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t
/var/log/qmail/smtpd

OK, now refresh my memory...what was the problem? And is that command
all on one line?

-Dave



Re: Fw: many mails

2001-06-14 Thread Peter van Dijk

On Thu, Jun 14, 2001 at 05:39:05PM +0200, Gianni Campanile wrote:
 Can I qmail-queue more than one message at the time ?
  
  From the manual it seems that sender and message are only one,
  while recipients can be as many you wish. I would like
  to feed qmail-queue with a single file (or stdin) where all
  messages are packed together.
  
  Is it possibile ?

No. You will have to spawn a qmail-queue for every separate message
you want to send.

What problem are you trying to solve?

Greetz, Peter
-- 
Against Free Sex!   http://www.dataloss.nl/Megahard_en.html



Re: URGENT: Qmail-remote gone nuts

2001-06-14 Thread Dave Sill

Niles Rowland [EMAIL PROTECTED] wrote:

[EMAIL PROTECTED] wrote:

 So I got rid of the support forward and now support seems to be
reiceving mail
 fine -- but how I do clear my queue when qmail-qstat reports:
 messages in queue: 5046
 messages in queue but not yet preprocessed: 0

Delete the queue and rebuild it.

Yeah, he probably won't lose any important messages...

A good tool for that is queue-fix.

No, queue-fix fixes corrupt queues. To delete and rebuild, you should
rm -rf /var/qmail/queue and make setup check from the qmail source
directory. But that will, of course, throw out *everything* in the
queue, which might not be disirable.

-Dave



Re: qmail date sync prob?

2001-06-14 Thread Russell Nelson

Tim Rainier writes:
  We have an extendnet box running Debian.  Our qmail program has a problem
  where it will stop functioning until we do something to modify the date.
  simply running a touch command on it, gets it back up and running.
  any ideas?

This is not a problem I've ever heard of before.  Describe the problem
in more detail.

-- 
-russ nelson [EMAIL PROTECTED]  http://russnelson.com
Crynwr sells support for free software  | PGPok | 
521 Pleasant Valley Rd. | +1 315 268 1925 voice | #exclude windows.h
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | 



Re: Fw: many mails

2001-06-14 Thread Charles Cazabon

Gianni Campanile [EMAIL PROTECTED] wrote:
 Can I qmail-queue more than one message at the time ?
  
 From the manual it seems that sender and message are only one, while
 recipients can be as many you wish. I would like to feed qmail-queue with a
 single file (or stdin) where all messages are packed together.

qmail-queue handles only one message at a time, with one sender, and one or
more recipients.  If you want to queue separate messages, you'll have to call
qmail-queue (or qmail-inject, etc) iteratively.

Charles
-- 
---
Charles Cazabon[EMAIL PROTECTED]
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
---



Re: missing syncdir lib??

2001-06-14 Thread Charles Cazabon

Chris Moore [EMAIL PROTECTED] wrote:
 I know someone is going to think this is a stupid question, but I am having
 problems rebuilding qmail-1.03+patches.  The 'make setup check' fails with
 the following:
 
 ./load auto-str substdio.a error.a str.a
 /usr/bin/ld: cannot find -lsyncdir
 collect2: ld returned 1 exit status
 make: ***[auto-str] Error 1
 
 It appears I don't have 'libsyncdir.a' ??  What package includes this?

Bruce Guenter's syncdir package.  You can get it from the same place you got
qmail+patches.

 I just wanted to patch and upgrade my working qmail system, which installed
 perfectly originally.

Bruce's packaging has changed over the years.  If you have further problems
with this, please take it to his bgware mailing list, as it's not actually a
qmail issue.

Charles
-- 
---
Charles Cazabon[EMAIL PROTECTED]
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
---



Re: False alarms about services with tcpserver

2001-06-14 Thread Andrea Cerrito

I hope I just discovered my problem, and I hope it will help other people
too.
As I said, I'm using CodaFS: sometimes Coda (a network fs) may respond slow
to open files because files is modified on another host, or because getting
info from master servers is delayed, and so on.

Looking at my run script, I found a little thing intersting:

exec /usr/local/bin/tcpserver -v -c 50 -H -P -R -l pop3.frontend.int -x
/coda/qmail/vpopmail/relay/tcp.smtp.cdb \
-u $QMAILUID -g $QMAILGID ip port /coda/qmail/bin/qmail-smtpd 21
  ^^^

But /coda/qmail/bin is a link on a ext3 fs: when I installed qmail, I
installed it without binaries on codafs, just conf and mailboxes files. So:
why using /coda/qmail/bin when I can use /usr/local/qmail/bin ?

Now, my smtpd run script is

exec /usr/local/bin/tcpserver -v -c 50 -H -P -R -l pop3.frontend.int -x
/coda/qmail/vpopmail/relay/tcp.smtp.cdb \
-u $QMAILUID -g $QMAILGID ip port /usr/local/qmail/bin/qmail-smtpd 21

and all is working great (I mean, no false alarms for today, meanwhile I
received them two or three per day at least just yesterday). tcp.smtp.cdb
must remain on Coda.
Pop3 modified in the same way. It was:

exec /usr/bin/env - PATH=/coda/qmail/bin:$PATH \
/usr/local/bin/tcpserver -v -c 50 -H -P -R -l pop3.frontend.int ip port
/coda/qmail/bin/qmail-popup \
pop3.frontend.int /coda/qmail/vpopmail/bin/vchkpw
/coda/qmail/bin/qmail-pop3d Maildir 21

but now it is:

/usr/local/bin/tcpserver -v -c 50 -H -P -R -l pop3.frontend.int ip port
/usr/local/qmail/bin/qmail-popup \
pop3.frontend.int /usr/local/vpopmail/bin/vchkpw
/usr/local/qmail/bin/qmail-pop3d Maildir 2

Anyway, thank you people :).

PS: I'm very happy that Henning Brauer found no problems with pop3.monitor:
it's a confirm that it's a good monitor. :)
---
Cordiali saluti / Best regards
Andrea Cerrito
^^
Net.Admin @ Centro MultiMediale di Terni S.p.A.
P.zzale Bosco 3A
05100 Terni IT
Tel. +39 744 5441330
Fax. +39 744 5441372




Re: yet more trouble with daemontools and supervise

2001-06-14 Thread Stephen Bosch

Dave Sill wrote:
 
 Stephen Bosch [EMAIL PROTECTED] wrote:
 
 Dave Sill wrote:
 
  Logging via splogger (syslog).
 
 Which is deprecated in LWQ, now, correct?
 
 Yes.
 
  Sure that's qmail-smtpd/log/run? Looks more like qmail-smtpd/run.
 
 D'oh!
 
 #!/bin/sh
 exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t
 /var/log/qmail/smtpd
 
 OK, now refresh my memory...what was the problem? And is that command
 all on one line?

Well, my logs are filling up with garbage (and I get that silly file
does not exist error when I run qmail stat), and yes, that command was
all on one line.

-Stephen-



Re: URGENT: Qmail-remote gone nuts

2001-06-14 Thread Guillermo Villasana Cardoza

actually queue-fix will do the job right... I know I have done it.

just delete de subfolders in the queue  and run the queue-fix

Terius
- Original Message - 
From: Dave Sill [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 14, 2001 10:11 AM
Subject: Re: URGENT: Qmail-remote gone nuts


 Niles Rowland [EMAIL PROTECTED] wrote:
 
 [EMAIL PROTECTED] wrote:
 
  So I got rid of the support forward and now support seems to be
 reiceving mail
  fine -- but how I do clear my queue when qmail-qstat reports:
  messages in queue: 5046
  messages in queue but not yet preprocessed: 0
 
 Delete the queue and rebuild it.
 
 Yeah, he probably won't lose any important messages...
 
 A good tool for that is queue-fix.
 
 No, queue-fix fixes corrupt queues. To delete and rebuild, you should
 rm -rf /var/qmail/queue and make setup check from the qmail source
 directory. But that will, of course, throw out *everything* in the
 queue, which might not be disirable.
 
 -Dave
 




RE: URGENT: Qmail-remote gone nuts

2001-06-14 Thread David U.

-Original Message-
From: Dave Sill [mailto:[EMAIL PROTECTED]]

Yeah, he probably won't lose any important messages...

heh, yeah, I *would* want to do that.

No, queue-fix fixes corrupt queues. To delete and rebuild, you should
rm -rf /var/qmail/queue and make setup check from the qmail source
directory. But that will, of course, throw out *everything* in the
queue, which might not be disirable.

I stopped qmstp and qsend -- I then deleted a LOT from the queue and ran
queue-fix which did some delinking and whatnot.  Moved my queue from being 6
gigs to 250 megs. ;-)

now I just want to know why [EMAIL PROTECTED] forwarded to
[EMAIL PROTECTED] 6000 times (until /var filled I assume)

instead of just once.  this is all via localhost, no other machines involved.

-davidu




Re: URGENT: Qmail-remote gone nuts

2001-06-14 Thread Dave Sill

Guillermo Villasana Cardoza [EMAIL PROTECTED] wrote:

actually queue-fix will do the job right... I know I have done it.

I didn't mean to imply that it wouldn't work, just that it's
preferable to use the rm/make method since it's definitive and doesn't
require downloading/installing a third-party utility. For example, if
you've installed the big-todo patch, you'll need to install the
associated patch for queue-fix or it'll contruct an incompatible
queue. It's easier and safer to let qmail rebuild the queue.

-Dave



RE: URGENT: Qmail-remote gone nuts

2001-06-14 Thread Dave Sill

David U. [EMAIL PROTECTED] wrote:

now I just want to know why [EMAIL PROTECTED] forwarded to
[EMAIL PROTECTED] 6000 times (until /var filled I assume) instead
of just once.  this is all via localhost, no other machines involved.

I'd look at the logs, from the beginning of the incident.

-Dave



Mime Encoding

2001-06-14 Thread Anstett, Brad

Hi,
Does anyone know what the default length that qmail sets for a MIME encoded
string for attachments. I had a programmer set it at 4320 and the mail and
attachment can across corrupted. Is there anyway to increase the string
length that qmail will accept.

Thanks

Brad Anstett 




Re: yet more trouble with daemontools and supervise

2001-06-14 Thread Dave Sill

Stephen Bosch [EMAIL PROTECTED] wrote:

Well, my logs are filling up with garbage

Garbage or log entries? Sample, please?

(and I get that silly file
does not exist error when I run qmail stat)

Sample?

-Dave



i can't sending out

2001-06-14 Thread budsz

Hi...there

I compiled qmail in FreeBSD 4.2 with daemontool, ucspi, i tried send between
local user, yes i was success:

@40003b27f4a0263e5a14 new msg 62796
@40003b27f4a0266bfdac info msg 62796: bytes 617 from [EMAIL PROTECTED] 
qp 244 uid 1009
@40003b27f4a035ab76bc starting delivery 2: msg 62796 to local 
[EMAIL PROTECTED]
@40003b27f4a035b2160c status: local 1/10 remote 0/255
@40003b27f4a0397e0a5c delivery 2: success: did_1+0+0/
@40003b27f4a1061b4544 status: local 0/10 remote 0/255
@40003b27f4a1062aae94 end msg 62796

But i send to [EMAIL PROTECTED] , I can't, what's going on with my qmail. 

@40003b27f5240025d1a4 new msg 62796
@40003b27f524004557f4 info msg 62796: bytes 1846 from 
[EMAIL PROTECTED] qp 281 uid 1001
@40003b27f524082ea484 end msg 62796

have a suggest. sorry i'am newbie :-)

TIA friends.

thanks

budsz



Multilog log file size specification

2001-06-14 Thread Alex Khanin

I've read the manpage and it states you should use the ssize action,
So I put this in my /var/qmail/supervise/qmail-send/log/run:

#!/bin/sh
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t
/backup/log/qmail ssize 50 nnum 50

That is ignored.

If I put it this way:

#!/bin/sh
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t ssize
50 nnum 50 /backup/log/qmail

Then files are created with max size of around 3k instead of 500k.

What am I doing wrong?? Someone please help.

Thanks.




Re: Mime Encoding

2001-06-14 Thread MarkD

You are confused. qmail does not look at the contents of the email at
all. qmail has no concept of MIME, attachments, default lengths or
anything. If the email is corrupted it's because your programmer
submitted it to qmail in a corrupted state.

Get your programmer to write the email to a file at the same time that
it is submitted to qmail. When the email comes out the other side,
compare it against the file and show us the differences.

Regards.


On Thu, Jun 14, 2001 at 12:47:28PM -0500, Anstett, Brad allegedly wrote:
 Hi,
 Does anyone know what the default length that qmail sets for a MIME encoded
 string for attachments. I had a programmer set it at 4320 and the mail and
 attachment can across corrupted. Is there anyway to increase the string
 length that qmail will accept.
 
 Thanks
 
 Brad Anstett 
 



Re: Mime Encoding

2001-06-14 Thread Russell Nelson

Anstett, Brad writes:
  Hi,
  Does anyone know what the default length that qmail sets for a MIME encoded
  string for attachments. I had a programmer set it at 4320 and the mail and
  attachment can across corrupted. Is there anyway to increase the string
  length that qmail will accept.

Sigh.  I hate MIME boundaries.  It's SUCH a STUPID idea.  Instead of
quoting a character inside the body, you have to guess a string that
will never appear inside the body.

Anyway, all ranting aside, qmail puts no limits whatsoever on the MIME
content of a message.  Do what you want -- any problems you're seeing
with the content of a message aren't on qmail's side.

-- 
-russ nelson [EMAIL PROTECTED]  http://russnelson.com
Crynwr sells support for free software  | PGPok | 
521 Pleasant Valley Rd. | +1 315 268 1925 voice | #exclude windows.h
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | 



Re: Mime Encoding

2001-06-14 Thread Charles Cazabon

Anstett, Brad [EMAIL PROTECTED] wrote:

 Does anyone know what the default length that qmail sets for a MIME encoded
 string for attachments. I had a programmer set it at 4320 and the mail and
 attachment can across corrupted. Is there anyway to increase the string
 length that qmail will accept.

qmail doesn't corrupt messages based on the line lengths of the body or
headers -- it will happily accept messages with long lines, even though it's
an RFC violation.

Chances are, the message was corrupted or incorrectly constructed long before
qmail got a look at it -- the program that created it is broken, or is passed
through another MTA which mangled it.

Post an example of qmail corrupting a MIME message -- until you do that, you
won't find much advice here.

Charles
-- 
---
Charles Cazabon[EMAIL PROTECTED]
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
---



Re: yet more trouble with daemontools and supervise

2001-06-14 Thread Stephen Bosch

Hello...

Dave Sill wrote:
 
 Stephen Bosch [EMAIL PROTECTED] wrote:
 
 Well, my logs are filling up with garbage
 
 Garbage or log entries? Sample, please?

Sorry -- it's just that I quoted it at great length before...

okay, I'll get it.

Stephen Bosch wrote:
 
 Hello, gentlemen:
 
 I've looked in the archives for this little issue. Lots of people report
 it, but I *think* I've got my system correctly configured.
 
 A couple of problems:
 
 my /var/log/maillog fills up with stuff like this:
 
 Jun 12 14:09:12 hotcube qmail: 992376552.411296 end msg 1005715
 Jun 12 14:09:12 hotcube qmail: 992376552.507199 new msg 1005716
 Jun 12 14:09:12 hotcube qmail: 992376552.507323 info msg 1005716: bytes
 266 from [EMAIL PROTECTED] qp 27390 uid 502
 Jun 12 14:09:12 hotcube qmail: 992376552.573170 end msg 1005716
 Jun 12 14:09:12 hotcube qmail: 992376552.660653 new msg 1005715
 Jun 12 14:09:12 hotcube qmail: 992376552.660776 info msg 1005715: bytes
 266 from [EMAIL PROTECTED] qp 27403 uid 502
 Jun 12 14:09:12 hotcube qmail: 992376552.732709 end msg 1005715
 Jun 12 14:09:12 hotcube qmail: 992376552.815510 new msg 1005716
 Jun 12 14:09:12 hotcube qmail: 992376552.815629 info msg 1005716: bytes
 266 from [EMAIL PROTECTED] qp 27416 uid 502
 Jun 12 14:09:12 hotcube qmail: 992376552.873183 end msg 1005716
 Jun 12 14:09:42 hotcube qmail: 992376582.938896 new msg 1005715
 Jun 12 14:09:42 hotcube qmail: 992376582.939013 info msg 1005715: bytes
 266 from [EMAIL PROTECTED] qp 27450 uid 502
 Jun 12 14:09:42 hotcube qmail: 992376582.981100 end msg 1005715
 Jun 12 14:09:43 hotcube qmail: 992376583.097289 new msg
 1005716
 
 and so on, and so on, and so on. It goes back months like this (I would
 never have noticed it had it not been for some other issues I was
 working on). Is this normal? My other qmail installations don't do that.
 
 The queue is empty.
 
 Then, there's this:
 
 [root@hotcube qmail]# /etc/rc.d/init.d/qmail stat
 qmail-send: up (pid 27564)
 qmail-smtpd: up (pid 27566)
 qmail-send/log: unable to open supervise/ok: file does not exist
 qmail-smtpd/log: unable to open supervise/ok: file does not exist
 
 Okay. So I checked for sticky bits on the appropriate directories:
 
 [root@hotcube supervise]# ls -ld /var/qmail/supervise/*
  927870 drwxr-xr-t4 root qmail1024 Sep  1  2000
 /var/qmail/supervise/qmail-send/
  712830 drwxr-xr-t4 root qmail1024 Dec 18 10:27
 /var/qmail/supervise/qmail-smtpd/
 [root@hotcube supervise]#
 
 It looks like I have all the files I need...
 
 qmail-send:
 total 3
 1120382 drwxr-xr-t2 root qmail1024 Sep  1  2000 log/
  927871 -rwxr-xr-x1 root qmail  29 Sep  1  2000 run*
  497666 drwx--2 root qmail1024 Jun 12 14:19
 supervise/
 
 qmail-send/log:
 total 1
 1120383 -rwxr-xr-x1 root qmail  88 Sep  1  2000 run*
 
 qmail-send/supervise:
 total 1
  497791 prw---1 root qmail   0 Jun 12 14:19 control|
  497667 -rw---1 root qmail   0 Sep  1  2000 lock
  497793 prw---1 root qmail   0 Sep  1  2000 ok|
  497805 -rw-r--r--1 root root   18 Jun 12 14:19 status
 
 qmail-smtpd:
 total 4
  733310 drwxr-xr-t2 root qmail1024 Sep  1  2000 log/
  712915 -rwxr-xr-x1 root qmail 246 Dec 18 10:27 run*
  712831 -rwxr-xr-x1 root qmail 240 Sep  1  2000 run~*
  667722 drwx--2 root qmail1024 Jun 12 14:19
 supervise/
 
 qmail-smtpd/log:
 total 1
  733311 -rwxr-xr-x1 root qmail  94 Sep  1  2000 run*
 
 qmail-smtpd/supervise:
 total 1
  667729 prw---1 root qmail   0 Jun 12 14:19 control|
  667728 -rw---1 root qmail   0 Sep  1  2000 lock
  667731 prw---1 root qmail   0 Sep  1  2000 ok|
  667723 -rw-r--r--1 root root   18 Jun 12 14:19 status
 
 /var/qmail/supervise/qmail-send/run contains:
 
 #!/bin/sh
 exec /var/qmail/rc
 
 and /var/qmail/supervise/qmail-smtpd/run contains:
 
 #!/bin/sh
 QMAILDUID=`id -u qmaild`
 NOFILESGID=`id -g qmaild`
 exec /usr/local/bin/softlimit -m 200 \
 /usr/local/bin/tcpserver -R -H -v -p -x /etc/tcp.smtp.cdb \
 -u $QMAILDUID -g $NOFILESGID 0 smtp /var/qmail/bin/qmail-smtpd
 21

There you have it, in all its ugliness.

-Stephen-



Re: Multilog log file size specification

2001-06-14 Thread Charles Cazabon

Alex Khanin [EMAIL PROTECTED] wrote:
 I've read the manpage and it states you should use the ssize action,
 So I put this in my /var/qmail/supervise/qmail-send/log/run:
 
 #!/bin/sh
 exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t
 /backup/log/qmail ssize 50 nnum 50
 
 That is ignored.
[...] 
 What am I doing wrong??

Taking the documentation too literally.  The size directive should be
s50 to create logs of 0.5MB each.  Not ssize 50.  The action
itself is just s, the size in the documentation is the parameter of that
action.

Charles
-- 
---
Charles Cazabon[EMAIL PROTECTED]
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
---



Re: yet more trouble with daemontools and supervise

2001-06-14 Thread Dave Sill

Stephen Bosch [EMAIL PROTECTED] wrote:

 my /var/log/maillog fills up with stuff like this:
 
 Jun 12 14:09:12 hotcube qmail: 992376552.411296 end msg 1005715
 Jun 12 14:09:12 hotcube qmail: 992376552.507199 new msg 1005716
 Jun 12 14:09:12 hotcube qmail: 992376552.507323 info msg 1005716: bytes
 266 from [EMAIL PROTECTED] qp 27390 uid 502
 Jun 12 14:09:12 hotcube qmail: 992376552.573170 end msg 1005716
 Jun 12 14:09:12 hotcube qmail: 992376552.660653 new msg 1005715
 Jun 12 14:09:12 hotcube qmail: 992376552.660776 info msg 1005715: bytes
 266 from [EMAIL PROTECTED] qp 27403 uid 502
 Jun 12 14:09:12 hotcube qmail: 992376552.732709 end msg 1005715
 
 and so on, and so on, and so on. It goes back months like this (I would
 never have noticed it had it not been for some other issues I was
 working on). Is this normal? My other qmail installations don't do that.

It's normal for qmail-send to log its actions. It's not normal to see
messages end without a delivery being logged, or for no status:
messages to be logged. It's not normal to have a qmail-send/log
service when you're logging via splogger/syslog.

 [root@hotcube qmail]# /etc/rc.d/init.d/qmail stat
 qmail-send: up (pid 27564)
 qmail-smtpd: up (pid 27566)
 qmail-send/log: unable to open supervise/ok: file does not exist
 qmail-smtpd/log: unable to open supervise/ok: file does not exist

That means supervise isn't running for the log services.

 Okay. So I checked for sticky bits on the appropriate directories:
 
 [root@hotcube supervise]# ls -ld /var/qmail/supervise/*
  927870 drwxr-xr-t4 root qmail1024 Sep  1  2000
 /var/qmail/supervise/qmail-send/
  712830 drwxr-xr-t4 root qmail1024 Dec 18 10:27
 /var/qmail/supervise/qmail-smtpd/

Were they set when the services were started?

 qmail-smtpd/log:
  733311 -rwxr-xr-x1 root qmail  94 Sep  1  2000 run*

No supervise directory... Further evidence that supervise isn't
running.

-Dave



Re: backup mail server help

2001-06-14 Thread Adam Jacob

On Wed, Jun 13, 2001 at 06:03:41AM -0600, Jeff Palmer wrote:
 And if your NFS server goes down,  both servers are useless.  In which 
 case,  what was the point of having a backup server again?

Which is why you deploy this with something like a NetApp filer, that lets you
deliver to NFS, and have multiple external pop3 servers as well. (And have two
NetApp's mirroring your data at the same time)

Adam

-- 
[EMAIL PROTECTED] - (http://sysadminsith.org)
Evil Lord of the Sysadmin Sith Darth Rmdashrf



Re: yet more trouble with daemontools and supervise

2001-06-14 Thread Charles Cazabon

Stephen Bosch [EMAIL PROTECTED] wrote:
 Dave Sill wrote:
  Stephen Bosch [EMAIL PROTECTED] wrote:
  
  Well, my logs are filling up with garbage
  
  Garbage or log entries? Sample, please?
 
 Sorry -- it's just that I quoted it at great length before...
[...]
  Jun 12 14:09:12 hotcube qmail: 992376552.507323 info msg 1005716: bytes
  266 from [EMAIL PROTECTED] qp 27390 uid 502
  Jun 12 14:09:12 hotcube qmail: 992376552.660776 info msg 1005715: bytes
  266 from [EMAIL PROTECTED] qp 27403 uid 502
  Jun 12 14:09:12 hotcube qmail: 992376552.815629 info msg 1005716: bytes
  266 from [EMAIL PROTECTED] qp 27416 uid 502
  Jun 12 14:09:42 hotcube qmail: 992376582.939013 info msg 1005715: bytes
  266 from [EMAIL PROTECTED] qp 27450 uid 502

Each of those messages has a different qmail-queue PID.  From this, you can
deduce that the sender is connecting to your server, sending the message,
and somehow disconnecting or misinterpreting qmail's response to the DATA
command.  The sender thinks the delivery failed, so it tries again, and again,
ad infinitum.

Capture one of the messages' SMTP conversation using recordio.  That should
tell you exactly how the sender's MTA is broken.  You can then inform
postmaster at that domain.

Or block their IP address from connecting to your SMTP daemon.  You choice.

Charles
-- 
---
Charles Cazabon[EMAIL PROTECTED]
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
---



RE: Multilog log file size specification

2001-06-14 Thread Michael Boyiazis


 -Original Message-
 From: Alex Khanin [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 14, 2001 11:22 AM
 To: [EMAIL PROTECTED]
 Subject: Multilog log file size specification
 
 
 I've read the manpage and it states you should use the ssize action,
 So I put this in my /var/qmail/supervise/qmail-send/log/run:
 
 #!/bin/sh
 exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t
 /backup/log/qmail ssize 50 nnum 50
 
 That is ignored.
 
 If I put it this way:
 
 #!/bin/sh
 exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t ssize
 50 nnum 50 /backup/log/qmail

make it  ...  t s500 n50 

-- 
Michael Boyiazis
[EMAIL PROTECTED]
Mail Architect, NetZero, Inc.




RE: Multilog log file size specification

2001-06-14 Thread Willy De la Court

On Thursday, June 14, 2001 20:22, Alex Khanin [SMTP:[EMAIL PROTECTED]] wrote:
 I've read the manpage and it states you should use the ssize action,
 So I put this in my /var/qmail/supervise/qmail-send/log/run:
 
 #!/bin/sh
 exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t
 /backup/log/qmail ssize 50 nnum 50

try this
/usr/local/bin/multilog t s9 n100 /var/log/qmail

 
 That is ignored.
 
 If I put it this way:
 
 #!/bin/sh
 exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t ssize
 50 nnum 50 /backup/log/qmail
 
 Then files are created with max size of around 3k instead of 500k.
 
 What am I doing wrong?? Someone please help.
 
 Thanks.



Re: Log Entry question

2001-06-14 Thread Chris Johnson

On Thu, Jun 14, 2001 at 08:56:48AM -0700, Drew Hawn wrote:
 My run script is:
 
 exec env - PATH=/var/qmail/bin:$PATH \
 qmail-start '|dot-forward .forward
 |preline /usr/bin/procmail'

That's not it. What script are you using to start qmail-smtpd? What I'm getting
at: are you putting tcpserver in the background in your run script?

Chris



Re: backup mail server help

2001-06-14 Thread Peter van Dijk

On Thu, Jun 14, 2001 at 12:42:28PM -0700, Adam Jacob wrote:
 On Wed, Jun 13, 2001 at 06:03:41AM -0600, Jeff Palmer wrote:
  And if your NFS server goes down,  both servers are useless.  In which 
  case,  what was the point of having a backup server again?
 
 Which is why you deploy this with something like a NetApp filer, that lets you
 deliver to NFS, and have multiple external pop3 servers as well. (And have two
 NetApp's mirroring your data at the same time)

Or just being clustered on the same set of shelves which use RAID4
themselves, so one of each kind of part can go down :)

Greetz, Peter
-- 
Against Free Sex!   http://www.dataloss.nl/Megahard_en.html



Re: yet more trouble with daemontools and supervise

2001-06-14 Thread Stephen Bosch

Charles Cazabon wrote:
 
 Stephen Bosch [EMAIL PROTECTED] wrote:
  Dave Sill wrote:
   Stephen Bosch [EMAIL PROTECTED] wrote:
  
   Well, my logs are filling up with garbage
  
   Garbage or log entries? Sample, please?
 
  Sorry -- it's just that I quoted it at great length before...
 [...]
   Jun 12 14:09:12 hotcube qmail: 992376552.507323 info msg 1005716: bytes
   266 from [EMAIL PROTECTED] qp 27390 uid 502
   Jun 12 14:09:12 hotcube qmail: 992376552.660776 info msg 1005715: bytes
   266 from [EMAIL PROTECTED] qp 27403 uid 502
   Jun 12 14:09:12 hotcube qmail: 992376552.815629 info msg 1005716: bytes
   266 from [EMAIL PROTECTED] qp 27416 uid 502
   Jun 12 14:09:42 hotcube qmail: 992376582.939013 info msg 1005715: bytes
   266 from [EMAIL PROTECTED] qp 27450 uid 502
 
 Each of those messages has a different qmail-queue PID.  From this, you can
 deduce that the sender is connecting to your server, sending the message,
 and somehow disconnecting or misinterpreting qmail's response to the DATA
 command.  The sender thinks the delivery failed, so it tries again, and again,
 ad infinitum.
 
 Capture one of the messages' SMTP conversation using recordio.  That should
 tell you exactly how the sender's MTA is broken.  You can then inform
 postmaster at that domain.

What's the syntax for that? Does it come with a man page?
 
 Or block their IP address from connecting to your SMTP daemon.  You choice.

That would mean I would be blocking myself - that from information
indicates a local user.

Is this really what's happening? I am beginning to worry that something
is majorly misconfigured here... but the server works perfectly! All the
mail that is sent arrives, nobody has problems sending out...

*bangs head*

So... if the queue is empty, this log stuff indicates that something is
repeatedly trying to send. If it's a local user, then... could it be a
broken application? Oh boy.

-Stephen-



Re: yet more trouble with daemontools and supervise

2001-06-14 Thread Stephen Bosch


Hullo again...

Dave Sill wrote:
 
 Stephen Bosch [EMAIL PROTECTED] wrote:
 
  my /var/log/maillog fills up with stuff like this:
 
  Jun 12 14:09:12 hotcube qmail: 992376552.411296 end msg 1005715
  Jun 12 14:09:12 hotcube qmail: 992376552.507199 new msg 1005716
  Jun 12 14:09:12 hotcube qmail: 992376552.507323 info msg 1005716: bytes
  266 from [EMAIL PROTECTED] qp 27390 uid 502
  Jun 12 14:09:12 hotcube qmail: 992376552.573170 end msg 1005716
  Jun 12 14:09:12 hotcube qmail: 992376552.660653 new msg 1005715
  Jun 12 14:09:12 hotcube qmail: 992376552.660776 info msg 1005715: bytes
  266 from [EMAIL PROTECTED] qp 27403 uid 502
  Jun 12 14:09:12 hotcube qmail: 992376552.732709 end msg 1005715
 
  and so on, and so on, and so on. It goes back months like this (I would
  never have noticed it had it not been for some other issues I was
  working on). Is this normal? My other qmail installations don't do that.
 
 It's normal for qmail-send to log its actions. It's not normal to see
 messages end without a delivery being logged, or for no status:
 messages to be logged.

So, is Charles right? Does this indicate somebody is reattempting
delivery?

 It's not normal to have a qmail-send/log
 service when you're logging via splogger/syslog.
 
  [root@hotcube qmail]# /etc/rc.d/init.d/qmail stat
  qmail-send: up (pid 27564)
  qmail-smtpd: up (pid 27566)
  qmail-send/log: unable to open supervise/ok: file does not exist
  qmail-smtpd/log: unable to open supervise/ok: file does not exist
 
 That means supervise isn't running for the log services.
 
  Okay. So I checked for sticky bits on the appropriate directories:
 
  [root@hotcube supervise]# ls -ld /var/qmail/supervise/*
   927870 drwxr-xr-t4 root qmail1024 Sep  1  2000
  /var/qmail/supervise/qmail-send/
   712830 drwxr-xr-t4 root qmail1024 Dec 18 10:27
  /var/qmail/supervise/qmail-smtpd/
 
 Were they set when the services were started?

Yes. I've started and stopped them numerous times to no avail. At least,
I have started and stopped them using the /etc/rc.d/init.d/qmail script
you provided (at the time) in LWQ.

It all seems to work, except for this peculiar problem above.
 
  qmail-smtpd/log:
   733311 -rwxr-xr-x1 root qmail  94 Sep  1  2000 run*
 
 No supervise directory... Further evidence that supervise isn't
 running.

*rattles head*

So... okay... where is supervise invoked again? I need to eat
something...

Your suggestion to migrate to the new LWQ setup is looking more
appealing by the minute.

-Stephen-



Re: yet more trouble with daemontools and supervise

2001-06-14 Thread Charles Cazabon

Stephen Bosch [EMAIL PROTECTED] wrote:
  
  Each of those messages has a different qmail-queue PID.  From this, you
  can deduce that the sender is connecting to your server, sending the
  message, and somehow disconnecting or misinterpreting qmail's response to
  the DATA command.  The sender thinks the delivery failed, so it tries
  again, and again, ad infinitum.
  
  Capture one of the messages' SMTP conversation using recordio.  That
  should tell you exactly how the sender's MTA is broken.  You can then
  inform postmaster at that domain.
 
 What's the syntax for that? Does it come with a man page?

Yes.  It's in Dan's ucspi-tcp package, along with tcpserver et al.  Basically
you stick it in-between tcpserver and the program which tcpserver would
normally run.  However, this is assuming these messages are arriving via
qmail-smtpd.  Based on your comments below, I'm not sure that's the case.

  Or block their IP address from connecting to your SMTP daemon.  You
  choice.
 
 That would mean I would be blocking myself - that from information
 indicates a local user.

Okay, I couldn't determine that from the log snippet; I thought it was an SMTP
injection.  It might still be, if it's a program which normally sends mail via
SMTP instead of /usr/sbin/sendmail or friends.  Can you identify the
user/process which is sending this mail?

 Is this really what's happening? I am beginning to worry that something
 is majorly misconfigured here... but the server works perfectly! All the
 mail that is sent arrives, nobody has problems sending out...

Do you by chance have a mail loop created by a bogus entry in smtproutes?

 *bangs head*
 
 So... if the queue is empty, this log stuff indicates that something is
 repeatedly trying to send. If it's a local user, then... could it be a
 broken application? Oh boy.

It could be a broken application.  I haven't seen enough details to tell.

Charles
-- 
---
Charles Cazabon[EMAIL PROTECTED]
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
---



Migrating a Maildir to another qmail box

2001-06-14 Thread Al Sparks

It comes time to move my email, located in a $HOME/Maildir to another
machine, also running qmail.  I tar the $HOME/Maildir transfer it to
the new machine (with a different name btw) and restore it to the new
$HOME/Maildir.

What else do I need to do to make qmail on the new machine see it?  

When I do a file listing of $HOME/Maildir/cur, I notice that the
machine name is included in the filenames.  Do I need to change all
those filenames so it reflects the new machine name?

Realizing this isn’t the courier group, are there any changes I need to
make to the various courierimapuiddb files?

Anything else I should look for?
=== Al

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/



help : qmail-popup3d

2001-06-14 Thread Carlos Baptista

hi all,

i have a very small problem.. qmail-popup3d stops the connection after 1 
minute. this append with any type of client that i use (kmail, outlook, 
eudora, even with email client from nokia 9110/9210). it doesn't matter how 
many messages there is in the mailbox.. it just stops after 1 minute. i tried 
with inetd, xinetd and tcpserver.

any help???


tia

cb



Using mail.local to put the mail in /var/mail/username

2001-06-14 Thread benl

Hello All,

I've searched the FAQ and mailing list archive but couldn't find a solution.
I'm hoping someone can help me.

My box has linux 7.0, qmail 1.0.3

I can successfully run qmail where it delivers the mail to  the Maildir or
Mailbox in the user's home dir.

Now I'm trying to make it deliver the mail to /var/spool/mail/username

My /var/qmail/rc file looks like this

exec env - PATH=/var/qmail/bin:$PATH \
qmail-start '| preline -f /usr/bin/mail.local -f
${SENDER:-MAILER-DAEMON} -d $USER'

This is from sample rc file /var/qmail/boot/binm1. I changed the path to
suit the location of mail.local on my box.

I get the following error in the qmail log.

@40003b2866de266761fc delivery 12: deferral:
mail.local:_/var/spool/mail/benl:_Permission_denied/

Here's the permissions on /var/spool/mail

drwxrwxr-x2 root qmail4096 Jun 14 17:04 mail

Because of the error message it lead me to believe the permissions on the
directory were not write. So I tried a combination of changing
owner.group.permissions to o+rw, but I still get that error.

Any help would be greatly appreciated.

Thanks,
Ben
Qmail Wannabe





Re: Using mail.local to put the mail in /var/mail/username

2001-06-14 Thread Nick (Keith) Fish

benl wrote:

 @40003b2866de266761fc delivery 12: deferral:
 mail.local:_/var/spool/mail/benl:_Permission_denied/
 
 Here's the permissions on /var/spool/mail
 
 drwxrwxr-x2 root qmail4096 Jun 14 17:04 mail
 
 
 Thanks,
 Ben
 Qmail Wannabe

The user should own that Mailbox, not root.

-- 
Nick (Keith) Fish
Network Engineer
Triton Technologies, Inc.



Re: Migrating a Maildir to another qmail box

2001-06-14 Thread hari_bhr

hi

take a back of all 

/var/qmail/control  directry
/var/qmail/usersdirectry

and restore
- Original Message - 
From: Al Sparks [EMAIL PROTECTED]
To: qmail list [EMAIL PROTECTED]
Sent: Friday, June 15, 2001 4:07 AM
Subject: Migrating a Maildir to another qmail box


 It comes time to move my email, located in a $HOME/Maildir to another
 machine, also running qmail.  I tar the $HOME/Maildir transfer it to
 the new machine (with a different name btw) and restore it to the new
 $HOME/Maildir.
 
 What else do I need to do to make qmail on the new machine see it?  
 
 When I do a file listing of $HOME/Maildir/cur, I notice that the
 machine name is included in the filenames.  Do I need to change all
 those filenames so it reflects the new machine name?
 
 Realizing this isn't the courier group, are there any changes I need to
 make to the various courierimapuiddb files?
 
 Anything else I should look for?
 === Al
 
 __
 Do You Yahoo!?
 Get personalized email addresses from Yahoo! Mail - only $35 
 a year!  http://personal.mail.yahoo.com/


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




Re: Qmail ADMIN!!! Please Help

2001-06-14 Thread Santosh Pasi

Hi,
gcc -I.   -g -O2 -c qmailadmin.c
qmailadmin.c:30: vpopmail.h: No such file or directory
  ^
qmailadmin.c:31: vauth.h: No such file or directory
    
make[2]: *** [qmailadmin.o] Error 1

On your system, there is no vpopmail.h and vauth.h file.
try to get these files first(you may find in vpopmail src) and include 
it in proper path, may be /usr/include
Regards,
Santosh Pasi



---Original Message--
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
From: Mike Jimenez [EMAIL PROTECTED]
To: Qmail [EMAIL PROTECTED]
Subject: Qmail ADMIN!!! Please Help
Date: Wed, 13 Jun 2001 12:18:42 -0700
Content-Transfer-Encoding: 7bit
Importance: Normal

Using the new vpopmail vpopmail-4.9.10.tar and the Qmail Admin
qmailadmin-0.45.tar . I cannot get Qmail admin to compile?
Here is the error message I recieve.
What in the heck is going on ? I can compile qmailadmin-0.26.tar with no
errors but I dont want to use that.
Thanks
Mike

qmailadmin-0.45]#
./configure --enable-vpopuser=vpopmail 
--enable-cgibindir=/apache/cgi-bin --enable-htmldir=/usr/local/share 
--enable-vpopmaildir=/home/vpopmail/
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking host system type... i686-unknown-linux
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for ranlib... ranlib
checking for POSIXized ISC... no
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking for crypt in -lcrypt... yes
checking for crypt in -lshadow... no
checking for floor in -lm... yes
checking for gethostbyaddr in -lnsl... yes
checking for getsockname in -lsocket... no
cat: /home/vpopmail//etc/inc_deps: No such file or directory
cat: /home/vpopmail//etc/lib_deps: No such file or directory
checking for ezmlm-idx... no
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking for ANSI C header files... yes
checking for unistd.h... yes
checking for working const... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for getcwd... yes
checking for mkdir... yes
checking for strdup... yes
checking for strstr... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h
qmailadmin-0.45]# make
make  all-recursive
make[1]: Entering directory `/installers/qmailadmin-0.45'
make[2]: Entering directory `/installers/qmailadmin-0.45'
gcc -I.   -g -O2 -c qmailadmin.c
qmailadmin.c:30: vpopmail.h: No such file or directory
qmailadmin.c:31: vauth.h: No such file or directory
make[2]: *** [qmailadmin.o] Error 1
make[2]: Leaving directory `/installers/qmailadmin-0.45'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/installers/qmailadmin-0.45'
make: *** [all-recursive-am] Error 2

==
Mike Jimenez
System Administrator
Visual Perspectives Internet, Inc. (VPI.Net)
Tel: (949) 595-8622 -- Fax: (949) 595-8629
http://www.vpi.net
==







Re: Long connect times

2001-06-14 Thread Jon Booth

OK I have set up reverse DNS and it works great. 
The reason I was hesitant to set it up was I was using my ISPs DNS to
resolve not my local but I am now forwarding from my local to theirs

Thanks
Jon Booth

On Thu, 14 Jun 2001, Russell Nelson wrote:

 Jon Booth writes:
   Hi all,
   I am using QMail with xinetd. It takes ages for a PC internally (allowed
   to relay) to connect to the server. Outside servers can connect instantly. 
   Where should I look to diagnose this problem
 
 Reverse DNS for your internal hosts.  It's not optional.
 
 -- 
 -russ nelson [EMAIL PROTECTED]  http://russnelson.com
 Crynwr sells support for free software  | PGPok | 
 521 Pleasant Valley Rd. | +1 315 268 1925 voice | #exclude windows.h
 Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   |