qmail Digest 11 Jul 1999 10:00:01 -0000 Issue 694

Topics (messages 27630 through 27667):

Webbased e-mail program available
        27630 by: Ronald Wiplinger <[EMAIL PROTECTED]>

New qmail list et al
        27631 by: "Steve Lawrence" <[EMAIL PROTECTED]>
        27638 by: "Sam" <[EMAIL PROTECTED]>

This is a nasty one
        27632 by: Juan Carlos Castro y Castro <[EMAIL PROTECTED]>

Single-UID based POP3 && checkpasswd
        27633 by: "Radu Malica" <[EMAIL PROTECTED]>

I must have something simple misconfigured - but I don't see it
        27634 by: David McCall <[EMAIL PROTECTED]>
        27639 by: "Sam" <[EMAIL PROTECTED]>

The list is back!
        27635 by: Vince Vielhaber <[EMAIL PROTECTED]>

periodic cleanup of email
        27636 by: Dinesh Punjabi <[EMAIL PROTECTED]>

qmail-bounce scripts: need new maintainer
        27637 by: "Brian T. Wightman" <[EMAIL PROTECTED]>
        27648 by: "Brian T. Wightman" <[EMAIL PROTECTED]>

ORBS check, except for specific users.
        27640 by: torben fjerdingstad <[EMAIL PROTECTED]>
        27651 by: "Adam D . McKenna" <[EMAIL PROTECTED]>
        27659 by: Tim Tsai <[EMAIL PROTECTED]>

subscribe qmail
        27641 by: Colloquium Internet Technical Support <[EMAIL PROTECTED]>

List alive?
        27642 by: Brad Shelton <[EMAIL PROTECTED]>

"Life with qmail" officially released
        27643 by: Dave Sill <[EMAIL PROTECTED]>

Lost my Qmail knowledge...Help.
        27644 by: Dave Sill <[EMAIL PROTECTED]>
        27652 by: "Dave" <[EMAIL PROTECTED]>
        27660 by: Peter Haworth <[EMAIL PROTECTED]>

info
        27645 by: Dave Sill <[EMAIL PROTECTED]>
        27655 by: "David Dyer-Bennet" <[EMAIL PROTECTED]>

test message. please ignore
        27646 by: Marlon Anthony Abao <[EMAIL PROTECTED]>

use NT user database for POP3
        27647 by: Milivoj Ivkovic <[EMAIL PROTECTED]>

Qmail stops working
        27649 by: Richard Letts <[EMAIL PROTECTED]>
        27653 by: Doug Lumpkin <[EMAIL PROTECTED]>

trashing unwanted mail
        27650 by: "Matt D. Landry" <[EMAIL PROTECTED]>

Source Routing Relaying
        27654 by: Eric Huss <[EMAIL PROTECTED]>

pop3 and shadow passwords
        27656 by: "Tim Hunter" <[EMAIL PROTECTED]>
        27667 by: Chris Johnson <[EMAIL PROTECTED]>

qmail-newu
        27657 by: "Jacob (Mettavihari)" <[EMAIL PROTECTED]>

IMAP Server that understands Maildir's
        27658 by: Stewart Jeacocke <[EMAIL PROTECTED]>

Relaying problem
        27661 by: Peter Haworth <[EMAIL PROTECTED]>

fetchmail/qmail not talking
        27662 by: Sim <[EMAIL PROTECTED]>

rejecting non resolvable domains
        27663 by: torben fjerdingstad <[EMAIL PROTECTED]>

onelist.com?
        27664 by: Peter van Dijk <[EMAIL PROTECTED]>

Serialmail won't run from cron
        27665 by: Peter van Dijk <[EMAIL PROTECTED]>

Virus scanning with qmail+amavis (Take 2)
        27666 by: Christopher Seawood <[EMAIL PROTECTED]>

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]


----------------------------------------------------------------------



Is there a web based e-mail program available, which takes advantage of
a single user-id for virtual domains? (Paul Gregg's version)

--
Ronald Wiplinger (�Q����)  http://www.trace.net.tw
phone number = e-mail:
e-mail: [EMAIL PROTECTED] or [EMAIL PROTECTED]

begin:vcard 
n:Wiplinger;Ronald
tel;pager:0943-154953
tel;cell:0935-869459
tel;fax:2600-0132
tel;home:2609-0652 ext. 80
tel;work:2609-0652 ext. 12
x-mozilla-html:FALSE
url:www.trace.net.tw
org:Wang's Trace Tech. Enterprise Co., Ltd.
adr:;;No. 11, Lane 96, Sec. 1, Wen Hua 2nd Road, Linkou Hsian;Taipei Hsien;;24442;Taiwan
version:2.1
email;internet:[EMAIL PROTECTED]
title:Gen. Manager
fn:Ronald Wiplinger
end:vcard




Hello all!

I am new to the list and I have a comment....

I notice a lot of off topic mail about this and that in the list, and
really, a lot of this should be held privately. Is there a way to stay on
topic with this list? Should I be subscribing to a different list, focused
on the operation and configuration of qmail, and not on such things as
assuming we are all programmers?

Myself, I am not a true programmer. I am a systems administrator. In order
to configure programs for use on my servers (currently managing 4 unix, 1
mac, 1 NT) I am forced to delve into source code. That gets pretty time
consuming, and really, I wish there was a better way! I think expecting
administrators to be programmers too is expecting too much.... but then
again, the program is free and it works well when set up properly, so I am
not complaining, by any means! I appreciate having access to this  software,
very much!

> Are we talking about unix sys admins here?  The entire unix
> environment is a programming environment. The shell, the standard
> utilites.  What experienced unix sys admin hasn't programmed?

I have been managing Unix servers for 3 years, and I don't program C.  Does
this mean I am not experienced?


I realize this message shouldn't be on the list, it's off topic, but it's
the only one I'll send, off topic that is!






On Fri, 9 Jul 1999, Steve Lawrence wrote:


> topic with this list? Should I be subscribing to a different list, focused
> on the operation and configuration of qmail, and not on such things as
> assuming we are all programmers?

Since installing Qmail requires you to compile a whole bunch of stuff, and
then configure it afterwords, you should have at least some minimal
programming experience.  Nobody says that you should be able to write
something like Qmail itself from scratch, but you should be to perform
some basic amount of debugging and analysis when things go wrong.  That's
pretty much it.  You should know enough programming to be able to analyze
a non-functioning system, and pinpoint, at the very least, the cause of
the failure.

But if you want a turnkey solution, that does not require any low-level
work on your part, get a packaged commercial E-mail server from a vendor.
And then you will have to depend on the vendor to analyze operational
failures and provide solutions for it.

> Myself, I am not a true programmer. I am a systems administrator. In order

That means that you can maintain and operate commercial operating systems
and prepackaged software.

But when you go to the point of using software that comes in form of
source code, you should have programming experience.  If you don't, try to
find a vendor that sells a commercial, precompiled and preconfigured,
version of your software.

> to configure programs for use on my servers (currently managing 4 unix, 1
> mac, 1 NT) I am forced to delve into source code. That gets pretty time
> consuming, and really, I wish there was a better way!

Not if you want to use free, commodity, software.

>                                                       I think expecting
> administrators to be programmers too is expecting too much.... but then

When you have to administer commercial, prepackaged, software, it is too
much, because you do not have the access to the source code, and you have
no need for any programming or debugging skills.  If something goes
blooey, you have to whine to the vendor.

But when you use open source software, that usually comes in source code
form, that's a completely different matter.

> again, the program is free and it works well when set up properly, so I am
> not complaining, by any means! I appreciate having access to this  software,
> very much!
> 
> > Are we talking about unix sys admins here?  The entire unix
> > environment is a programming environment. The shell, the standard
> > utilites.  What experienced unix sys admin hasn't programmed?
> 
> I have been managing Unix servers for 3 years, and I don't program C.  Does
> this mean I am not experienced?

It means that you are experienced with running and maintainining
prepackaged, preconfigured, commercial software.  You are not experienced
in building new software systems from scratch, using widely available
source code and tools.

Because of the unquestionably higher value of free, commodity,
peer-reviewed software, you should expect to deal with it in increasing
frequency, and that means you should get at least some amount of
appropriate experience.





All of a sudden, qmail stopped delivering messages. Everything
double-bounces. The double-bounce messages say "sorry, no mailbox here
by that name" for accounts that DO exist on our server. Everything is
configured for Maildir. Help!
begin:vcard 
n:Castro;Juan
tel;work:540-9100 Ramal 46
x-mozilla-html:FALSE
url:http://www.appi.com.br/~jcastro
org:APPI Inform�tica;Desenvolvimento
adr:;;Av. Ataulfo de Paiva, 135/1410 - Leblon;Rio de Janeiro;RJ;22499-900;Brasil
version:2.1
email;internet:[EMAIL PROTECTED]
title:Consultor
note;quoted-printable:One man alone cannot fight the future. USE LINUX!=0D=0A=0D=0A        -- The X Racer
fn:Juan Carlos Castro y Castro
end:vcard




You have to compile with libcrypt, otherwise pop3d doesn't know where to
find for authenticating users.... i compiled Washingon Edu's POP3d w/o
libcrypt and i got the same error

-----Original Message-----
From: Ronald Wiplinger <[EMAIL PROTECTED]>
To: Qmail Mailing List <[EMAIL PROTECTED]>
Date: Sunday, July 04, 1999 8:35 AM
Subject: Single-UID based POP3 && checkpasswd


>Hi,
>
>I am happy that I can already send mail to each virtual domain user, but
>unfortunately till now I am not able to get it to work that the user can
>pickup the e-mails.
>
>(part of rc.local:)
>echo "starting qmail..."
>csh -cf '/var/qmail/rc &'
>#
>echo "starting qmail-smtp..."
>#/usr/local/bin/tcpserver -c100 -u 65534 0 smtp
>/var/qmail/bin/qmail-smtpd
>/usr/local/bin/tcpserver -v -u 5635 -g 101 -c400 0 smtp
>/var/qmail/bin/qmail-smtpd \
>2>&1 |/var/qmail/bin/splogger smtpd 3 &
>#
>echo "starting qmail-popup..."
>/usr/local/bin/tcpserver 0 110 /var/qmail/bin/qmail-popup
>www.trace.net.tw \
>/var/qmail/bin/checkpoppasswd /var/qmail/bin/qmail-pop3d Maildir &
>
>
>The program checkpoppasswd.c did not compile with "-lcrypt", however
>without it did. (I use Linux Slackware 3.6 with kernel 2.2.4 on this
>machine).
>The test telnet wiplinger.org 110 looks so:
>
>+OK <[EMAIL PROTECTED]>
>USER ronald
>+OK
>PASS  passwd
>-ERR authorization failed
>
>(connection to host lost)
>
>DNS settings:
>@               IN      SOA     wiplinger.org.  ronald.trace.net.tw. (
>                        199906190 ; serial
>                        172800 ; refresh
>                        7200 ; retry
>                        3600000 ; expire
>                        172800 ; default_ttl
>                        )
>
>                IN      NS      dns.trace.net.tw.
>                IN      NS      dns2.trace.net.tw.
>
>                IN      A       202.80.128.231
>                IN      MX      0       www.trace.net.tw.
>mail            IN      CNAME   wiplinger.org.
>www             IN      CNAME   wiplinger.org.
>ftp             IN      CNAME   wiplinger.org.
>
>
>
>Can anybody give me a hand on that?
>
>--
>Ronald Wiplinger (�Q����)  http://www.trace.net.tw
>phone number = e-mail:
>e-mail: [EMAIL PROTECTED] or [EMAIL PROTECTED]
>
>





Below is the errormessage:


Jul  9 08:07:46 nbcls sendmail[18610]: IAA18607: SMTP MAIL protocol
error: 501 <
nobody@nbcls>... Sender domain must exist





On Fri, 9 Jul 1999, David McCall wrote:

> Below is the errormessage:
> 
> 
> Jul  9 08:07:46 nbcls sendmail[18610]: IAA18607: SMTP MAIL protocol
> error: 501 <
> nobody@nbcls>... Sender domain must exist

Your mail server is saying MAIL FROM:<nobody@nbcls>

nbcls is an invalid domain.  Find out why the mail server is doing that.







Dan must be there. The list is back.

Vince.
-- 
==========================================================================
Vince Vielhaber -- KA8CSH   email: [EMAIL PROTECTED]   flame-mail: /dev/null
       # include <std/disclaimers.h>                   TEAM-OS2
        Online Campground Directory    http://www.camping-usa.com
       Online Giftshop Superstore    http://www.cloudninegifts.com
==========================================================================






Is there any program/package that will 
periodically remove/clear email older than a 
certain period of time ? 

I will be running this process on a daily
basis to automatically delete messages out of
a Mailbox file that are 1-2 weeks older than
today's date.

Thanks!


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





-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

As of 7/19/1999, I will no longer be supporting or distributing my 
qmail-bounce delayed delivery notifier due to other commitments and 
lack of web space / time.  If this software is useful to someone who 
wishes to support or maintain it, please let me know so I can "pass 
the torch".

By 7/19/1999, the current link to the software from www.qmail.org 
will either be converted to another maintainer, or removed entirely.

Please contact me at [EMAIL PROTECTED] if you are interested in taking 
over ownership of the code.

Thank you,
Brian
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBN4XTK4VcmMo9wkyzEQIRjwCgzGgSOMo0wrc1QoGSPHQrP2z/1eIAoM+G
GwnAR/y6VRCGv8rvSoJ2FLSS
=jHFJ
-----END PGP SIGNATURE-----

Brian T. Wightman | Mail sent to [EMAIL PROTECTED]
    wightman      |  will result in the sender
       at         |    being added to a mail
    acm.org       |   blacklist.  UCE bytes.




-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

As of 7/19/1999, I will no longer be supporting or distributing my 
qmail-bounce delayed delivery notifier due to other commitments and 
lack of web space / time.  If this software is useful to someone who 
wishes to support or maintain it, please let me know so I can "pass 
the torch".

By 7/19/1999, the current link to the software from www.qmail.org 
will either be converted to another maintainer, or removed entirely.

Please contact me at [EMAIL PROTECTED] if you are interested in taking 
over ownership of the code.

Thank you,
Brian
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBN4XTK4VcmMo9wkyzEQIRjwCgzGgSOMo0wrc1QoGSPHQrP2z/1eIAoM+G
GwnAR/y6VRCGv8rvSoJ2FLSS
=jHFJ
-----END PGP SIGNATURE-----

Brian T. Wightman | Mail sent to [EMAIL PROTECTED]
    wightman      |  will result in the sender
       at         |    being added to a mail
    acm.org       |   blacklist.  UCE bytes.




A long time ago some bosses decided that every user has
an email address of the form: [EMAIL PROTECTED]
 :-(

The MX host for ourdomin.dk does ORBS check.

Now, a few bosses are angry because they can't receive
mail from open relays, while others definitely don't
want mail from open relays.

How can they all be satisfied?
Their official email address must not be changed.

-- 
Med venlig hilsen / Regards 
Netdriftgruppen / Network Management Group
UNI-C          

Tlf./Phone   +45 35 87 89 41        Mail:  UNI-C                                
Fax.         +45 35 87 89 90               Bygning 304
E-mail: [EMAIL PROTECTED]       DK-2800 Lyngby





You can do ORBS/RBL/DUL checks in .procmailrc if you want to.  Unfortunately
I don't remember where I saw how to do this, but I know it can be done and
you can probably find out if you do a little digging.  (I am pretty sure it
was either the RBL homepage, the ORBS homepage, or the procmail homepage.)

--Adam

On Tue, Jul 06, 1999 at 11:30:27AM +0200, torben fjerdingstad wrote:
> A long time ago some bosses decided that every user has
> an email address of the form: [EMAIL PROTECTED]
>  :-(
> 
> The MX host for ourdomin.dk does ORBS check.
> 
> Now, a few bosses are angry because they can't receive
> mail from open relays, while others definitely don't
> want mail from open relays.
> 
> How can they all be satisfied?
> Their official email address must not be changed.
> 
> -- 
> Med venlig hilsen / Regards 
> Netdriftgruppen / Network Management Group
> UNI-C          
> 
> Tlf./Phone   +45 35 87 89 41        Mail:  UNI-C                                
> Fax.         +45 35 87 89 90               Bygning 304
> E-mail: [EMAIL PROTECTED]       DK-2800 Lyngby
> 




Look at rblcheck, which would allow you to do it from procmail or
.qmail.

Tim

On Sun, Jul 11, 1999 at 01:00:26AM -0400, Adam D . McKenna wrote:
> You can do ORBS/RBL/DUL checks in .procmailrc if you want to.  Unfortunately
> I don't remember where I saw how to do this, but I know it can be done and
> you can probably find out if you do a little digging.  (I am pretty sure it
> was either the RBL homepage, the ORBS homepage, or the procmail homepage.)
> 
> --Adam
> 
> On Tue, Jul 06, 1999 at 11:30:27AM +0200, torben fjerdingstad wrote:
> > A long time ago some bosses decided that every user has
> > an email address of the form: [EMAIL PROTECTED]
> >  :-(
> > 
> > The MX host for ourdomin.dk does ORBS check.
> > 
> > Now, a few bosses are angry because they can't receive
> > mail from open relays, while others definitely don't
> > want mail from open relays.
> > 
> > How can they all be satisfied?
> > Their official email address must not be changed.
> > 
> > -- 
> > Med venlig hilsen / Regards 
> > Netdriftgruppen / Network Management Group
> > UNI-C          
> > 
> > Tlf./Phone   +45 35 87 89 41        Mail:  UNI-C                                
> > Fax.         +45 35 87 89 90               Bygning 304
> > E-mail: [EMAIL PROTECTED]       DK-2800 Lyngby
> > 




subscribe





Did the list die, or am I just fallen and can't get up?

`*8>

-- 
Brad Shelton  On Line Exchange  http://ole.net




As of the July 5th edition, "Life with qmail" is officially released.
I'll continue to make changes and add new material, but all of the
originally planned sections have been completed.

With the official release come three major changes:

    1) "Life with qmail" is now covered by the OpenContent License, so 
       it's freely redistributable. See:

           http://Web.InfoAve.Net/~dsill/lwq.html#lwq-license

    2) Formats other than HTML are available. Current alternatives
       include PDF, PostScript, POD, and plain text. See:

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

    3) Translation to other languages is underway. See:

           http://Web.InfoAve.Net/~dsill/lwq.html#lwq-translations

       (the first paragraph is obsolete)

I've created two mailing lists related to "Life with qmail":
lwq-announce, for announcements regarding new releases and
translations; and lwq, for discussions about "Life with qmail",
distribution of the SDF source and patches, translation issues, and,
of course, the content of LWQ itself.

These are ezmlm lists, so, to subscribe, send a blank message to:

    [EMAIL PROTECTED]
    [EMAIL PROTECTED]

Thanks again to everyone who's helped!

-Dave




"Dave" <[EMAIL PROTECTED]> wrote:
>
>./usr/home/a55500/Maildir/
>(this dir DOES exist and is owned by alias)

johnjohn already pointed out the bit about the leading ".", so I won't 
rehash that. But is Maildir really a maildir, or is it just a
directory? I.e., did you use maildirmake to create it? Does it have
new/cur/tmp subdirectories? What exactly does the bounce message say?

-Dave




Dave

Problem resolved...

johnjohn corrected me on the prepended "."

and yes...I do use maildirmake to make all my Maildir's...

I got the prob fixed...and it was a permission error on my part...combined
with the prepended "."

Thanks all for the assistance...

-Dave

> "Dave" <[EMAIL PROTECTED]> wrote:
> >
> >./usr/home/a55500/Maildir/
> >(this dir DOES exist and is owned by alias)
>
> johnjohn already pointed out the bit about the leading ".", so I won't
> rehash that. But is Maildir really a maildir, or is it just a
> directory? I.e., did you use maildirmake to create it? Does it have
> new/cur/tmp subdirectories? What exactly does the bounce message say?
>
> -Dave
>





John White wrote:
> On Sat, Jul 03, 1999 at 06:20:14PM -0700, Dave wrote:
> > > My perl module is at:
> > > ftp://triceratops.com/pub/software/john/Qmail-Maildir-0.31.tar.gz
> > >
> > 
> > Looks real good John...if I can just figure out what is wrong with my
> > permissions...I think your package will work for lookups...
> 
> Heh.  The package is just for deliveries.  The lookups are all
> in perl.  And not even in pure perl, if I remember correctly.
> Is there cdb key lookup support in CPAN? 

Of course. Try CDB_File in $CPAN/authors/id/TIMPX

-- 
        Peter Haworth   [EMAIL PROTECTED]
"A power so great, it can only be used for Good or Evil!"
                -- Firesign Theatre





"Alex Miller" <[EMAIL PROTECTED]> wrote:
>
>Oh, I tried it last night before I sent him the message, as at test.
>I subscribed [EMAIL PROTECTED]
>then I sent the command
>[EMAIL PROTECTED]
              ^^
>
>It failed, saying:
>
><snip>
>
>The message I received wasn't sent to any of my command addresses.

You misspelled "unsubscribe" in the address.

-Dave




Racer X <[EMAIL PROTECTED]> writes on 5 July 1999 at 20:58:11 -0700
 > > Precisely. If such a command existed he could have used it.
 > >
 > > It would work like this.
 > >
 > > [EMAIL PROTECTED]
 > >
 > > the response in his case would have been.
 > >
 > > You are [EMAIL PROTECTED], not a current member of this list.
 > >
 > > That's just clearer than deduction from failure.
 > >
 > > He'd still have to read the header but it could part of a proactive
 > > procedure to unsubscribe.
 > 
 > Let me get this straight.
 > 
 > You want ezmlm to look at a message from you and tell you who you are?
 > 
 > Is there a reason you are unable to do this yourself?  Is there a reason
 > you think ezmlm will do a better job than you can?

People are repeatedly taken by surprise at the address ezmlm figures
out for them, so I don't think this is a stupid suggestion.

For a user to figure this out for himself, he needs the MTA he
receives through to preserve the envelope sender somewhere, and he
needs his MUA to give him access to that information, and he needs to
know how and where to look.  Many, many, users don't know all that;
and it can't be reduced to a cookbook because MTAs and MUAs both
differ in how they do their parts of the operation.
-- 
David Dyer-Bennet                                              [EMAIL PROTECTED]
http://www.ddb.com/~ddb (photos, sf) Minicon: http://www.mnstf.org/minicon
http://ouroboros.demesne.com/ The Ouroboros Bookworms
Join the 20th century before it's too late!




was this able to get on to the list?

the time this is being sent is 8:20pm (GMT+08:00)




Is there way to use an NT domain controller's user database to authenticate
POP3 users?

Thanks. 




On Sat, 3 Jul 1999, Robbie Walker wrote:

> Doug,
> 
> This is a stumper. The lack of responses means "I don't know what's going
> on here. I'm not going to speculate!"
> 
> There is (most likely!!!) an obvious solution, but it's not apparent to me.
> 
> Exactly what OS are you running? How often does the hang occur? When the
> hang occurs, can you kill -ALRM qmail-send or kill -TERM qmail-send? (You
> said you killed it, right? kill -9 or what?) What happens if you kill -9
> qmail-smtpd instead of qmail-send?
> 
how I start tcpserver: (all one line)
        /usr/local/bin/supervise /var/lock/smptd /usr/local/bin/tcpserver
-v -u 7791 -g 2108 -c 400 -R 0 smtp /usr/sbin/tcpcontrol /etc/smtp.cdb
/var/qmail/bin/qmail-smtpd 2>&1 | /var/qmail/bin/splogger smtpd & 

I've finally had qmail-smtpd stop working on me, and I've done some
straces. when tcpcontrol writes its log message to #2 it gets a SIGPIPE
and aborts.  Killing tcpserver didn't recusitate inbound SMTP connections.

I tested this hypothesis by replacing the tcpserver with a shell script:
-----------
#!/bin/sh

exec /usr/local/bin/tcpserver.true $* 2>/tmp/straceout
-----------
Inbound tcp connections now work again...

if splogger dies it won't get restarted, all of the processes ignore the
fact they can't write logging information, except tcpcontrol and so
things appear to be working.  why splogger died is a mystery I'll look into
next.

For now, I'd suggest looking at using cyclog instead

regards,

Richard





I actually begn using cyclog just recently and the problem seems to have gone
away...

--
Doug Lumpkin

Richard Letts wrote:

> On Sat, 3 Jul 1999, Robbie Walker wrote:
>
> > Doug,
> >
> > This is a stumper. The lack of responses means "I don't know what's going
> > on here. I'm not going to speculate!"
> >
> > There is (most likely!!!) an obvious solution, but it's not apparent to me.
> >
> > Exactly what OS are you running? How often does the hang occur? When the
> > hang occurs, can you kill -ALRM qmail-send or kill -TERM qmail-send? (You
> > said you killed it, right? kill -9 or what?) What happens if you kill -9
> > qmail-smtpd instead of qmail-send?
> >
> how I start tcpserver: (all one line)
>         /usr/local/bin/supervise /var/lock/smptd /usr/local/bin/tcpserver
> -v -u 7791 -g 2108 -c 400 -R 0 smtp /usr/sbin/tcpcontrol /etc/smtp.cdb
> /var/qmail/bin/qmail-smtpd 2>&1 | /var/qmail/bin/splogger smtpd &
>
> I've finally had qmail-smtpd stop working on me, and I've done some
> straces. when tcpcontrol writes its log message to #2 it gets a SIGPIPE
> and aborts.  Killing tcpserver didn't recusitate inbound SMTP connections.
>
> I tested this hypothesis by replacing the tcpserver with a shell script:
> -----------
> #!/bin/sh
>
> exec /usr/local/bin/tcpserver.true $* 2>/tmp/straceout
> -----------
> Inbound tcp connections now work again...
>
> if splogger dies it won't get restarted, all of the processes ignore the
> fact they can't write logging information, except tcpcontrol and so
> things appear to be working.  why splogger died is a mystery I'll look into
> next.
>
> For now, I'd suggest looking at using cyclog instead
>
> regards,
>
> Richard






Greetings,
        We had an employee who signed herself up for an unknown amount of
mailing lists.  She no longer works here and now ,after deleting her pop 
account , I receive at least 20 bounced messages a day with this error

I tried to deliver a bounce message to this address, but the bounce
bounced!

I'd like to send any incoming mail for that account to /dev/null if
possible.  Can I edit a .qmail-xxxx file for the
account to point to /dev/null?  I've been trying to access the FAQ for
almost 30 minutes now...Looks like it's getting hit pretty hard.  Thanks
for your thoughts....

Cheers!,   
 
   Matthew Landry                       Design Trust Inc
   Systems Developer                    150 Danbury Rd.
   Network Administrator                Wilton CT 06897
   mailto:[EMAIL PROTECTED]         phone: (203)-761-1412
   http://www.designtrust.com           fax:   (203)-761-1419   






I have a question about relay routes and qmail.  (This is in reference to
RFC 821, Section 3.6).

If you connect to a qmail smtpd, and specify:
RCPT TO: <@somedomain.com>

It will always say 250 ok.  Whats more, the logs will say "msg 12345 to
local @mylocaldomain.com" where mylocaldomain.com is your box's domain.
However, I do not see the message actually delivered anywhere on the
machine.  Shouldn't qmail either outright reject the message (because
somedomain.com is not in rcpthosts), or accept the message, and then try
to bounce it to the original receiver?

-Eric





can anyone recommend a checkpasswd that works with shadowd passwords?  I
dont need anything special, all it needs to do is check existing users.
thanks

Tim Hunter





On Wed, Jul 07, 1999 at 05:32:23PM -0400, Tim Hunter wrote:
> can anyone recommend a checkpasswd that works with shadowd passwords?  I dont
> need anything special, all it needs to do is check existing users.

Have you tried DJB's latest version, checkpassword-0.81? It ought to work.

Chris







Hi all, 

When trying to install new users i get this error

pwd = /var/qmail/bin/
>>[root@dhamma bin]# ./qmail-newu
>>qmail-newu: fatal: bad format in users/assign

the line in /var/qmail/users/assign is a cut and paste
from the serial mail instalation file.

+autoturn-:qmaild:501:500:/var/qmail/autoturn:-::

I run RH 6.0
and have replaced the id's with the appropriate numbers in
/etc/passwd and /etc/group

I know one should "not" cut and paste but "KNOW" what one is doing,
so I hope I can learn something from this.

thanks.
Jacob






I am looking for an IMAP Server that can understand Maildir format,
preferably "out of the box". It would be nice if it were availible as an
RPM or SRPM. Any Ideas?

TIA
Stewart





Tarkan Hocaoglu wrote:
> I set up rcpthosts and tcp.smtp files in order to allow incoming and
> outgoing mails only for my domain.
> 
> I use an EXTERNAL PC with a different IP address to test this
> configuration. 
> 
> I use this set of tests doing a telnet connection to my mailhub :
> 
> 1- mail from [EMAIL PROTECTED] rcpt to [EMAIL PROTECTED] : mail is
> delivered : OK it's the correct situation
> 2- mail from [EMAIL PROTECTED] rcpt to [EMAIL PROTECTED] : mail
> is denied : OK I don't want to relay outside to outside mails thanks to
> rcpthosts file
> 3- mail from [EMAIL PROTECTED] rcpt to [EMAIL PROTECTED] : mail is
> denied : OK I don't want to relay inside (the sender IP address is not on
> my IP network) to outside mails thanks to tcp.smtp file
> 4- mail from [EMAIL PROTECTED] rcpt to [EMAIL PROTECTED] : mail is
> delivered : I'M NOT SATISFIED WITH THIS

So you don't want mail from the outside to be accepted if its sender is an
internal address? Why not? This will prevent messages from some mailing lists
from being delivered (some stupid mailing lists preserve the envelope sender).
This will also prevent your users from sending messages when they are on the
road.

-- 
        Peter Haworth   [EMAIL PROTECTED]
"When you've seen one non-sequitur, the price of tea in China."





A while ago, I had a perfectly running fetchmail/qmail system.  Fetchmail
delivered all my mails to X@localhost where X was either my name or my wife's
(our email addresses ar [EMAIL PROTECTED]), and qmail delivered to x, which is the
account name on the linux box (see home.tvd.be/ws35056/linux/mail.htm

Now it has all gone wrong, and I want to recover the good old days.

My .fetchmailrc reads:

poll mail.tvd.be with proto POP3 
user "mb10056" with password "F7NK8TXx" to * here
 options forcecr 

and qmail is listening on port 25.  Below is an exrtract from fetchmail -v -v

About to rewrite To: [EMAIL PROTECTED]
Rewritten version is To: [EMAIL PROTECTED]

fetchmail: no local matches, forwarding to postmaster
fetchmail: SMTP< 220 saskia.tvd.be ESMTP
fetchmail: SMTP> EHLO localhost
fetchmail: SMTP< 250-P350.tvd.be
fetchmail: SMTP< 250-PIPELINING
fetchmail: SMTP< 250 8BITMIME
fetchmail: forwarding to localhost
fetchmail: SMTP> MAIL FROM:<[EMAIL PROTECTED]>
fetchmail: SMTP< 250 ok
fetchmail: SMTP> RCPT TO:<postmaster@localhost>
fetchmail: SMTP< 250 ok

And the following has been added to my mail headers
X-Fetchmail-Warning: recipient address [EMAIL PROTECTED] didn't match any local name

despite have the relevant alias files

[root@P350 alias]# ls -la
total 15
drwxr-sr-x   2 alias    qmail        1024 Jul  6 21:29 .
drwxr-xr-x  10 root     qmail        1024 Jun 29 22:53 ..
-rw-r--r--   1 alias    nofiles      1155 Jun 29 22:48 .Xdefaults
-rw-r--r--   1 alias    nofiles        24 Jun 29 22:48 .bash_logout
-rw-r--r--   1 alias    nofiles       230 Jun 29 22:48 .bash_profile
-rw-r--r--   1 alias    nofiles       124 Jun 29 22:48 .bashrc
-rw-r--r--   1 root     qmail           5 Jul  6 21:29 
.qmail-liesbeth:devriendt-rw-r--r--   1 root     qmail           0 Jun 29 22:51 
.qmail-mailer-daemon
-rw-r--r--   1 root     qmail           4 Jun 30 21:40 .qmail-postmaster
-rw-r--r--   1 root     qmail           0 Jun 29 22:51 .qmail-postmaster~
-rw-r--r--   1 root     qmail           4 Jul  6 20:16 .qmail-root
-rw-r--r--   1 root     qmail           0 Jun 29 22:51 .qmail-root~
-rw-r--r--   1 root     qmail           4 Jun 29 23:32 .qmail-simon:hampton
-rw-------   1 alias    qmail        3637 Jul  6 21:19 Mailbox                  

/var/maillog simply confirms that fetchmail was sending the mail to postmaster,
and this is what is happening for all mails

If I put tvd.be in rcpthosts or locals I fear i will either create relay
possibilities in the former case, and not be able to email other TVD
subscribers in the latter.

How can I once more get fetchmail to pass mails to X@localhost faithfully

Simon

--
--------------------
http://home.tvd.be/ws35056/
Latest pictures of Saskia: 20 June
Latest pictures of Ludovic: 20 June




I get too many bounces originating from non existing domains,
so I tried Nagy's qmail-1.03-mfcheck.2.patch.

But it does not work. Any non-existent domain sender is accepted.
I suppose it's because I use rblsmtpd? What can I do then?
I am not a programmer.

I got the patch from Russel's qmail home page.
DNS_HARD, DNS_SOFT and DNS_MEM was undeclared, so I had to
manually include "dns.h" in qmail-smtpd.c.

I use rblsmtpd like this:

/usr/local/bin/supervise /usr/local/qmail/supervise/tcpserver env - \
        PATH="/usr/local/bin:$PATH" TZ=MET-1METDST,M3.5.0,M10.5.0 \
        tcpserver -x /usr/local/etc/tcp.smtp.cdb \
-v -p -t 5 -c 400 -b 40 -u 203 -g 200 0 \
        smtp /usr/local/bin/smtplog \
        /usr/local/bin/rblsmtpd -rrelays.orbs.org \
        /usr/local/bin/rblsmtpd -rrbl.maps.vix.com \
        /usr/local/bin/rblsmtpd -rdul.maps.vix.com \
        /usr/local/qmail/bin/qmail-smtpd 2>&1 \
        | /usr/local/bin/accustamp \
        | /usr/local/bin/cyclog -s100004000 -n2 /var/adm/smtpd smtpd 3 &

P.S. I wonder why I have not seen my previous letter on
this qmail list show up yet. The MX host for
list.cr.yp.to seems to be unreachable today.

-- 
Med venlig hilsen / Regards 
Netdriftgruppen / Network Management Group
UNI-C          

Tlf./Phone   +45 35 87 89 41        Mail:  UNI-C                                
Fax.         +45 35 87 89 90               Bygning 304
E-mail: [EMAIL PROTECTED]       DK-2800 Lyngby





On Mon, Jun 28, 1999 at 05:08:51PM -0500, Fred Lindberg wrote:
> On Mon, 28 Jun 1999 13:46:45 -0500, Fred Lindberg wrote:
> 
> >They used to use ezmlm+ezmlm-idx, but seem to have since made their own
> 
> Sorry - my info was for makelist->eGroups, not onelist.com. I now know
> that onelist.com is a totally different venture and that they never
> used ezmlm in production.

Well perhaps they'd like to tell us a similar story about themselves :)

Greetz, Peter
-- 
| 'He broke my heart,      |                              Peter van Dijk |
     I broke his neck'     |                     [EMAIL PROTECTED] |
   nognikz - As the sun    |        Hardbeat@ircnet - #cistron/#linux.nl |
http://www.nognikz.mdk.nu/ | Hardbeat@undernet - #groningen/#kinkfm/#vdh |




On Fri, Jul 02, 1999 at 03:44:18PM -0300, Eric Dahnke wrote:
> Hello,
> 
> I'm using serialmail-70 over a ppp link for outgoing mail on a linux
> box. From the ip-up scripts it runs perfectly. However, if the conection
> stays up, I call serialmail from a crontab on the hour.
> 
> I have the path to tcpclient set as a system wide path, and call
> serialmail from the crontab as root. Neither serialmail nor fetchmail
> run when called from the crontab if they are currently running.

crontab doesn't give a sh*t about systemwide paths. Specify full paths from
crontab. Anytime. Everytime.

Greetz, Peter
-- 
| 'He broke my heart,      |                              Peter van Dijk |
     I broke his neck'     |                     [EMAIL PROTECTED] |
   nognikz - As the sun    |        Hardbeat@ircnet - #cistron/#linux.nl |
http://www.nognikz.mdk.nu/ | Hardbeat@undernet - #groningen/#kinkfm/#vdh |





(Excuse me if you get this twice but the first one appears to have triple
bounced on my end..bad timing of installing the amavis rpm.  And the first
patch had a single typo to boot. :P)

I skimmed thru the last six months worth of qmail archives and I did not
see any good method for using a virus checker with qmail.  Well, there
was mention of the Star Screening System but all I could find was a white
paper and I haven't bothered converting it from .doc format.

Sven Lankes showed how you can use amavis to scan mails by adding it to
your defaultdelivery/rc file.  Unfortunately, that method only checks 
locally delivered mail and only works for users who do not have their own
.qmail files.

I've attached the changees I made to amavis-0.2.0-pre4 to allow scanmails
to be qmail-aware.  The idea is to have scanmails sit between two qmail
processes to scan each mail that comes across w/o actually hacking on
qmail code. (I got the impression that virus checking specific patches
would be frowned upon.)  For simplicity, I choose to replace qmail-remote
& qmail-local with the scanmails script.

Basically, you move qmail-remote to qmail-remote-real and add a link from
scanmails to qmail-remote.  When an outgoing message is sent, it will call
scanmails, which will do it's magic and if no virus is found, it will call
qmail-remote-real with the same arguments it was called with.  Use the
same procedure with qmail-local to scan all locally delivered mail.  If a
virus is found, then the virus will be put into a special virusdir
(specified when configuring amavis) and scanmails will exit without
calling the real qmail program.  Amavis will mail the sender, receipient &
local postmaster (also configurable) notifying them of a virus in their
mail. (I did tweak scanmails to not send out mail to the receipient if
invoked as qmail-remote.  No need to alarm the recipients if we're not
letting the mail get off of our system.)

Right now, the script assumes that qmail-local-real & qmail-remote-real 
are in the path. I was going to just use ${0}-real to invoke the real
qmail programs but qmail-local is called as bin/qmail-local (no idea
why) so that didn't work.

You'll want to make sure that your virusmails directory is mode 1777.
Since qmail calls qmail-local as the uid of the recipient, the infected
mails will be written as that user.  Outgoing infected messages are
written by qmailr.  Due to this same problem, logging is disabled if you
configure with --enable-qmail.  

Regards,
Christopher


--- amavis-0.2.0-pre4/src/scanmails/scanmails.in.cls    Wed Mar 31 06:43:49 1999
+++ amavis-0.2.0-pre4/src/scanmails/scanmails.in        Mon Jul  5 17:57:59 1999
@@ -36,7 +36,8 @@
 #
 #####################################################################
 
-scanscriptname="scanmails"
+#scanscriptname="scanmails"
+scanscriptname=`basename $0`
 
 ################################################
 # Path to DrSolomon Antivirus                  #
@@ -77,6 +78,7 @@
 #                   in                         #
 ################################################
 tmpdir=/var/tmp/${scanscriptname}$$
+usingqmail=@USE_QMAIL@
 
 ################################################
 # "var_log" indicates the path where statistic #
@@ -84,6 +86,7 @@
 # - if "do_log" is set to "yes"                #
 ################################################
 var_log=@var_log@
+systemlogdir=${var_log}/scanmails/
 do_log=@do_log@
 do_syslog=@do_syslog@
 syslog_level=@syslog_level@
@@ -120,7 +123,34 @@
 arc=@arc@
 unfreeze=@unfreeze@
 
-deliver=@deliver@
+if [ "x${usingqmail}" = "x" ]; then
+    deliver=@deliver@
+else
+    deliver=${scanscriptname}-real
+fi
+ 
+if [ "x${usingqmail}" != "x" ] ; then
+    if [ "${scanscriptname}" = "qmail-remote" ] ; then
+       SENDER="$2"
+       RECIPIENT="$3"
+    elif [ "${scanscriptname}" = "qmail-local" ] ; then
+       # Sometims qmail-local is called with -- as the first arg
+       # this screws up the arg count so shift everything
+       if [ "$1" = "--" ] ; then
+           RECIPIENT="$4"@"$7"
+           SENDER="$8"
+       else
+           RECIPIENT="$3"@"$6"
+           SENDER="$7"
+       fi
+    else
+       SENDER="$1"
+       RECIPIENT="$2"
+    fi
+else
+    SENDER="$2"
+    RECIPIENT="$7"
+fi
 
 ################################################
 #                main program                  #
@@ -171,8 +201,8 @@
 
 echo xxxxxxxxxxxxxxxxxx`date`xxxxxxxxxxxxxxxxxxxxxxx >${tmpdir}/logfile
 echo ${scanscriptname} called $* >>${tmpdir}/logfile
-echo FROM: $2 >>/${tmpdir}/logfile
-echo TO: $7 >>/${tmpdir}/logfile
+echo FROM: $SENDER >>/${tmpdir}/logfile
+echo TO: $RECIPIENT >>/${tmpdir}/logfile
 
 ${metamail} -r -q -x -w ${tmpdir}/receivedmail > /dev/null 2>&1
 
@@ -588,19 +618,19 @@
   mv ${tmpdir}/receivedmail ${virusmailsdir}/virus$$
   chmod 400 ${virusmailsdir}/virus$$
   echo The attached mail has been found to contain a virus >${tmpdir}/virusmail
-  echo Originally $* >>${tmpdir}/virusmail
+  echo Originally $0 "$@" >>${tmpdir}/virusmail
   echo The mail has been stored as ${virusmailsdir}/virus$$ >> ${tmpdir}/virusmail
-  mkdir -p ${var_log}/${scanscriptname}
-  cat ${tmpdir}/logfile >>${var_log}/${scanscriptname}/logfile
+  mkdir -p ${systemlogdir}
+  cat ${tmpdir}/logfile >>${systemlogdir}/logfile
   cat ${tmpdir}/virusmail ${tmpdir}/logfile | ${mail} -s "FOUND VIRUS IN MAIL $*" 
${mailto}
 
 ################### send a mail back to sender ######################
 
-cat <<EOF| ${mail} -s "VIRUS IN YOUR MAIL TO $7" $2
+cat <<EOF| ${mail} -s "VIRUS IN YOUR MAIL TO $RECIPIENT" $SENDER
 
                    V I R U S  A L E R T
 
-  Our viruschecker found a VIRUS in your email to "$7".
+  Our viruschecker found a VIRUS in your email to "$RECIPIENT".
            We stopped delivery of this email!
 
     Now it is on you to check your system for viruses           
@@ -611,14 +641,15 @@
 
 EOF
 
+if [ "${scanscriptname}" != "qmail-remote" ] ; then
 ############### send a mail to the addressee ########################
 
-cat <<EOF| ${mail} -s "VIRUS IN A MAIL FOR YOU FROM $2" $7
+cat <<EOF| ${mail} -s "VIRUS IN A MAIL FOR YOU FROM $SENDER" $RECIPIENT
 
                    V I R U S  A L E R T
 
   Our viruschecker found a VIRUS in a mail from 
-     "$2"
+     "$SENDER"
   to you.
   
   Delivery of the email was stopped!
@@ -626,11 +657,34 @@
   Please contact your system administrator for details
 
 EOF
-##################### No virus, send as usual #######################
+fi
+
+if [ "x${usingqmail}" != "x" ]; then
+    # Stop all other delivery mechanisms
+    cd /var/tmp && rm -rf ${tmpdir} ;
+    if [ "${scanscriptname}" = "scanmails" ] ; then
+       # Assume we were called by qmail-local
+       exit 99 ;
+    else
+       if [ "${scanscriptname}" = "qmail-remote" ] ; then
+           echo "Message was found to contain virus."
+       fi
+       exit 0 ;
+    fi
+fi
+
 
 else
+##################### No virus, send as usual #######################
   echo No virus found - good >> ${tmpdir}/logfile
-  if [ "x${deliver}" != "x" ] && [ -x ${deliver} ] ; then
+
+  if [ "x${usingqmail}" != "x" ]; then
+    # If invoked as anything other than "scanmails", invoke the real
+    # program else fall thru to exit
+       if [ "${scanscriptname}" != "scanmails" ] ; then
+           ${scanscriptname}-real "$@" < ${tmpdir}/receivedmail
+        fi
+  elif [ "x${deliver}" != "x" ] && [ -x ${deliver} ] ; then
     ${deliver} "$@" <${tmpdir}/receivedmail
   else
     pid=$$
@@ -644,8 +698,8 @@
 
   if [ "x${do_log}" = "xyes" ]
   then
-    mkdir -p ${var_log}/${scanscriptname}
-    cat ${tmpdir}/logfile >> ${var_log}/${scanscriptname}/logfile
+    mkdir -p ${systemlogdir}
+    cat ${tmpdir}/logfile >> ${systemlogdir}/logfile
   fi
 fi
 
--- amavis-0.2.0-pre4/configure.in.cls  Wed Mar 31 06:45:51 1999
+++ amavis-0.2.0-pre4/configure.in      Mon Jul  5 17:41:36 1999
@@ -94,6 +94,9 @@
 AC_ARG_ENABLE(sendmail,[  --enable-sendmail=PROG         set location of sendmail],
        [ MTA="$enableval -oi"], [ MTA="" ])
 
+AC_ARG_ENABLE(qmail, [  --enable-qmail                 enable use of qmail features 
+in scanmails],
+       [USE_QMAIL=1], [USE_QMAIL=])
+
 AC_CACHE_CHECK(mail transport agent (MTA),amavis_cv_SYS_MTA,
 if test "$MTA" != ""
 then
@@ -125,6 +128,7 @@
 fi
 
 AC_SUBST(SENDMAIL)
+AC_SUBST(USE_QMAIL)
 AC_SUBST(MTA)
 
 AC_CHECKING([*** H+BEDV AntiVir/X ***])
@@ -215,7 +219,13 @@
 dnl                      ### Enable logging ? ###
 dnl                     ########################
 AC_MSG_CHECKING([event logging])
-AC_ARG_ENABLE(logging,[  --enable-logging=[yes/no]      perform logging 
[default=yes]], do_log="$enableval", do_log="yes")
+dnl if using qmail, scanmails will be run a non-root user
+dnl so logging won't work in most cases
+if test -n "$USE_QMAIL"; then
+    do_log=no
+else
+    AC_ARG_ENABLE(logging,[  --enable-logging=[yes/no]      perform logging 
+[default=yes]], do_log="$enableval", do_log="yes")
+fi
 AC_MSG_RESULT([$do_log])
 AC_SUBST(do_log)
 


Reply via email to