qmail Digest 2 Dec 1999 11:00:01 -0000 Issue 837

Topics (messages 33762 through 33810):

qmail-pop3d problem
        33762 by: Petr Novotny
        33763 by: Vince Vielhaber

Re: Country code for this list
        33764 by: thomas.erskine-dated-a2c95627c44fe96b.crc.ca
        33768 by: thomas.erskine-dated-a2c95627c44fe96b.crc.ca
        33770 by: dave.bigham.us.abb.com
        33772 by: Kai MacTane

SMTP servers within a domain
        33765 by: Steve Kapinos
        33766 by: petervd.vuurwerk.nl

Re: another qmail-clean question
        33767 by: Eric Dahnke
        33805 by: dd

Problem compiling courier-imap
        33769 by: Stefan Osterman
        33771 by: Thomas Neumann
        33807 by: Stefan Osterman

Re: Qmail and Ident.
        33773 by: Daniel Mattos

maildrop timeout message
        33774 by: Subba Rao

QMail-IMAP + LDAP in large corporate setting
        33775 by: Charles Leeds
        33779 by: Thomas Neumann
        33781 by: martin.wonderfrog.net
        33793 by: Sam

condredirect, log, and loops
        33776 by: Greg Owen

:}
        33777 by: dd

Re: issues w/ rem2local
        33778 by: Dave Sill

Re: changing control/me
        33780 by: Dave Sill

qmail-popbull updated
        33782 by: Russell Nelson

Qmail + F-secure
        33783 by: Adam D . McKenna

Sendmail to qmail
        33784 by: Tyler J. Frederick
        33790 by: Thomas Neumann
        33801 by: Tyler J. Frederick
        33803 by: Ken Jones
        33804 by: Diego Alejandro Puertas Fernandez
        33808 by: Thomas Neumann

Speed
        33785 by: Rohit Khamkar
        33786 by: Denis Voitenko
        33787 by: Russell Nelson
        33789 by: Noel Mistula

relay-ctrl 1.2 - doesn't work
        33788 by: smoerk.gmx.de
        33795 by: Jon Rust
        33796 by: Jon Rust
        33797 by: smoerk.gmx.de
        33798 by: smoerk.gmx.de
        33799 by: Jon Rust
        33800 by: Oden Eriksson

Can't start qmail daemons
        33791 by: Paul Charsley
        33792 by: Vince Vielhaber
        33794 by: Paul Charsley

Any Decent IMAP server?
        33802 by: Philip Gabbert

qmail-1.03+patches-8.src.rpm
        33806 by: Hans Sandsdalen

Selective relaying with selective queue delay?
        33809 by: Alfonso Armenta
        33810 by: petervd.vuurwerk.nl

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]


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


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

Hi,

I am only asking for speculations. :-)

My wife has an account at a Czech freemail service running qmail 
(and qmail-pop3d). I know nothing of the internal setup. Lately it 
seems that they have problems with POP3 access.

I tried to manually telnet into their pop3 box and basically this is 
what happens: USER and PASS are greeted with OK. LIST lists 
two messages. Both RETR 1 and RETR 2 are answered with
"-ERR cannot open that message". Reading qmail-pop3d.c, I think 
it means that open() failed on that messages.

I wonder how it might be possible (in a non-psychic setup) to have 
scandir() work perfectly and open() fail.

There's no shell access to the account. Only pop3 and webmail.

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

iQA/AwUBOEUb3VMwP8g7qbw/EQKOVwCfdf6zqO1tkHqUAL3RMUQTk1Sy138AoP3p
1tOZGnD8v9N/CpfGhgtX8j/d
=57Tu
-----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]




On 1 Dec 1999, Petr Novotny wrote:

> I am only asking for speculations. :-)
> 
> My wife has an account at a Czech freemail service running qmail 
> (and qmail-pop3d). I know nothing of the internal setup. Lately it 
> seems that they have problems with POP3 access.
> 
> I tried to manually telnet into their pop3 box and basically this is 
> what happens: USER and PASS are greeted with OK. LIST lists 
> two messages. Both RETR 1 and RETR 2 are answered with
> "-ERR cannot open that message". Reading qmail-pop3d.c, I think 
> it means that open() failed on that messages.
> 
> I wonder how it might be possible (in a non-psychic setup) to have 
> scandir() work perfectly and open() fail.
> 
> There's no shell access to the account. Only pop3 and webmail.

The actual mail files owned by someone other than you with permissions
600?  Scandir will see it, you just can't open it.

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







On Tue, 30 Nov 1999, Subba Rao wrote:

> 
> I was always wondering where this list is being hosted. "to" is Tongo.
> My geography knowledge is kind of getting rusty. Where is Tongo?

Try Togo.  It's between Ghana and Benin.

> Is it one of the new countries on the map?
> 
> Subba Rao
> [EMAIL PROTECTED]
> http://pws.prserv.net/truemax/
> 

-- 
"Life is much too important to be taken seriously."
Thomas Erskine        <[EMAIL PROTECTED]>        (613) 998-2836





On Wed, 1 Dec 1999 [EMAIL PROTECTED] wrote:

> On Tue, 30 Nov 1999, Subba Rao wrote:
> 
> > 
> > I was always wondering where this list is being hosted. "to" is Tongo.
> > My geography knowledge is kind of getting rusty. Where is Tongo?
> 
> Try Togo.  It's between Ghana and Benin.

My mistake.  (I really should learn to properly research things.)  Tongo
or Tonga is correct, though I'm not sure which.  Mapquest doesn't know
about Tongo, but Tonga it says is in the South Pacific.

> > Is it one of the new countries on the map?

I haven't heard of any recent political problems there. :-)

> > Subba Rao
> > [EMAIL PROTECTED]
> > http://pws.prserv.net/truemax/
> > 
> 
> -- 
> "Life is much too important to be taken seriously."
> Thomas Erskine        <[EMAIL PROTECTED]>        (613) 998-2836
> 
> 

-- 
"Life is much too important to be taken seriously."
Thomas Erskine        <[EMAIL PROTECTED]>        (613) 998-2836







I've been wrong more than I've been right in the past but I think that ".to"
(Tongo/Tonga) is allowing its top level name to be used/sold through third party
registrars - Or something like that.  The host machine could be literally
anywhere on the planet where an IP connection can be established.

Dave Bigham


                                                                  
 (Embedded     [EMAIL PROTECTED]                              
 image moved   12/01/99 10:10 AM                                  
 to file:                                                         
 pic25003.pcx)                                                    
                                                                  
                                                                  



To:   [EMAIL PROTECTED]
cc:   Subba Rao <[EMAIL PROTECTED]>, Qmail Users <[EMAIL PROTECTED]> (bcc: Dave
      Bigham/USINY/ABB)
Subject:  Re: Country code for this list




On Wed, 1 Dec 1999 [EMAIL PROTECTED] wrote:

> On Tue, 30 Nov 1999, Subba Rao wrote:
>
> >
> > I was always wondering where this list is being hosted. "to" is Tongo.
> > My geography knowledge is kind of getting rusty. Where is Tongo?
>
> Try Togo.  It's between Ghana and Benin.

My mistake.  (I really should learn to properly research things.)  Tongo
or Tonga is correct, though I'm not sure which.  Mapquest doesn't know
about Tongo, but Tonga it says is in the South Pacific.

> > Is it one of the new countries on the map?

I haven't heard of any recent political problems there. :-)

> > Subba Rao
> > [EMAIL PROTECTED]
> > http://pws.prserv.net/truemax/
> >
>
> --
> "Life is much too important to be taken seriously."
> Thomas Erskine        <[EMAIL PROTECTED]>        (613) 998-2836
>
>

--
"Life is much too important to be taken seriously."
Thomas Erskine        <[EMAIL PROTECTED]>        (613) 998-2836



pic25003.pcx





At 11:20 AM 12/1/99 -0500, you wrote:
>
>
>I've been wrong more than I've been right in the past but I think that 
>".to" (Tongo/Tonga) is allowing its top level name to be used/sold 
>through third party registrars - Or something like that.  The host 
>machine could be literally anywhere on the planet where an IP 
>connection can be established.

Let's find out:

prospero:/home/kai# traceroute cr.yp.to
traceroute to cr.yp.to (131.193.178.247), 30 hops max, 38 byte packets
 1  main2-200-8.sjc.above.net (216.200.8.3)  0.258 ms  0.172 ms  0.169 ms
 2  sjc2-gige-core1.sjc2.above.net (208.184.102.97)  0.252 ms  0.629 ms
0.205 ms
 3  ord-sjc-oc12.ord.above.net (207.126.96.117)  60.102 ms  60.152 ms
60.316 ms
 4  chicago-core1-2.ord.above.net (216.200.254.90)  62.536 ms  62.776 ms
61.458 ms
 5  uic-mren.gw.uic.edu (206.220.243.24)  62.574 ms  62.528 ms  62.218 ms
 6  UIC-FDDI-18.GW.UIC.EDU (128.248.100.18)  61.709 ms  61.889 ms  65.484 ms
 7  BATM-20.GW.UIC.EDU (128.248.120.20)  61.947 ms  62.079 ms  62.050 ms
 8  SEL-CAT5500-2.GW.UIC.EDU (131.193.99.2)  62.641 ms  63.103 ms  64.117 ms
 9  koobera.math.uic.edu (131.193.178.247)  65.267 ms  64.555 ms  63.986 ms
prospero:/home/kai# 

Looks like cr.yp.to is hosted by the University of Illinois in Chicago.
Indeed, it looks like another name for kooera.math.uic.edu. Let's check:

prospero:/home/kai# dig cr.yp.to

; <<>> DiG 8.2 <<>> cr.yp.to 
;; res options: init recurs defnam dnsrch
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
;; QUERY SECTION:
;;      cr.yp.to, type = A, class = IN

;; ANSWER SECTION:
cr.yp.to.               23h56m24s IN A  131.193.178.247

;; AUTHORITY SECTION:
yp.TO.                  23h56m24s IN NS  a.ns.yp.TO.
yp.TO.                  23h56m24s IN NS  b.ns.yp.TO.

;; ADDITIONAL SECTION:
a.ns.yp.TO.             23h56m24s IN A  131.193.178.247
b.ns.yp.TO.             23h56m24s IN A  131.193.178.247

;; Total query time: 7 msec
;; FROM: prospero to SERVER: default -- 216.200.17.152
;; WHEN: Wed Dec  1 09:53:42 1999
;; MSG SIZE  sent: 26  rcvd: 114

prospero:/home/kai# 

Yup, the IP addresses are the same. This should not be very surprising. (I
imagine Claude Rains, a la Casablanca, going "I am shocked -- *shocked* --
to discover that cr.yp.to is actually hosted at koobera.math.uic.edu!" <g>)

-----------------------------------------------------------------
                             Kai MacTane
                         System Administrator
                      Online Partners.com, Inc.
-----------------------------------------------------------------
>From the Jargon File: (v4.0.0, 25 Jul 1996)

can't happen 

The traditional program comment for code executed under a condition
that should never be true, for example a file size computed as 
negative ... Although "can't happen" events are genuinely infrequent
in production code, programmers wise enough to check for them habitu-
ally are often surprised at how frequently they are triggered during
development and how many headaches checking for them turns out to 
head off.





This isn't really qmail specific, but I need to make it work with my qmail
server, so lets give it a shot =)

I'm confused on how SMTP servers are setup within a domain.  I have a piece
of equipment that sends and recieves email by acting like a SMTP server.
Its supposed to be setup like [EMAIL PROTECTED] and act like a SMTP
server.

domain.com has a MX record which points to mail.domain.com which is my qmail
server.  Whats the path a message takes if its sent to [EMAIL PROTECTED]?

Does the remote smtp server lookup the MX on domain.com?  Then sends the
mail to that SMTP server.. if the mail is now on mail.domain.com, how does
it know how to smtp the message to fax.domain.com?

Is this where/how you setup smtprelays?  So that mail for a specific host is
routed within a domain is routed to that host?

Thanks!

-Steve

winmail.dat





On Wed, Dec 01, 1999 at 09:27:21AM -0500, Steve Kapinos wrote:
> This isn't really qmail specific, but I need to make it work with my qmail
> server, so lets give it a shot =)

It's on-topic enough for me :)

> I'm confused on how SMTP servers are setup within a domain.  I have a piece
> of equipment that sends and recieves email by acting like a SMTP server.
> Its supposed to be setup like [EMAIL PROTECTED] and act like a SMTP
> server.
> 
> domain.com has a MX record which points to mail.domain.com which is my qmail
> server.  Whats the path a message takes if its sent to [EMAIL PROTECTED]?

That is in no way dependent of the MX records for domain.com. It depends on
the MX records for fax1.domain.com, and if those don't exist, the A record.

> Is this where/how you setup smtprelays?  So that mail for a specific host is
> routed within a domain is routed to that host?

You could do something with smtproutes here, if the MX for fax1 points to
your mailserver. Better would be to just put fax1 in it's own MX records.

Greetz, Peter.
-- 
Peter van Dijk - student/sysadmin/ircoper/womanizer/pretending coder 
|  
| 'C makes it easy to shoot yourself in the foot;
|  C++ makes it harder, but when you do it blows your whole leg off.'
|                             Bjarne Stroustrup, Inventor of C++





In my experience and based on other input from the list the best way to
eliminate messages from the queue is with the qmHandle script on the
qmail website (I don't think it's listed on the site with that name).

Works well for me.

- Eric

[EMAIL PROTECTED] escribió:
> 
> On Wed, 1 Dec 1999 12:04:25 +0200 (EET) , dd writes:
> > i know that deleting a mail from the queue is not recommended (i don't
> > know why though) but i had to delete all the 29 mails waiting to be
> 
> Because qmail-send maintains its own information
> about the contents of the queue, independent of what
> is on disk.  If the two get out of sync, qmail-send
> will not be happy.
> 
> > transferred (qmail-qstat said there were 29). i ran qmail-clean but had to
> > hit CTRL+C when there was no responce from it after ca 1min. qmail-qstat
> > said there were still 29 mails in the queue. i had thought it should have
> > removed some at least. i killed qmail-send and tried running qmail-clean
> > again but nth changed.
> 
> qmail-clean is used internally be qmail-send.
> 
> If you really need to delete messages from the queue,
> kill qmail-send.  When it's exited, look through
> the output of qmail-qread for the message numbers
> you want.  Then delete everything corresponding to
> those message numbers:
> 
> {local,remote,info,mess}/<msgnum%23>/<msgnum>
> 
> qmail-qread will not tell you about stuff in todo/
> 
> --
> Chris Mikkelson  |  Microsoft: Where do you want to go today?
> [EMAIL PROTECTED] |  Linux: Where do you want to go tomorrow?
>                  |  FreeBSD: Are you guys coming or what?





> > On Wed, 1 Dec 1999 12:04:25 +0200 (EET) , dd writes:
> > > i know that deleting a mail from the queue is not recommended (i don't

[...]

thank you very much for your responses.


take care,
dd





Hi

I  have problem compiling courier-IMAP on Solaris 2.6

checking for wait... yes
checking for wait3... yes
checking for sigblock... no
checking if wait function is broken... yes
configure: error: I give up -- neither wait nor wait3 works properly
configure: error: ./configure failed for waitlib

To get this far I also had to set "without-random"

Please help
/Stefan
---------------------------------------------------------------------
Stefan Österman
Merkantildata Kommunikation AB
Box 20161
161 02 Bromma

Telefon                 + 46 8 5662 3087
Fax                     + 46 8 5662 3001
Mobil                   0708-35 30 87
Internet                http://www.merkantildata.se
E-post                  mailto:[EMAIL PROTECTED]

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





Stefan Osterman <[EMAIL PROTECTED]> writes:

> I  have problem compiling courier-IMAP on Solaris 2.6
> 
> checking for wait... yes
> checking for wait3... yes
> checking for sigblock... no
> checking if wait function is broken... yes
> configure: error: I give up -- neither wait nor wait3 works properly
> configure: error: ./configure failed for waitlib

You could try to configure '--with-waitfunc=wait3' to force it; maybe
it works anyway, but watch out for zombie processes once you have
imapd running.

> To get this far I also had to set "without-random"

Sometimes Solaris can suck a golf ball through a pipe ...

-t





More problems...

Configure is done making the Makefiles but when I try to make I get this

bash# make
Making all in numlib
Making all in bdbobj
gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -c bdbobj2.c
bdbobj2.c: In function `bdbobj_firstkey':
bdbobj2.c:24: too few arguments to function
*** Error code 1
make: Fatal error: Command failed for target `bdbobj2.o'
Current working directory /eggandbacon/usr/users/stv/courier-imap-0.18/bdbobj
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'

I configured to use BerkelyDB2

/Stefan

At 18:13 1999-12-01 +0100, Thomas Neumann wrote:
>Stefan Osterman <[EMAIL PROTECTED]> writes:
>
> > I  have problem compiling courier-IMAP on Solaris 2.6
> >
> > checking for wait... yes
> > checking for wait3... yes
> > checking for sigblock... no
> > checking if wait function is broken... yes
> > configure: error: I give up -- neither wait nor wait3 works properly
> > configure: error: ./configure failed for waitlib
>
>You could try to configure '--with-waitfunc=wait3' to force it; maybe
>it works anyway, but watch out for zombie processes once you have
>imapd running.
>
> > To get this far I also had to set "without-random"
>
>Sometimes Solaris can suck a golf ball through a pipe ...
>
>-t

---------------------------------------------------------------------
Stefan Österman
Merkantildata Kommunikation AB
Box 20161
161 02 Bromma

Telefon                 + 46 8 5662 3087
Fax                     + 46 8 5662 3001
Mobil                   0708-35 30 87
Internet                http://www.merkantildata.se
E-post                  mailto:[EMAIL PROTECTED]

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






Greetings,

Sorry for being out-of-topic here but it is definetely related to the
previous question.

How to make identd log to a different file other than /var/log/messages?
The man pages weren't of any help.  

thanks,

Daniel

On Wed, 1 Dec 1999, Sam wrote:

:Warren Beckett writes:
:
:> Hi all.
:> 
:> I have been watching my qmail logs and parallel with logs from other
:> firewall and noticed that the qmail box is generate a large number of
:> ident lookups. 
:> 
:> Does anyone know what is cause this, and how do I stop it.
:
:Standard behavior of tcpserver.  man tcpserver will tell you how to turn it
:off, if it bothers you.  But, there are some good reasons not to, because
:any ident response gets recorded in the headers, and there are certain
:fringe situations where source of abuse can only be determined with the
:help of ident data.
:
:-- 
:Sam
:

                                    ----------------------------------
 Daniel Mattos                        Tribeca Internet Initiatives Inc.
 [EMAIL PROTECTED]                                   http://www.tiii.com
-----------------






I got this message from cron while trying to fetchmail.

maildrop: Timeout quota exceeded.

Is anyone else getting this type of error message?

Subba Rao
[EMAIL PROTECTED]
http://pws.prserv.net/truemax/




We are running into problems with a deployment of Netscape Directory and
Messaging on HP-UX and are looking at alternatives.

Can QMail handle this scenario?

2000+ users for the domain mycompany.com

500 of those users will need their mail stored on 2 qmail servers at branch
sites (250 users per)
1500 of the users will be on a very buff HP 9000
All 2000 users must have the same domain name mycompany.com
([EMAIL PROTECTED] might be on the corporate HQ server while
[EMAIL PROTECTED] might be on a branch site server.  Branch sites and HQ
tied together using leased T1's and form a WAN (non-internet addresses)

All mail will be stored in IMAP format on those 3 servers.  LDAP
authentication with no local accounts on mail servers.  Verification of user
before sending mail (authenticated smtp?).  Works with Netscape 4.5+ client.
(I've heard Outlook Express works badly with IMAP servers other than
Microsoft's, is this true?)

Has anyone deployed and kind of Netscape/Outlook Express + Qmail-IMAP +
Qmail-LDAP setup with success?  How well do these play together?

Any information would be helpful.  We already use QMail for a relay and have
fairly good c and Unix expertise inhouse.

Thanks,
Fox
[EMAIL PROTECTED]








"Charles Leeds" <[EMAIL PROTECTED]> writes:

> Can QMail handle this scenario?
> 
> 2000+ users for the domain mycompany.com

This by itself should be no problem at all, but you should
definitely decouple qmail/IMAP user management from UNIX
user id and instead run all users under a single UID
and implement your own (fast) authentification and authorization
machanism. Something like the vpopmail
package <URL:http://www.inter7.com/vpopmail/> somes to mind, or
roll your own. With 2000+ users in a single virtual domain it
also pays off to implement some kind of hashed directory structure
to avoid 2000+ subdirs of a single virtual domain's main directory.

> 500 of those users will need their mail stored on 2 qmail servers at branch
> sites (250 users per)
> 1500 of the users will be on a very buff HP 9000
> All 2000 users must have the same domain name mycompany.com

That should be no problem at all.

> ([EMAIL PROTECTED] might be on the corporate HQ server while
> [EMAIL PROTECTED] might be on a branch site server.  Branch sites and HQ
> tied together using leased T1's and form a WAN (non-internet addresses)

You'll need one "master" SMTP server that is visible from
the internet accepting messages and have it distribute them
to the appropriate (internal) branch site. I suppose you're
running an internet-isolated DNS on your corporate network, then
you can set up appropriate MX RRs to point to branch servers and
forward messages on a per-user basis from the main server to the
branch offices.

> All mail will be stored in IMAP format on those 3 servers.

There is no such thing as an IMAP storage format per se; just
store the messages in Maildir format, then use an IMAP server
that handles Maildir format, such as
Courier-IMAP <URL:http://www.inter7.com/courierimap/>, which has
the advantage that it handles authorization through external
programs (somewhat like qmail-pop3d's checkpassword, just
a little bit more complicated) - this makes it easy to implement
your own authorization service using LDAP.

> LDAP
> authentication with no local accounts on mail servers.  Verification of user
> before sending mail (authenticated smtp?).

I've no experience with "authenticated SMTP". Is there even an RFC
for such a thing? Never heard of it.

> Works with Netscape 4.5+ client.
> (I've heard Outlook Express works badly with IMAP servers other than
> Microsoft's, is this true?)

Yes, more or less, depending on the version of Outlook you use
(Outlook-Expresss, Outlook-97 etc.) it does not play nice with
Courier-IMAP. This is due to both strange behavior of Outlook
and because Courier-IMAP is not yet feature-complete.

> Has anyone deployed and kind of Netscape/Outlook Express + Qmail-IMAP +
> Qmail-LDAP setup with success?  How well do these play together?

Works ok here, except for the LDAP part which we have no interest
in and hence never tried.

-t





Charles,

This is not a difficult thing to do into place.  Presuming that your
buff HP9000 is going to be your central server, you can then run all of
your virus-scan software, spam checking, and  mail log analysis on this
machine.

Then you only allow SMTP connections on your 2 leaf nodes from 'buff'
(and your client networks) and all mail for mycompany.com can be MX'd to
'buff'.  Buff then uses forward (or a pile of .qmail files) to send the
messages to the appropriate leaf node, or deliver it to cyrus (IMAP) or
imapd.

As far as the qmail-ldap integration, I'm afraid others will have to
answer that question....

Good luck!

-Martin

On  1 Dec, Charles Leeds wrote:
  : We are running into problems with a deployment of Netscape Directory and
  : Messaging on HP-UX and are looking at alternatives.
  : 
  : Can QMail handle this scenario?
  : 
  : 2000+ users for the domain mycompany.com
  : 
  : 500 of those users will need their mail stored on 2 qmail servers at branch
  : sites (250 users per)
  : 1500 of the users will be on a very buff HP 9000
  : All 2000 users must have the same domain name mycompany.com
  : ([EMAIL PROTECTED] might be on the corporate HQ server while
  : [EMAIL PROTECTED] might be on a branch site server.  Branch sites and HQ
  : tied together using leased T1's and form a WAN (non-internet addresses)
  : 
  : All mail will be stored in IMAP format on those 3 servers.  LDAP
  : authentication with no local accounts on mail servers.  Verification of user
  : before sending mail (authenticated smtp?).  Works with Netscape 4.5+ client.
  : (I've heard Outlook Express works badly with IMAP servers other than
  : Microsoft's, is this true?)
  : 
  : Has anyone deployed and kind of Netscape/Outlook Express + Qmail-IMAP +
  : Qmail-LDAP setup with success?  How well do these play together?
  : 
  : Any information would be helpful.  We already use QMail for a relay and have
  : fairly good c and Unix expertise inhouse.
  : 
  : Thanks,
  : Fox
  : [EMAIL PROTECTED]
  : 
  : 
  : 
  : 

-- 
Martin A. Brown --- SecurePipe Communications --- [EMAIL PROTECTED]





On Wed, 1 Dec 1999, Charles Leeds wrote:

> Has anyone deployed and kind of Netscape/Outlook Express + Qmail-IMAP +
> Qmail-LDAP setup with success?  How well do these play together?

Just curious -- what are you referring to by "Qmail-IMAP".  AFAIK, there's
no such thing.


--
Sam






        I keep a short-term log of messages passing through my relay using
the QUEUE_EXTRA mechanism as described in the FAQ.

        I'd also like to use condredirect to scan all incoming mail for
strings and handle that mail specially.  In particular, I'd like to forward
a copy of mail messages containing a string (like "zipped_files.exe") to
somewhere so I can keep an eye out for viruses.

        If I put the appropriate condredirect line into the .qmail file
indicated by QUEUE_EXTRA, and it forwards a message to me, this then
generates three bounces back to the original sender, like thus:

<[EMAIL PROTECTED]>:
This message is looping: it already has my Delivered-To line. (#5.4.6)

        How can I use condredirect for this without causing loops or
bounces?


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





>From [EMAIL PROTECTED] Mon Nov 29 04:09:48 1999  
Received: (qmail 26226 invoked by uid 60001); 29 Nov 1999 12:09:47 -0000  
Message-ID: <[EMAIL PROTECTED]>  

part of a header from one of my friends using usa.net. seems they're using
qmail too <:}


dd

PS: slackware announced new updates ppl. make sure you check the list of
    progs.





A Hoffman <[EMAIL PROTECTED]> wrote:

># more plusdomain 
>@domain.org
>@otherdomain.net

This is wrong, but it's not the cause of your problem. The plusdomain
file should contain a single domain name (no "@"), which qmail-inject
will substitute for a trailing "+" in host names.

E.g., say my system is sparge.example.com. If I put "example.com" in
plusdomain, a message sent to joe@mash+ will be rewritten as
[EMAIL PROTECTED]

-Dave




"Racer X" <[EMAIL PROTECTED]> wrote:

>Is it safe to change control/me to something other than the "real" hostname
>of the machine?  For instance, say I have 2 machines, romeo and juliet - can
>i set control/me to just "mail" on both machines?

Have a look at:

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

control/me's sole purpose is to supply a sane default value for
various other configuration files. This table will show you which
settings those are and what they do.

-Dave




I've fixed qmail-popbull.  It was occasionally the case that a message
was deleted after qmail-popbull created the symlink, but before
qmail-pop3d saw it.  qmail-pop3d would then ignore the dangling
symlink.  The fix is quite simple.  Insert the following line in
qmail-popbull.c.

   if (stat(fn.s, &st) == -1) die();
+  if ((st.st_mode & 0222) == 0) continue;
   if (st.st_mtime > ts_date)

Then, instead of deleting a bulletin, run "chmod ugo-w" on it.  When
it lacks any write permissions, it's considered archived, and
qmail-popbull will no longer create new symlinks pointing to it.
There is still a possibility of a user creating a symlink and then not
deleting it in the same POP3 session.  Leave the message around until
the probability of that has dropped close enough to zero.

The proper fix would be for qmail-pop3d (actually maildir.c) to delete
dangling symlinks.

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




Is there a "convention" for setting up an incoming mail relay with virus
checking ability with qmail?  It seems like something that would be easy to
do, like running every incoming message through a script and then forwarding
it back out, but that seems rather system intensive.  Has anyone come up with
a cleaner way?

Thanks,

--Adam




Howdy

I have a project that I need to tackle and I was hoping that someone may
have already had to do it and knows of a simple surefire way to do so.

I have a client that has a box with 5000 users on it running sendmail and
popper.  They are hosting email on here for approx 100 virtual domains and
they are parsing it with the sendmail /etc/virtusertable.  They want to
migrate to a new server and I'd like to put them on qmail.  I was thinking
a qmail/vpopmail/mysql solution would be the best and easiest to
administer, but I could be wrong.  

Keep in mind that these 5000 users all have their mail clients all setup
for the current system (Using their 8 char unix username and passwd) and
my client doesn't want to have to make all of them change their settings
to the user%domain.com.  Any suggestions as to what would make this
migration the easiest and with the least downtime would be great.  Thanks!

- T

---
Tyler J. Frederick
Senior Systems Engineer
fc.com, Inc.





"Tyler J. Frederick" <[EMAIL PROTECTED]> writes:

> I have a client that has a box with 5000 users on it running sendmail and
> popper.  They are hosting email on here for approx 100 virtual domains and
> they are parsing it with the sendmail /etc/virtusertable.  They want to
> migrate to a new server and I'd like to put them on qmail.  I was thinking
> a qmail/vpopmail/mysql solution would be the best and easiest to
> administer, but I could be wrong.  
> 
> Keep in mind that these 5000 users all have their mail clients all setup
> for the current system (Using their 8 char unix username and passwd) and
> my client doesn't want to have to make all of them change their settings
> to the user%domain.com.

If they use their UNIX username/password right now, this means their
usernames are unique over all virtual domains anyway right now, not
just unique within each virtual domain, right? Then it should be
no problem to set up a one-to-one mapping from unique, unqualified
username to the user's virtual maildomain (perhaps using a CDB file
that is re-generated once a day for the mapping) and implement
a checkpassword for qmail-pop3d that uses this mapping to direct
the user to his associated Maildir. Sounds like 30 lines of perl
and be done. For mass-converting all currently existing folders
to Maildir format I'd suggest a small shell script that uses
formail (from procmail) and safecat ( see
<URL:http://www.nb.net/~lbudney/linux/software/safecat.html> )
The downtime would amount to the time that is needed for folder
conversion, during which I would disable SMTP services (or at least
not have qmail-send running yet) to avoid a local delivery taking
place to a folder that is currently being converted to a Maildir.

-t





Well.. yea, they use the unix passwd file so yea, the usernames are unique
for each user, but they have the /etc/virtusertable with entries in it
like this:

[EMAIL PROTECTED]        localuser
[EMAIL PROTECTED]       localuser2

Knowing this, what would I do?  I think I'd do something in ~alias, but
I'm not necessarily sure.  I could setup vpopmail and in each domain dir
make the appropriate .qmail file to send to a local user.. However, I
don't want to have system accounts for each user.  Perhaps vpopmail with
mysql support would be best?  Just throwing ideas out...  Any thoughts?

- T

---
Tyler J. Frederick
Senior Systems Engineer
fc.com, Inc.

On 2 Dec 1999, Thomas Neumann wrote:

> If they use their UNIX username/password right now, this means their
> usernames are unique over all virtual domains anyway right now, not
> just unique within each virtual domain, right? Then it should be
> no problem to set up a one-to-one mapping from unique, unqualified
> username to the user's virtual maildomain (perhaps using a CDB file
> that is re-generated once a day for the mapping) and implement
> a checkpassword for qmail-pop3d that uses this mapping to direct
> the user to his associated Maildir. Sounds like 30 lines of perl
> and be done. For mass-converting all currently existing folders
> to Maildir format I'd suggest a small shell script that uses
> formail (from procmail) and safecat ( see
> <URL:http://www.nb.net/~lbudney/linux/software/safecat.html> )
> The downtime would amount to the time that is needed for folder
> conversion, during which I would disable SMTP services (or at least
> not have qmail-send running yet) to avoid a local delivery taking
> place to a folder that is currently being converted to a Maildir.
> 
> -t
> 
> 





"Tyler J. Frederick" wrote:
> 
> Well.. yea, they use the unix passwd file so yea, the usernames are unique
> for each user, but they have the /etc/virtusertable with entries in it
> like this:
> 
> [EMAIL PROTECTED]        localuser
> [EMAIL PROTECTED]       localuser2
> 
> Knowing this, what would I do?  I think I'd do something in ~alias, but
> I'm not necessarily sure.  I could setup vpopmail and in each domain dir
> make the appropriate .qmail file to send to a local user.. However, I
> don't want to have system accounts for each user.  Perhaps vpopmail with
> mysql support would be best?  Just throwing ideas out...  Any thoughts?

The vpopmail authentication structure contains the same fields as the
/etc/passwd data structure with the addition of a domain name.

The default vpopmail sql table definition also includes the domain name.
You can add an additional field which contains the virtualtable
mappings.
This can be done by editing vmysql.h and modifying the table definition.
The table gets created automatically on the first use of the vpopmail
api library calls.

You could then modify the vdelivermail.c (delivers mail to a directory)
and vchkpw.c (authenticates a pop connection and points pop server at
a Maildir).

Both programs could be modified to do an additional sql query to match
the sendmail virtable mappings. 

For example:
vdelivermail: select <password structure> where pw_virt_email = <email
address>
This will deliver to the pw_dir directory.

vchkpw: select <password structure> where pw_virt_user = <localuser>

Then you will need to write a program which parses the virtusertable and
updates the vpopmail sql table for these two new fields. 
    pw_virt_email               pw_virt_user
> [EMAIL PROTECTED]        localuser

That should do it.

Ken Jones
Inter7

> 
> - T
> 
> ---
> Tyler J. Frederick
> Senior Systems Engineer
> fc.com, Inc.
> 
> On 2 Dec 1999, Thomas Neumann wrote:
> 
> > If they use their UNIX username/password right now, this means their
> > usernames are unique over all virtual domains anyway right now, not
> > just unique within each virtual domain, right? Then it should be
> > no problem to set up a one-to-one mapping from unique, unqualified
> > username to the user's virtual maildomain (perhaps using a CDB file
> > that is re-generated once a day for the mapping) and implement
> > a checkpassword for qmail-pop3d that uses this mapping to direct
> > the user to his associated Maildir. Sounds like 30 lines of perl
> > and be done. For mass-converting all currently existing folders
> > to Maildir format I'd suggest a small shell script that uses
> > formail (from procmail) and safecat ( see
> > <URL:http://www.nb.net/~lbudney/linux/software/safecat.html> )
> > The downtime would amount to the time that is needed for folder
> > conversion, during which I would disable SMTP services (or at least
> > not have qmail-send running yet) to avoid a local delivery taking
> > place to a folder that is currently being converted to a Maildir.
> >
> > -t
> >
> >





Thomas Neumann wrote:

> The downtime would amount to the time that is needed for folder
> conversion, during which I would disable SMTP services (or at least
> not have qmail-send running yet) to avoid a local delivery taking
> place to a folder that is currently being converted to a Maildir.

You are not forced to use Maildir, you can still use mailbox, you can
still use /var/spool/mail so the downtime is keept to a minimun.





Diego Alejandro Puertas Fernandez <[EMAIL PROTECTED]> writes:

> Thomas Neumann wrote:
> 
> > The downtime would amount to the time that is needed for folder
> > conversion, during which I would disable SMTP services (or at least
> > not have qmail-send running yet) to avoid a local delivery taking
> > place to a folder that is currently being converted to a Maildir.
> 
> You are not forced to use Maildir, you can still use mailbox, you can
> still use /var/spool/mail so the downtime is keept to a minimun.

You *must* use Maildir format if you want to use qmail-pop3d, and
you _really_ do want this.

-t







For anyone is handling large mailing lists... How long does the qmail-inject
program take to send emails to about 5000 people in the list?

Thanks
ROhit





> For anyone is handling large mailing lists... How long does the
qmail-inject
> program take to send emails to about 5000 people in the list?

How fast is your machine/network ? This is a silly question, indeed.






Rohit Khamkar writes:
 > 
 > For anyone is handling large mailing lists... How long does the qmail-inject
 > program take to send emails to about 5000 people in the list?

Ten minutes, an hour, all day, or seven days.

[ I'm sorry, but I get tired of people asking questions which, were
  they asked of themselves, they would immediately recognize as
  "stupid".  If somebody asked *you* how to answer this question, how
  would you do it?  You'd probably want to know what kind of hardware
  they had.  You'd also want to point out that qmail will queue up
  mail for seven days, so given that one of the 5000 people probably
  have a bouncing address, the most true answer is always going to be
  "seven days".  So perhaps a better question would be "... to send
  emails to 90% of 5000 people in the list."  You'd also want to know
  whether these are 5000 local users or 5000 remote users.  So, how
  *would* you answer this question? -russ ]

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




people asking questions like this are just testing the waters...
this is normally ask by "IT" Managers or Executives who are very Lazy to do
their own R & D and just look for a Quick Fix to impress their Boss...


-----Original Message-----
From: Rohit Khamkar <[EMAIL PROTECTED]>
To: Tyler J. Frederick <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Thursday, 2 December 1999 8:28
Subject: Speed


>
>For anyone is handling large mailing lists... How long does the
qmail-inject
>program take to send emails to about 5000 people in the list?
>
>Thanks
>ROhit
>
>





Hello,

I tried to setup relay-ctrl on a new machine, but it doesn't work.
relay-ctrl-allow writes the IP in the spool dir, but does not make a
new cdb file. relay-ctrl-age (executed via cron) builds a new cdb file
every five minutes. So I have to wait up to 5 minutes to relay a mail.
It's a little bit weird, because I installed an older version on
another system and it worked perfectly. Do you have any idea what could
be wrong? I thinks relay-ctrl-allow executes relay-ctrl-age. Maybe
there is a problem in executing relay-ctrl-age, but I don't know why.
AGE_CMD looks fine.

pop3d part from my qmail startup file:

sh -c "start-stop-daemon --start --quiet --user root \
  --exec /usr/bin/tcpserver -- \
  0 pop-3 /usr/sbin/qmail-popup `hostname`.`dnsdomainname` \
  /opt/vmailmgr/bin/checkvpw /opt/relay-ctrl/sbin/relay-ctrl-allow
/usr/sbin/qmail-pop3d Maildir &"


Here my defines.h:

#ifndef AGE_MINUTES
#define AGE_MINUTES 10
#endif

#ifndef BUFSIZE
#define BUFSIZE 4096
#endif

#ifndef RULESDIR
#define RULESDIR "/etc"
#endif

#ifndef SPOOLDIR
#define SPOOLDIR "/opt/relay-ctrl/spool"
#endif

#ifndef AGE_CMD
#define AGE_CMD "/opt/relay-ctrl/sbin/relay-ctrl-age"
#endif

#ifndef TCPRULES
#define TCPRULES "/usr/bin/tcprules"
#endif

#ifndef SMTPRULES
#define SMTPRULES "tcp.smtp"
#endif

#ifndef SMTPCDB
#define SMTPCDB "tcp.smtp.cdb"
#endif

#ifndef SMTPFIXUP
#define SMTPFIXUP "smtp.fixup"
#endif







It does work-- I'm using it now, but I can't see what you've missed 
here. Is anything showing up in the spool directory, 
/opt/relay-ctrl/spool? Does it exist? Are you positive you have the 
names of the rules files correct?

Jon

At 11:16 PM +0100 12/1/99, [EMAIL PROTECTED] wrote:
>Hello,
>
>I tried to setup relay-ctrl on a new machine, but it doesn't work.
>relay-ctrl-allow writes the IP in the spool dir, but does not make a
>new cdb file. relay-ctrl-age (executed via cron) builds a new cdb file
>every five minutes. So I have to wait up to 5 minutes to relay a mail.
>It's a little bit weird, because I installed an older version on
>another system and it worked perfectly. Do you have any idea what could
>be wrong? I thinks relay-ctrl-allow executes relay-ctrl-age. Maybe
>there is a problem in executing relay-ctrl-age, but I don't know why.
>AGE_CMD looks fine.
>
>pop3d part from my qmail startup file:
>
>sh -c "start-stop-daemon --start --quiet --user root \
>  --exec /usr/bin/tcpserver -- \
>  0 pop-3 /usr/sbin/qmail-popup `hostname`.`dnsdomainname` \
>  /opt/vmailmgr/bin/checkvpw /opt/relay-ctrl/sbin/relay-ctrl-allow
>/usr/sbin/qmail-pop3d Maildir &"
>
>
>Here my defines.h:
>
>#ifndef AGE_MINUTES
>#define AGE_MINUTES 10
>#endif
>
>#ifndef BUFSIZE
>#define BUFSIZE 4096
>#endif
>
>#ifndef RULESDIR
>#define RULESDIR "/etc"
>#endif
>
>#ifndef SPOOLDIR
>#define SPOOLDIR "/opt/relay-ctrl/spool"
>#endif
>
>#ifndef AGE_CMD
>#define AGE_CMD "/opt/relay-ctrl/sbin/relay-ctrl-age"
>#endif
>
>#ifndef TCPRULES
>#define TCPRULES "/usr/bin/tcprules"
>#endif
>
>#ifndef SMTPRULES
>#define SMTPRULES "tcp.smtp"
>#endif
>
>#ifndef SMTPCDB
>#define SMTPCDB "tcp.smtp.cdb"
>#endif
>
>#ifndef SMTPFIXUP
>#define SMTPFIXUP "smtp.fixup"
>#endif





At 1:30 AM +0100 12/2/99, [EMAIL PROTECTED] wrote:
>The IPs are written to the spool dir and relay-ctrl-age creates a new
>cdb file every 5 minutes via cron. It's strange. Are there other relay
>solutions which works?

Hmmm... are you using the same cdb files for your qmail-smtpd 
invocation that you're specifying here? If you run a cdbdump, what 
does it show?

    cdbdump </etc/tcp.smtp.cdb | tr '\0' :

You should get a whole list of IPs like so:

    +15,14:192.168.100.1->+RELAYCLIENT=:
    +14,14:10.3.4.5->+RELAYCLIENT=:

Are the test IPs in there?

jon




On Wed, 1 Dec 1999 16:38:31 -0800, Jon Rust wrote:

>At 1:30 AM +0100 12/2/99, [EMAIL PROTECTED] wrote:
>>The IPs are written to the spool dir and relay-ctrl-age creates a new
>>cdb file every 5 minutes via cron. It's strange. Are there other relay
>>solutions which works?
>
>Hmmm... are you using the same cdb files for your qmail-smtpd 
>invocation that you're specifying here? If you run a cdbdump, what 
>does it show?
>
>    cdbdump </etc/tcp.smtp.cdb | tr '\0' :

I have no cdbdump, but I can relay mails, after cron executed
relay-ctrl-age. So I fetch mails via POP3, but cannot relay, because
the cdb file was not refreshed. After some minutes, when cron executes
relay-ctrl-age, my IP was written to the cdb and I can relay mail. This
is the strange behaviour I do not understand. If the IP is not be
written to the spool or the cdb is not be created, I would know where I
should look.

Thanks for your help :)





On Wed, 1 Dec 1999 16:20:55 -0800, Jon Rust wrote:

>It does work-- I'm using it now, but I can't see what you've missed 
>here. Is anything showing up in the spool directory, 
>/opt/relay-ctrl/spool? Does it exist? Are you positive you have the 
>names of the rules files correct?

The IPs are written to the spool dir and relay-ctrl-age creates a new
cdb file every 5 minutes via cron. It's strange. Are there other relay
solutions which works?

>At 11:16 PM +0100 12/1/99, [EMAIL PROTECTED] wrote:
>>Hello,
>>
>>I tried to setup relay-ctrl on a new machine, but it doesn't work.
>>relay-ctrl-allow writes the IP in the spool dir, but does not make a
>>new cdb file. relay-ctrl-age (executed via cron) builds a new cdb file
>>every five minutes. So I have to wait up to 5 minutes to relay a mail.
>>It's a little bit weird, because I installed an older version on
>>another system and it worked perfectly. Do you have any idea what could
>>be wrong? I thinks relay-ctrl-allow executes relay-ctrl-age. Maybe
>>there is a problem in executing relay-ctrl-age, but I don't know why.
>>AGE_CMD looks fine.
>>
>>pop3d part from my qmail startup file:
>>
>>sh -c "start-stop-daemon --start --quiet --user root \
>>  --exec /usr/bin/tcpserver -- \
>>  0 pop-3 /usr/sbin/qmail-popup `hostname`.`dnsdomainname` \
>>  /opt/vmailmgr/bin/checkvpw /opt/relay-ctrl/sbin/relay-ctrl-allow
>>/usr/sbin/qmail-pop3d Maildir &"
>>
>>
>>Here my defines.h:
>>
>>#ifndef AGE_MINUTES
>>#define AGE_MINUTES 10
>>#endif
>>
>>#ifndef BUFSIZE
>>#define BUFSIZE 4096
>>#endif
>>
>>#ifndef RULESDIR
>>#define RULESDIR "/etc"
>>#endif
>>
>>#ifndef SPOOLDIR
>>#define SPOOLDIR "/opt/relay-ctrl/spool"
>>#endif
>>
>>#ifndef AGE_CMD
>>#define AGE_CMD "/opt/relay-ctrl/sbin/relay-ctrl-age"
>>#endif
>>
>>#ifndef TCPRULES
>>#define TCPRULES "/usr/bin/tcprules"
>>#endif
>>
>>#ifndef SMTPRULES
>>#define SMTPRULES "tcp.smtp"
>>#endif
>>
>>#ifndef SMTPCDB
>>#define SMTPCDB "tcp.smtp.cdb"
>>#endif
>>
>>#ifndef SMTPFIXUP
>>#define SMTPFIXUP "smtp.fixup"
>>#endif
>








At 1:51 AM +0100 12/2/99, [EMAIL PROTECTED] wrote:
>>    cdbdump </etc/tcp.smtp.cdb | tr '\0' :
>
>I have no cdbdump,

Get it with the cdb package at

   http://cr.yp.to/cdb.html

Very useful.

>but I can relay mails, after cron executed
>relay-ctrl-age. So I fetch mails via POP3, but cannot relay, because
>the cdb file was not refreshed. After some minutes, when cron executes
>relay-ctrl-age, my IP was written to the cdb and I can relay mail. This
>is the strange behaviour I do not understand. If the IP is not be
>written to the spool or the cdb is not be created, I would know where I
>should look.

Whoa. Dunno how to explain that one. Play with cdbdump and see what 
happens at each stage. Hopefully someone more knowledgeable than 
myself will step forward and help.

Jon




On 1 Dec 99, at 16:38, Jon Rust wrote:

> At 1:30 AM +0100 12/2/99, [EMAIL PROTECTED] wrote:
> >The IPs are written to the spool dir and relay-ctrl-age creates a new
> >cdb file every 5 minutes via cron. It's strange. Are there other
> >relay solutions which works?
> 
> Hmmm... are you using the same cdb files for your qmail-smtpd 
> invocation that you're specifying here? If you run a cdbdump, what
> does it show?
> 
>     cdbdump </etc/tcp.smtp.cdb | tr '\0' :
> 
> You should get a whole list of IPs like so:
> 
>     +15,14:192.168.100.1->+RELAYCLIENT=:
>     +14,14:10.3.4.5->+RELAYCLIENT=:
> 
> Are the test IPs in there?
> 
> jon

Or, you could try this:

#!/bin/bash

echo ""
relayclients=`cdbtest < /etc/tcp.smtp.cdb \
| awk 'BEGIN { FS = ": "  }{ if (number < $2) number = $2 }
END { number-- ; print number }'`
ipaddresses=`cdbdump < /etc/tcp.smtp.cdb | awk 'BEGIN { FS = "->" }{ 
print $1 }' \
| awk 'BEGIN { FS = ":" }{ print $2 }' | sort | tail --lines 
$relayclients`
echo "- current number of relay clients: $relayclients"
echo "- and their corresponding IP addresses:"
echo "$ipaddresses"



(but i'd appreciate a small c gadget for this, anyone ?)
--

Webhosting: http://www.kvikkjokk.com
Oden Eriksson (CNE+MCSE+Linux)
UIN: 952113
0971-554 52, 070-346 43 02




I am trying to set up qmail as my MTA. In order to test it I am running the
command: sh -cf '/var/qmail/rc &'

The contents of the rc script are as follows:

#!/bin/sh

exec env - PATH="/var/qmail/bin:$PATH" \
qmail-start ./Mailbox splogger qmail

when I do a ps -aux, none of the 4 qmail daemons that should be running have
been started and I get the following message in /var/log/mail:

Dec 2  10:57:41 hwlab qmail: 956930303.302345 alert: cannot start:
qmail-send is already running

What is happening here? Why does it think that qmail-send (qmails daemon) is
already running? Any suggestions as to how I can fix this would be
appreciated.

Paul





On 01-Dec-99 Paul Charsley wrote:
> I am trying to set up qmail as my MTA. In order to test it I am running the
> command: sh -cf '/var/qmail/rc &'
> 
> The contents of the rc script are as follows:
> 
>#!/bin/sh
> 
> exec env - PATH="/var/qmail/bin:$PATH" \
> qmail-start ./Mailbox splogger qmail
> 
> when I do a ps -aux, none of the 4 qmail daemons that should be running have
> been started and I get the following message in /var/log/mail:
> 
> Dec 2  10:57:41 hwlab qmail: 956930303.302345 alert: cannot start:
> qmail-send is already running
> 
> What is happening here? Why does it think that qmail-send (qmails daemon) is
> already running? Any suggestions as to how I can fix this would be
> appreciated.

Try  ps -axww | grep qmail  and see if you see it.

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






I tried ps -axww | grep qmail without luck. Something is happening however
since when I try:

echo to: paul | /var/qmail/bin/qmail-inject

syslog shows the message as successfully delivered. However the user paul
does not receive the mail (paul owns his home directory and it is not group
or world writeable). My OS is Caldera linux (2.0.35).

Paul

-----Original Message-----
From: Vince Vielhaber [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 02, 1999 12:04 PM
To: Paul Charsley
Cc: [EMAIL PROTECTED]
Subject: RE: Can't start qmail daemons



On 01-Dec-99 Paul Charsley wrote:
> I am trying to set up qmail as my MTA. In order to test it I am running
the
> command: sh -cf '/var/qmail/rc &'
> 
> The contents of the rc script are as follows:
> 
>#!/bin/sh
> 
> exec env - PATH="/var/qmail/bin:$PATH" \
> qmail-start ./Mailbox splogger qmail
> 
> when I do a ps -aux, none of the 4 qmail daemons that should be running
have
> been started and I get the following message in /var/log/mail:
> 
> Dec 2  10:57:41 hwlab qmail: 956930303.302345 alert: cannot start:
> qmail-send is already running
> 
> What is happening here? Why does it think that qmail-send (qmails daemon)
is
> already running? Any suggestions as to how I can fix this would be
> appreciated.

Try  ps -axww | grep qmail  and see if you see it.

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






I know is not a topic for the list, but you all are so helpful, I just had
to ask :)
   
Does anybody have any suggestions on a good IMAP server? I've gotten
courier-imap installed and running, but my IMAP clients (Netscape
Communicator 4.7 on RedHat Linux and Outlook Express 5.0 on a Mac) are
getting an error back from courier-imap: "Error in IMAP command received by
server". This seems to be a generic error message that is used when any is
sent wrong to the server.
I've checked the logs, and no error messages in there.

Anybody have a suggestion on another IMAP server, how a way to get
courier-imap to work correctly?
IMAP, right now, is the only way to make Netscape check multiple email
accounts.


Thnx.. 

Philip





Hi

when I run "rpm --rebuild qmail-1.03+patches-8.src.rpm"
the process stops with:

nroff -man envelopes.5 > envelopes.0
nroff -man forgeries.7 > forgeries.0
+ ./compile qmail-pipe.c
+ ./load qmail-pipe
+ exit 0
Executing: %install
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd qmail-1.03
+ export PATH=/sbin:/usr/sbin:/bin:/usr/bin
+ PATH=/sbin:/usr/sbin:/bin:/usr/bin
/var/tmp/rpm-tmp.99992: line 168: syntax error: unexpected end of file
Bad exit status from /var/tmp/rpm-tmp.99992 (%install)

--------------------------------
Any idea what's wrong??

--------------------------------
$ rpm -qa | grep "^rpm-"
rpm-devel-3.0.3-31mdk
rpm-3.0.3-31mdk

$ uname -a
Linux naiad.spacetec.no 2.2.13-22mdk #1 SMP Fri Oct 22 02:06:33 CEST
1999 i686 unknown
-- 
/hans




Hi!

Maybe the above doesn't explain much.

Lets say I send a message to [EMAIL PROTECTED] and [EMAIL PROTECTED] And I want
qmail to deliver to user1 immediately but user2 with a queue or delay.

Is this possible?

Thanks in advance.




On Thu, Dec 02, 1999 at 10:38:34AM +0000, Alfonso Armenta wrote:
> Hi!
> 
> Maybe the above doesn't explain much.
> 
> Lets say I send a message to [EMAIL PROTECTED] and [EMAIL PROTECTED] And I want
> qmail to deliver to user1 immediately but user2 with a queue or delay.
> 
> Is this possible?

Sure. Have mail for user2 delivered to a Maildir and use cron or the likes
to do the delivery at a later time.

But what's the use?

Greetz, Peter.
-- 
Peter van Dijk - student/sysadmin/ircoper/womanizer/pretending coder 
|  
| 'C makes it easy to shoot yourself in the foot;
|  C++ makes it harder, but when you do it blows your whole leg off.'
|                             Bjarne Stroustrup, Inventor of C++


Reply via email to