qmail Digest 28 Jul 1999 10:00:01 -0000 Issue 711
Topics (messages 28233 through 28252):
vchkpw + imap ?
28233 by: Kelvin Koh <[EMAIL PROTECTED]>
Problem with qmail and LDAP-Support
28234 by: Petros Stavrakakis <[EMAIL PROTECTED]>
28237 by: Andre Oppermann <[EMAIL PROTECTED]>
Aliases / Locals
28235 by: David ROBERT <[EMAIL PROTECTED]>
28248 by: Magnus Bodin <[EMAIL PROTECTED]>
*sigh* performance issues again. Please help!
28236 by: [EMAIL PROTECTED]
28239 by: Dave Sill <[EMAIL PROTECTED]>
28240 by: <[EMAIL PROTECTED]>
28241 by: [EMAIL PROTECTED]
28246 by: Dave Sill <[EMAIL PROTECTED]>
qmail-pop3d and Netscape
28238 by: Scott Moorhouse <[EMAIL PROTECTED]>
Virtual Domain Problems
28242 by: "Tony D'Andrade" <[EMAIL PROTECTED]>
28245 by: Jon Rust <[EMAIL PROTECTED]>
28251 by: Magnus Bodin <[EMAIL PROTECTED]>
Qmail and Virus Protection
28243 by: Daemeon Reiydelle <[EMAIL PROTECTED]>
28244 by: "Alex at Star" <[EMAIL PROTECTED]>
error 4.4.2 means network trouble
28247 by:
condredirect
28249 by: "Martin Searancke" <[EMAIL PROTECTED]>
28250 by: "Chris Garrigues" <[EMAIL PROTECTED]>
qmail and dns
28252 by: Simon Rae <[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]
----------------------------------------------------------------------
Hi,
I have tried vchkpw with POP3, and it works perfectly well. However, can
it work with IMAP flawlessly? If not, any other alternatives?
Thanks,
Kelvin Koh
[EMAIL PROTECTED]
-- 0 1 - just my 2 bits. --
Hi folks,
I'm new to this list and I have a problem which troubles me quite a while.
I've installed qmail on a SuSe-Linux-System with Kernel 2.2.10. I've
integrated the qmail-LDAP patch from http://www.nrg4u.com. It's working out
fine, with one little "bug".
Everytime I send a mail to a User who is not in the LDAP-Database the mail
to that user goes to Nirvana. Normally I think it would be right that that
mail is bounced to the sender. No way...
If the LDAP Database is down, the things are going the right way.. The mail
is bounced or relayed locally.
Do you had such problems?
Let me know..
With kind regards,
Petros Stavrakakis
Petros Stavrakakis wrote:
>
> Hi folks,
>
> I'm new to this list and I have a problem which troubles me quite a while.
> I've installed qmail on a SuSe-Linux-System with Kernel 2.2.10. I've
> integrated the qmail-LDAP patch from http://www.nrg4u.com. It's working out
> fine, with one little "bug".
> Everytime I send a mail to a User who is not in the LDAP-Database the mail
> to that user goes to Nirvana. Normally I think it would be right that that
> mail is bounced to the sender. No way...
> If the LDAP Database is down, the things are going the right way.. The mail
> is bounced or relayed locally.
>
> Do you had such problems?
>
> Let me know..
Why not ask this kind of questions on the qmail-ldap mailing list?
[EMAIL PROTECTED]
--
Andre
>> The problem is that I cannot get both things working together. Either
>> I set up a domain as "local" or as "virtualhost". My first aproach to
>> solve this is to configure all my domains as "virtualhost" and set up a
>> alias .qmail-host-user for every user in my system, but I think there's a
>> easier way to do this.
>
>Set the domain up as a virtual domain.
>
>In control/virtualdomains:
>
>example.com:someuser-example
>
>In ~someuser/.qmail-example-default:
>
>| forward ${DEFAULT}
I need the same thing but inversed :
I want all the mail sent to example.com to be delivered
via smtp :
smtproutes
-----------
example.com:mail.example.com
But I want qmail to look for alias .qmail-example-david to
post it localy. If it exist.
Do you have an idea ?
David ROBERT.
On Tue, 27 Jul 1999, David ROBERT wrote:
> >> The problem is that I cannot get both things working together. Either
> >> I set up a domain as "local" or as "virtualhost". My first aproach to
> >> solve this is to configure all my domains as "virtualhost" and set up a
> >> alias .qmail-host-user for every user in my system, but I think there's a
> >> easier way to do this.
> >
> >Set the domain up as a virtual domain.
> >
> >In control/virtualdomains:
> >
> >example.com:someuser-example
> >
> >In ~someuser/.qmail-example-default:
> >
> >| forward ${DEFAULT}
>
> I need the same thing but inversed :
>
> I want all the mail sent to example.com to be delivered
> via smtp :
> smtproutes
> -----------
> example.com:mail.example.com
>
> But I want qmail to look for alias .qmail-example-david to
> post it localy. If it exist.
Setup everything as above.
In ~someuser/.qmail-example-default:
| forward ${DEFAULT}@mail.example.com
No need for entry in smtproutes. If it is in your dns.
/magnus
--
"MOST USELESS site of the year 1998"
--> http://x42.com/urlcalc/
I don't know why or what's wrong, but I'll tell you what I'm seeing.
I have vanilla qmail, with the big todo patch installed and split boosted
up to 231. Smtp is receiving about 150,000 emails a day and it's taking
qmail about 24 hours to get through this amount of mail.
The group of people this mail list and mail server affects claims that
sendmail did this list in about 5 - 6 hours. I refuse to believe that
sendmail's performance in this can beat qmail. From my past I've seen
qmail handle this load with no problem.
I'm running out of options. I'd like to see qmail do well here, but
unless it starts really doing something major, I'll have to slap sendmail
back on there to make them happy. Please give me some magic.
Thanks
-jeremy
[EMAIL PROTECTED] wrote:
>
>I have vanilla qmail, with the big todo patch installed and split boosted
>up to 231. Smtp is receiving about 150,000 emails a day and it's taking
>qmail about 24 hours to get through this amount of mail.
>
>I'm running out of options. I'd like to see qmail do well here, but
>unless it starts really doing something major, I'll have to slap sendmail
>back on there to make them happy. Please give me some magic.
Make a potion from a lock of DJB's hair, a pinch of dolphin dust, and
dollop of bearing grease. Quaff the potion and chant the phrases
"omnia vincit qmail" and "qmail fugit".
If that fails, try installing and running qmailanalog. Post your
zoverall results, at least.
-Dave
Cool. I'll do both.
Thanks
-jeremy
> [EMAIL PROTECTED] wrote:
> >
> >I have vanilla qmail, with the big todo patch installed and split boosted
> >up to 231. Smtp is receiving about 150,000 emails a day and it's taking
> >qmail about 24 hours to get through this amount of mail.
> >
> >I'm running out of options. I'd like to see qmail do well here, but
> >unless it starts really doing something major, I'll have to slap sendmail
> >back on there to make them happy. Please give me some magic.
>
> Make a potion from a lock of DJB's hair, a pinch of dolphin dust, and
> dollop of bearing grease. Quaff the potion and chant the phrases
> "omnia vincit qmail" and "qmail fugit".
>
> If that fails, try installing and running qmailanalog. Post your
> zoverall results, at least.
>
> -Dave
>
http://www.xxedgexx.com | [EMAIL PROTECTED]
---------------------------------------------
Y2K. We're all gonna die.
Completed messages: 3580
Recipients for completed messages: 3580
Total delivery attempts for completed messages: 3580
Average delivery attempts per completed message: 1
Bytes in completed messages: 48327448
Bytes weighted by success: 48327448
Average message qtime (s): 3.49601
Total delivery attempts: 19568
success: 16806
failure: 2108
deferral: 654
Total ddelay (s): 87744.249823
Average ddelay per success (s): 5.221007
Total xdelay (s): 120875.501606
Average xdelay per delivery attempt (s): 6.177203
Time span (days): 0.28308
Average concurrency: 4.94215
Thanks
-jeremy
> On Tue, Jul 27, 1999 at 11:51:54AM -0400, [EMAIL PROTECTED] wrote:
> >
> > I don't know why or what's wrong, but I'll tell you what I'm seeing.
>
> OK, you have to do the following:
>
> 1) Install qmailanalog
> 2) Take your logs, and run them through matchup
> 3) Use the various z* scripts to figure out why your delivery is taking
> so horrendously long. Ask the list questions based on the problems
> as told to you by the logs (i.e. is qmail taking too much time on
> dns lookups, on a certian host, etc.).
>
> --
> The 5 year plan:
> In five years we'll make up another plan.
> Or just re-use this one.
>
>
http://www.xxedgexx.com | [EMAIL PROTECTED]
---------------------------------------------
Y2K. We're all gonna die.
[EMAIL PROTECTED] wrote:
>
>Completed messages: 3580
>Recipients for completed messages: 3580
>Total delivery attempts for completed messages: 3580
>Average delivery attempts per completed message: 1
>Bytes in completed messages: 48327448
>Bytes weighted by success: 48327448
>Average message qtime (s): 3.49601
>Total delivery attempts: 19568
> success: 16806
> failure: 2108
> deferral: 654
>Total ddelay (s): 87744.249823
>Average ddelay per success (s): 5.221007
>Total xdelay (s): 120875.501606
>Average xdelay per delivery attempt (s): 6.177203
>Time span (days): 0.28308
>Average concurrency: 4.94215
Hmm. Everything there looks pretty reasonable for a not-too-busy
system.
Was there a backlog of undelivered messages during this period?
Have you run the other qmailanalog scripts and looked at the output?
I think you need to trace qmail-send to see where it's spending its
time and why it isn't calling rspawn/lspawn faster.
Describe what the system is doing, mail wise. Is it sending to remote
users, receiving for local users, or what?
Are you running an ident server? Doing ident lookups on SMTP
connections? Is your name server fast? Do you have adequate bandwidth?
-Dave
After taking a look at qmail-pop3d.c, it looked easy to write a patch
to make Messenger's progress meter work again, so I took the initiative
to do so. The diff is so tiny (1 pg with context), I'll just include
it here for anybody to use.
Thanks for pointing me in the right direction.
*** qmail-pop3d.c.orig Tue Jul 27 11:07:33 1999
--- qmail-pop3d.c Tue Jul 27 10:50:39 1999
***************
*** 267,273 ****
fd = open_read(m[i].fn);
if (fd == -1) { err_nosuch(); return; }
! okay();
substdio_fdbuf(&ssmsg,read,fd,ssmsgbuf,sizeof(ssmsgbuf));
blast(&ssmsg,limit);
close(fd);
--- 267,277 ----
fd = open_read(m[i].fn);
if (fd == -1) { err_nosuch(); return; }
! /* okay(); */
! puts("+OK ");
! put(strnum,fmt_ulong(strnum,m[i].size));
! puts(" octets\r\n");
! flush();
substdio_fdbuf(&ssmsg,read,fd,ssmsgbuf,sizeof(ssmsgbuf));
blast(&ssmsg,limit);
close(fd);
On Tue, Jul 27, 1999 at 09:29:34AM +0300, Anand Buddhdev wrote:
> On Mon, Jul 26, 1999 at 09:04:09AM -0500, Scott Moorhouse wrote:
>
> I believe this is a Netscape problem. It doesn't use the message size
> value from the LIST command, but instead expects the message size to be
> given after the OK to the RETR command, like this:
>
> ...
> RETR 1
> +OK 345 octets
[...]
Hi. I am trying to get [EMAIL PROTECTED] to alias to [EMAIL PROTECTED]
'fred' is a real account on our system.
In:
/var/qmail/control/rcpthosts
I have:
mydomain.com
In:
/var/qmail/control/virtualdomains
I have:
mydomain.com:fred
In ~fred I have:
.qmail-info
This contains:
&[EMAIL PROTECTED]
None of this works. When I take mydomain.com:fred out of virtualdomains
then I can mail [EMAIL PROTECTED] and he receives mail. Can anyone tell
me what I am missing ?
thanks in advance !!
-td
I'm still new to qmail myself, but one thing definitely seems wrong to me:
At 3:40 PM -0400 7/27/99, Tony D'Andrade wrote:
>Hi. I am trying to get [EMAIL PROTECTED] to alias to [EMAIL PROTECTED]
>'fred' is a real account on our system.
>
>In:
> /var/qmail/control/rcpthosts
>I have:
> mydomain.com
>
>In:
> /var/qmail/control/virtualdomains
>I have:
> mydomain.com:fred
My understanding is that this causes any mail addressed to
[EMAIL PROTECTED] to be turned into fred-user and delivery will
proceed as normal (local, assign, etc). I would change this to
mydomain.com:
And the in ~qmail/users/assign I'd include the line
=info:fred:1000:1000:/usr/home/fred:::
Of course replacing 1000:1000 with the appropriate uid:gid.
HTH,
jon
>In ~fred I have:
> .qmail-info
>
>This contains:
> &[EMAIL PROTECTED]
>
>None of this works. When I take mydomain.com:fred out of virtualdomains
>then I can mail [EMAIL PROTECTED] and he receives mail. Can anyone tell
>me what I am missing ?
>
>thanks in advance !!
>
>-td
On Tue, 27 Jul 1999, Tony D'Andrade wrote:
>
> Hi. I am trying to get [EMAIL PROTECTED] to alias to [EMAIL PROTECTED]
> 'fred' is a real account on our system.
Then choose to have the domain as local instead:
put mydomain.com
in both rcpthosts, locals BUT NOT in virtualdomains.
Then create .qmail-info in the ~alias directory in where you put
&[EMAIL PROTECTED]
In the long run however it's almost always most practical to distinguish
between domain mail and host mail. I rather keep mail receiving for the
host, e.g. "mailhost.mydomain.com" in locals and rcpthost. You can
still choose to have other domains local, but it is very clear what will
happen when you forward to [EMAIL PROTECTED] and you can always
masquerade this on outgoing mails if you are worried about subhost
mailadresses to be leaking out.
/magnus
--
"MOST USELESS site of the year 1998"
--> http://x42.com/urlcalc/
Do you expand the MIME/64's, scan, then delete the offending (e.g. MIME)
attachment? I am very interested in such filtering at the mail gateway
into a system. Any known tools (product, GPL, or otherwise) that could
be convinced to work with QMail?
Alex at Star wrote:
>
> >Essentially, I don't believe that anyone is actually running anything
> >like this at this point in time.
> Apart from Star Internet, of course. We have been scanning all email since November.
> See our Stats page at http://academy.star.co.uk/public/virustats.htm for the current
>top 10 email viruses.
>
> >Write a qmail-queue wrapper which reads in the email as normal,
> > sweeps it using an external virus sweeper, if clean passes it to
> > the real qmail-queue.
> Probably your current best bet. For safety, you should use more than one virus
>scanner (we use three). Each month, we find that some scanners miss some viruses, and
>other scanners miss others. Expect to take up to 10 times longer to process your mail
>than before, and upgrade your hardware appropriately. Expect your helpdesk to be
>swamped with calls about viruses and train them appropriately! If you don't catch 1
>virus per 2000 emails, you are doing something wrong (or your clients are remarkably
>virus free!)
>
> Good luck!
>
> Alex
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Alex Shipp
> Imagineer
> St@r Internet
> E - [EMAIL PROTECTED]
> T - 01285 884496
> F - 01285 887013
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> ________________________________________________________________________________
> This message has been checked for all known viruses by the Star Screening System
> http://academy.star.co.uk/public/virustats.htm
--
Daemeon Reiydelle
Systems Engineer, Anthropomorphics Inc.
[EMAIL PROTECTED]
>Do you expand the MIME/64's, scan, then delete the offending (e.g. MIME)
>attachment? I am very interested in such filtering at the mail gateway
>into a system.
We break out and decode all the attachments, then scan. If the mail contains
a virus, we move it into a secure pen (just in case it holds the worlds most important
purchase order), then notify the sender and recipients that their mail is held.
>Any known tools (product, GPL, or otherwise) that could
>be convinced to work with QMail?
We use our own code, but I have heard good things about Amavis on this list. It might
be worth a deeper look.
________________________________________________________________________________
This message has been checked for all known viruses by the Star Screening System
http://academy.star.co.uk/public/virustats.htm
Some may find this useful.
"Connected_to_XXX.X.X.XX_but_connection_died._(#4.4.2)/"
This is likely network trouble, not qmail trouble.
The qmail error message gives the clue, but if you were running
sendmail, you'd see:
"stat=I/O error: Input/output error".
The comp.mail.sendmail post stated, "Conclusion: Postmasters, if you
have 'I/O error' messages in your log files, you have better to look
at your network connections."
Here's my recent case in point.
When sending attachments, I saw the following qmail error:
May 17 11:14:47 faxsrv qmail: 926957687.186266 delivery 2174:
deferral: Connected_to_164.4.9.22_but_connection_died._(#4.4.2)/
The analagous sendmail error is:
Mar 16 16:24:37 mail sendmail[28019]: MAA23459:
to=<[EMAIL PROTECTED]>, ctladdr=<[EMAIL PROTECTED]>
(9882/100), delay=03:44:32, xdelay=00:00:00, mailer=esmtp,
relay=mailone.trux.com., stat=I/O error: Input/output error
Although I could telnet to port 25 on mailone.abc123xyz.com, I still
saw I/O errors when sending attachments.
All kinds of heat was generated with different tests. Attachments were
encoded in various ways, the remote server was upgraded to Sendmail
Pro, tickets were opened with network providers, etc.
To the best of my knowledge, here's a summary of the solution.
Abc123xyz was running a "packet shaper" (They had purchased it as a
hardware device.) on their network. There are two T-1 lines going to
Abc123xyz's mail server's network and the packet shaper is connected
across both T-1 pipes (call them Pipe 1 and Pipe 2). It's purpose is
to distinguish among different types of IP traffic and selectively
throttle bandwidth. For example, if someone is eating bandwidth with
video conferencing, the packet shaper can specifically limit bandwidth
for video conferencing.
Mail from FWI to Abc123xyz is routed through Pipe 1. Mail from
AnotherISP to Dana is routed through Pipe 2. (AnotherISP is able to
send mail attachments to Abc123xyz.) Pipe 1 is running at approx 80%
capacity while Pipe 2 is not heavily loaded. The packet shaper somehow
caused data transmission problems on Pipe 1 that were much less or
nonexistent on Pipe 2. When the packet shaper was turned off, data
transmission problems on Pipe 1 went away and we were successfully
able to send email attachments to Abc123xyz.
- - - - - - - - - - - - - - - - - - - - - - -
Peeter Pirn, Sys Admin, FWI Internet, 219-426-7701 x17
Im wanting to redirect EMail sent to an alias based on the senders country
part of the email address. I have used the condredirect before for other
stuff and thought this would work in this case but there is not the
environment variable I want.
e.g. If someone sends an email to [EMAIL PROTECTED] I want a different
recipient if the senders address ends in .au than if it was .nz.
There is the $HOST for the address the email was sent to, and $HOST2 etc for
the different sections of the receiving address but I can only get the
complete address of the sender not the country section only.
Can anyone thin of a way around this?
Thanks
Martin
Martin Searancke
CommSoft Group Ltd.
Level 6, 90 Symonds St
Auckland, New Zealand
[EMAIL PROTECTED]
+64 21 778592
> From: "Martin Searancke" <[EMAIL PROTECTED]>
> Date: Wed, 28 Jul 1999 11:23:18 +1000
>
> Im wanting to redirect EMail sent to an alias based on the senders country
> part of the email address. I have used the condredirect before for other
> stuff and thought this would work in this case but there is not the
> environment variable I want.
> e.g. If someone sends an email to [EMAIL PROTECTED] I want a different
> recipient if the senders address ends in .au than if it was .nz.
>
> There is the $HOST for the address the email was sent to, and $HOST2 etc fo
> r
> the different sections of the receiving address but I can only get the
> complete address of the sender not the country section only.
>
> Can anyone thin of a way around this?
I've got a script which you can probably adapt easily for these purposes.
A fine example of a script with more documentation than code.
Chris
#!/usr/local/bin/perl -w
# Quick hack for sorting incoming mail.
#
# By Chris Garrigues 27-Feb-98
#
# Put this in your .qmail file:
#
# |sortonsender myname-sorted
#
# and mail from various sources will be dropped in different inboxes depending
# on where the mail came from. This mail can be caught at the appropriate
# level, for example, with the following files:
#
# .qmail-sorted-default
# .qmail-sorted-edu-uic-default
# .qmail-sorted-edu-uic-math-koobera-djb-default
# .qmail-sorted-edu-uic-math-koobera-djb-qmail
# .qmail-sorted-edu-uic-math-koobera-djb-ezmlm
#
# Mail from the qmail list would by handled by the 4th file, from the ezmlm
# list into the 5th file, from Dan into the 3rd file, anyone else at UIC into
# the 2nd file, and the rest of us into the first file.
#
$prefix = $ARGV[0];
$sender = $ENV{SENDER};
$sendto = join('-', $prefix, reverse(split(/[@.]/, $sender))) . "\@$ENV{HOST}";
print STDERR "Forwarding mail from $sender to $sendto\n";
exec('forward', $sendto);
Chris Garrigues virCIO
http://www.DeepEddy.Com/~cwg/ http://www.virCIO.Com
+1 512 432 4046 +1 512 374 0500
4314 Avenue C
O- Austin, TX 78751-3709
My email address is an experiment in SPAM elimination. For an
explanation of what we're doing, see http://www.DeepEddy.Com/tms.html
Nobody ever got fired for buying Microsoft,
but they could get fired for relying on Microsoft.
PGP signature
Out of curiosity, can anyone tell me of a site or explain to me how
qmail handles DNS queries. Is it the case that even if a DNS lookup
returns the IP address of the recipient MX, if that host is down, qmail
returns the message with a 5.1.2 ,or is this the case when the address
points to an actual host rather than a domain??
Si
begin:vcard
n:Rae;Simon
tel;work:0141 885 7577
x-mozilla-html:FALSE
url:www.howden.com
org:Howden Group Ltd
version:2.1
email;internet:[EMAIL PROTECTED]
title:IT Manager
adr;quoted-printable:;;Old Govan Rd=0D=0A;Renfrew;;PA4 8XJ;UK
fn:Simon Rae
end:vcard