Re: Maildir-Aware /bin/mail Replacement?

2000-11-01 Thread Toni Mueller



Hi,

On Mon, Oct 23, 2000 at 02:57:48PM -0700, Kai MacTane wrote:
 What are the security problems with it? And will using it allow my shell 
 users to type "mail" and either get a "no new mail" message or show them 
 the contents of their mailbox if they do have something?

no, imho. Why not write a small script like (no warranties here):

#!/bin/sh
cd $HOME
CNT=`find Maildir/new -type f | wc -l`

if [ $CNT -eq 0 ]; then
echo "no new mail"
else
mutt
fi
exit $?


call it 'mail' and put it early in the PATH ?


Best Regards,
--Toni++




Re: How can i run multiple virtual qmail servers

2000-11-01 Thread Toni Mueller



Hi,

On Tue, Oct 24, 2000 at 04:15:23PM +0100, Jonathan McDowell wrote:
 On Tue, Oct 24, 2000 at 08:27:34PM +0630, [EMAIL PROTECTED] wrote:
  Can anybody tell me how can i run multiple virtual qmail servers on a
  single physical server.
 What are you trying to achieve that can't be done with one copy of
 qmail?

I don't know what the original poster wanted, but having several instances
of qmail, or at least the chance to tag a message with a "virtual server"
to be delivered through that could then take one of several ip addresses
would make accounting easier. qmail-analog isn't for me :( but with
the possibility outlined above the problem would just be solved
through standard IP accounting tools. Incoming mail is no problem now,
but outgoing mails are, as are 'wrong' connected POP3 users.


Best Regards,
--Toni++




OT: DJB docs mirrored?

2000-10-09 Thread Toni Mueller



Hello,

I have a regular need to get to DJB's documentation (affects
several of his software packages). There once was a mentioning
on this list that some of you mirror this documentation. I'd
like to get these addresses, and suggest they be put online
at an easy-to-find address so one could get the stuff when
DJB's site is unreachable (this happened for several hours
today to me).

Thank you!

Best Regards,
--Toni++




qmail-pop3d not picking up new messages?

2000-09-13 Thread Toni Mueller



Hello,

I am underway installing a new box with qmail, this time using
the new daemontools-0.70 plus ucspi-tcp-0.88 and it generally
works like a champ. Although I'm not yet convinced that the
two-stage pipe thing is a sufficient replacement for full pipe
control in supervise, this is far easier to get right than the
earlier method was.

Now the problem:

I started a pop session, with my maildir emtpy:
telnet host 110, user xyz, pass abc
list - 0
Then I sent me a message which got placed in my
Maildir/new...

list- 0 _still_

I waited several seconds and tried again, and it was
still 0... When I finished the pop3 session and started
a new one, I had no problem seeing and reading the
message.

This is under Linux, 2.2.17-pre (Debian 2.2 default
kernel).

Am I bitten by Linux metadata semantics? Does qmail-pop3d
scan the mailbox only on login or at (long) fixed intervals?


Best Regards,
--Toni++




Re: rblsmtpd emergency

2000-09-13 Thread Toni Mueller



Hello,

On Wed, Aug 16, 2000 at 10:28:48AM -0500, Mate Wierdl wrote:
 On Wed, Aug 16, 2000 at 09:55:53AM -0500, Ben Beuchler wrote:
  On Wed, Aug 16, 2000 at 07:08:28AM -0500, Mate Wierdl wrote:
   but would not it be relatively simple to implement a server software
   using tcpserver that would just lookup an IP number in a .cdb database
   of IP numbers, and send an appropriate response?  A client might be

hmm. I don't understand the question. For ucspi-tcp-0.88, I get
from http://cr.yp.to/ucspi-tcp/rblsmtpd.html (slightly wrapped):

- cut
Options: 

-r base: Use base as an RBL source. An IP address a.b.c.d
is listed by that source if d.c.b.a.base has a TXT record.
rblsmtpd uses the contents of the TXT record as an error
message for the client. 
- cut

and:

- cut
You may supply any number of -r and -a options. rblsmtpd tries
each source in turn until it finds one that lists or anti-lists
$TCPREMOTEIP. It also tries an RBL source of rbl.maps.vix.com
if you do not supply any -r options. See http://maps.vix.com/rbl/
for more information about rbl.maps.vix.com.

If you want to run your own RBL source or anti-RBL source for
rblsmtpd, you can use rbldns from the djbdns package. 
- cut

I didn't try this, but imho this clearly says "-r maps.vix.com
gets you the default behaviour of asking Paul Vixie".

So, what's the problem? You need to axfr the zone from somewhere
and massage that into a cdb the rbldns would probably use.
That could be done with a cron job. How much mail you then
deny is up to you...

But that's one thing every sysadmin has to decide for oneself,
do I have a default closed (-c) or open (-C) setup when my
rbl servers fail?


Best Regards,
--Toni++




Unable to switch to home directory

2000-07-07 Thread Toni Mueller


Hello,

I'm stumped on this one:

One of my users can't receive mail because qmail has
problems getting to his home.

- the user has a home like /prefix/www.do.main
- with maildir delivery ./MailDir/ in said case (that's
  the same for all users)
- he owns both his home (mode 0755) and the MailDir
  (mode 0700)

My setup is such that I first route through a private
switchboard and from there redirect the messages to
the different users (or to the outside). So I can
avoid letting users mess around with their own
mail setup...

Ok, in my switchboard I say that this user should
receive mail in his home, so there is
user@localhost in the corresponding .qmail- file.

In said user's home are .qmail and .qmail-default
files saying to put the mail into ./MailDir/
(it needs this indirection because I have no
access to the homes of these users when doing
a normal qmail delivery). The user owns these
files which are mode 0444.

I see qmail reading the info in my switchboard,
but don't see it access the user's home.


I would appreciate it very much if anyone can
spot the problem and tell me...


Best Regards,
--Toni++




Re: Problem: 552 max. message size exceeded

2000-03-31 Thread Toni Mueller



Hello,

On Fri, Mar 31, 2000 at 04:01:31PM +0200, Peter van Dijk wrote:
 On Thu, Mar 30, 2000 at 11:17:16AM -0800, Aaron L. Meehan wrote:
  implement ESMTP SIZE if it gets "EHLO blah." 
 
 qmail-remote says HELO, not EHLO.

thank you. So it's time to move to qmail-1.04, which will presumably
not only support ESMTP, but also incorporate that bunch of patches
floating around? (Ok, what would it cost to do it?)

Or is qmail dead due to Postfix success?


Best Regards,
--Toni++




Re: qmailanalog

2000-03-31 Thread Toni Mueller



Hello all,

On Thu, Mar 30, 2000 at 08:42:07PM +0200, S.P. Hoeke wrote:
 I'm wondering if there's a FAQ or HOW-TO with regards to qmailanalog...
 The man pages are, for me, not sufficient to get it running :-(

I had it running once, but it didn't produce the desired results.
What irks me is that it's a real hack of awk and the like that
I don't understand (read "unmaintainable for me"). Does anyone
know if there is perchance a Perl version floating around?

Other than that running qmailanalog was a two-stage processing of
the qmail log files, as far as memory serves. First I had to
produce an intermediate format which was then processed by
various programs to generate the different reports.

Best Regards,
--Toni++




Problem: 552 max. message size exceeded

2000-03-30 Thread Toni Mueller



Hello,


I've got problems with sites that limit their message size.
One example site uses some kind of sendmail that also logs
the whole conversation. This is from the remote end:

03-29-2000.00:04:09 SMTPresponder-26115:  DATA
03-29-2000.00:04:09 SMTPresponder-26115:created temp file: 
/var/spool/MHS2/SMTPresponder-SMTP-in/TEMP.6603.38e18ec9.7fb90.1
03-29-2000.00:04:09 SMTPresponder-26115:  354 Enter mail, end with "." on a line by 
itself
03-29-2000.00:19:26 SMTPresponder-26115: size of data portion from 192.168.2.2 
exceeded maximum
03-29-2000.00:19:26 SMTPresponder-26115:  552 message size exceeds maximum message 
size
03-29-2000.00:19:26 SMTPresponder-26115: 192.168.2.2 did not send CRLF.CRLF, 
message discarded


Locally I get:

03-29-2000.00:19:27.702631 delivery 4: deferral: 
Connected_to_192.168.1.1_but_connection_died._(#4.4.2)/

Looking into the (1.03) source I think the problem must be somewhere in
qmail-remote.c or qmail-send.c where it doesn't seem to see the actual
return code (mangled in saferead()?) and only pass a temporary error
upwards. OTOH I didn't dig deep enough into qmail to actually fix this,
and also would like further confirmation for this problem.

I would like to see qmail bouncing this mail immediately stating to
the sender that the message was too big instead of trying the
message again and again to no avail except filling the pipe.

Has anyone else run into this problem? How did you solve this?


Best Regards,
--Toni++




Re: Problem: 552 max. message size exceeded

2000-03-30 Thread Toni Mueller


Hello,

On Thu, Mar 30, 2000 at 11:17:16AM -0800, Aaron L. Meehan wrote:
 Quoting Dave Sill ([EMAIL PROTECTED]):
  [EMAIL PROTECTED] wrote:
  Locally I get:
  
  03-29-2000.00:19:27.702631 delivery 4: deferral: 
Connected_to_192.168.1.1_but_connection_died._(#4.4.2)/
  
  Looks like the remote MTA is sending that 552 message while qmail is
  still transmitting data, which I think violates the SMTP protocol. I'm 
  not an SMTP expert, but I really doubt qmail is misbehaving. Dan is
  just too careful to miss something like that.

I'm no SMTP expert, too, but my understanding is that your assumption
is correct in that the remote side just cries "STOP" in the middle
of the transfer and expects qmail to send an end of message then.
That software is called "Mail*Hub TurboSendmail", whatever that is.

 Yes, this same thing happens when sending messages larger than 1Mb to
 hotmail.com nowadays.  There was a good thread about it, if I
 remember.  The deal was that hotmail is expecting the peer to
 implement ESMTP SIZE if it gets "EHLO blah." 

So I assume that the qmail-remote also speaks ESMTP if available,
but doesn't send that SIZE message, right? Guess it's time again
to find that hotmail thread.

Anyway, that's a nice hint to follow, thank you!


Best Regards,
--Toni++




Re: How to configure....?

1999-12-31 Thread Toni Mueller


Hello!

On Fri, Dec 31, 1999 at 01:55:34PM +0900, Yong Dae Won wrote:
 My problem is that qmail is locking when I try to deliver large file
 (about over 1Mbyte) from my UNIX Mailbox to Windows messenger. So I
 could not see my email. Now my Mailbox size is 13M.. How I can see my
 large mail?? Can the qmail deliver large email to local mail user??

At least it can. I once received a mail sized 35meg, and our customers
regularly send and receive mails over 10megs w/o problems other than
hitting administratively installed size limits on the remote ends, and
using qmail of course.

 Some items to check:
- How much space of that 13meg do you have left on that Unix server?
- Do you have a 1meg limit in your Windows messenger?
- Does your Unix administrator or so limit you in the size of individual
  emails? (Why are you not said administrator?)
- Your email did get delivered on the Unix box into your (POP3?) mailbox,
  to begin with?
- The Unix box has resources left over that could handle delivering such
  a mail (eg. swap space, process limits)?


 My email is [EMAIL PROTECTED]
 
 Send me an email to here...

If you ask on a list, be prepared to pick up the answer there.


Regards,

Toni.

NIC: TM2155
Oeko.neT Mueller  Brandt GbR   sales: [EMAIL PROTECTED]
v: +49 2261 979364 f: +49 2261 979366   http://www.oeko.net
Unix, networking, administration, consulting, programming, Internet services



Re: Return Receipts

1999-09-24 Thread Toni Mueller



Hello,

On 09/14/1999 16:27 -0400, Thomas Blauvelt ([EMAIL PROTECTED]) wrote:
 On Mon, 13 Sep 1999, Anand Buddhdev wrote:
  man qreceipt
 
 Yes, but is anyone sucessfully using this? 

what is successful usage in your opinion? If the program doesn't
crash or pose similar problems, this is successful enough for me.

 Are there any mailers which use the necessary 
 Notice-Requested-Upon-Delivery-To header  field?

Well, I wanted an unconditional reply, w/o any special headers, to anybody
who sends me mail. So I made the following patch to qreceipt.c (qmail-1.03,
what is qmail-1.04 anyway?):

$ rcsdiff -u qreceipt.c
===
RCS file: RCS/qreceipt.c,v
retrieving revision 1.1
diff -u -r1.1 qreceipt.c
--- qreceipt.c  1999/09/24 10:51:26 1.1
+++ qreceipt.c  1999/09/24 12:15:40
@@ -111,6 +111,10 @@
  if (!stralloc_copy(messageid,h)) die_nomem();
  break;
case H_NOTICEREQUESTEDUPONDELIVERYTO:
+   case H_TO:
+   case H_CC:
+   case H_BCC:
+   case H_APPARENTLYTO:
  doordie(h,token822_parse(hfin,h,hfbuf));
  doordie(h,token822_addrlist(hfrewrite,hfaddr,hfin,rwnotice));
  break;


This sends me a DELIVERY SUCCESS -story any time I get a mail...
I think this can be easily customized using hfield.[ch], but have
not tested this.



Regards,

Toni.

NIC: TM2155
Oeko.neT Mueller  Brandt GbR   sales: [EMAIL PROTECTED]
v: +49 2261 979364 f: +49 2261 979366   http://www.oeko.net
Unix, networking, administration, consulting, programming, Internet services





Re: Kurt's Closet on qmail

1999-09-24 Thread Toni Mueller



Hello,

while having explicit permission for item XYZ, I decided that
the following page and related pages on Dan's site should be
sufficient:

ftp://koobera.math.uic.edu/www/rights.html

On 09/15/1999 13:12 +0100, Petr Novotny ([EMAIL PROTECTED]) wrote:
 It's nice that you know the licence for qmail-1.03.tar.gz - but this 
 package per se is somewhat unuseful. What's the licence for 
 tcpserver?


Any comments are very welcome!


Regards,

Toni.

NIC: TM2155
Oeko.neT Mueller  Brandt GbR   sales: [EMAIL PROTECTED]
v: +49 2261 979364 f: +49 2261 979366   http://www.oeko.net
Unix, networking, administration, consulting, programming, Internet services



ALRM and ongoing deliveries?

1999-09-24 Thread Toni Mueller



Hello,

the qmail-send page says that sending it an ALRM makes it re-scan the
queue. Well, somebody demanded that his qmail-send gets ALRMed every
15 minutes to minimize mail delivery time. BUT: He has a slow link
and queued some 20+ megs of mail at once, in pieces around 3-7 meg each.
His mail got NOT delivered for over a day while the link was constantly
glowing. When I stopped that cron job the mail was out in about an
hour. The exact command this cronjob executes is

/usr/local/bin/svc -a /var/qmail/run/qmail

So what gives? Did I assume correctly that sending the ALRM interrupted
the ongoing transfers and restarted them? The log file mentions
"SMTP connection died" several times... If so, how do I have the
queue run every 15 minutes w/o disturbing the deliveries already
in progress?  This is qmail-1.03 with daemontools-0.53 and 
ucspi-tcp-0.84.

"Stay tuned for more tuning questions" :-|

Thank you!


Regards,

Toni.

NIC: TM2155
Oeko.neT Mueller  Brandt GbR   sales: [EMAIL PROTECTED]
v: +49 2261 979364 f: +49 2261 979366   http://www.oeko.net
Unix, networking, administration, consulting, programming, Internet services



Warning message earlier than in 12 hours?

1999-09-24 Thread Toni Mueller



Hello,

a few days ago I received a message that qmail was unable to send a
message within the last 12 hours. How do I tune this except for
patching the source code?


Thank you!

Regards,

Toni.

NIC: TM2155
Oeko.neT Mueller  Brandt GbR   sales: [EMAIL PROTECTED]
v: +49 2261 979364 f: +49 2261 979366   http://www.oeko.net
Unix, networking, administration, consulting, programming, Internet services