qmail Digest 10 Nov 1999 11:00:01 -0000 Issue 816

Topics (messages 32733 through 32768):

Re: imap quota reached
        32733 by: Joerg Lenneis

Re: Cyrus+qmail: mmap() errors with big messages. .
        32734 by: Joerg Lenneis
        32735 by: Christian S . Bell

qmail-inject and timezone
        32736 by: Petr Novotny

Forward, Relay ... or what is it ??
        32737 by: Thomas Foerster
        32738 by: Petr Novotny

strange quirk in qmail-local
        32739 by: Barry Smoke
        32744 by: Dave Sill
        32748 by: Dave Sill

Re: qmail remote delivery logic
        32740 by: David Dyer-Bennet
        32741 by: Dave Sill
        32742 by: Stefan Paletta
        32743 by: Dave Sill
        32755 by: Sam
        32756 by: Sam
        32757 by: Sam

more qmail with rh6.1
        32745 by: Steve Kapinos
        32747 by: Dave Sill

Re: Qmail with rh 6.1
        32746 by: Steve Kapinos

lame question
        32749 by: David McCall
        32750 by: Patrick Berry
        32751 by: Chris Johnson

delivery to a directory
        32752 by: Phil Howard
        32753 by: Patrick Berry
        32754 by: Stefan Paletta
        32758 by: Phil Howard
        32767 by: Frank D. Cringle
        32768 by: Giles Lean

Re: Rewriting without date header in a perl oneliner
        32759 by: David L. Nicol

Re: I want to accept, but I don't want to deliver
        32760 by: Markus Stumpf

new mbox2maildir
        32761 by: Keith Burdis

Usage of /var/qmail/users/assign (fwd)
        32762 by: Todd A. Jacobs

too many connections dying
        32763 by: Edward Castillo-Jakosalem
        32764 by: Edward Castillo-Jakosalem

2 Questions
        32765 by: James

syslog question.
        32766 by: Marc-Adrian Napoli

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]


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



Shane Clements:

> Hi,
>       I have qmail 1.03 running and delivering with the cyrus deliver
> program.  When a user has reached the quota limit on their mailbox, the
> logs show:

> Nov  8 15:44:53 mail qmail: 942104693.358273 starting delivery 95: msg
> 985125 to local [EMAIL PROTECTED]
> Nov  8 15:44:53 mail qmail: 942104693.358425 status: local 1/10 remote
> 0/20
> Nov  8 15:44:53 mail qmail: 942104693.385766 delivery 95: deferral:
> shane:_Over_quota__/
> Nov  8 15:44:53 mail qmail: 942104693.385878 status: local 0/10 remote
> 0/20

> How do I get qmail to bounce the message instead of continually
> deferring the message?

[...]

Put the line 

| /usr/cyrus/bin/deliver "$USER" || exit 100 

into the .qmail file that handles delivery for cyrus. The
'/usr/cyrus/bin/deliver "$USER"' part is only a guess about your
setup, of course. "man qmail-command" has the details.


-- 

Joerg Lenneis

email: [EMAIL PROTECTED]





Christian S Bell:

> Hello,

[...]

> Output from imapd.log:
>  IOERROR: mapping new message file for user.csbell: Not enough space
> Output from syslog:
> 942122791.318715 delivery 53726: deferral: 
>421_4.3.0_deliver:_failed_to_mmap_new_message_file_/

[...]

What are the ulimits for the user id that does the delivery?

-- 

Joerg Lenneis

email: [EMAIL PROTECTED]




On Tue, Nov 09, 1999 at 12:48:44PM +0100, Joerg Lenneis wrote:
| 
| Christian S Bell:
| 
| > Hello,
| 
| [...]
| 
| > Output from imapd.log:
| >  IOERROR: mapping new message file for user.csbell: Not enough space
| > Output from syslog:
| > 942122791.318715 delivery 53726: deferral: 
|421_4.3.0_deliver:_failed_to_mmap_new_message_file_/
| 
| [...]
| 
| What are the ulimits for the user id that does the delivery?
| 
| -- 
| 
| Joerg Lenneis
| 
| email: [EMAIL PROTECTED]

Lenneis,

        I added a `ulimit -a` in the deliver script right before the data is 
passed on to deliver (this deliver wrapper is run by the cyrus user and therefore is a 
descendent of the qmail-send process, which has a ulimit of 2048).

time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 2097148
stack(kbytes) 8192
coredump(blocks) unlimited
nofiles(descriptors) 64
memory(kbytes) 2048

The only hitch I can see is the vmemory being 2048 (However these mails seem to
be ~175k in size - at least once they're in the mailbox).

/chris





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

Hi,

is there a switch to ask qmail-inject to put the Date: stamp in the 
local timezone? I can perfectly understand why all the Received: 
headers use GMT - but qmail-inject?

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.0.2 -- QDPGP 2.60 
Comment: http://community.wow.net/grt/qdpgp.html

iQA/AwUBOCg6LlMwP8g7qbw/EQLVegCfRUitt010OksN1XgXaExJ9esDaR8AoLLJ
DQqtqXLQjPWZp8IS+L2icXBl
=Z6ai
-----END PGP SIGNATURE-----
--
Petr Novotny, ANTEK CS
[EMAIL PROTECTED]
http://www.antek.cz
PGP key ID: 0x3BA9BC3F
-- Don't you know there ain't no devil there's just God when he's drunk.
                                                             [Tom Waits]




Hi there,

i have the following problem :

I accept mail for businessakademie.com. But then, i need to connect to 195.30.221.30
and then send the received mail to there.

At the moment, i use 

~alias/.qmail-businessakademie-default  :
| forward ${DEFAULT}@195.30.221.30

But the Mailer at this IP says : "550 [EMAIL PROTECTED] is not a valid maildrop"

That's why i have to deliver the mail like "[EMAIL PROTECTED]"

How can i do this ?
I know it's hard to understand what i think, but i'm not english ;-)

Thankx,
  Thomas







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

On 9 Nov 99, at 15:16, Thomas Foerster wrote:
> I accept mail for businessakademie.com. But then, i need to connect to
> 195.30.221.30 and then send the received mail to there.

You might consider using smtproutes if you only want to override 
DNS.

> At the moment, i use 
> 
> ~alias/.qmail-businessakademie-default  :
> | forward ${DEFAULT}@195.30.221.30

Try brackets: forward "$DEFAULT"@[195.30.221.30].

Your way - using $DEFAULT without quotes - is dangerous to say 
the least; what do you think a mail to
"someone; rm -rf *"@businessakademie.com
shall cause?

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.0.2 -- QDPGP 2.60 
Comment: http://community.wow.net/grt/qdpgp.html

iQA/AwUBOCg8Q1MwP8g7qbw/EQJjQwCgkk/R4o1eDhgnu+o4CLHld6lSyqAAnAlB
FNAnFz4KzUlmic0w9v0Jxm8R
=OlxM
-----END PGP SIGNATURE-----
--
Petr Novotny, ANTEK CS
[EMAIL PROTECTED]
http://www.antek.cz
PGP key ID: 0x3BA9BC3F
-- Don't you know there ain't no devil there's just God when he's drunk.
                                                             [Tom Waits]




I am getting a wierd message pertaining to the sticky bit on users home directory.  I know that chmod -t %HOME clears that, but after doing that I get a defferal_can't_chdir_to_Maildir.
 
I have put a Maildir in my skeleton directory, in /etc
I call qmail with  ./Maildir/ in the line....
I have put a .qmail file also in the skeleton directory with an entry
./Maildir/
 
about 1/3 of my users get this, so it's not an isolated thing.  What could be causing this, and how can I clear it up once and for all.
 
Thanks
Barry Smoke
[EMAIL PROTECTED] 




"Barry Smoke" <[EMAIL PROTECTED]> wrote:

>I am getting a wierd message pertaining to the sticky bit on users
>home directory.

And that message is?

-Dave




"Barry Smoke" <[EMAIL PROTECTED]> wrote:

>...I get a defferal_can't_chdir_to_Maildir.

Check the owner and mode of $HOME/Maildir and its subdirectories. They 
should be rwx by owner and owner should be the user.

-Dave




Sam <[EMAIL PROTECTED]> writes on 8 November 1999 at 17:39:02 -0500
 > On Mon, 8 Nov 1999, David Dyer-Bennet wrote:
 > 
 > > In a pathological case, qmail can use a lot more network bandwidth
 > > because of the duplication of messages going to the same system.  In
 > > practice this is rarely a serious problem.  Taking into account the
 > > *decreased* DNS traffic, it's even more rarely a problem. 
 > 
 > Pard'n me, but how does an additional DNS lookup for every recipient end
 > up reducing the overall amount of DNS traffic?

qmail does fewer DNS lookups than sendmail, and that should be
credited to its account when comparing bandwidth used.
-- 
David Dyer-Bennet / Join the 20th century before it's too late! / [EMAIL PROTECTED]
http://dd-b.lighthunters.net/ (photos) Minicon: http://www.mnstf.org/minicon
http://www.dd-b.net/dd-b (sf) http://ouroboros.demesne.com/ Ouroboros Bookworms




Steve Vertigan <[EMAIL PROTECTED]> wrote:

>Dave Sill wrote:
>
>> Say you send a message to a list of 10,000 addresses using
>> sendmail. What's the first thing it does? It looks up the MX for each
>> recipient so it can sort by MX and minimize the number of connections.
>
>Why is that?  Lets say you have to deliver to [EMAIL PROTECTED], [EMAIL PROTECTED] and
>[EMAIL PROTECTED]  Why wouldn't a well-written mta assume that the MX for
>aol.com is most likely going to be the same as for aol.com, and aol.com?  If
>the MX lookup is done after sorting by domain wouldn't that reduce dns
>traffic?

Of course, I didn't mean to imply that identical FQDN's needed
multiple lookups.

-Dave




Sam wrote/schrieb/scribsit:
> different domains will result in only 5,000 DNS queries.  Meanwhile, each
> instance of qmail-remote should diligently issue a DNS query - for a 
> grand sum of 10,000 queries overall.

When we're talking about lists of that size, you will for sure have
the resources to handle 5000, 10000 or 100000 DNS queries compared to
the resources you need for actually sending the messages.

My experiences show, that for lists of up to 10000 recipients, qmail
will already have finished lots of deliveries when the first lookups
on bad/unreachable addresses get a timeout. With serialized lookups
everything will just sit idle for ages.

I all boils down, as you said in another mail, to that qmail
opimizes for delivery time and optimizes bandwidth usage at the upper
end.

Stefan 




[EMAIL PROTECTED] wrote:

>On Mon, 8 Nov 1999, Dave Sill wrote:
>
>> Say you send a message to a list of 10,000 addresses using
>> sendmail. What's the first thing it does? It looks up the MX for each
>> recipient so it can sort by MX and minimize the number of connections.
>
>I doubt very much that that's what sendmail does, by the simple fact of
>what would happen if the best MX is unreachable.  The resulting logic
>would be too convoluted even for sendmail, because then it would have to
>reshuffle every message, since you certainly can't assume that all domains
>pointing to the same best MX will also have the same second-best MX listed
>as well.
>
>I think you're really referring to the behavior of older sendmails which
>have a pathological need to issue a CNAME query for every address in the
>headers in order to rewrite it in those few cases where there's a CNAME
>record for the domain.  I don't think sendmail does that anymore.

I don't really know what sendmail does these days, nor do I care. When 
I last used sendmail, I know it spent a great deal of time thinking
before delivering the first message to a moderate list of recipients.

>> qmail, on the other hand, fires off concurrencyremote qmail-remotes
>> and starts delivery immediately.
>
>... But not after issueing the same DNS query to find the MX for each
>recipient.  qmail-remote does not pull an IP address out of thin air.

Each qmail-remote does one DNS lookup, so at most concurrencyremote
DNS lookups are concurrent, and qmail doesn't have to wait for all of
them before sending any messages.

>Additionally, I'm not sure but it's possible that sendmail will not query
>for the same domain the second time, thus 10,000 messages going to 5,000
>different domains will result in only 5,000 DNS queries.  Meanwhile, each
>instance of qmail-remote should diligently issue a DNS query - for a 
>grand sum of 10,000 queries overall.
>
>So what you have here is 10,000 guaranteed queries from Qmail, and up to
>10,000 DNS queries for sendmail, maybe less.

Maybe more. Back in the olden days, when I last used sendmail, it did
multiple DNS lookups per delivery.

>> I think Postfix just sorts by FQDN, so it doesn't have to do 10,000
>> DNS lookups before it starts delivering. But by doing that, it
>> potentially misses a lot of combining for different FQDN's with the
>> same MX.
>
>I happen to think that this is a reasonable compromise.

Agreed.

But, as the master says: "Profile, don't speculate". Take a look at:

    http://www.kyoto.wide.ad.jp/mta/eval1/perf1b.gif

Which shows that in a test where sendmail, qmail, postfix, and other
UNIX MTA's were given the same task, qmail was fastest. And:

    http://www.kyoto.wide.ad.jp/mta/eval1/perf1b+.gif

Which shows that qmail started delivering messages fastest.

There are numerous other charts showing qmail's measured superiority
on:

    http://www.kyoto.wide.ad.jp/mta/eval1/

-Dave




David Dyer-Bennet writes:

> Sam <[EMAIL PROTECTED]> writes on 8 November 1999 at 17:39:02 -0500
>  > 
>  > Pard'n me, but how does an additional DNS lookup for every recipient end
>  > up reducing the overall amount of DNS traffic?
> 
> qmail does fewer DNS lookups than sendmail, and that should be

Not always.  I just described the situation where it does not.

-- 
Sam





Stefan Paletta writes:

> Sam wrote/schrieb/scribsit:
> > different domains will result in only 5,000 DNS queries.  Meanwhile, each
> > instance of qmail-remote should diligently issue a DNS query - for a 
> > grand sum of 10,000 queries overall.
> 
> When we're talking about lists of that size, you will for sure have
> the resources to handle 5000, 10000 or 100000 DNS queries compared to
> the resources you need for actually sending the messages.
> 
> My experiences show, that for lists of up to 10000 recipients, qmail
> will already have finished lots of deliveries when the first lookups
> on bad/unreachable addresses get a timeout. With serialized lookups
> everything will just sit idle for ages.
> 
> I all boils down, as you said in another mail, to that qmail
> opimizes for delivery time and optimizes bandwidth usage at the upper
> end.

Well, I wouldn't say that.  Not exactly.  Qmail optimizes delivery time,
and requires reasonable (but not too great) bandwidth in situations
involving medium to moderately high volumes of mail.  Qmail will also do
pretty well when the mail volume is low, although there are certain
pathological situations where Qmail will fail miserably with low mail
volume.  Also, Qmail will do poorly in the extreme upper end of the range,
where your mail volume goes through the roof.  That's mostly a result due
to a combination of factors: namely excessive amounts of DNS queries, and a
lot of excessive TCP/IP traffic because Qmail does not recycle TCP/IP
connections, nor does it batch same-domain recipients in any way.  Also,
the fact that its limited to 255 concurrent qmail-remotes also comes into
play, at one point.  Sure, you can argue that all you have to do is to put
in a dozen of OC-3s to handle the excessive amounts of bandwidth, and solve
the 255 qmail-remote issue by instead splitting the mail traffic across
multiple servers, in parallel.  However, multiple servers still adds up to
the same amount of bandwidth via your pipes, and no amount of bandwidth
will affect the fact that a few hops away, most your traffic gets squeezed
through a single T-1, or even a T-3.




-- 
Sam





Dave Sill writes:

> Each qmail-remote does one DNS lookup, so at most concurrencyremote

The fact that qmail-remote barfs with a 'CNAME lookup failed' in certain
well-known situations leads me to believe that there are at least two DNS
lookups happening in qmail-remote: a CNAME, followed by an MX lookup.  I
always thought that it was a waste, RFC 1035 guarantees that a CNAME
response will be returned, if present, in the response to any query for the
same host.  There's never a need for Qmail to do an explicit CNAME query.

> DNS lookups are concurrent, and qmail doesn't have to wait for all of
> them before sending any messages.


> 
> >Additionally, I'm not sure but it's possible that sendmail will not query
> >for the same domain the second time, thus 10,000 messages going to 5,000
> >different domains will result in only 5,000 DNS queries.  Meanwhile, each
> >instance of qmail-remote should diligently issue a DNS query - for a 
> >grand sum of 10,000 queries overall.
> >
> >So what you have here is 10,000 guaranteed queries from Qmail, and up to
> >10,000 DNS queries for sendmail, maybe less.

I forgot about the CNAME query when I wrote that, BTW.

> But, as the master says: "Profile, don't speculate". Take a look at:
> 
>     http://www.kyoto.wide.ad.jp/mta/eval1/perf1b.gif
> 
> Which shows that in a test where sendmail, qmail, postfix, and other
> UNIX MTA's were given the same task, qmail was fastest. And:
> 
>     http://www.kyoto.wide.ad.jp/mta/eval1/perf1b+.gif
> 
> Which shows that qmail started delivering messages fastest.
> 
> There are numerous other charts showing qmail's measured superiority
> on:

Again, that is not always true, and Qmail will fail miserably in certain
well defined situations which do occur, quite often, in production.

-- 
Sam





Ok,

Thanks for the help from the list.. I now have proper logging from qmail 
from splogger into my syslog.  I believe the problem is some sort of 
conflict of sequencing of mail.none and mail.* in my copy of syslogd, 
because once I put mail.* on a line before another line that had mail.none 
in it, it works.

Onto my 'real' problem.

I have qmail setup based on the instructions in the HOWTO, and I call qmail 
on boot via one the rc file listed in the HOWTO.

supervise /var/lock/qmail-smtpd tcpserver -v -x/etc/tcp.smtp.cdb -u$USERID 
-g$GROUPID 0 25 \
rblsmtpd qmail-smtpd 2>&1 | setuser qmaill accustamp | \
setuser qmaill cyclog -s5000000 -n5 /var/log/qmail/qmail-smtpd &

And I have qmail setup to deliever to Mailbox in /var/qmail/rc

Local mailing called via /bin/mail do deliever to ~user/Mailbox fine.  I'm 
looking back at the install doc tho, and I'm confused again on if that is 
supposed to be there.  Following the steps after TEST.deliever, there is 
the doc about REMOVE.binmail.   Mail is being delieverd fine to ~/Mailbox, 
should I just leave /bin/mail alone?  Pine delievers fine as well.

My problem is though, when I telnet to port 25 to deliever a message via 
smtp, everything looks fine, but I never see the message.

[root@hootch qmail-smtpd]# telnet 127.0.0.1 25
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
220 hootch.tandbergusa.com ESMTP
helo test
250 hootch.tandbergusa.com
mail [EMAIL PROTECTED]
250 ok
rcpt [EMAIL PROTECTED]
250 ok
data
354 go ahead
this is a test of the EBS
.
250 ok 942177100 qp 721
quit
221 hootch.tandbergusa.com
Connection closed by foreign host.

I look in the log for smtpd

[root@hootch qmail-smtpd]# cat *
942177072.212971 tcpserver: status: 1/40
942177072.213741 tcpserver: pid 719 from 127.0.0.1
942177072.274546 tcpserver: ok 719 loopback:127.0.0.1:25 
loopback:127.0.0.1:root:1033
942177103.380723 tcpserver: end 719 status 0
942177103.380941 tcpserver: status: 0/40

I then look in syslog to see the qmail logging...

[root@hootch qmail-smtpd]# tail -10 /var/log/messages
Nov  9 14:24:12 localhost inetd[453]: auth/tcp: bind: Address already in 
use
Nov  9 14:34:12 localhost inetd[453]: auth/tcp: bind: Address already in 
use
Nov  9 14:44:12 localhost inetd[453]: auth/tcp: bind: Address already in 
use
Nov  9 14:51:40 localhost qmail: 942177100.149782 new msg 2557
Nov  9 14:51:40 localhost qmail: 942177100.150179 info msg 2557: bytes 200 
from <> qp 721 uid 503
Nov  9 14:51:40 localhost qmail: 942177100.366794 starting delivery 3: msg 
2557 to local @hootch.tandbergusa.com
Nov  9 14:51:40 localhost qmail: 942177100.367110 status: local 1/10 remote 
0/20
Nov  9 14:51:40 localhost qmail: 942177100.368331 delivery 3: success:
Nov  9 14:51:40 localhost qmail: 942177100.392021 status: local 0/10 remote 
0/20
Nov  9 14:51:40 localhost qmail: 942177100.392541 end msg 2557

But.. when I look at the user's mailbox, jobu, the message is not there.

Any clue to what is going wrong here?  (and what those inetd errors are?  I 
think they only came up after running tcpserver)

and in /var/log/qmail/qmail-smtp

Thanks




Steve Kapinos <[EMAIL PROTECTED]> wrote:

>My problem is though, when I telnet to port 25 to deliever a message via 
>smtp, everything looks fine, but I never see the message.
>
>[root@hootch qmail-smtpd]# telnet 127.0.0.1 25
>Trying 127.0.0.1...
>Connected to 127.0.0.1.
>Escape character is '^]'.
>220 hootch.tandbergusa.com ESMTP
>helo test
>250 hootch.tandbergusa.com
>mail [EMAIL PROTECTED]
>250 ok
>rcpt [EMAIL PROTECTED]

Try:

    mail <[EMAIL PROTECTED]>
    rcpt <[EMAIL PROTECTED]>

Don't know if that's the problem, but what you're doing is wrong.

>Nov  9 14:51:40 localhost qmail: 942177100.150179 info msg 2557: bytes 200 
>from <> qp 721 uid 503
>Nov  9 14:51:40 localhost qmail: 942177100.366794 starting delivery 3: msg 
>2557 to local @hootch.tandbergusa.com

Since the logs show bogus envelope addresses, it seems likely that the 
above is the problem.

>But.. when I look at the user's mailbox, jobu, the message is not
>there.

Of course not. It was delivered to "@hootch.tandbergusa.com", AKA the
bit bucket.

-Dave




Trying your echo test failed to put anything in maillog, so I moved towards 
something 'looking right, but not working right'.  I changed the .conf to 
from the following:

it had mail.*none in the /var/log/messages   line
and then below that had mail.* to goto /var/log/maillog

I commented out the maillog line, and made the /var/log/messages line be 
mail.*

That worked, so then I changed the lines back to the originals, but put the 
/var/log/maillog line BEFORE the /var/log/messages line, and it works.  So 
maybe this is a glitch in this version of syslogd that ships with rh6.1?

Thanks for the help Dave

.. now I move to the 'real' problem =)

-Steve

-----Original Message-----
From:   Dave Sill [SMTP:[EMAIL PROTECTED]]
Sent:   Monday, November 08, 1999 3:19 PM
To:     [EMAIL PROTECTED]
Subject:        RE: Qmail with rh 6.1

"Steve Kapinos" <[EMAIL PROTECTED]> wrote:

>Learning syslogd as I go.. =)
>
>I looked in /etc/syslog.conf, and according to it, mail.* is being sent to
>/var/log/maillog
>
>But it doesn't seem to be happening.  Procmail did log qmail tagged 
messages
>to maillog fine tho.

Do:

    echo foo |/var/qmail/bin/splogger qmail

If you don't see a line like:

    Nov  8 15:15:21 6C:sws5 qmail: 942092121.752035 foo

in /var/log/maillog, then your syslog isn't configured properly (or
needs to be HUP'd if you recently modified syslog.conf.)

If you do see such a line, you need to re-examine your qmail startup
command. Do you see a splogger process in a ps list?

-Dave




Wish there was a graphic picture of the qmail parts and the addons with
their various functional locations and requirements or even
a flow chart showing how stuff should move under various conditions.

I'm really not seeing the big picture at all and I feel less than smart
right now.

my qmail seems to work fine

I want to put a web interface to it using atdot

which implies that I should have qmail-pop3d running
which implies that I should have tcpserver running

among other things


I am hoping to build user lists  using apop independant of the UNIX
Solaris OS but the mechanism and method escapes me.

like where is the pop3 daemon looking for the users and passwords?

arrg

and how are these changed







On 11/9/99 at 11:45 AM, [EMAIL PROTECTED] (David McCall) had the
thought:

> Wish there was a graphic picture of the qmail parts and the addons with
> their various functional locations and requirements or even
> a flow chart showing how stuff should move under various conditions.


Never fear!

http://www.nrg4u.com/ has nice big color pix of the qmail picture.

As for your other questions you might want to poke around qmail.org for a
pop password checker thingy.  There are more than one floating around out
there.

Pat
--
Freestyle Interactive | http://www.freestyleinteractive.com | 415.778.0610






On Tue, Nov 09, 1999 at 11:45:03AM -0800, David McCall wrote:
> Wish there was a graphic picture of the qmail parts and the addons with
> their various functional locations and requirements or even
> a flow chart showing how stuff should move under various conditions.

See the INTERNALS file that comes with the qmail tarball, and the various PIC.*
files in /var/qmail/doc.

> I'm really not seeing the big picture at all and I feel less than smart
> right now.
> 
> my qmail seems to work fine
> 
> I want to put a web interface to it using atdot
> 
> which implies that I should have qmail-pop3d running
> which implies that I should have tcpserver running
> 
> among other things
> 
> 
> I am hoping to build user lists  using apop independant of the UNIX
> Solaris OS but the mechanism and method escapes me.
> 
> like where is the pop3 daemon looking for the users and passwords?

Wherever you like, so long as you provide an appropriate checkpassword program.
The checkpassword program that's on DJB's site (http://cr.yp.to) looks in
/etc/passwd, but there are many more that let you use other databases. See
http://www.qmail.org/top.html#checkpassword

Chris




How can I tell qmail-local what directory (maildir format) to deliver to?

I've got it set up so that for various virtual domains everything is going
to a special userid.  The .qmail-default file is set to run my program
which determines what directory to put the mail in dynamically.  Now how
to I get it actually delivered there using the maildir logic?  I'd like
to be able to just CD there, or tell qmail-local where, and have it do it.
But it apparently wants to just re-read the .qmail-default file again and
loop (stopped by other means I'm sure).

Is there a different program for actual final delivery that qmail-local
calls that I could cal directly to bypass qmail-local?

Please don't suggest lots of userids and/or lots of .qmail files.  I'm
dead set on making this easy to administer, so those are not options.
That's why I'm running things through a program that figures it out.

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




On 11/9/99 at 3:52 PM, [EMAIL PROTECTED] (Phil Howard) had the thought:

> Please don't suggest lots of userids and/or lots of .qmail files.  I'm
> dead set on making this easy to administer, so those are not options.
> That's why I'm running things through a program that figures it out.

I could be way off base here, but it sounds like your dead set on
reinventing the wheel.  If you have to have a directory for the userid to
hold the Maildir, what is the problem with having a .qmail file to tell
qmail to deliver to that Maildir?

Pat
--
Freestyle Interactive | http://www.freestyleinteractive.com | 415.778.0610






Phil Howard wrote/schrieb/scribsit:
> How can I tell qmail-local what directory (maildir format) to deliver to?

Use safecat[1] or maildrop[2].

Stefan
[1] http://www.nb.net/~lbudney/linux/software/safecat.html
[2] http://i.am/mrsam 




Patrick Berry wrote:

> On 11/9/99 at 3:52 PM, [EMAIL PROTECTED] (Phil Howard) had the thought:
> 
> > Please don't suggest lots of userids and/or lots of .qmail files.  I'm
> > dead set on making this easy to administer, so those are not options.
> > That's why I'm running things through a program that figures it out.
> 
> I could be way off base here, but it sounds like your dead set on
> reinventing the wheel.  If you have to have a directory for the userid to
> hold the Maildir, what is the problem with having a .qmail file to tell
> qmail to deliver to that Maildir?

There will be hundreds of virtual domains and hundreds of userids in each.
No, make that thousands.  Maybe more.  What's more, the user names will
be created on the fly, so creating .qmail files in advance for every user
name just isn't possible.

I don't want to add the extra I/O overhead of creating a .qmail file for
each user.  I'm trying to make this lean and mean.  What I want to do is
divert the .qmail lookup for these virtuals (the ones in virtualdomains
naming this one single base user that handles this whole mess) so that
for each user@domain to be delivered there is _not_ a .qmail file there.

If I could code the master .qmail file like:

# note the single quotes here:
echo './Virtuals/${HOST}/${USER}/' > .qmail

and qmail-local would apply environment substitution, that would do the job.
But that doesn't work.  So I'm trying:

echo '|./bin/delivery-to' > .qmail

where the program in bin/delivery-to examines the environment variables
and determines the directory to deliver to (all are owned by the one user
that all this is running under).  The next step is to deliver the mail
there (which I'm wanting to avoid re-inventing, since something in qmail
can obviously do it).

There would be a corresponding logic for vchkpw authentication and finding
the directory under the pop3 server, plus a web based access facility to
be developed, too (I'll be doing this in PHP).

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




"Phil Howard" <[EMAIL PROTECTED]> writes:
> How can I tell qmail-local what directory (maildir format) to deliver to?

Use the qmail-users mechanism such that each virtual user has a
home-directory that is their Maildir, then make the default delivery
instruction be ./

That is what I do and it works fine.  I did end up having to put an
empty .qmail-default file in each virtual-home in order to catch mail
with extension addresses, but that is not necessary if you just allow
one address per user.

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





On Tue, 9 Nov 1999 18:06:03 -0600 (CST)  "Phil Howard" wrote:

> There will be hundreds of virtual domains and hundreds of userids in each.
> No, make that thousands.  Maybe more.  What's more, the user names will
> be created on the fly, so creating .qmail files in advance for every user
> name just isn't possible.

You've been referred to two programs that can write to maildirs.
Writing to maildirs is trivial; you might as well make your own
program that decides where the mail should go deliver it as well.

I don't know what the license is on the other two programs, but for
somewhat complicated reasons I wound up writing one too, and it's
under a BSD license so you can basically do anything you like with it
except sue me if it doesn't work.

ftp://ftp.nemeton.com.au/pub/deliver-maildir-1.1.tar.gz

The maildir format is documented at:

http://www.pobox.com/~djb/proto/maildir.html

Regards,

Giles






> I read the documentation of qmail-inject and it would do what I want
> if I could filter out the old "Date" line.
> 
> I can't (almost) write in Perl. I can write a C program. But first I
> wanted to know if there is some already done script/program which
> would delete a chosen line from RFC822 header. I don't want to
> reinvent a wheel.

I've been reinventing wheels for decades.  Here's a perl one-liner
for you to strip out the first date header and pass everything else:
(will be odd but not fatal if the date header wraps.)


perl -ne 'print if($m or ($m = /^Date:/ and next) or ($m = ! /\w/) or 1
)'

Which goes through every line in the file and prints it, except
for the first time the line starts Date, unless of course if
that is after the first blank line.


______________________________________________________________
                      David Nicol 816.235.1187 [EMAIL PROTECTED]
      End Daylight Savings Time in the year 2000 --just say NO




On Mon, Nov 08, 1999 at 06:58:00PM -0500, Jeremy Hansen wrote:
> Basically I want to setup a dummy host that I can relay mail off of, but I
> don't want it to actually send the mail to remote machines.

Just run tcpserver + qmail-smtpd without starting qmail-send.
The messages will be put on disk, thats all.

If you want to clean that up (and have qmail-send running) create
a  control/virtualdomains  file containing
:alias
and then create a ~alias/.qmail-default file containing only a "#"
character.
(That means control of all domains is given to user "alias".
 .qmail-default takes care of all addresses and the "#" discards
 the messages).

        \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 there

  Guy Halse (of ezmlm-web fame :) has written a new version of mbox2maildir.
  This one is very nice because it preserves status flags, instead of just
  dumping all messages into new like the existing ones do. So, new messages
  go in new, read messages go in cur, and status flags like replied are
  preserved.
  
  It has all sorts of sanity checks to make sure you don't lose the mbox.
  Even hitting ctrl-c during the conversion leaves you with a copy of the
  original mbox, because it only deletes the mbox once it is sure things
  completed properly.

  It is released under a BSD-style license and you can get it from:

    ftp://rucus.ru.ac.za/pub/mail/qmail/guy/mbox2maildir

  I've just used it to convert my entire Mail directory to maildirs (so that
  I can use IMP) and it works very well. For those who are interested here
  are a few on liners that you can use to do this:

  Guy says you should use:

    % for a in `ls -1`; do echo $a; mbox2maildir $a; done

  After which I came up with:

    % perl -e 'foreach (`ls -1`) { (print "$_") && chomp && system("mbox2maildir",$_) 
}'

  After which he came up with a non backticks version:

    % perl -e 'for ($moo = opendir MOO, "."; defined($moo) ; $moo = readdir MOO) { 
(print "$moo\n") && system("mbox2maildir",$moo) }'

  Or you can find a (long and convoluted :) version at:

    ftp://rucus.ru.ac.za/pub/mail/qmail/krb/convert2maildir

  You choose :-)

    - Keith

  PS: It is just after 6am here. We've been here for a while ;)
-- 
Keith Burdis - MSc (Computer Science) - Rhodes University, South Africa
IRC: Panthras                                   JAPH    QEFH
---




I thought I'd repost this, in case the original (or any replies) got lost
in the bitstream. The gist if my question is: when would I need to use
assign instead of an alias? 

-- 
Todd A. Jacobs
Network Systems Engineer


---------- Forwarded message ----------
Date: Sat, 6 Nov 1999 12:42:05 -0800 (PST)
From: Todd A. Jacobs <[EMAIL PROTECTED]>
To: QMAIL List <[EMAIL PROTECTED]>
Subject: Usage of /var/qmail/users/assign

I'm not 100% sure I understand the difference in intended usage between
setting up a ~/alias/.qmail-whatever file and setting up a virtual user in
/var/qmail/users/assign. As far as I can tell, the former uses forwarding,
whereas the latter is acting like a true alias.

Am I understanding this correctly? If so, what are the practical
implications? They seem almost interchangeable to me.

-- 
Todd A. Jacobs
Network Systems Engineer







HI!
I've been constantly monitoring our log files and have been noticing
lately that there are too many deliveries dying (says
connected...but_connection_died). I'm presently running qmail-send with
100 concurrent remote deliveries.

Does this have something to do with our bandwidth? Our outgoing is not
that big :(
What remedies are possible?
Thanks in advance for any help/suggestion and more power!


Edward Castillo-Jakosalem








HI!
I've been constantly monitoring our log files and have been noticing
lately that there are too many deliveries dying (says
connected...but_connection_died). I'm presently running qmail-send with
100 concurrent remote deliveries.

Does this have something to do with our bandwidth? Our outgoing is not
that big :(
What remedies are possible?
Thanks in advance for any help/suggestion and more power!

Addition....

I forgot to ask this one...
How come the mail which was queued up since yesterday is still not sent
when I sent a mail to the same address just now and was sent
immediatley?

Edward Castillo-Jakosalem




1)  I have had qmail working wonderfully on RedHat Mandrake 6.0 for many
months now.. but I am having a problem with relaying.  I've gone through
the steps on this page:

http://www.palomine.net/qmail/relaying.html

but I am confused about something.. if I set up an ip address in
rcpthosts, *and* in RELAYCLIENT, does this mean the user can ONLY send
mail if he/she is connected to the server (say, with telnet)?  I have
added the user's ip address to both, and user cannot use server as a relay
when not connected directly to the server.

2)  User is trying to read mail with Netscape 4.6 mail reader.. but when
he tries to fetch mail, it says there is nothing in his mailbox even
though there actually IS mail in the Mailbox file.  Does the user need to
direct the Netscape mail reader to the "Mailbox" directory somehow,
instead of the server domain address?

Thanks for any help.

James





hiya,

been looking through the archives, can't seem to find my answer.

this is in my /etc/init.d/qmail file:

#Starts qmail-send and qmail-l/rspawn etc.
csh -cf 'qmail-start ./Maildir/ splogger qmail &'

#Starts qmail-smtpd for incoming smtp connections.
/usr/local/bin/tcpserver -D -lcia.com.au -b30 -H -R -c100 -x/var/qmail/tcp.s
mtp.cdb -u71 -g65534 0 smtp
/var/qmail/bin/qmail-smtpd 2>&1 | /var/qmail/bin/splogger smtpd &

#Starts qmail-popup for incoming pop connections to maildirs.
/usr/local/bin/tcpserver -D -lcia.com.au -b40 -H -R -c100 0 pop3
/var/qmail/bin/qmail-popup virtual1.com
.au /work/bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir &

Question 1:

qmail-smtpd isn't logging. is this because i don't have a "recordio"
parameter there?

if this in the case.. piping it out through splogger is unnecessary correct?

Question 2:

I am getting a growing mail.log with presumably lots of qmail-send messages.
However, i specified a tag of "qmail" for splogger, but i am getting
"splogger" as the description in my mail.log file. Any ideas?

Regards,

Marc-Adrian Napoli
Connect Infobahn Australia
+61 2 92811750



Reply via email to