qmail Digest 8 Jun 2000 10:00:01 -0000 Issue 1026

Topics (messages 42824 through 42876):

Re: Suggestion for mailing list manager?
        42824 by: clemensF
        42825 by: clemensF

dot-qmail extensions ...
        42826 by: mwangu
        42827 by: Ondrej Sury
        42834 by: Russell Nelson

Re: thousands of qmail-queue processes hanging...
        42828 by: TAG
        42865 by: TAG

Re: pop3 / tcpserver problems
        42829 by: clemensF

Re: tcpserver: unable to bind
        42830 by: Luca Zancan
        42857 by: clemensF

Re: server load problem
        42831 by: Greg Owen
        42837 by: kapil sharma
        42844 by: Greg Owen

Re: Does someone knows what is this about?
        42832 by: Russell Nelson

another set of q's
        42833 by: Judy Simon

Script Required
        42835 by: System Administrator
        42839 by: Erwin Hoffmann
        42854 by: Noel Mistula

Re: Setting default domain for outgoing mail on a per user basis
        42836 by: Russell Nelson

Re: qmail-ldap error message!!
        42838 by: Patrick Ohiomoba

Re: qmail+maildrop+amavis
        42840 by: Rainer Link
        42841 by: Nuno Ferreira
        42843 by: Paul Schinder
        42850 by: Chris Johnson

Can it be done 2 ...
        42842 by: Guillermo Villasana Cardoza

take II: another set of q's
        42845 by: Judy Simon

Re: Ok, I'm an idiot...
        42846 by: VANTASSLE, GEORDON M. (AIT)

qmailanalog and multilog
        42847 by: Ken Jones
        42848 by: Ronny Haryanto
        42864 by: Russell Nelson

Duplicates
        42849 by: Flemming Funch

group email information
        42851 by: Bill Parker
        42852 by: Chris Johnson

Re: Anybody got the RPM for Qmail, pease send me <eom>
        42853 by: Kapil Nanda

Re: Why not inetd?
        42855 by: Peter Samuel

inetd messages from qmail-popup in syslog
        42856 by: duncan

Re: Web Tool for qmail
        42858 by: List

Re: Relaying to different hosts
        42859 by: Chris Johnson

Virtual Domains and MX Records
        42860 by: Andy Coates
        42861 by: Chris Johnson
        42862 by: Andy Coates

sqwebmail with local accounts
        42863 by: John Stile
        42867 by: Flemming Funch

msglog feature
        42866 by: Ralf Weber

dot-qmail problem with hotmail
        42868 by: Orion

Strange problem
        42869 by: Tore Micaelsen
        42870 by: Frank Tegtmeyer

www.ezmlm.org
        42871 by: mwangu
        42876 by: Magnus Bodin

vpopmail vs. qpopper
        42872 by: Jens Georg
        42873 by: Irwan Hadi
        42875 by: Irwan Hadi

Re:Re:Strange problem
        42874 by: Tore Micaelsen

Administrivia:

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To bug my human owner, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


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


> > * GNU Mailman: looks superswell, but I'd rather not have to learn python
> 
> WHAT'S WRONG WITH LEARNING PYTHON????

yeah!  i hate it, too!

clemens




> Russ Allbery:

> > WHAT'S WRONG WITH LEARNING PYTHON????
> 
> It's annoying?  :)

and dots-in-names dont make oo!

clemens





Dear all,

I have been trawling through all the docs I can find
trying to find the
answer to the question:

When I am using dot-qmail extension files to process
mail through a
script, is there any way to view the output produced
by the scripts 
when
they process an e-mail?

I desperately need to find the answer to this question
so I can 
complete
an upgrade for a system which has recently come into
my care.

Appreciatively,

M

__________________________________________________
Do You Yahoo!?
Yahoo! Photos -- now, 100 FREE prints!
http://photos.yahoo.com




mwangu wrote:
> 
> Dear all,
> 
> I have been trawling through all the docs I can find
> trying to find the
> answer to the question:
> 
> When I am using dot-qmail extension files to process
> mail through a
> script, is there any way to view the output produced
> by the scripts
> when
> they process an e-mail?
> 
> I desperately need to find the answer to this question
> so I can
> complete
> an upgrade for a system which has recently come into
> my care.
> 
> Appreciatively,

.qmail-anything
|program >tmp/qmail-anything.log 2>&1

is not sufficient?

-- 
Ondřej Surý <[EMAIL PROTECTED]> Globe Internet s.r.o. http://globe.cz/
Tel: +420235365000 Fax: +420235365009  Pláničkova 1, 162 00 Praha 6
Mob: +420602667702 ICQ: 24944126      Mapa: http://globe.namape.cz/
Involvement with people is always a very delicate thing --
it requires real maturity to become involved and not get all messed up.
                -- Bernard Cooke




mwangu writes:
 > When I am using dot-qmail extension files to process mail through a
 > script, is there any way to view the output produced by the scripts
 > when they process an e-mail?

Anything sent by a program delivery to stdout or stderr ends up in the
log file.

-- 
-russ nelson <[EMAIL PROTECTED]>  http://russnelson.com
Crynwr sells support for free software  | PGPok | "Ask not what your country
521 Pleasant Valley Rd. | +1 315 268 1925 voice | can force other people to
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | do for you..."  -Perry M.




Hi,

I had the same problem - it is Solaris 7 - it has a OS bug that keeps
the qmail-smtpd and qmail-queue processes hanging around indefinatly -
(well almost ) and this eats up memory and slows everything down - A
major pain :))

TO FIX - you cannot just upgrade to solaris 8 - you need to re-install
from scratch - I have tried the recommended patches and it does not work
- I have tried the upgrade and still does not work.

Trust me - from scratch is the only way - major pain - :)))

If you have more questions  - please mail me - I have experience with
solaris and qmail 9limited I must admit - but some none the less).

Regards
Tonino


bjv wrote:
> 
> Hello all,
> 
> I am running qmail1.03 on SunOS5.7 single processor, single disk
> machine. This is an incoming qmail box that processes around 75,000
> messages a day. It does no local delivery, it simply relays all mail to a
> certain host with a line like the following in smtproutes:
> 
> :host.domain
> 
> What has started to happen today is that receiving mail is slow, between
> the '.' and 'ok' from qmail (got that from telnet to port 25). Even slower
> is its sending, which is about a message every 5 or 10 seconds. The other
> noticable problem is that there are thousands of qmail-queue processes
> running concurrently in the process table. Most of the processes are
> fairly recent (started within the last couple of minutes), but some are
> several hours old. Here is a sample of ps -ef:
> 
>   qmailq 20471     1  0 15:51:29 ?        0:00 bin/qmail-queue
>   qmailq 19623     1  0 15:51:10 ?        0:00 bin/qmail-queue
>   qmailq 20899     1  0 15:51:40 ?        0:00 bin/qmail-queue
>   qmailq 21515     1  0 15:51:54 ?        0:00 bin/qmail-queue
>   qmailq 17269     1  0 15:50:17 ?        0:00 bin/qmail-queue
>   qmailq 19408 19385  0 15:51:06 ?        0:00 bin/qmail-queue
> 
> There a thousands of these processes, and as you can see, some of them
> have init as a parent, and some have an actual qmail-smtpd.
> 
> The queue is growing on this incoming mail server because it is sending
> mail so infrequently/slowly.
> 
> Can somebody please give me some advice on where to start.
> 
> Oh, iostat looks like this:
> 
>                               extended device statistics
>   r/s  w/s   kr/s   kw/s wait actv wsvc_t asvc_t  %w  %b device
>   0.0  0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0 c0t0d0s0
>   0.0  0.2    0.0    1.3  0.0  0.1    0.0  311.2   0   5 c0t0d0s1
>   0.0  0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0 c0t0d0s2
>   0.0  0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0 c0t0d0s3
>   1.3 209.8   12.5 1281.9  0.0  6.3    0.0   29.6   0  99 c0t0d0s4
>   0.0  0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0 c0t0d0s6
>   0.0  0.1    0.0    0.4  0.0  0.1    0.0  628.6   0   5 c0t0d0s7
>   0.0  0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0
> cobalt:vold(pid207)
> 
> s4 is mounted as /var/qmail. Obviously pretty busy 99%! I think this 99%
> busy is a result of these qmail-queue porcess, however I am hesitant to
> believe that this problem is as simple as the disk is maxing out and thus
> the hanging qmail-queue porcesses. Especially because this box has been
> able to handle the load thus far, and I do not detect any new extremely
> large influx of mail.
> 
> I would be tremendously grateful for any advice tackling this problem.
> 
> Brandon




Hi,


bjv wrote:
> We are having serious issues with this problem, and I am desperate to find
> a solution.
> 
> Is there any documentation of this problem with qmail1.03 and Solaris 7?

The only documentation I could find is from the mailing list archives -
other people have had problems - serious ones - I had them as well. 
Some of the others have tried the ecommened patch set for solaris 7 and
have had some success - but I have tried everything (well almost) and
the only thing that has worked is a complete re-install with solaris 8.
> 
> Did yu find any documents on the web substantiating this as a 'known
> problem'?
> 
As I said the guys at Sun will not own up - so to speak, but they say -
unofficially - that there "might be something there"

> I really appreciate your help, I just cannot make a decision to move to
> Solaris 8 on our qmail boxes based on one response.
> 
> Thanks you very much for your help. If this is indeed the problem I would
> be so grateful for your help identifying it as such.

I know what you mean - it took me printing lotsa pages just to get
management to see things as they are.

A little background:

qmail 1.03 running on a pentium 166MMX with 64MB ram and a 2GB HDD
runnnign redhat 6.2 - being hit by postal with about 3000 - 6000
concurrent SMTP connections - drops about 15% of the connections. and
after the onslaught - clears all the smtp and queue processes.

A Enterprise 250 with 512MB ram 2 300Mhz CPU's and 50GB HDD running
solaris 7 - running the same postal paramaters - chewed up all the ram
and droped 90% of smtp connections after 1 hour!!!!!

After re-install of Solaris 8 - same setup as before the sparc machine
handled 30000 concurrent smtp connections and droped 10% of them.  after
the onslaught it cleared all the smtp and queue processes cleanly...  it
also used only 300MB of ram!!!

I converted the E450 and 4500 sparc machines and performance went thru
the roof!!!

I have done extensive testing - and also installed Iain Patersons mysql
patch - which improved things even more (after a few hassels :))  


I can try and find the docs and papaerwork - but try searching on the
mailling list archive for sparc7 and process hanging...

Best of luck
Tonino




> Petr Novotny:

> > pop3                110/udp    #Post Office Protocol - Version 3
> > pop-3               110/udp    #Post Office Protocol - Version 3 for qmail :)
> 
> Ouch! Since when can pop3 run over udp? 110/tcp lines are just 
> enough.

about as ouch than all the other entries.  iana used to allocate numbers for
udp and tcp, stop, ende, no discussion.  please don't blame me, i was so
tiny back then...

clemens




What should I verify???
I've also removed sendmail with "rpm --nodep -e sendmail".
Thank you again,
Luca

clemensF wrote:

> > Luca Zancan:
>
> > "tcpserver: fatal error: unable to bind: port already in use", or
>
> usually it's one & too many.  at least two servers in the field.
>
> clemens

--
__________________________________________________

Luca Zancan
Logica S.r.l.
e-mail [EMAIL PROTECTED]
URL http://www.logicaonline.com
__________________________________________________







> Luca Zancan:

> What should I verify???

you have set up qmail somehow, so there is a line w.r.t. qmail in your
start up files.  you must have started two server processes, usually due to
a commandline ending in '&' where it shouldn't.

clemens




> We are using a web based software developed by our
> company for proving web based email service. Now
> there are about 24000 users on our server. It is
> giving problems: 

> 1: server gets hanged up. 

        Define "hanged up."  You get a kernel oops?  System doesn't oops but
stops responding to network and keyboard input?  System won't respond to
control-alt-delete?

> 2: CPU utilization id very high 

        Great.  Who's using it?  Use 'top', 'ps', or whatever your favorite
tool is to track heavy processor users. 

> 3: RAM is being used too much. 

        Great.  Who's using it?  Use 'top', 'ps', or whatever your favorite
tool is to track memory hogs. 

        I think you will find that, unless it is misconfigured (e.g. the
startup script is starting qmail over and over again) that qmail isn't
responsible for high CPU or high RAM.

> I need a help to do memory management as well as to
> configure qmail for very heavy loads. 

        You need to find out who is using all that memory and CPU, and
either fix it or decide you need to add processor and memory.  Once you've
got spare capacity on the machine, you should modify your concurrencyremote
setting and your allowed concurrent incoming connections (tcpserver -cN
where N is the max incoming concurrent connections) so that they can use the
capacity.  But I recommend fixing your CPU/RAM problems first.

--
      gowen -- Greg Owen -- [EMAIL PROTECTED]





I found out from top that mysqld is taking most of the cpu utilization. Now how to customize it?
Server is hanging up and it won't respond to ctrl-alt-del
 

kapil
Greg Owen wrote:

> We are using a web based software developed by our
> company for proving web based email service. Now
> there are about 24000 users on our server. It is
> giving problems:

> 1: server gets hanged up.

        Define "hanged up."  You get a kernel oops?  System doesn't oops but
stops responding to network and keyboard input?  System won't respond to
control-alt-delete?

> 2: CPU utilization id very high

        Great.  Who's using it?  Use 'top', 'ps', or whatever your favorite
tool is to track heavy processor users.

> 3: RAM is being used too much.

        Great.  Who's using it?  Use 'top', 'ps', or whatever your favorite
tool is to track memory hogs.

        I think you will find that, unless it is misconfigured (e.g. the
startup script is starting qmail over and over again) that qmail isn't
responsible for high CPU or high RAM.

> I need a help to do memory management as well as to
> configure qmail for very heavy loads.

        You need to find out who is using all that memory and CPU, and
either fix it or decide you need to add processor and memory.  Once you've
got spare capacity on the machine, you should modify your concurrencyremote
setting and your allowed concurrent incoming connections (tcpserver -cN
where N is the max incoming concurrent connections) so that they can use the
capacity.  But I recommend fixing your CPU/RAM problems first.

--
      gowen -- Greg Owen -- [EMAIL PROTECTED]

-- 
Kapil Sharma
DSF Internet Services Pvt. Ltd.
[EMAIL PROTECTED]
http://www.dsfinternet.com
 



> I found out from top that mysqld is taking most of the
> cpu utilization. Now how to customize it? 

        That's a better question for a MySQL list.  The problem can fall
into one of three categories:

1) MySQL itself has a bug which is being exercised and which needs fixing
2) Your company's code is inefficiently using MySQL and should be optimized
3) MySQL is fine, your code is fine, you just need more server for 24000
users

        You'll need to find a MySQL resource that can help you with those
questions.  This list isn't it.

> Server is hanging up and it won't respond to ctrl-alt-del 

        I would definitely raise that on a MySQL list.  I have never seen a
server with MySQL hit that failure mode, but my MySQL server experience was
with much smaller installations.  There are probably MySQL diagnostics and
logs which can help you figure out why things are getting that bad.

--
      gowen -- Greg Owen -- [EMAIL PROTECTED]




Peter van Dijk writes:
 > ORBS does not list a machine until it has received a relayed test
 > message.

Then why does Alan suggest that qmail is an open relay by default
simply because its smtp server accepts more mail than it will deliver?
Why would he care?

-- 
-russ nelson <[EMAIL PROTECTED]>  http://russnelson.com
Crynwr sells support for free software  | PGPok | "Ask not what your country
521 Pleasant Valley Rd. | +1 315 268 1925 voice | can force other people to
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | do for you..."  -Perry M.




Hello all,

Now that I have restored some order to my qmail system with the 
SIGHUP command (again THANKs to all who helped on that one...) I 
would like to know if it is possible to recover/deliver all the 
messages that are sitting in the bounced directory. Is there anyway 
of retrieving who tried to send to whom so I could do some sort of 
nice forwarded of those bounced emails to their intended recipients?

also, in what directory will i find this mail-log file for the error 
messages that have accumulated - i'm sure that there are many during 
that 2 day period...

finally, is anyone familiar with this error message -BTW is there a 
listing of all qmail error messages and their causes somewhere?

Failed to deliver to '[EMAIL PROTECTED]'
SMTP module(domain tap.co.il) reports:
  DNS Loop: MX-record mail.brainlink.com points back to us

thanks to all!
judy
-- 
Judy Simon
=====================
J-Town Productionsm, LTD
Jerusalem, Israel




Hi

can anyone mailme the script to be injected for blocking iloveyou virus ?
 i need it very urgently.

Parag Mehta                        <[EMAIL PROTECTED]>
System Administrator.
Puretech Internet Pvt. Ltd.        http://puretech.co.in/ 
77 Atlanta. Nariman Point.
Mumbai - 400021. India.            Tel: +91-22-2833158          
============================================================
Support is now available thru our Web Based Support System.
http://support.puretech.co.in
============================================================







Hi 

I picked up the small skript "checkattach" from Noel G. Mistula and
modified to do "Subject:" type filtering.

Do the following:

1. Install the script in /usr/local/bin.
2. chmod +x checksubj
3. Add this skript into your user's .qmail files and - if applicable - into 
/var/qmail/alias/.qmail-default (first line:)

|/usr/local/bin/checksubj
~/Maildir/

etc.

4. Modify the subject text fields in "checksubj" to your needs, eg. add
"|*insurance*". The script evaluates the string case sensitive! It allows
wildcards, but be carefull!

5. The sender becomes the E-Mail bounced.
6. You can watch the results (and test the script) viewing your Maillog.

cheers.
eh.
#!/bin/sh
#
# qmail -- checksubj
# Author: Dr. Erwin Hoffmann - FEHCom
# Date: 2000-06-02
# Version: 0.1
#

# I use this in a user's .qmail file
# by adding the line
# |/usr/local/bin/checksubj
# before the ./Maildir/
#
printsubj () {
 echo "Your E-Mail was rejected is because it contained a Subject like: $SUBJECTLINE."
 echo "Sorry, we don't accept those E-Mails."
}

checksubject () {
 case $SUBJECTLINE in
  I-LOVE-YOU|ASSURANCE) 
   printsubj $SUBJECTLINE
   exit 100;;
  *)
   ;;
  esac
}

SUBJECT=`(grep "Subject: " | awk -F: '{print $2}')`
for SUBJECTLINE in $SUBJECT
do 
 checksubject $SUBJECTLINE
done

exit 0

+-----------------------------------------------------------------------+
|  fff        hh         http://www.fehcom.de        Dr. Erwin Hoffmann |
| ff          hh                                                        |
| ff    eee   hhhh      ccc   ooo    mm mm  mm       Wiener Weg 8       |
| fff  ee ee  hh  hh   cc   oo   oo  mmm  mm  mm     50858 Koeln        |
| ff  ee eee  hh  hh  cc   oo     oo mm   mm  mm                        |
| ff  eee     hh  hh   cc   oo   oo  mm   mm  mm     Tel 0221 484 4923  |
| ff   eeee   hh  hh    ccc   ooo    mm   mm  mm     Fax 0221 484 4924  |
+-----------------------------------------------------------------------+




Hi qmailers,

Attached is the modified version of my checkattach script.
This time it will check filenames like THIS.IS.A.VBS.VIRUS.txt.vbs
If you have comments please let me know.

cheers

Noel Mistula

-----Original Message-----
From: Erwin Hoffmann <[EMAIL PROTECTED]>
To: System Administrator <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Thursday, 8 June 2000 5:32
Subject: Re: Script Required


>Hi
>
>I picked up the small skript "checkattach" from Noel G. Mistula and
>modified to do "Subject:" type filtering.
>
>Do the following:
>
>1. Install the script in /usr/local/bin.
>2. chmod +x checksubj
>3. Add this skript into your user's .qmail files and - if applicable - into
>/var/qmail/alias/.qmail-default (first line:)
>
>|/usr/local/bin/checksubj
>~/Maildir/
>
>etc.
>
>4. Modify the subject text fields in "checksubj" to your needs, eg. add
>"|*insurance*". The script evaluates the string case sensitive! It allows
>wildcards, but be carefull!
>
>5. The sender becomes the E-Mail bounced.
>6. You can watch the results (and test the script) viewing your Maillog.
>
>cheers.
>eh.
>
#!/bin/bash
#
# qmail -- checkattach
# Author: Noel G. Mistula <[EMAIL PROTECTED]>
# Date: 28 June 1999 Version: 0.1
# I appreciate any comment to this quick and dirty way of filtering attachment. 
#
# Modified: 7 July 1999 Version: 0.3
# Modified: 7 May 2000 Version: 0.4

# This is release under the GNU/GPL.
# This is a very crude program. Use at your own risk.
# This will bounce incoming email with executable,
# video and other attachments. Just remove/add 
# whichever filetype (e.g. EXE, AVI, COM) is required.
#
# I use this in a user's .qmail file
# by adding the line
# |/usr/local/bin/checkattach
# before the ./Maildir/
#
# Make sure to chmod 555 /usr/local/bin/checkattach
# so that qmail users can execute it.

# Start program here.
### This part is the new version (ver. 0.3)
printmsg () {
        echo "The reason your email was rejected is you sent an attachment that can 
cause problems."
        echo "Sorry, the attachment you sent is in violation of our company's policy 
because it can cause problems like virus, or increase traffic load, or delete file(s) 
and/or among others."
        echo "Please disable HTML formatting when sending email because Visual Basic 
Script Worms/Virus normally exploits this."
        echo "--- Attachment filetype you sent is $ATTYPE"
}

#
# Check for NOT allowed attachment.
# Here you can include more filetype you want.
#
checktype () {
        case $ATTYPE in
                VBS | VBE | JSE | CSS | WSH | SCT | HTA | VXD | EXE | HTM | DOT | HLP 
| PAK | DAT | PCX | PPS | COM | BAT | CMD | AVI | MOV | RAM | OCX | CAB | SHS | CLA | 
RA | BMP | MPE | MPG | MP3 | MP4 | WAV | AUD | AU | DLL)
                        printmsg $ATTYPE
                        exit 100;;
                *)
                        ;;
        esac
}

#ATTACHTYPE=`grep "filename=" - | gawk '{split($NF, results, "."); 
r=toupper(results[2]); print r}' | cut -c -3`
####Below doesn't work if more than 2 fields in name=
#ATTACHTYPE=`grep "name=" - | gawk '{split($NF, results, "."); r=toupper(results[3]); 
print r}' | cut -c -3`
#### End of ver. 0.3

####Below works OK
## This part is recently modified (7may2000) because I noticed that the gawk part in 
the
## ATTACHTYPE above, doesn't properly check when you have a filename like
## THIS.IS.A.VBS.VIRUS.txt.vbs
## The ATTACHTYPE below resolves this problem ;).
ATTACHTYPE=`grep "name=" - | gawk 'BEGIN {FS="."}; {print toupper($NF)}' | cut -c -3`
for ATTYPE in $ATTACHTYPE
do
        checktype $ATTYPE
done
#### End of ver. 0.4

exit 0





[EMAIL PROTECTED] writes:
 > I am running qmail on a Linux box with a default domain of "default.com" and
 > a virtual domain of "virtual.com".  I have set up the users in
 > "control/virtualhosts" and they receive mail correctly for the virtual
 > domain.  My question is, when a user that exists on the virtual domain
 > "virtual.com" and they ssh into my box, is there a way for qmail to tag the
 > outgoing email for that user to say it came from "virtual.com" and not the
 > default domain "default.com"?  Basically this is a question of outgoing
 > email originating from the box itself, because I know this is configurable
 > in a POP3/IMAP client.  I don't want to use a .pinerc or .muttrc file if I
 > don't have to.  Any help would be greatly appreciated.

You might be able to set environment variables to convince
qmail-inject to default or rewrite the From: address.

-- 
-russ nelson <[EMAIL PROTECTED]>  http://russnelson.com
Crynwr sells support for free software  | PGPok | "Ask not what your country
521 Pleasant Valley Rd. | +1 315 268 1925 voice | can force other people to
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | do for you..."  -Perry M.




What's the famous #204 bug in qmail-pop3d.c

Patrick





Nuno Ferreira wrote:

[cut]

> Also I can't seem to get any info on getting amavis working with Qmail. All
> the their document says it's ''... integrated due to contribution ...
> remains untested"

Sorry for late reply - I was out of the office for some days and busy
with other stuff than reading eMails. 

Please see http://dev.amavis.org/ or checkout the latest sources from
our CVS server at sourceforge.net

If you have any further questions, please feel free to contact me/us
directly.

HTH

best regards,
Rainer Link
-- 
Rainer Link  | Member of Virus Help Munich (www.vhm.haitec.de)           
[EMAIL PROTECTED] | Member of AMaViS Development Team (dev.amavis.org)        
rainer.w3.to | Maintainer FAQ "antivirus for Linux" (av-linux.w3.to)





Thanks,

Meanwhile I was able to get it working.

However, I still am unable to make maildrop work with QMail.
I have installed maildrop-0.76b, I have

the following in ~/.qmail
./Maildir/
| /var/qmail/bin/preline /usr/local/bin/maildrop

and the folowing in ~/.mailfilter
DEFAULT="./Maildir/"
if ( /^(To|Cc|From|Reply-To): *@hotmail.com*/ )
{
   to [EMAIL PROTECTED]
}

I think maildrop is being called correctly, because I had a permission
problem that appeared in the logs and now it stopped appearing.
However, with this configuration, I [EMAIL PROTECTED] never gets any
message coming to me from hotmail.com.
Maybe there's something wrong with the "if", but I can't see it. Furthermore
I think that with this configuration some mails (the ones from hotmail.com)
get thrown back into the queue and come back to me several times.

Is there anybody able to shed some light.

TIA

----------------------------------------------------------------
Nuno Ferreira
Departamento de Informática da APCMC
 Tel: 22 5074212
 Fax: 22 5074219
 [EMAIL PROTECTED]
-----------------------------------------------------------------
----- Original Message -----
From: "Rainer Link" <[EMAIL PROTECTED]>
To: "Nuno Ferreira" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, June 07, 2000 4:35 PM
Subject: Re: qmail+maildrop+amavis


> Nuno Ferreira wrote:
>
> [cut]
>
> > Also I can't seem to get any info on getting amavis working with Qmail.
All
> > the their document says it's ''... integrated due to contribution ...
> > remains untested"
>
> Sorry for late reply - I was out of the office for some days and busy
> with other stuff than reading eMails.
>
> Please see http://dev.amavis.org/ or checkout the latest sources from
> our CVS server at sourceforge.net
>
> If you have any further questions, please feel free to contact me/us
> directly.
>
> HTH
>
> best regards,
> Rainer Link
> --
> Rainer Link  | Member of Virus Help Munich (www.vhm.haitec.de)
> [EMAIL PROTECTED] | Member of AMaViS Development Team (dev.amavis.org)
> rainer.w3.to | Maintainer FAQ "antivirus for Linux" (av-linux.w3.to)
>
>





At 4:54 PM +0100 6/7/00, Nuno Ferreira wrote:
>Thanks,
>
>Meanwhile I was able to get it working.
>
>However, I still am unable to make maildrop work with QMail.
>I have installed maildrop-0.76b, I have
>
>the following in ~/.qmail
>./Maildir/
>| /var/qmail/bin/preline /usr/local/bin/maildrop
>
>and the folowing in ~/.mailfilter
>DEFAULT="./Maildir/"
>if ( /^(To|Cc|From|Reply-To): *@hotmail.com*/ )
>{
>    to [EMAIL PROTECTED]
>}
>
>I think maildrop is being called correctly, because I had a permission
>problem that appeared in the logs and now it stopped appearing.
>However, with this configuration, I [EMAIL PROTECTED] never gets any
>message coming to me from hotmail.com.

The pattern above doesn't match any valid address from hotmail.com.
"man maildropfilter" and read again what kind of regular expressions
maildrop supports.

>Maybe there's something wrong with the "if", but I can't see it. Furthermore
>I think that with this configuration some mails (the ones from hotmail.com)
>get thrown back into the queue and come back to me several times.

Looks to me that they'll be delivered twice, once by the ./Maildir/
in .qmail, and once by maildrop's default.

>
>Is there anybody able to shed some light.
>
>TIA
>
>----------------------------------------------------------------
>Nuno Ferreira
>Departamento de Informática da APCMC
>  Tel: 22 5074212
>  Fax: 22 5074219
>  [EMAIL PROTECTED]
>-----------------------------------------------------------------
--
--
Paul J. Schinder
NASA Goddard Space Flight Center
Code 693
[EMAIL PROTECTED]




On Wed, Jun 07, 2000 at 04:54:18PM +0100, Nuno Ferreira wrote:
> and the folowing in ~/.mailfilter
> DEFAULT="./Maildir/"
> if ( /^(To|Cc|From|Reply-To): *@hotmail.com*/ )
> {
>    to [EMAIL PROTECTED]
> }

The regular expression isn't right. It'll match only addresses that start with
zero or more spaces, followed by @hotmail.co followed by zero or more m's.
That's not what you want.

Chris




I have some more question about this...

So, the email gets to the internal servers but can the internal servers
be sendmail servers or they must also be qmail servers and will the
users be able to read their messages from the internet???
Thanks again

Guillermo Villasana Cardoza wrote:
> 
> Thanks a lot for all the help...
> I will try and see how it works :)
> 
> Dave Sill wrote:
> 
> > Guillermo Villasana Cardoza <[EMAIL PROTECTED]> wrote:
> >
> > >I have one Internet IP address .. which I use for my firewall behind
the
> > >firewall I have several internal servers... The problem is that each
> > >server will be a different web and mail server...
> > >
> > >eg.
> > >mailserver1.domain.com
> > >mailserver2.domain.com
> > >...
> > >etc
> > >
> > >Each mail server with it's own users...
> > >
> > >Can this be done?
> >
> > Sure. You'll need to:
> >
> >   1) list mailserver1.domain.com, mailserver2.domain.com, etc in
> >      control/rcpthosts,
> >
> >   2) add entries like:
> >          mailserver1.domain.com:[IP of mailserver1]
> >      to control/smtproutes, and
> >
> >   3) set up MX records for mailserver1, mailserver2, ... pointing to
> >      the firewall.
> >
> > -Dave




Hello all,

did this note go out earlier today? if so, I apologize for the repeat...

Now that I have restored some order to my qmail system with the 
SIGHUP command (again THANKs to all who helped on that one...) I 
would like to know if it is possible to recover/deliver all the 
messages that are sitting in the bounced directory. Is there anyway 
of retrieving who tried to send to whom so I could do some sort of 
nice forwarded of those bounced emails to their intended recipients?

also, in what directory will i find this mail-log file for the error 
messages that have accumulated - i'm sure that there are many during 
that 2 day period...

finally, is anyone familiar with this error message -BTW is there a 
listing of all qmail error messages and their causes somewhere?

Failed to deliver to '[EMAIL PROTECTED]'
SMTP module(domain tap.co.il) reports:
  DNS Loop: MX-record mail.brainlink.com points back to us

thanks to all!
judy
-- 
Judy Simon
=====================
J-Town Productionsm, LTD
Jerusalem, Israel
-- 
Judy Simon
=====================
J-Town Productionsm, LTD
Jerusalem, Israel




I must have missed something when setting up my installation...
 
I seem to have looped my "sendmail" around.  Can someone help me un-fsck
myself?
 
castle:/var/qmail/bin# ls -la /var/qmail/bin
lrwxrwxrwx   1 root     root            9 Jun  1 12:41 /var/qmail/bin ->
/usr/sbin

 
castle:/var/qmail/bin# ls -la sendmail
lrwxrwxrwx   1 root     root           23 Jun  1 13:58 sendmail ->
/var/qmail/bin/sendmail
 
I've spent half of today trying to find where in the docs to tell me what it
SHOULD be. :/
 
Sigh.  
 
Would appreciate assistance (even just "RTFM <appropriate document>")
 
Regards,
Geordon


Geordon VanTassle, MCP
Ameritech IVRU Support 

Phone: 847-248-2590

Dark River.gif






Does anyone have a patch to qmailanalog to read
the new multilog time format?

Ken Jones
inter7




On 07-Jun-2000, Ken Jones wrote:
> Does anyone have a patch to qmailanalog to read
> the new multilog time format?

It's not a patch like you want, but in case you want to know how to
make it work:

I use a C program called tai64nfrac found on qmail.org to filter the
log before feeding to qmailanalog's matchup.

        Ronny




Ken Jones writes:
 > 
 > Does anyone have a patch to qmailanalog to read
 > the new multilog time format?

There's two (2) patches to create a program which accepts multilog
time format (tai64n) and rewrites it into fractional seconds (taifrac)
format.  They're listed on www.qmail.org.

-- 
-russ nelson <[EMAIL PROTECTED]>  http://russnelson.com
Crynwr sells support for free software  | PGPok | "Ask not what your country
521 Pleasant Valley Rd. | +1 315 268 1925 voice | can force other people to
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | do for you..."  -Perry M.




Many subscribers have been reporting duplicate messages in the last few 
days from a couple of qmail servers I manage that send out a daily 
newsletter with a few hundred thousand subscribers.

Yet the logs only show one message delivered to any of those people. But 
usually several deferrals.

I figure my timeoutremote was set too low (60), so that it got delivered 
even though qmail-remote thought it timed out. So I now put it up to 600.

Does that make sense, or could there be other reasons for duplicates that 
don't show in the logs?

The servers are generally rather busy, with 2-500 remote processes and a 
system load of 4-6, and I think the ISP was having some bandwidth problems 
in the last few days.

- Flemming





Hi All,

        Here is something I would like to know how to do:

        I have qmail 1.03, qmail-admin, vpopmail, and tcpserver installed
in my system.

        I want to use a "group" email address so that when someone in my
office sends a mail to say "[EMAIL PROTECTED]", all the techs receive
this message, but not any other groups (my groups I would imagine would
be techguys, management, sports, etc)...can this be done with qmail?

-Bill





On Wed, Jun 07, 2000 at 04:06:03PM -0700, Bill Parker wrote:
>       I want to use a "group" email address so that when someone in my
> office sends a mail to say "[EMAIL PROTECTED]", all the techs receive
> this message, but not any other groups (my groups I would imagine would
> be techguys, management, sports, etc)...can this be done with qmail?

Stick a whole bunch of e-mail addresses, one per line, in
~alias/.qmail-techguys. man dot-qmail for more.

Chris




Tushar
 
you can download from
ftp://ftp.u-aizu.ac.jp
 
the directory is /pub/net/qmail/msci-memphis.edu/var-qmail
file name is qmail-1.03-102memphis.src.rpm
 
Kapil
 
----- Original Message -----
Sent: Tuesday, June 06, 2000 11:58 PM
Subject: Anybody got the RPM for Qmail, pease send me <eom>

>



On Tue, 6 Jun 2000, John Gonzalez/netMDC admin wrote:

> On Tue, 6 Jun 2000, Peter Samuel wrote:
> 
> >I've never seen this. How? What operating system? What version of
> >inetd? You've got me curious now.
> >
> >Regards
> >Peter
> >----------
> 
> man inetd
> 
> pop3 stream tcp nowait.120 root /var/qmail/bin/tcp-env tcp-env......

Thanks for partially answering my question :) This works for linux, and
others have reported a similar mechanism for FreeBSD, however it
doesn't work for Solaris, and I'd be pretty sure it won't work for
HP/UX, OSF (or whatever Compaq are calling Digital Unix these days) and
any other commercial Unix.

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"





Using qmail 1.03 qmail-pop3d

Every time someone checks their mail via pop3 I get a message like this
in my syslog:

May  2 23:33:33 masina inetd[484]: pid 840: exit status 1

I can see that process 840 was:
qmail-popup youwasahero.com /bin/checkpassword /var/local/qmail


What does this mean?
POP3 works as I would expect it to.  If exit status 1 means success, I
don't know why it would be in syslog.




You can try SQWebmail at http://www.inter7.com/sqwebmail . 


This is what Nguyen Hong Son said:

> Dear all
> Thank you for helping me with the SMTP Auth patch, But if you know where to 
> get a tool (or package) for making a web-mail site for qmail, please tell me 
> .
> Thanks a lot
> 
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
> 




On Wed, Jun 07, 2000 at 09:43:16AM +0100, Jules Desforges wrote:
> Chris Johnson wrote:
> > 
> > >
> > > I can use the .qmail files to forward e-mail to another address,
> > > but how do you relay a messages onto another server without changing
> > > the envelope.
> > 
> > I don't think you'll be able to. You can use smtproutes to override DNS and
> > send a whole domain's mail somewhere else without changing the envelope, but I
> > don't know of a way to do it with different addresses in the same domain.
> > 
> > Why do you care if the envelope is changed? What you propose is trivial with
> > .qmail files if you use forwarding, but the envelope recipient will change.
> > 
> > Chris
> 
> OK. Even if the envelope isn't changed I can't find a solution to this
> problem using .qmail files. If anyone can shed any light on this, it
> would be appreciated.

I assume you mean "even if the envelope is changed."

The example in your initial post was:

> I would like to send :-
>
> [EMAIL PROTECTED] to server [x.y.z]
> [EMAIL PROTECTED] to server [p.q.r]
>
> .....
>
> and finally any aliases that do not
> match are forwarded onto another server [d.e.f]

You might try this:

# echo '&[EMAIL PROTECTED]' > ~alias/.qmail-bill
# echo '&[EMAIL PROTECTED]' > ~alias/.qmail-ted
# echo '| forward "$DEFAULT"@example3.dom' > ~alias/.qmail-default

This assumes that blah.com is a local domain. You'll need to make the
appropriate adjustments if it's virtual (maybe use .qmail-blah-bill,
.qmail-blah-ted, and .qmail-blah-default).

This does use forwarding and the envelope recipient will change, but who cares?

Chris




Hi,

I'm totally stuck trying to get qmail working the way I want it to, and the more I try 
to change configurations the more I get mixed up.

The idea is that I have user.domain.co.uk as the virtual domain, so that 
[EMAIL PROTECTED] is sent to a local mailbox. What I've done so far is:

made an MX record pointing to the domain.co.uk machine
in qmail/control/virtualdomain entered user.domain.co.uk:username
put user.domain.co.uk into rcpthosts
and sent a HUP to both named and qmail-send

Now reading the FAQ's and howto's etc I was led to believe that this would basically 
take the following steps:
1) mail arrives at domain.co.uk mail server
2) mail server has domain in its rcpthosts, good
3) is the domain in locals? no..
4) is the domain a virtualdomain? yes... deliver to <username>

And then username goes and checks his mail and there's the message.

At the moment I'm getting a:
<[EMAIL PROTECTED]>:
Sorry, no mailbox here by that name. (#5.1.1)

Can anyone tell me where I'm going wrong pleeeeease? I hope its not something stupid 
I've forgot, apologies if it is.

TIA,
Andy.





On Thu, Jun 08, 2000 at 03:46:22AM +0100, Andy Coates wrote:
> Now reading the FAQ's and howto's etc I was led to believe that this would
> basically take the following steps:
> 1) mail arrives at domain.co.uk mail server
> 2) mail server has domain in its rcpthosts, good
> 3) is the domain in locals? no..
> 4) is the domain a virtualdomain? yes... deliver to <username>
> 
> And then username goes and checks his mail and there's the message.
> 
> At the moment I'm getting a:
> <[EMAIL PROTECTED]>:
> Sorry, no mailbox here by that name. (#5.1.1)

There needs to be a .qmail-default file in ~username with delivery
instructions. If you want the default delivery instruction (which is probably
to deliver mail to ./Mailbox or ./Maildir/), just create an empty
.qmail-default file.

Chris




----- Original Message -----
From: "Chris Johnson" <[EMAIL PROTECTED]>
To: "Andy Coates" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, June 08, 2000 4:20 AM
Subject: Re: Virtual Domains and MX Records


> On Thu, Jun 08, 2000 at 03:46:22AM +0100, Andy Coates wrote:
> > Now reading the FAQ's and howto's etc I was led to believe that this
would
> > basically take the following steps:
> > 1) mail arrives at domain.co.uk mail server
> > 2) mail server has domain in its rcpthosts, good
> > 3) is the domain in locals? no..
> > 4) is the domain a virtualdomain? yes... deliver to <username>
> >
> > And then username goes and checks his mail and there's the message.
> >
> > At the moment I'm getting a:
> > <[EMAIL PROTECTED]>:
> > Sorry, no mailbox here by that name. (#5.1.1)
>
> There needs to be a .qmail-default file in ~username with delivery
> instructions. If you want the default delivery instruction (which is
probably
> to deliver mail to ./Mailbox or ./Maildir/), just create an empty
> ..qmail-default file.

Aaaaaargh thats it!! Soooo close, I thought with the <username> in the
virtualdomain bit would just send it locally to <username>.

Thanks, I did just make an empty one and it works perfectly. Wow thats a
relief :-)

Later,
Andy.





How do I use the web interface for accessing my real domain's user
accounts?
Virtual domains have no problems accessing mail, but this is so cool I
want to do it for my real accounts too.
Do I create a virtual domain, and add links to the home dir's of each
real unix account?
I tried to find it my self, and failed.  Just point me to the right doc.

The environment:
dns, qmail, checkpassword, deamontolls, vpopmail, sqwebmail, ezmlm,
autorespond, qmailadmin
using maildir, qmail-pop3d, qmail-smtpd

Thank you.





At 09:02 PM 6/7/2000, John Stile wrote:
>How do I use the web interface for accessing my real domain's user
>accounts?
>Virtual domains have no problems accessing mail, but this is so cool I
>want to do it for my real accounts too.
>Do I create a virtual domain, and add links to the home dir's of each
>real unix account?
>I tried to find it my self, and failed.  Just point me to the right doc.

The easiest seems to be to make all domains virtual. I.e. set up a virtual 
domain in qmailadmin with the same name as your "real" domain, and add the 
existing users to it, again in qmailadmin. And move their Maildirs to 
/home/vpopmail/domains/yourrealdomain.com/....

And compile your vpopmail with the 
--enable-default-domain=yourrealdomain.com option, so that everything 
should work the same as before for those users.

- Flemming








Moin!

I've heard that there is a feature or was a patch to log every message to a
specific mailbox with a .qmail-msglog alias. I however couldn't find
anything about this on the qmail homepage, the only thing I found on a web
was a description of patch for qmail 1.01 (unfortunatley not the patch
itself). Can some kind soul give me an pointer to this feature for qmail
1.03.

Regards
-Ralf
-- 
___ ___ ___ ___
\C/ \O/ \L/ \T/ Ralf Weber ([EMAIL PROTECTED]) - COLT TELECOM GmbH
 V   V   V   V  Fon +49 69 95958 0 - Fax +49 69 959598 6350




When I create a .qmail-mailinglist in ~/alias with 1 @home and one hotmail
address, the mail send to mailinglist get's delivered to both boxes. When I
put the addresses in my .qmail in the emailing account, I only get the @home
message and the one delivered to the emailingbox.

The .qmail file in emailing

[EMAIL PROTECTED]
[EMAIL PROTECTED]
./Maildir/

The maillog does report a successful delivery.
No filters used in the hotmail account.
Anyone knows why this happens ?

Jeremy Cole





Have a strange case..
 
 
On our mail server we have a virtual domain under a user. the .qmail-default file says ./Maildir/ so all the mail goes to there...then i push the mail to those people when their online with maildirsmtp (they have a linux dial up router with qmail on it). this works great..but now they have established another office...so i installed another linux dial up router with qmail for them...and since they only are 4 employees..i created their .qmail-names on our mail server, with ./Maildir2/ also push to them...
 
Now the problem appears..since both the dial up qmail's are configured for the same domain name i cant send mail from office to office... on the last office with 4 employees, i put our main mail server as smtp server in their mail programs..but on the other office there is alot of users..and they want to have their local mail..they dont want to send their mail trough our server...and then wait for it to be delivered back to them...
 
anyone have a solution for how i fix this?
 
 
Tore
                                                                       
                                                                               




First give the two servers different locals.

> On our mail server we have a virtual domain under a user.
If you use a virtual domain anyway you can put the 4 user addresses 
into virtualdomains too. I didn't test if this takes precedence over the 
domain, but you may try it.

Else there is still the qmail-users mechanism.

Regards, Frank




All,

Does anyone know what has happened to www.ezmlm.org

Has it been moved? Is there a mirror anywhere which I
can have a look at?

Thank you,

M

__________________________________________________
Do You Yahoo!?
Yahoo! Photos -- now, 100 FREE prints!
http://photos.yahoo.com




On Thu, Jun 08, 2000 at 12:41:54AM -0700, mwangu wrote:
> All,
> 
> Does anyone know what has happened to www.ezmlm.org
> 
> Has it been moved? Is there a mirror anywhere which I
> can have a look at?

http://ezmlm.x42.com/

/magnus




hi,

are their significant differences between vpopmail and qpopper ? i heard
rumours saying qpopper is a big security hole ?? 
-- 
jens
---------------------------------------------------------------------------
department computer science, university of dortmund
linux ... life's too short for reboots!




At 10:00 AM 6/8/00 +0200, Jens Georg wrote:
>hi,
>
>are their significant differences between vpopmail and qpopper ? i heard
>rumours saying qpopper is a big security hole ??

I think you compare orange with onion
you should compare qmail-pop3d with qpopper I think.
because vpopmail is NOT a pop3 daemon.





At 10:09 AM 6/8/00 +0200, you wrote:
>hi irwan,
>
> > I think you compare orange with onion
> > you should compare qmail-pop3d with qpopper I think.
> > because vpopmail is NOT a pop3 daemon.
>
>oops! ok, then, can you explain to me, what vpopmail really is ?

http://www.inter7.com/vpopmail/FAQ
vpopmail is a collection of programs to automate creation and
maintence of non /etc/passwd virutal domain email and pop accounts
for qmail installations.

Without additional software like courier-IMAP for IMAP service, or 
qmail-pop3d for POP3 daemon, or sqwebmail for webmail, how can users fetch 
their mail from server ?
Thats means, as qpopper is the POP 3 daemon, you have to compare it with 
another POP 3 daemon too, like cuci-pop, qmail-pop3d, solid-pop, etc.





>First give the two servers different locals.
They have domain.com both in locals..but different hostname.domain.com in locals..?
>If you use a virtual domain anyway you can put the 4 user addresses
>into virtualdomains too. I didn't test if this takes precedence over the
>domain, but you may try it.
hmm..my problem comes when one office should send to the other..their local mailserver treat the mail as local and cant find the user..since they have the same domain..?
dont understand your souloution??
 
Regards Tore


Reply via email to