qmail Digest 6 Oct 1999 10:00:01 -0000 Issue 781

Topics (messages 31252 through 31292):

Re: Question
        31252 by: Frank D. Cringle
        31254 by: Claus Färber

Re: RCPTHOSTS error
        31253 by: Chris Johnson
        31256 by: Russell Nelson

Re: qmail as  secondary MX
        31255 by: Claus Färber

Re: Newbie
        31257 by: K. Brant Niggemyer
        31268 by: Dave Sill

Re: Eudora? Outlook?
        31258 by: Markus Stumpf
        31272 by: Dave Kitabjian

Shadow Password and checkpassword
        31259 by: Ng Hak Beng

Re: Sending all mail to a 3rd level domain to /dev/null
        31260 by: The Green Avenger
        31261 by: The Green Avenger
        31262 by: Russell Nelson

qmail delivering in "waves"
        31263 by: Markus Stumpf

Re: Queue stalls
        31264 by: Kevin Sawyer
        31265 by: Dave Sill

logging died when I added dot-forwarding
        31266 by: Brandon Dudley
        31278 by: Dave Sill
        31282 by: Brandon Dudley

Re: Problem with the vacation program!
        31267 by: Dave Sill
        31286 by: Peter Samuel

Re: qmail local-error test failed
        31269 by: Dave Sill

POP3 locking
        31270 by: eln.usurf.com
        31288 by: Anand Buddhdev

Re: Qmail permissions
        31271 by: Dave Sill

Re: FROM line
        31273 by: Dave Sill

Re: Mail Relay
        31274 by: Dave Sill

Primary and Secondary MXs
        31275 by: Eric Dahnke
        31277 by: Russell Nelson
        31280 by: Eric Dahnke
        31281 by: Russell Nelson

high perf questions
        31276 by: Nagendra Mishr
        31279 by: Russell Nelson

Error Message text
        31283 by: courtney.whtz.com
        31284 by: Michael Boyiazis
        31285 by: Russell Nelson

Authentification problem with pop3d
        31287 by: Ng Hak Beng

Only every 20 min. (stupid Question)?
        31289 by: Andre Anneck
        31290 by: Anand Buddhdev

qmail-smtpd log question
        31291 by: Van Liedekerke Franky

fetchmail to work with qmail
        31292 by: Emmanuel Nee

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]


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


Tony Wade <[EMAIL PROTECTED]> writes:
> Hi all, 
> 
> in an alias .qmail-ticket i have the following
> 
> |/usr/lib/sendmail -f ticket-owner [EMAIL PROTECTED]
> 
> 
> Does Qmail know how to handle this. If not what would i use ? 

As Anand says, that will work.  However, if all you want to do is
change the envelope sender, do this:

  # echo ??? >~alias/.qmail-ticket-owner
  # echo [EMAIL PROTECTED] >~alias/.qmail-ticket

where ??? is whoever/whatever should handle bounces.  Check out what
"man dot-qmail" has to say about .qmail-ext-owner.

-- 
Frank Cringle,      [EMAIL PROTECTED]
voice: (+49 2304) 467101; fax: 943357




Tony Wade <[EMAIL PROTECTED]> schrieb/wrote:
> in an alias .qmail-ticket i have the following
> |/usr/lib/sendmail -f ticket-owner [EMAIL PROTECTED]
> Does Qmail know how to handle this. If not what would i use ?

qmail does handle this, but the better solution would be to just create  
.qmail-ticket-owner and put only the new recipient address in .qmail- 
ticket.

-- 
Claus Andre Faerber <http://www.faerber.muc.de>
PGP: ID=1024/527CADCD FP=12 20 49 F3 E1 04 9E 9E  25 56 69 A5 C6 A0 C9 DC




On Tue, Oct 05, 1999 at 12:33:02AM -0400, [EMAIL PROTECTED] wrote:
> 
> let me also add that if I remove the RCPTHOSTS file, that I can no longer
> recieve e-mails sent to my local domain.  The machine just refuses
> everything.

This is just not true. If you remove the rcpthosts file, you become an open
relay. qmail-smtpd will accept mail for any domain.

Chris




[EMAIL PROTECTED] writes:
 > Can it be said that tcpserver can run concurrently with inetd?

Yup.  Tcpserver can run concurrently with inetd.  There, now it *has*
been said.

 > I take it if you have any UDP stuff on inetd you have to leave it on there?
 > OTOH, some of my servers are so tight there's not even inetd running (ssh
 > runs standalone).  So my first though is most of the UDP isn't needed.

Right.  By the time you remove unnecessary services, you may as well
not be running inetd.

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




Petr Novotny <[EMAIL PROTECTED]> schrieb/wrote:
> That's not what secondary is for. You don't deliver on secondary -
> you just keep it in queue till primary comes up. On the secondary,
> put the domain in rcpthosts and NOT in locals nor virtualdomains.

but maybe in smtproutes to prevent further MX lookups.

-- 
Claus Andre Faerber <http://www.faerber.muc.de>
PGP: ID=1024/527CADCD FP=12 20 49 F3 E1 04 9E 9E  25 56 69 A5 C6 A0 C9 DC




> I have never setup any mail server of any form in my entire life.

Me either until about 6 months ago.  Now I find myself mail admin on 3 qmail
machines --

>I was wondering where
> I could find info on basically setting up what I think is called a pop
> toaster? I want to be able to recieve mail for all my domains and let
their
> users use pop3 to check it.

I like and use the vchkpw package, currently available from inter7.com.  I
believe many other people have had good success with this software.  It will
do basically exacty what you need.  The docs are'nt too bad, so go to inter7
and download the stuff.

You can also get qmailadmin, which is an easy way to assign "postmasters"
for your virtual domains, so they can admin the mail through a cgi.  imo, it
is a step in the right direction, but still too underdeveloped for advanced
use.  If all you want to do is add or delete pop users, then you are all
set.  I find it lacking in some areas, but until I get around to patching it
or making my own I'll hold my gripes :)

>I don't want my users to be able to send mail.

Good idea.  See faq 5.4.  Only let i.p.'s you want to relay.  In some cases,
this may be none.

> Also one more question, how large is the file size of qmail?

Never paid much attention, here is an unscientific claim, from my install:
[root@omni qmail]# du -h /var/qmail
    .
    .
    .
1.5M    /var/qmail

Of course, there are man pages in /var/qmail/man, you could probably stand
to rip out some things to get it a little smaller.

>Reason I ask, is because I am
> running a different distro of linux that runs all apps and os stuff from
> ramdisk. This is killer for speed. I need to know how big to make my
> ramdisk. Thanks for all your help.

I use LRP at home (without a mailserver) so I am well aware of the benefits
of the micro-linux distros.  But I mostly use full distros at work, because
our machines do so many different tasks.  I have heard about people stuffing
sendmail onto LRP disks, and I'm sure it can be done with qmail.  If it
someone has I haven't heard about it.

I guess one thing that makes me nervous about running a mailserver on a
ramdisk, is unless you have ALOT of memory, a few big messages could quickly
take over the whole system.  You could get fancy and mount a physical disk
for the queue, keeping the main system files on ramdisk, but I think once
you get to that point, you may as well just use a full blown distro.





"Matt Mouser" <[EMAIL PROTECTED]> wrote:

>I have never setup any mail server of any form in my entire life. I am only
>15 and some of these concepts are hard to comprehend. I was wondering where
>I could find info on basically setting up what I think is called a pop
>toaster? I want to be able to recieve mail for all my domains and let their
>users use pop3 to check it. I don't want my users to be able to send mail
>through my server though. I want them to use their own isp for that. Does
>anyone have any ideas where I can find info on setting this type of server
>up? Please forgive me if this question was already answered or if it is off
>topic.

Start with "Life with qmail". If you have specific unanswered
questions afterword, post them here.

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

>Also one more question, how large is the file size of qmail?

 From http://Web.InfoAve.Net/~dsill/lwq.html#system-requirements:

    qmail will install and run on most UNIX and UNIX-like systems, but
    there are few requirements:

    About 10 megabytes of free space in the build area during the
    build. After the build, you can free all but 4 megabytes by
    removing the object files.

-Dave




On Tue, Oct 05, 1999 at 02:17:40PM -0700, Shashi Dahal wrote:
> is that only Eudora can collect mails from that pop server whereas Outlook
> and Netscape mails cannot.

How do you accounts look like?
Netscape tends to stripe of everything after and including the "@".
So it may happen that you try to login to the POP server as
    joe   instead of   [EMAIL PROTECTED]
and the the authentication will most likely fail.

Some POP password checking modules out there allow replacing the "@"
with an "%", so you can login as  joe%pop.example.com also, which
e.g. netscape will leave unmodified.

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





Yes, Netscape is a problem, even in the new versions. You would think you 
could turn off the "smart @" interpretation, but I don't think you can. 
Netscape always assumes you were mistaken when you included the "@", and 
strips off the rest.

We decided to use pop ids such as:

        joe-domain.com

instead of [EMAIL PROTECTED] Good ol' "double-dash". Almost any special 
character is asking for trouble. "&" and "$" screw up your unix command 
line, ".." somehow is supposed to risk security by directory climbing, "%", 
"!", and "=" are all used for special functions in email addresses, etc. 
And ".", "_", and "-" should all be legal email characters. We just enforce 
that no email address can contain a "-" (double dash) and it works fine.

Dave

-----Original Message-----
From:   Markus Stumpf [SMTP:[EMAIL PROTECTED]]
Sent:   Tuesday, October 05, 1999 12:49 PM
To:     Shashi Dahal; [EMAIL PROTECTED]
Subject:        Re: Eudora? Outlook?

On Tue, Oct 05, 1999 at 02:17:40PM -0700, Shashi Dahal wrote:
> is that only Eudora can collect mails from that pop server whereas 
Outlook
> and Netscape mails cannot.

How do you accounts look like?
Netscape tends to stripe of everything after and including the "@".
So it may happen that you try to login to the POP server as
    joe   instead of   [EMAIL PROTECTED]
and the the authentication will most likely fail.

Some POP password checking modules out there allow replacing the "@"
with an "%", so you can login as  joe%pop.example.com also, which
e.g. netscape will leave unmodified.

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





Hi!
        After looking through the archive, is checkpassword able to authenticate 
shadow passwords?  I've got a RH 6 box running qmail, but I don't seem to 
be able to authenticate through pop3.

        Please do advise, I'm close to ripping my hair out ;-)


Hak Beng
Singapore




I'm not using a users/assign file, and user2's .qmail file is owned by
user2...typo.

-Marc

==================================================================
Seen on /.:

    If Bill Gates had a nickel for every time Windows crashed... 
    ..oh wait, he does.
==================================================================

On Tue, 5 Oct 1999, Markus Stumpf wrote:

> On Mon, Oct 04, 1999 at 07:55:01PM -0700, The Green Avenger wrote:
> > I am having trouble configuring qmail to sent all mail to a 3rd level
> > domain to /dev/null.  After reading the FAQ and experimenting some, here's
> > what I've done: 
> > 
> > /var/qmail/control/virtualdomains
> > 
> > some.otherdomain.com:user1
> > good.mydomain.com:user2
> > bad.mydomain.com:user2-bad
> > 
> > /home/user2/.qmail-bad-default
> > 
> > | cat >/dev/null
> > 
> > qmail's dotfile is owned by user1.  What am I missing?  Is there an easier
> > way to do this?
> 
> How do the corresponding lines in your users/assign file look like?
> Ownership of a users2 file by user1 smells problematic ...
> 
> And you should probably have a  /home/users2/.qmail-default (without the
> "bad-") file (however that depends on the assign file).
> 
>       \Maex
> 
> -- 
> SpaceNet GmbH             |   http://www.Space.Net/   | Yeah, yo mama dresses
> Research & Development    | mailto:[EMAIL PROTECTED] | you funny and you need
> Joseph-Dollinger-Bogen 14 |  Tel: +49 (89) 32356-0    | a mouse to delete files
> D-80807 Muenchen          |  Fax: +49 (89) 32356-299  |
> 





I tried the # solution, but it does not seem to work.  The problem I'm
having is that all mail sent to [EMAIL PROTECTED] is landing in
/home/user2/Maildir/new.  I want it to be rerouted to /dev/null instead.

-Marc

==================================================================
Seen on /.:

    If Bill Gates had a nickel for every time Windows crashed... 
    ..oh wait, he does.
==================================================================

On Mon, 4 Oct 1999, Russell Nelson wrote:

> The Green Avenger writes:
>  > I am having trouble configuring qmail to sent all mail to a 3rd level
>  > domain to /dev/null.  After reading the FAQ and experimenting some, here's
>  > what I've done: 
>  > 
>  > /var/qmail/control/virtualdomains
>  > 
>  > some.otherdomain.com:user1
>  > good.mydomain.com:user2
>  > bad.mydomain.com:user2-bad
>  > 
>  > /home/user2/.qmail-bad-default
>  > 
>  > | cat >/dev/null
>  > 
>  > qmail's dotfile is owned by user1.  What am I missing?  Is there an easier
>  > way to do this?
> 
> Yes: echo '#' >/home/user2/.qmail-bad-default
> 
> No reason to invoke cat, or write anything to /dev/null.
> 
> Oh, wait, you say this *doesn't* work?  What "trouble" are you having?
> You're doing everything right, unless you haven't told us something.
> 
> -- 
> -russ nelson <[EMAIL PROTECTED]>  http://russnelson.com
> Crynwr sells support for free software  | PGPok | Government schools are so
> 521 Pleasant Valley Rd. | +1 315 268 1925 voice | bad that any rank amateur
> Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | can outdo them. Homeschool!
> 





The Green Avenger writes:
 > I tried the # solution, but it does not seem to work.  The problem I'm
 > having is that all mail sent to [EMAIL PROTECTED] is landing in
 > /home/user2/Maildir/new.  I want it to be rerouted to /dev/null instead.

Have you sent a HUP signal to qmail-send, or restarted qmail-send,
after editing virtualdomains?  It sure looks like your control files
are right.  Do you have a .qmail-default file in /home/user2?  What
happens if you delete it?

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




We have a customer that sends out some thousands email customized per
user (so we really get one copy per user). The eMails are injected
in "bulks" of about 100 per SMTP session.

I am using qmail-1.03 with Russells big-todo-patch.
For every message we have an extra delivery to a local user "log" (in ~alias)
~alias/.qmail-log contains a small awk script that prints the topmost
Received: line and the Message-Id: line to stdout (i.e. this appears
in the logfile; we do this for accounting reasons).

I have both concurrencylocal/remote set to 120.

The qmail system used is dedicated to this task, no other customers
use it.

During the "injection" and while there are messages to preproceess
the systems deliveries with about 5-15 deliveries (both, local and
remote).

Today I noticed that when there where no more messages to preprocess
from the injection phase, the number of deliveries "jumped" up to
120 both local and remote. At that time there were about 2700 messages
left in the queue.
But while looking at the logfile I noticed that qmail isn't always
using all slots, it deliveres in "waves" (sorry, I have no better word
for that).
It fills up all 240 delivery slots, is rather fast with the 120 local
deliveries (originating from the extra delivery to "log" user) and stays
at 0-5 local deliveries for a while.
It is a bit slower (of course) with the remote deliveries, comes down to
about 10-20 remote deliveries, at which level it keeps for some time
(also adding new deliveries).
After a while it fills boths channels up again to 120 deliveries and the
cycle starts over.

a) is this "normal" behaviour?
b) why is it that way? wouldn't it be faster if alle the channel slots
   would be filled at maximum all the time?

To illustrate the behaviour I put a gnuplot plot at
    http://www.lamer.de/maex/creative/software/qmail/deliver-stats.gif
The plot covers about 600 seconds and the data is generated from the
the "status:" lines of the qmail logfile. It starts at the moment the
preprocessing phase is over and ends when all messages have been tried
at least once.

Thanks

        \Maex

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




> I've noticed recently that my queue seems to be partially 
> stalling.  That
> is, messages somehow make it into the outbound queue (for local and/or
> remote delivery) and end up just sitting there until I stop 
> and re-start
> qmail (/etc/rc.d/init.d/qmail restart).  The weird thing is that queue
> processing does not die altogether.  The vast majority of the 
> mail traffic
> still moves as it should.  I have not been able to locate any 
> errors in my
> logs nor have I seen any patterns.  I'm using 
> qmail-1.01+patches under Red
> Hat Linux 6.0 with kernel 2.2.5-22SMP on a dual PPro200Mhz 
> system with a
> very fast Ultra Wide SCSI RAID5 (hardware) subsystem.  Any 
> ideas?  HELP!

Actually, I'm running qmail-1.03+patches (Bruce Guenter's I believe).

Feedback would be wonderful!

Thanks,

--Kevin

---
Kevin Sawyer - President/CEO - [EMAIL PROTECTED]
Applied Personal Computing, Inc. - APCiNet - http://www.apci.net
6001 Old Collinsville Road, Building #3, Fairview Heights, IL  62208
Office: (618) 632-7282  FAX: (618) 632-7287  Support: (618) 628-2Net
 




Kevin Sawyer <[EMAIL PROTECTED]> wrote:

>I've noticed recently that my queue seems to be partially stalling.  That
>is, messages somehow make it into the outbound queue (for local and/or
>remote delivery) and end up just sitting there until I stop and re-start
>qmail (/etc/rc.d/init.d/qmail restart).  The weird thing is that queue
>processing does not die altogether.  The vast majority of the mail traffic
>still moves as it should.  I have not been able to locate any errors in my
>logs nor have I seen any patterns.

You're seeing messages in the queue that qmail isn't attempting to
deliver? I can think of two possible causes for that in a properly
functioning installation:

    1) concurrencyremote/local are being reached, or
    2) the target host for a remote delivery is marked as timing-out
       in qmail-remote's list of nonresponding hosts. (see "man
       qmail-tcpto").

-Dave





Sorry for the silly question. I bastardized the start-up rc.* script for
home-drectory-based delivery that was included with dot-forward 0.71 and
added the dot-forward pipe to my existing script. Since I did that, logging
has ceased...can you tell why from the following lines? I think I'm misplacing
a quote or something, but I'm not sure:

/etc/rc.d/init.d/qmail
-----------------------
#!/bin/sh
#
# qmail         /etc/init.d script for qmail (http://www.qmail.org/)
#
# Version:      @(#) /etc/init.d/qmail 1.00 03-Sep-1997
#
# Author:       Larry Doolittle <[EMAIL PROTECTED]>
#               derived from skeleton by Miquel van Smoorenburg,
#               <[EMAIL PROTECTED]>
#

# Source function library.
. /etc/rc.d/init.d/functions

# See how we were called.
case "$1" in
  start)
        touch /var/lock/subsys/qmail
        env - PATH="/var/qmail/bin:$PATH" \
        csh -cf 'qmail-start |dot-forward .forward ./Mailbox splogger qmail &'
        # should limit RLIMIT_AS here, but bash apparently doesn't
        # know that exists.  For now it is hacked into qmail-smtpd.
        # 0.5M data should be plenty, resists DOS attacks
       /usr/local/bin/tcpserver -x/etc/tcp.smtp.cdb -q -u 16 -g 51 -t 1 0 \
        smtp \
        /usr/local/bin/rblsmtpd -rrelays.radparker.com \
        /usr/local/bin/rblsmtpd -rrelays.orbs.org \
        /usr/local/bin/rblsmtpd -rrbl.maps.vix.com \
        /usr/local/bin/rblsmtpd -rdul.maps.vix.com \
         /var/qmail/bin/qmail-smtpd 2>&1 | /var/qmail/bin/splogger smtpd 3 &
       echo $! >/var/local/subsys/qmail-smtpd
        ;;
  stop)
        killall qmail-send
        kill `cat /var/local/subsys/qmail-smtpd`
        #rm -f /var/lock/subsys/qmail-smtpd
        rm -f /var/lock/subsys/qmail
        ;;
  *)
        echo "Usage: qmail {start|stop}"
        exit 1
esac

exit 0

Thanks in advance.

Brandon




Brandon Dudley <[EMAIL PROTECTED]> wrote:

>        csh -cf 'qmail-start |dot-forward .forward ./Mailbox splogger qmail &'

Because your "defaultdelivery" argument contains spaces, you need to
quote them:

    csh -cf 'qmail-start "|dot-forward .forward ./Mailbox" splogger qmail &'

or

    csh -cf 'qmail-start |dot-forward\ .forward\ ./Mailbox splogger qmail &'

Assuming "|dot-forward .forward ./Mailbox" is the syntax dot-forward
expects. I don't use dot-forward, so I don't know for sure, but I
suspect you really need something like:

    csh -cf 'qmail-start "|dot-forward .forward
./Mailbox" splogger qmail &'

Note the line break after the dot-forward command.

-Dave




> Brandon Dudley <[EMAIL PROTECTED]> wrote:
> 
> >        csh -cf 'qmail-start |dot-forward .forward ./Mailbox splogger qmail 
   >&'
> 
> Because your "defaultdelivery" argument contains spaces, you need to
> quote them:
> 
>     csh -cf 'qmail-start "|dot-forward .forward ./Mailbox" splogger qmail &'

> or
> 
>     csh -cf 'qmail-start |dot-forward\ .forward\ ./Mailbox splogger qmail &'
> 
> Assuming "|dot-forward .forward ./Mailbox" is the syntax dot-forward
> expects. I don't use dot-forward, so I don't know for sure, but I
> suspect you really need something like:
> 
>     csh -cf 'qmail-start "|dot-forward .forward
> ./Mailbox" splogger qmail &'
> 
> Note the line break after the dot-forward command.
> 
> -Dave

tried all 3 permutations, all gave different errors.

        part of the problem is that when I try to change the csh line, the shell
fails to execute using the explicit PATH statement, so it cannot find the
executables. When I used the fully-qualified path for each executable, it
erred out with 111 and 1 exit statuses, depending on which of the 3 I used.

Sorry, I didn't save the errors.

Brandon




"Jon Lurås" <[EMAIL PROTECTED]> wrote:

>Description:
>The program runs okay from the user prompts and generates a
>".qmail" file. But there is no replies generatet when there arrives
>new mails. When the user turn off the Vacation he get a messages
>saying that there have been mails from the users who did send
>mail to him.
>
>I am quite sure that there is something with rights on the files, but I
>can not find where!

Run "make check" from the build directory.

>I find the log line with 'delivery 559: success' strange. What is
>happening there?
>
>939016560.523776 delivery 559: success: qmail-
>inject:_fatal:_read_error/did_1+0+1/

It looks like maybe vacation is calling qmail-inject to send the
vacation message response, but the qmail-inject is failing and
vacation is not detecting the failure and propagating the exit status.

Try running qmail-inject interactively as the user in question.

-Dave




On Tue, 5 Oct 1999, Dave Sill wrote:

> "Jon Lurås" <[EMAIL PROTECTED]> wrote:
> 
> >Description:
> >The program runs okay from the user prompts and generates a
> >".qmail" file. But there is no replies generatet when there arrives
> >new mails. When the user turn off the Vacation he get a messages
> >saying that there have been mails from the users who did send
> >mail to him.
> >
> >I am quite sure that there is something with rights on the files, but I
> >can not find where!
> 
> Run "make check" from the build directory.
> 
> >I find the log line with 'delivery 559: success' strange. What is
> >happening there?

vacation calls

    /var/qmail/bin/datemail -t

which in turns calls qmail-inject.

vaction always exits with a zero, regardless of what happens. That's
why you see the success messages.

I am planning on a new release of vacation to fix these and other
subtle (and not so subtle) problems. I have no release date yet (I
have lots of other things on - not the least of which is the final
prepration for my wedding in just over 5 weeks). If you're all very
lucky, I'll have it released before then - otherwise you'll have to
wait till next year.

> >
> >939016560.523776 delivery 559: success: qmail-
> >inject:_fatal:_read_error/did_1+0+1/
> 
> It looks like maybe vacation is calling qmail-inject to send the
> vacation message response, but the qmail-inject is failing and
> vacation is not detecting the failure and propagating the exit status.
> 
> Try running qmail-inject interactively as the user in question.

Also try running datemail too.

Regards
Peter
----------
Peter Samuel                                [EMAIL PROTECTED]
Technical Consultant                        or at present:
eServ. Pty Ltd                              [EMAIL PROTECTED]
Phone: +61 2 9206 3410                      Fax: +61 2 9281 1301

"If you kill all your unhappy customers, you'll only have happy ones left"





"Ernyo" <[EMAIL PROTECTED]> wrote:

>I followed the instruction by install.xxx text. Everything's OK until
>local-error test. When I sent a mail to an nonexistent local user, I didn't
>have a bounce message in my maildir. I saw the syslog, there was an error
>message _Unable to chdir to Maildir_ instead of _No such address_. What's
>wrong. I hope someone can help me!

Undeliverable messages are delivered to the "alias" user's mailbox. If 
your default delivery type is "./Maildir", you need to create a
~alias/Maildir owned by "alias" using the maildirmake command to
receive the bounces.

-Dave




I'm looking to put a locking scheme in the current default pop3
process for qmail (checkpassword, qmail-pop3d) so that when a user
checks their mail, if they attempt to check it again while the previous
instance is still running, they will be immediately dropped.  This is
to avoid a potential denial of service attack wherein a single user
could eat up all available network connections checking their mail
multiple times at once.

Has anyone implemented such a thing already?  If not, any ideas
on how it might be done?  As I understand it, locking the maildir
in qmail-pop3d is probably the best solution to this, as it gets
called immediately after authentication has occurred.  My main concern
is avoiding the possibility (as much as possible) of a single process
being killed before completion and causing the lock file (or whatever) to
remain in effect even after the program has completed, making it impossible
for a user to check their mail until the file is manually removed.  Perhaps
an flock on a standard file would work, but as I understand it, flock will
hang around and wait if it's not able to get a lock immediately, which
is counterproductive to the dropping the connection immediately if
another instance is in progress.  I could be wrong on this.

Ideas? Suggestions? Snide remarks?

Thanks,

-- 
Erik Nielsen
Systems Administrator/Developer
USURF America





On Tue, Oct 05, 1999 at 01:40:07PM -0600, [EMAIL PROTECTED] wrote:

> Has anyone implemented such a thing already?  If not, any ideas
> on how it might be done?  As I understand it, locking the maildir
> in qmail-pop3d is probably the best solution to this, as it gets
> called immediately after authentication has occurred.  My main concern
> is avoiding the possibility (as much as possible) of a single process
> being killed before completion and causing the lock file (or whatever) to
> remain in effect even after the program has completed, making it impossible
> for a user to check their mail until the file is manually removed.  Perhaps
> an flock on a standard file would work, but as I understand it, flock will
> hang around and wait if it's not able to get a lock immediately, which
> is counterproductive to the dropping the connection immediately if
> another instance is in progress.  I could be wrong on this.

Consider using the "setlock" program from the serialmail package. It was
designed to lock a file called "seriallock" in a Maildir, while one
instance of maildirsmtp runs. I have used it very successfully in many
of my other programs. You could invoke it like this:

tcpserver 0 110 /var/qmail/bin/qmail-popup my.host.name \
/usr/local/bin/checkpassword /usr/local/bin/setlock Maildir/poplock \
/var/qmail/bin/qmail-pop3d Maildir &

-- 
See complete headers for more info




[EMAIL PROTECTED] wrote:

>Oct  2 00:52:18 ult qmail: 938825538.614975 delivery 13: deferral:
>Unable_to_open_.qmail:_access_denied._(#4.3.0)/

Hint: check the owner/group/mode of the .qmail file in question, as
well as those of all the parent directories. 

>       This is what I get in my logs. Is 4.3.0 error a read execution
>permission error?

The 4.3.0 error code comes from RFC 1893. See:
http://www.ietf.org/rfc/rfc1893.txt. Basically, it indicates a generic
temporary error.

-Dave




Franklin A Hays <[EMAIL PROTECTED]> wrote:

>this is a problem I have found several times in the archive yet i haven't
>been able to find an actual solution.  the From line is missing on my
>outgoing messages.

Your MUA should be constructing a message with the appropriate
From/To/Subject/Date/etc header fields.

>I understand qmail-inject adds the appropriate
>information to the header, yet how do i set the 'appropriate
>information'?

qmail-inject can add or munge certain header fields. LWQ covers
this:

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

>i have read the man page, any other help?  Is there someplace I can
>manually set the From field?

You really should be trying to configure your MUA to construct the
appropriate header fields.

>why isn't qmail-inject build the From
>field for the user, me, invoking it?

That's not its job.

-Dave




Emmanuel Nee <[EMAIL PROTECTED]> wrote:

>I've a pop server in Zurich (headquater) which we cuurently point our
>mail to. The problem is that larger mail attachment take a long time to
>download into the local drive though we have a lease line connected.
>This mail server configuration I do not have previledge to change. How
>can I make use of a local mail server to download all mail from my users
>and then local we retrive that to our local workstation. I want to make
>this as transparent as possible. Hope that someone can help.

Install fetchmail and a pop server (e.g., qmail-pop3d) on your local
server. Use fetchmail to retrieve the user's mail from the Zurich POP
server. Users will have to set up .fetchmailrc files, crontab entries
to run fetchmail, and will have to reconfigure their mailers to point
to the local POP server (and SMTP server).

It's not terribly transparent, but you can create template
.fetchmailrc's and crontab entries to make it easier.

-Dave




Hi,

Assuming a domain's primary and secondary MXs are handled by two
distinct servers. Is there a way to force mail into the secondary even
if the primary is up and running without problems.


Thx - eric

+ + + + + + + + + + + + + + + + + + + +
Spark Sistemas
   - presentado por IWCC Argentina S.A.
   Tel: 4702-1958
   e-mail: [EMAIL PROTECTED]
+ + + + + + + + + + + + + + + + + + + +




Eric Dahnke writes:
 > Assuming a domain's primary and secondary MXs are handled by two
 > distinct servers. Is there a way to force mail into the secondary even
 > if the primary is up and running without problems.

Yes, turn off service on port 25.  Either stop the associated
tcpserver, or comment the entry out of /etc/inetd.conf.

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





Thanks for the response, but I mean from the senders point of view.

My guess is no, other than a DoS which would open up access to the
secondary.

Thx - eric

Russell Nelson escribió:
> 
> Eric Dahnke writes:
>  > Assuming a domain's primary and secondary MXs are handled by two
>  > distinct servers. Is there a way to force mail into the secondary even
>  > if the primary is up and running without problems.
> 
> Yes, turn off service on port 25.  Either stop the associated
> tcpserver, or comment the entry out of /etc/inetd.conf.




Eric Dahnke writes:
 > 
 > >  > Assuming a domain's primary and secondary MXs are handled by two
 > >  > distinct servers. Is there a way to force mail into the secondary even
 > >  > if the primary is up and running without problems.
 > 
 > Thanks for the response, but I mean from the senders point of view.

For certain hosts?  Yes, if you use smtproutes.
For everybody?  Yes, but you'd need to modify qmail-remote, to tell it 
to ignore the lowest-numbered MX record.

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





I need to set up a farm of qmails and I need to get them to eat through
the queue's as fast as possible.

The way I have seen people do this with sendmail is by setting up
multiple queues and by making the network timeouts very small. This way,
the first time through the q the fast responding servers get their
emails first.  The rejected emails are put into a second queue.. This is
repeated a number of times until the email is finally rejected...

Any takers?

Thanks

Nagendra




Nagendra Mishr writes:
 > I need to set up a farm of qmails and I need to get them to eat through
 > the queue's as fast as possible.

Apply my big-todo patch and Johannes's big-concurrency patch, just
like it says to do on www.qmail.org.  Use a machine with fast
ultra-wide SCSI, or even a ramdisk.  You may need to tune the
operating system to allow for a thousand open sockets or a thousand
child processes.

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






hey all-

another quick question.  Someone once told me that I can customize the text
of Qmail error messages (e.g. Sorry no mailbox here by that name- try the
hose next door, etc.)

is this indeed possible and if so how?

Thanks
Bernie

Bernie Courtney
Z100 New York Engineering
mailto:[EMAIL PROTECTED]






> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 
> another quick question.  Someone once told me that I can 
> customize the text
> of Qmail error messages (e.g. Sorry no mailbox here by that 
> name- try the
> hose next door, etc.)
> 
> is this indeed possible and if so how?

cd your-qmail-src-directory

grep -i sorry *.c

edit it to whatever you wish and recompile.

Michael Boyiazis -----
[EMAIL PROTECTED]      

NetZero
Mail/Sys/Network Admin

__________________________________________
NetZero - Defenders of the Free World
Get your FREE Internet Access and Email at
http://www.netzero.net/download/index.html




[EMAIL PROTECTED] writes:
 > another quick question.  Someone once told me that I can customize the text
 > of Qmail error messages (e.g. Sorry no mailbox here by that name- try the
 > hose next door, etc.)

Within limits.  You can generate any kind of error message you want
like this:

|echo "$SENDER is a doo-doo head"; exit 100

If you want to generate that error when somebody sends email to an
invalid address, put that line in ~alias/.qmail-default.  If you've
given someone a customized email address (e.g. courtney-spamtrap),
you'd put it in (e.g.) ~courtney/.qmail-spamtrap.

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




Hi!
        Anyone can help me figure where I've gone wrong?  I've got a RH 6 box and
installed qmail with the RPM memphis version.  I've also installed the
checkpassword and daemontools.

        Qmail is run using tcpserver, but when I telnet to port 110, I do the
usual USER <myUID> & PASS <mytextpasswd>, if get a failed authentification.

        Do I have to create a .cdb to get pop3d to allow my pop connection?  All
the files in ~/control seems ok to me.  Or have I missed out on some
important file.

        Appreciate any help!  Thanks in advance.



Hak Beng
Singapore




I have a strange problem... maybe its not a problem, but a feature... but I
still have to
ask because I simple cant find any pointer in the manuals.

Now... since I installed qmail-idx with mysql-enabled (no this is not ezmlm
related),
qmail is sending emails not as they come in... but in a patter, almost every
20 mins.

Since I am sitting right next to the box (local lan) I can test the responce
by just
watching /var/log/maillog... but... nothing happens... and then suddenly
after aprox. 20 min,
all the messages I send get processed...

I would be very greatful for any pointers...

Cheers,
Andre
------------------------------------------------------
ICQ#: 1339921
Home: http://anneck.de





On Wed, Oct 06, 1999 at 09:17:59AM +0200, Andre Anneck wrote:

Look at the permissions on /var/qmail/queue/lock/trigger. They should be
like this:

prw--w--w-  1 qmails  qmail  0 Oct  6 10:35 /var/qmail/queue/lock/trigger

If they're not as above, either manually fix them, or run "make setup
check" from the qmail source directory.

> I have a strange problem... maybe its not a problem, but a feature... but I
> still have to
> ask because I simple cant find any pointer in the manuals.
> 
> Now... since I installed qmail-idx with mysql-enabled (no this is not ezmlm
> related),
> qmail is sending emails not as they come in... but in a patter, almost every
> 20 mins.
> 
> Since I am sitting right next to the box (local lan) I can test the responce
> by just
> watching /var/log/maillog... but... nothing happens... and then suddenly
> after aprox. 20 min,
> all the messages I send get processed...
> 
> I would be very greatful for any pointers...

-- 
See complete headers for more info




Can anybody explain the following in my qmail-smtpd logfile:


> 939075841.506429 qmail-smtpd 2410: connection from 192.168.100.1 ( unknown
> ) to zeus.telenet-ops.be 
> 939075956.824641 qmail-smtpd 2410: message queued = 939075956 qp 2411 
> 939075956.824970 qmail-smtpd 2410: read error, connection closed 
>  
It seems the message got queued, then smtpd got a read error and closed the
connection, so the other side resubmitted the mail for delivery some time
later. This means that some people get their mail twice.
>From where can the read error occur?

Franky




i was trying to get mail from a remote server. It seem to work
successfully but do not know where is the mail residing after that.
Please help if you can.

Emmanuel



Reply via email to