qmail Digest 22 Jan 2000 11:00:01 -0000 Issue 888

Topics (messages 35856 through 35910):

Re: Big Problem with virtualdomains, qmail mustn't rewrite recipi ent !
        35856 by: Paul Trippett

Re: High-load servers...
        35857 by: cmikk.uswest.net
        35867 by: Mark Delany
        35873 by: cmikk.uswest.net
        35877 by: Mark Delany
        35881 by: cmikk.uswest.net
        35884 by: Dave Sill
        35886 by: cmikk.uswest.net
        35893 by: Russ Allbery
        35897 by: cmikk.uswest.net
        35898 by: Bruce Guenter
        35899 by: Michael Boman
        35902 by: Bruce Guenter
        35903 by: Russ Allbery
        35904 by: Russ Allbery
        35909 by: John White
        35910 by: Petr Novotny

Error
        35858 by: Haifeng Guo
        35859 by: Petr Novotny

Re: Cannot creating user account with an & in qmailadmin
        35860 by: Dave Kitabjian

Re: relay-ctrl 1.2 problem
        35861 by: Bruce Guenter
        35874 by: Olivier M.

qmail refuses to start, cannot allocate memory. Please help!
        35862 by: Ivailo Djilianov
        35864 by: schinder.leprss.gsfc.nasa.gov

Recieving and deliverying mail without a domain in qmail
        35863 by: Jacob Joseph
        35891 by: David F. Hepner

Vdeliver takes too long
        35865 by: Marcelo Costa

Cyrus - Qmail
        35866 by: Lars Heuer

No return message when user not exists in virtual domain
        35868 by: sistemas1.hipernet.es
        35869 by: iv0

Some questions..(Micorsoft/qmail)
        35870 by: Morten Ranheim
        35871 by: Michael Cunningham
        35872 by: Max

Configuration for high volume qmail box
        35875 by: Max
        35876 by: Faried Nawaz
        35878 by: Max
        35879 by: Russell Nelson
        35880 by: Dave Sill
        35882 by: Dave Sill
        35887 by: Max

APOP
        35883 by: J.M. Roth \(iip\)
        35888 by: J.M. Roth
        35892 by: Juan E Suris
        35908 by: J.M. Roth

ANNOUNCE: imapvpop working site
        35885 by: David Harris

Odd question
        35889 by: Juan E Suris
        35895 by: Sam

POP password checking
        35890 by: Jacob Joseph
        35894 by: Sam
        35896 by: Jacob Joseph
        35900 by: Jacob Joseph

Incorrect (?) response code 555 from qmail-smtpd
        35901 by: Russ Allbery
        35905 by: D. J. Bernstein
        35907 by: Russ Allbery

Mbox format with qmail-local possible?
        35906 by: Kristina

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]


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


this will happen if you use the same .qmail-(alias) file for the 2 domains
use separate ones thet point to the same place.

Reagrds,

Paul Trippett

-----Original Message-----
From: Puck [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 21, 2000 9:22 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Big Problem with virtualdomains, qmail mustn't rewrite
recipient !


Hi !

>>my virtualdomains file :
>>
>>schock-bad.de:schockbad
>>burgbad-service.de:schockbad
>>
>>Well, when i send mail to [EMAIL PROTECTED] , qmail rewrites the
> header to :
>>
>>Delivered-To: [EMAIL PROTECTED]
>>
>>it should be :
>>
>>Delivered-To: [EMAIL PROTECTED]
>>
>>
>>All mail for schock-bad.de and burgbad-service.de should be collected
> within only
>>one maildir, because schock-bad.de uses a windows-nt mailserver that can
only
>>retrieve mail from ONE pop3 !
>>
>>How can i "tell" qmail not to rewrite the header ?

> Hello,

> A: Three steps:
>    1. Create /var/qmail/control/virutaldomains:
>        schock-bad.de:schockbad
>       burgbad-service.de:schockbad
>    2. Create a local UNIX Account "schockbad".
>    (a) Log in as "schockbad" and
>        create "Mailbox" or "Maildir" (depending on you QMAIL setup)
>            eg: maildirmake $HOME/Maildir ; echo ./Maildir/ > ~/.qmail
>           eg: touch Mailbox ; echo ./Mailbox > ~/.qmail
>    (b) Edit file .qmail-default
>       # /home/shockbad/.qmail-default
>       |forward [EMAIL PROTECTED] (matches your sample) --
or --
>       |forward "$EXT"@schock-bad.de (matches your wishes)
>    3. Stop QMAIL and restart (changes become activ).

> If you have a file /var/qmail/alias/.qmail-shock... delete it !
> I'm not sure, whether you use POP3 to grep the mail from your QMAIL MTA or
> not.
> By the mechanisms shown above QMAIL does a SMTP delever to the NT-Server.
> Check the MX-Records for the NT-Server and your file
> /var/qmail/control/smtproutes.

You missunderstood me !

I have a qmail server which runs schock-bad.de for around 5 months now.
Now, there is one more domain burgbad-service.de whose mail should also
be deleivered to the schock-bad maildir, keeping the original reciever !

-> delivered-to: [EMAIL PROTECTED]

at the moment, qmail does the following :

delivered-to : [EMAIL PROTECTED]
               ^^^^^^^^^

this should be burgbad-service, not schockbad !

I think it's because i deliver mail for both domains into one maildir,
which is owned by schock-bad !
burgbad-service has no own maildir or user, because it must be delivered
to schock-bad without changing headers !

Thanks,
  Thomas





On Thu, 20 Jan 2000 21:04:11 -0800 , Mark Delany writes:
> Are these inbound or outbound transactions. Inbound and the concommitant
> local delivery is usually a lot harder on a system than outbound.

Another issue is multiple deliveries -- if you are
doing header rewriting in the standard, stock qmail
way, you are doing two deliveries per message.  To
say this kills performance is an understatement.
 
> You will need to have separate queues that are load-balanced in
> some way. There are also NVRAM disks to consider as potential
> queue disks with awesome performance, but I've not seen those
> used on qmail.

Solid-state disks are prohibitively expensive -- a
decent sized one costs about as much as a decent
sized house[1].  In other words, if you have enough
money for an SSD, there are generally better things
you can do with it, like run multiple servers, and
use round-robin MXing to do load-balancing and
failover.

If you're trying to keep server counts down, it
might be better to run multiple queues on one machine,
each on its own spindle.  You can basically make
multiple qmail installs, modifying conf-qmail to
control where they are installed.  Apply Bruce
Guenter's QMAILQUEUE patch to one of them, and use
the smtp daemon from that installation.  Wrap the
smtpd with a program that chooses a random qmail
installation, and sets the QMAILQUEUE environment
variable to that installation's qmail-queue.

That will alleviate the qmail-send bottleneck almost
as effectively as having multiple servers.

-- 
Chris Mikkelson  |  "Unfortunately, simplicity is a complicated mess
[EMAIL PROTECTED] |  of a concept."   --Taner Edis

[1] In St. Paul, MN, anyway.....




On Fri, Jan 21, 2000 at 06:57:55AM -0600, [EMAIL PROTECTED] wrote:
> 
> On Thu, 20 Jan 2000 21:04:11 -0800 , Mark Delany writes:
> > Are these inbound or outbound transactions. Inbound and the concommitant
> > local delivery is usually a lot harder on a system than outbound.
> 
> Another issue is multiple deliveries -- if you are
> doing header rewriting in the standard, stock qmail
> way, you are doing two deliveries per message.  To
> say this kills performance is an understatement.

Header rewriting in the stock qmail? Two deliveries per message?

I don't see this in any "stock" qmail or are you assuming
that delivery goes thru an ~alias structure of some sort first?

> > You will need to have separate queues that are load-balanced in
> > some way. There are also NVRAM disks to consider as potential
> > queue disks with awesome performance, but I've not seen those
> > used on qmail.
> 
> Solid-state disks are prohibitively expensive -- a
> decent sized one costs about as much as a decent
> sized house[1].  In other words, if you have enough
> money for an SSD, there are generally better things
> you can do with it, like run multiple servers, and
> use round-robin MXing to do load-balancing and
> failover.

It very much depends on where your mail storage is as to what
strategies you can deploy in this regard.
Has anyone on this list had the luxury of running a full/large load
on a variety of different scenarios in use?

What is clear from the variety of experiences expressed on this list
is that a good understanding of where your loads are, allows a competent
qmail admin to devise a variety of workable solutions.

Has anyone actually done a cost-benefit on SSD vs
multiple systems?


Mark.





On Fri, 21 Jan 2000 08:18:04 -0800 , Mark Delany writes:
> On Fri, Jan 21, 2000 at 06:57:55AM -0600, [EMAIL PROTECTED] wrote:
> > 
> > On Thu, 20 Jan 2000 21:04:11 -0800 , Mark Delany writes:
> > > Are these inbound or outbound transactions. Inbound and the concommitant
> > > local delivery is usually a lot harder on a system than outbound.
> > 
> > Another issue is multiple deliveries -- if you are
> > doing header rewriting in the standard, stock qmail
> > way, you are doing two deliveries per message.  To
> > say this kills performance is an understatement.
> 
> Header rewriting in the stock qmail? Two deliveries per message?
> 
> I don't see this in any "stock" qmail or are you assuming
> that delivery goes thru an ~alias structure of some sort first?

That's how you do header rewriting in "stock" qmail:
use a virtualdomain (e.g. @fixme in the FAQ) to
direct the mail through ~alias/.qmail-something-default,
which runs a script of your own choosing, which in
turn re-injects the message into the queue.  Hence
two deliveries.

Using Bruce's QMAILQUEUE patch, you can call a
qmail-queue wrapper to rewrite the message before
injecting it, but that's not "stock" qmail.

-- 
Chris Mikkelson  | Einstein himself said that God doesn't roll dice. But
[EMAIL PROTECTED] | he was wrong.  And in fact, anyone who has played role-
                 | playing games knows that God probably had to roll quite
                 | a few dice to come up with a character like Einstein.
                 |                              -- Larry Wall




> > > Another issue is multiple deliveries -- if you are
> > > doing header rewriting in the standard, stock qmail
> > > way, you are doing two deliveries per message.  To
> > > say this kills performance is an understatement.
> > 
> > Header rewriting in the stock qmail? Two deliveries per message?
> > 
> > I don't see this in any "stock" qmail or are you assuming
> > that delivery goes thru an ~alias structure of some sort first?
> 
> That's how you do header rewriting in "stock" qmail:
> use a virtualdomain (e.g. @fixme in the FAQ) to
> direct the mail through ~alias/.qmail-something-default,
> which runs a script of your own choosing, which in
> turn re-injects the message into the queue.  Hence
> two deliveries.

Right. It sure is something people can do and I think that
@fixme accurately alludes to the general nature of things,
but  it's not clear to me how this got specifically bound to
questions relating to a high-volume box.

You are right in pointing out that you want to avoid
such things and user, eg, qmail-users. But on a HV box there
are many things you want to avoid.


Regards.





On Fri, 21 Jan 2000 11:38:16 -0800 , Mark Delany writes:
[double-deliveries + header rewriting] 
> Right. It sure is something people can do and I think that
> @fixme accurately alludes to the general nature of things,
> but  it's not clear to me how this got specifically bound to
> questions relating to a high-volume box.

Well, I brought it up because header rewriting
affects qmail's performance under high-volume --
it's not a graceful degradation, but more like
"hitting a wall."

I guess my point was this: if you don't do anything
fancy, i.e. your box does not do forwarding, rewriting,
etc., then setting up a high-volume qmail server is
pretty straightforward.

If your setup requires forwarding and header rewriting
(as mine does), then making a qmail server "high volume"
takes a fair amount of hacking[1].

-- 
Chris Mikkelson  | If you throw your bread upon the waters, it shall come
[EMAIL PROTECTED] | back threefold, but only if you are willing to throw the
                 | recipe upon the waters as well...  -- Terry Lambert 
                        
[1] As I keep telling the sendmail bigots around
the office, hacking qmail source and hacking
sendmail.cf are roughly equal in complexity (although
qmail source is written in a real language).




[EMAIL PROTECTED] wrote:

>I guess my point was this: if you don't do anything
>fancy, i.e. your box does not do forwarding, rewriting,
>etc., then setting up a high-volume qmail server is
>pretty straightforward.

Forwarding is not "fancy" or expensive with qmail.

Rewriting is expensive because it's generally the wrong thing to do.

-Dave





On Fri, 21 Jan 2000 15:26:13 -0500 (EST) , Dave Sill writes:
> >I guess my point was this: if you don't do anything
> >fancy, i.e. your box does not do forwarding, rewriting,
> >etc., then setting up a high-volume qmail server is
> >pretty straightforward.
> 
> Forwarding is not "fancy" or expensive with qmail.

Forwarding and rewriting in qmail do pretty much
the same thing: deliver to some alias-controlled
account, and then re-inject the message into the
queue.  That's the expensive part, because then the
message must go through qmail-send again.

Since re-enqueueing the message involves several
fsync()s, I think any overhead associated with
scanning the message content pales by comparison.
 
> Rewriting is expensive because it's generally the wrong thing to do.

Well, as I said above, I don't agree on the "expensive"
aspect.  Could you elaborate on the wrongess part?

-- 
Chris Mikkelson  | For example, I could be a sentient PERL script.  That
[EMAIL PROTECTED] | pretty much assumes that someone brilliant enough to
                 | write me was also stupid enough to program in PERL.
                 | Not a likely explanation.  -- Terry Lambert




cmikk <[EMAIL PROTECTED]> writes:

> That's how you do header rewriting in "stock" qmail: use a virtualdomain
> (e.g. @fixme in the FAQ) to direct the mail through
> ~alias/.qmail-something-default, which runs a script of your own
> choosing, which in turn re-injects the message into the queue.  Hence
> two deliveries.

Why would you choose to do it that way rather than running ofmipd for the
clients that require rewriting?

-- 
Russ Allbery ([EMAIL PROTECTED])         <URL:http://www.eyrie.org/~eagle/>





On 21 Jan 2000 17:47:24 -0800 , Russ Allbery writes:
> cmikk <[EMAIL PROTECTED]> writes:
> 
> > That's how you do header rewriting in "stock" qmail: use a virtualdomain
> > (e.g. @fixme in the FAQ) to direct the mail through
> > ~alias/.qmail-something-default, which runs a script of your own
> > choosing, which in turn re-injects the message into the queue.  Hence
> > two deliveries.
> 
> Why would you choose to do it that way rather than running ofmipd for the
> clients that require rewriting?

Since our mail servers perform relaying for roaming
customers, they would have to be open to any IP address.
Ofmipd does not allow you to control relaying, last
I checked, so that would require some hacking.

Not too much hacking, though.  I think that's going
on my list of things to try.

When I started my latest hack, I was under the
impression that ofmipd supported a subset of SMTP,
but checking the source, I see that I was mistaken.
I probably took the "more hacking" route:  I wrote
a qmail-queue wrapper which will rewrite the message
headers and the envelope.

-- 
Chris Mikkelson  |      Problems are posed by fools like me;
[EMAIL PROTECTED] |      But only Heuristics can search a tree.




On Fri, Jan 21, 2000 at 10:24:11PM -0600, [EMAIL PROTECTED] wrote:
> When I started my latest hack, I was under the
> impression that ofmipd supported a subset of SMTP,
> but checking the source, I see that I was mistaken.
> I probably took the "more hacking" route:  I wrote
> a qmail-queue wrapper which will rewrite the message
> headers and the envelope.

Could we see it?  I am almost finished writing a simple qmail-queue
wrapper that filters the body of the message through qmail-inject.  This
achieves the same header rewriting that the @fixme trick does, without
double delivery.  Once I finish it I'll post it.
-- 
Bruce Guenter <[EMAIL PROTECTED]>                       http://em.ca/~bruceg/




On Fri, Jan 21, 2000 at 10:33:04PM -0600, Bruce Guenter wrote:
> On Fri, Jan 21, 2000 at 10:24:11PM -0600, [EMAIL PROTECTED] wrote:
> > When I started my latest hack, I was under the
> > impression that ofmipd supported a subset of SMTP,
> > but checking the source, I see that I was mistaken.
> > I probably took the "more hacking" route:  I wrote
> > a qmail-queue wrapper which will rewrite the message
> > headers and the envelope.
> 
> Could we see it?  I am almost finished writing a simple qmail-queue
> wrapper that filters the body of the message through qmail-inject.  This
> achieves the same header rewriting that the @fixme trick does, without
> double delivery.  Once I finish it I'll post it.
> -- 
> Bruce Guenter <[EMAIL PROTECTED]>                       http://em.ca/~bruceg/

Can any of this qmail-queue wrappers be done so the queue is stored on a
Network (shared) drive, so each server in a cluster of servers can take
any of the messages is the queue and send it?

Please advice
 Michael Boman

-- 
W I Z O F F I C E . C O M   P T E   L T D  -  Your Online Wizard
16 Tannery Lane, Crystal Time Building, #06-00, Singapore 347778
Ring  : (65) 844 3228 [ext 118]  Fax : (65) 842 7228
email : [EMAIL PROTECTED]    URL : http://www.wizoffice.com




On Sat, Jan 22, 2000 at 12:48:11PM +0800, Michael Boman wrote:
> Can any of this qmail-queue wrappers be done so the queue is stored on a
> Network (shared) drive, so each server in a cluster of servers can take
> any of the messages is the queue and send it?

Nope.  qmail-queue and qmail-send assume that they have exclusive access
to the queue.
-- 
Bruce Guenter <[EMAIL PROTECTED]>                       http://em.ca/~bruceg/




cmikk <[EMAIL PROTECTED]> writes:

> Since our mail servers perform relaying for roaming customers, they
> would have to be open to any IP address.  Ofmipd does not allow you to
> control relaying, last I checked, so that would require some hacking.

Neither does qmail-smtpd, when it comes to that sort of setup.  You have
to front-end either one with something that checks whether to allow
relaying.  What control mechanism are you using?  SMTP after POP is pretty
easy, and I think there's stuff already on the qmail web site implementing
it.

-- 
Russ Allbery ([EMAIL PROTECTED])         <URL:http://www.eyrie.org/~eagle/>




Bruce Guenter <[EMAIL PROTECTED]> writes:

> Could we see it?  I am almost finished writing a simple qmail-queue
> wrapper that filters the body of the message through qmail-inject.  This
> achieves the same header rewriting that the @fixme trick does, without
> double delivery.  Once I finish it I'll post it.

This is the entire raison d'être of ofmipd, and it already supports tons
of useful address rewriting rules, and also in the same package from djb
(mess822) is a replacement qmail-inject that supports the same address
rewriting mechanisms....

-- 
Russ Allbery ([EMAIL PROTECTED])         <URL:http://www.eyrie.org/~eagle/>




> On Fri, Jan 21, 2000 at 10:33:04PM -0600, Bruce Guenter wrote:
> > 
> > Could we see it?  I am almost finished writing a simple qmail-queue
> > wrapper that filters the body of the message through qmail-inject.  This
> > achieves the same header rewriting that the @fixme trick does, without
> > double delivery.  Once I finish it I'll post it.

Bruce: Russ Allbery's mjinject contains perl code for exactly
that operation (or easily modified for that).  Hmmm... But you're 
not working in perl, are you?
 
On Sat, Jan 22, 2000 at 12:48:11PM +0800, Michael Boman wrote:
> Can any of this qmail-queue wrappers be done so the queue is stored on a
> Network (shared) drive, so each server in a cluster of servers can take
> any of the messages is the queue and send it?

Michael,

1) qmail-queue is a program with the job of actually writing a message
   into the "qmaill queue" which is a directory and file structure for
   safely storing mail messages.  They are two different things.

   The "queue" was designed in a way which necessitates the exclusive
   use of a single qmail system.  Sorry.

2) It's not impossible to cluster servers to balance the "load."  
   First you have to define whether it's the incoming or outgoing
   message load which you have to balance.  Second, you have to realize
   that none of the solutions which will help you solve your problem
   will involve sharing a "queue" between multiple instanciations of
   qmail.  Each instance will have its own queue.

John White




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

On 21 Jan 00, at 15:10, [EMAIL PROTECTED] wrote:

> Forwarding and rewriting in qmail do pretty much
> the same thing: deliver to some alias-controlled
> account, and then re-inject the message into the
> queue.  That's the expensive part, because then the
> message must go through qmail-send again.

'Scuse me, but the "fixme" trick is not neccessary on a decent 
operating system:

You use a "transparent proxy" redirection on IP level to redirect 
connections from known "broken" IP addresses to, say, port 26. 
(You also disable port 26 for anywhere else.) You have that 
ofmismtpd (or whatever the baby's called) listening on port 26 - or 
some customized qmail-smtpd.

(You may also fix qmail-inject if you need to rewrite headers of 
locally injected mails - but it usually is a sign of bad concept 
somewhere.)

That way, the mail that has to get rewritten gets rewritten _before_ 
it comes to qmail-queue - it means it's enqueued only once. 
Where's the performance penalty?

[It you don't know in advance which IPs inject mails neccessary for 
rewriting, then you have rewrite all the messages in qmail-smtpd, 
regardless of the origin anyway.]

[And if your system doesn't support port redirection on IP level, too 
bad. Get another one, or buy more hw because as you said you'd 
need it.]

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

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




Hi guys:

I meet a strange problem, I use qmail as my qmail server, I found error in my mail log 
file like this "Jan 21 20:59:22 ms qmail: 948459562.609004 delivery 684128: deferral: 
Temporary_
failure_in_qmail-lspawn./" how about it? how to solve it?

thanks





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

On 21 Jan 00, at 21:13, Haifeng Guo wrote:

> Hi guys:
> 
> I meet a strange problem, I use qmail as my qmail server, I found
> error in my mail log file like this "Jan 21 20:59:22 ms qmail:
> 948459562.609004 delivery 684128: deferral: Temporary_
> failure_in_qmail-lspawn./" how about it? how to solve it?

It happens IIRC if you can't create a pipe, or move descriptors 
around. Which means you'd need to check your descriptor limits, 
or lower concurrency...

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

iQA/AwUBOIhqhlMwP8g7qbw/EQKMeQCfZwjsLhilDdOjEEnK4V9BWm6GfoQAn2hs
o5v4rqF3+gZ64EZTogwEmQaS
=74bX
-----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]





It's probably simply a problem with the shell's special treatment of &.

I don't know how qmailadmin works, but we have a shell script for adding 
user accounts. In such cases, we have to call the command similar to:

        # create_user.sh f\&b

That is, we quote the & character, and everything works fine. It's possible 
the qmailadmin would behave similarly.

Dave
:)

On Thursday, January 20, 2000 10:43 PM, john 
[SMTP:[EMAIL PROTECTED]] wrote:
> Hi,
>
> I am trying to create user account in qmail using qmailadmin and I am 
unable to create a user for example f&b.
>
> Why does this have so much restriction ? Can I create it?
>
> Regards
> John
>  << File: ATT00000.html >> 




On Fri, Jan 21, 2000 at 10:50:53AM +0100, Olivier M. wrote:
> I'm trying relay-ctrl 1.2 : it nearly works, but I have a little problem :
> when a user log himself via pop3, the ip comes in /var/control/relay-control,
> but /usr/sbin/relay-ctrl-age is _not_ executed. I'm wondering why... maybe you
> will have an idea ? It worked with the version 1.1.

How do you know it isn't being run?  Is it setuid?
-- 
Bruce Guenter <[EMAIL PROTECTED]>                       http://em.ca/~bruceg/




On Fri, Jan 21, 2000 at 08:20:39AM -0600, Bruce Guenter wrote:
> How do you know it isn't being run?  

the tcp.smtp.cdb table isn't updated after the user logged in.
only the relay-ctrl-age from let him come in.

> Is it setuid?

-rwxr-xr-x   1 root     root        36008 Jan 19 09:35 relay-ctrl-age
-rwxr-xr-x   1 root     root        34921 Jan 19 09:35 relay-ctrl-allow
no.

Olivier




Hi,
I am trying to install qmail on an PowerPC G3 Server, running YellowDogLinux
ChampionServer 1.1 (a RedHat-based Linux distribution for the PPC). I
followed Adam McKenna's HOWTO step-by-step, and all seemed to work fine for
smtp, but then I tried to start qpop3d and now qmail refuses to start,
giving memory allocation errors, and I don't know how to fix them..here's
exactly what I did:
1)installed qmail + all the packages (checkpassword, daemontools, ucspi,
etc)
2) got the init script for qmail (the one from Adam McKenna's page, it
starts qmail-smtpd under tcpserver), and copied it to my init-scripts dir
3) tested successfully that i could use qmail-smtpd to send messages - both
locally and from other systems.
4) changed the qmail init script so that it started qmail-qpop3d under
tcpserver - I copied this from the Life with qmail page
(http://Web.InfoAve.Net/~dsill/lwq.html)
5) tried to restart qmail, and got this error message:

#  /etc/rc.d/init.d/qmail start
Starting mail-transfer agent: qmailcsh: error in loading shared libraries:
libc.so.6: failed to map segment from shared object: Cannot allocate memory
.
/etc/rc.d/init.d/qmail: xmalloc: cannot allocate 8 bytes (0 bytes allocated)
/etc/rc.d/init.d/qmail: xmalloc: cannot allocate 8 bytes (0 bytes allocated)
/etc/rc.d/init.d/qmail: xmalloc: cannot allocate 10 bytes (0 bytes
allocated)

I rebooted the whole system, but the problem was still there. I changed the
qmail init script back to it's original form, but still no change.
If anyone could help me with this I would be very very grateful..I'm new to
the unix/linux world, and when some cryptic error erupts I really don't know
what to do.

Thanks in advance

Ivailo Djilianov
-----------------
Ulpia Investment management Inc.
24 Denkoglu str, Sofia 1000, Bulgaria
http://www.ulpia.com
mailto:[EMAIL PROTECTED]
-----------------





On Fri, Jan 21, 2000 at 05:07:25PM +0200, Ivailo Djilianov wrote:
} Hi,
} I am trying to install qmail on an PowerPC G3 Server, running YellowDogLinux
} ChampionServer 1.1 (a RedHat-based Linux distribution for the PPC). I
} followed Adam McKenna's HOWTO step-by-step, and all seemed to work fine for
} smtp, but then I tried to start qpop3d and now qmail refuses to start,
} giving memory allocation errors, and I don't know how to fix them..here's
} exactly what I did:
} 1)installed qmail + all the packages (checkpassword, daemontools, ucspi,
} etc)
} 2) got the init script for qmail (the one from Adam McKenna's page, it
} starts qmail-smtpd under tcpserver), and copied it to my init-scripts dir
} 3) tested successfully that i could use qmail-smtpd to send messages - both
} locally and from other systems.
} 4) changed the qmail init script so that it started qmail-qpop3d under
} tcpserver - I copied this from the Life with qmail page
} (http://Web.InfoAve.Net/~dsill/lwq.html)
} 5) tried to restart qmail, and got this error message:
} 
} #  /etc/rc.d/init.d/qmail start
} Starting mail-transfer agent: qmailcsh: error in loading shared libraries:
} libc.so.6: failed to map segment from shared object: Cannot allocate memory
} .
} /etc/rc.d/init.d/qmail: xmalloc: cannot allocate 8 bytes (0 bytes allocated)
} /etc/rc.d/init.d/qmail: xmalloc: cannot allocate 8 bytes (0 bytes allocated)
} /etc/rc.d/init.d/qmail: xmalloc: cannot allocate 10 bytes (0 bytes
} allocated)
} 
} I rebooted the whole system, but the problem was still there. I changed the
} qmail init script back to it's original form, but still no change.
} If anyone could help me with this I would be very very grateful..I'm new to
} the unix/linux world, and when some cryptic error erupts I really don't know
} what to do.

I run Yellow Dog Linux CS 1.1 on two Macs, a beige G3 and a Performa
6400 (603e), and have never had any problems with qmail, qmail-pop3d,
tcpserver, etc, etc.  (If I saw errors like that on my machines, I'd
start worrying about hardware problems.)  Are you having trouble with
anything else you've compiled?  Are you using the glibc/gcc that came
with CS 1.1, or did you upgrade them at some point?

} 
} Thanks in advance
} 
} Ivailo Djilianov
} -----------------
} Ulpia Investment management Inc.
} 24 Denkoglu str, Sofia 1000, Bulgaria
} http://www.ulpia.com
} mailto:[EMAIL PROTECTED]
} -----------------
} 

-- 
--------
Paul J. Schinder
NASA Goddard Space Flight Center
[EMAIL PROTECTED]




I guess I need to be a little more specific in what I'm talking about here.
I've got a domain hosted by an internet host and they obviously recieve the
mail sent to that domain.  My problem is in getting it to be delivered
locally.  They will send all mail on to my ip address via smtp.  I am
unclear of how my system should be set up.  I've got a small lan of win98
machines and linux box connected to a cable modem(static ip) on eth1 and a
hub for the windows machines on eth0.  To recieve the mail from the host,
what should my domain be set as?  I've found no documentation about this.
Or would I be using virtual domains?  If so, how?  Also, those 98 machines
will send mail to the local smtp server to have it decide where the mail
should go.  Most users will not have internet e-mail capabilities--only
local.


Thanks for any help,
Jacob Joseph





This should be simple.  You would setup each user with an account on the
Linux box.  When mail is delivered to you by SMTP your sendmail will then
deliver it to the seperate accounts.  You may have to modify sendmail but
I think that it comes with most Distrabutions to work right out of the
box.  

The Win98 boxes will use POP to get mail from the Linux box.  You will
need to have popd running.  I found this already running on my Slackware
3.6.  The POP mail clients login using there Linux userid and password
that you setup.  The Win98 boxes will deliver mail to the Linux box via
SMTP and then your Linux sendmail will send it off.

I think this is how it works but could be wrong on some points.

I do this at home, but my connection to the ISP is via UUCP.

David

On Fri, 21 Jan 2000, Jacob Joseph wrote:

> Date: Fri, 21 Jan 2000 07:06:12 -0800
> From: Jacob Joseph <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
> Subject: Recieving and deliverying mail without a domain in qmail
> 
> I guess I need to be a little more specific in what I'm talking about here.
> I've got a domain hosted by an internet host and they obviously recieve the
> mail sent to that domain.  My problem is in getting it to be delivered
> locally.  They will send all mail on to my ip address via smtp.  I am
> unclear of how my system should be set up.  I've got a small lan of win98
> machines and linux box connected to a cable modem(static ip) on eth1 and a
> hub for the windows machines on eth0.  To recieve the mail from the host,
> what should my domain be set as?  I've found no documentation about this.
> Or would I be using virtual domains?  If so, how?  Also, those 98 machines
> will send mail to the local smtp server to have it decide where the mail
> should go.  Most users will not have internet e-mail capabilities--only
> local.
> 
> 
> Thanks for any help,
> Jacob Joseph
> 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-diald" in
> the body of a message to [EMAIL PROTECTED]
> 





Hi,
i´m having a problem (i think so),
the vdeliver process is taking too long to deliver messages, even small
messages.
 
i´m using qmail + vpopmail + qmailadmin.
 
 
thanks,
 
Marcelo




Hi!
Is the server "periapt.com" down? Where can I get the Cyrus-qmail
patch???

Regards
lars





Hi,

I setup a qmail + vpopmail system succesfuly. The only problem is when I
send a message to a address that doesn't exists in the domain, the mail
goes to postmaster of that domain but there isn't a reply message like
"User Unknown" to the original sender. I don't see any message error in
the log.

It's normal? How do activate this? 

Thanks in advanced
-- 
David Sedeño Fernández
Servicio Tecnico
 
 Virtual Net, S.L.
 Grupo Hipernet
 C/. Casas de Campos, 3
 29001 Málaga
 Tlf Nal.: 902 20 21 02
 Tlf Int.: +34 95 222 92 14
 http://www.hipernet.es/
 mailto:[EMAIL PROTECTED]




[EMAIL PROTECTED] wrote:
> 
> Hi,
> 
> I setup a qmail + vpopmail system succesfuly. The only problem is when I
> send a message to a address that doesn't exists in the domain, the mail
> goes to postmaster of that domain but there isn't a reply message like
> "User Unknown" to the original sender. I don't see any message error in
> the log.
> 
> It's normal? How do activate this?

Read the vpopmail FAQ

3. How do I bounce all mail that doesn't match any pop users or .qmail
   files for a particular domain?

   Edit the ~vpopmail/domains/virtual_domain/.qmail-default file and
   change the last parameter to "bounce-no-mailbox" without the quotes.

   For example:
   # more .qmail-default
   | /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox

Ken Jones




Hi all!

I'm new to this list and I'm in a hurry to get a new fully functional
e-mail server up and running. At work we've had a major server crash due
to the fact we are using exchange and NT. I told the management about
linux and qmail, and they wan't to switch provided that it supports the
following facilites:

1. Is qmail "compatible" with Outlook 2000 (Contactcs/Calender/etc)?

2. Can it store all users e-mails on the linux server?

3. What do I need and how should I approach this?

My knowledge about linux is fairly good, but I have never set up a linux
mail server, so any help is deeply appreciated.

Thanks in advance.


Kind regards, 
Morten Ranheim
[EMAIL PROTECTED]




Morten,

Qmail will not support calendars/contacts like exchange will. Calendars and
contacts
are not part of email but MS thinks they should be.. There are several free
web based calendar programs around you might want to look into.
If you want all mail kept on the server then have your users use imap to
read
their email.

Mike

----- Original Message -----
From: Morten Ranheim <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 21, 2000 12:42 PM
Subject: Some questions..(Micorsoft/qmail)


> Hi all!
>
> I'm new to this list and I'm in a hurry to get a new fully functional
> e-mail server up and running. At work we've had a major server crash due
> to the fact we are using exchange and NT. I told the management about
> linux and qmail, and they wan't to switch provided that it supports the
> following facilites:
>
> 1. Is qmail "compatible" with Outlook 2000 (Contactcs/Calender/etc)?
>
> 2. Can it store all users e-mails on the linux server?
>
> 3. What do I need and how should I approach this?
>
> My knowledge about linux is fairly good, but I have never set up a linux
> mail server, so any help is deeply appreciated.
>
> Thanks in advance.
>
>
> Kind regards,
> Morten Ranheim
> [EMAIL PROTECTED]
>





How funny, I had the same problem. Except it took two MAJOR crashes of
Exchange to convince the Execs to get off Exchange and onto POP.

Things you will loose by not running exchange...

1) Global Address List
    This does not exist on POP/IMAP servers, but you can install LDAP
http://www.openldap.org/

2) Free/Busy information
    This was a function of the exchange server checking the users calendar
in their mailbox (you know     so you can see if people are available).
Sorry you can't get this, outlook will let you publish this to a     web
page.

3) Store Users Mail on the Mail Server.....
    I do not recommend doing this. This makes you dependant on the mail
server, just like you were         dependant on the Exchange server. I would
suggest that you just use Pop3, put your users .pst file     on their
harddrive, and then schedule a batch file to copy the .pst to the fileserver
once a week for     a backup. This way if you need to you can swap out a
mail server and your users won't even             know.

I was having problems with exchange for two reasons 1) average mailbox size
was huge (I know you can limit this but try telling your CEO he can't have
all his e-mail in his inbox), 2) the large volume of mail traffic. (We are
processing over 10,000 e-mails per day)

You will be happy with a un*x solution, if you traffic is large you might
want to have one incoming POP box, and one outgoing SMTP box, but you should
be fine.

----- Original Message -----
From: Morten Ranheim <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 21, 2000 9:42 AM
Subject: Some questions..(Micorsoft/qmail)


Hi all!

I'm new to this list and I'm in a hurry to get a new fully functional
e-mail server up and running. At work we've had a major server crash due
to the fact we are using exchange and NT. I told the management about
linux and qmail, and they wan't to switch provided that it supports the
following facilites:

1. Is qmail "compatible" with Outlook 2000 (Contactcs/Calender/etc)?

2. Can it store all users e-mails on the linux server?

3. What do I need and how should I approach this?

My knowledge about linux is fairly good, but I have never set up a linux
mail server, so any help is deeply appreciated.

Thanks in advance.


Kind regards,
Morten Ranheim
[EMAIL PROTECTED]





I am looking at moving my company's mail system from Linux/Sendmail to
FreeBSD/Qmail. I have already installed the package from the ports
collection.

My question is given that this machine will be processing 5,000 + 10,000
e-mails on a standard day, and up to 100,000 e-mails when we use our
lists......

1) What configuration options should I use with qmail (i.e. should I use
maildirs?)
2) Are there tuning/performance options I should change?
3) Which Pop server should I use (I am using the Washington EDU Imap package
now)
4) How do I record all sent and received e-mails that the box processes to a
separate file?
    (I would like to record all incoming e-mail to "in-email.log", and all
outbound e-mail to "out-                email.log, as well as deliver the
e-mail to the correct user/domain. These logs will be used for
historical backup purposes.)
3) etc...

I know these questions are very basic, but I have zero qmail experience.
What I have read about the product is very exciting and I hope it fits well
with the organization.

Thanks in advance.

Max
e. [EMAIL PROTECTED]





"Max" <[EMAIL PROTECTED]> writes:

  1) What configuration options should I use with qmail (i.e. should I use
  maildirs?)

Yes, definitely use maildirs.


  2) Are there tuning/performance options I should change?

Look on http://www.qmail.org/ for the patches targeted to big servers.

Be sure to use the ucspi tools (tcpserver, etc) and daemontools.  See the
Life With Qmail page (referenced off the above qmail site).


  3) Which Pop server should I use (I am using the Washington EDU Imap package
  now)

qmail ships with qmail-pop3d.  If that doesn't work for you, come back and
ask the list -- there are lots of solutions.


  4) How do I record all sent and received e-mails that the box processes to a
  separate file?
      (I would like to record all incoming e-mail to "in-email.log", and all
  outbound e-mail to "out-                email.log, as well as deliver the
  e-mail to the correct user/domain. These logs will be used for
  historical backup purposes.)

The qmail FAQ has an entry which describes how you can store a copy of all
mail passing through your server.  You could write a script that separates
incoming and outgoing mail to different folders.


  I know these questions are very basic, but I have zero qmail experience.
  What I have read about the product is very exciting and I hope it fits well
  with the organization.

Hey, it's worked everywhere I've worked!


Faried.




How do I apply these patches?

----- Original Message -----
From: Faried Nawaz <[EMAIL PROTECTED]>
To: Max <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, January 21, 2000 11:35 AM
Subject: Re: Configuration for high volume qmail box


"Max" <[EMAIL PROTECTED]> writes:

  1) What configuration options should I use with qmail (i.e. should I use
  maildirs?)

Yes, definitely use maildirs.


  2) Are there tuning/performance options I should change?

Look on http://www.qmail.org/ for the patches targeted to big servers.

Be sure to use the ucspi tools (tcpserver, etc) and daemontools.  See the
Life With Qmail page (referenced off the above qmail site).


  3) Which Pop server should I use (I am using the Washington EDU Imap
package
  now)

qmail ships with qmail-pop3d.  If that doesn't work for you, come back and
ask the list -- there are lots of solutions.


  4) How do I record all sent and received e-mails that the box processes to
a
  separate file?
      (I would like to record all incoming e-mail to "in-email.log", and all
  outbound e-mail to "out-                email.log, as well as deliver the
  e-mail to the correct user/domain. These logs will be used for
  historical backup purposes.)

The qmail FAQ has an entry which describes how you can store a copy of all
mail passing through your server.  You could write a script that separates
incoming and outgoing mail to different folders.


  I know these questions are very basic, but I have zero qmail experience.
  What I have read about the product is very exciting and I hope it fits
well
  with the organization.

Hey, it's worked everywhere I've worked!


Faried.





Max writes:
 > How do I apply these patches?

If you don't know how to apply a patch, you shouldn't be applying
patches.  Please trust me; knowing this will save you much wasted time
down the road.

-- 
-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.




Russell Nelson <[EMAIL PROTECTED]> wrote:

>Max writes:
> > How do I apply these patches?
>
>If you don't know how to apply a patch, you shouldn't be applying
>patches.  Please trust me; knowing this will save you much wasted time
>down the road.

That's generally good advice, but at some point one has to learn how
it's done. See:

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

-Dave




"Max" <[EMAIL PROTECTED]> wrote:

>I am looking at moving my company's mail system from Linux/Sendmail to
>FreeBSD/Qmail. I have already installed the package from the ports
>collection.
>
>My question is given that this machine will be processing 5,000 + 10,000
>e-mails on a standard day, and up to 100,000 e-mails when we use our
>lists......
>
>1) What configuration options should I use with qmail (i.e. should I use
>maildirs?)

Insufficient data.

Just to answer the maildir question, we need to know something about
how the system will be used. Will all mailbox access be via POP or
IMAP, or will some users log in to read mail using pine/mutt/etc? If
the latter, will these people also need POP/IMAP, or will they
exclusively use a local MUA?

Some MUA's don't grok maildirs. E.g., pine requires patches. Mutt has
excellent maildir support. For POP/IMAP users, maildir works well.

For other configuration options, we'd need to know more details of
your set-up. It's probably best to go with a basic configuration and
tweak it as necessary.

>2) Are there tuning/performance options I should change?

Raise concurrencylocal and concurrencyremote. Run dnscache.

>3) Which Pop server should I use (I am using the Washington EDU Imap package
>now)

qmail-pop3d. There are imapd patches for maildir support. See:

  http://Web.InfoAve.Net/~dsill/lwq.html#imap-maildir

-Dave




I am going to structure this in the following way.

Primary box -
    accept incoming e-mail's for organization, users will be connecting via
Pop only. All e-mail will be removed from the server and downloaded onto the
users PC. I do not need console/telnet mail for my users, only the root
account for convenience (I am flexible what program I will use). This box
needs to selectively relay e-mail based on network address. (or if possible
authenticate the sending user). I have 50 local users, and 40 remote users
(these numbers grow quickly). We maintain mailing lists for the different
office locations as well as the different departments.

Secondary box -
    just in case the primary is down. This box needs to accept e-mail and
relay to the primary, as well as selectively relaying based on network
address. This machine will also host some announcement mailing lists. The
lists have a large amount of users but are low volume.

Both machines will be a Dell PC w/ a 400MHz celeron processor, 96MB of ram,
and a 6GB hard drive.
We connect to the Internet via a full point-to-point T1.

Mailstats from the current Linux/Sendmail machine (no office or external
mailing lists are running on this box) are in the attached file.

I need to provide LDAP to my users as well. I have been reading from
http://www.openldap.org but will take a while for me to understand the
config. This is not a big concern.

I intend to install a web interface to the mail system in the future, again
I have not done an evaluation yet so I am really flexible to the
configuration.

Thanks for the help
- Max


----- Original Message -----
From: Dave Sill <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 21, 2000 12:23 PM
Subject: Re: Configuration for high volume qmail box


"Max" <[EMAIL PROTECTED]> wrote:

>I am looking at moving my company's mail system from Linux/Sendmail to
>FreeBSD/Qmail. I have already installed the package from the ports
>collection.
>
>My question is given that this machine will be processing 5,000 + 10,000
>e-mails on a standard day, and up to 100,000 e-mails when we use our
>lists......
>
>1) What configuration options should I use with qmail (i.e. should I use
>maildirs?)

Insufficient data.

Just to answer the maildir question, we need to know something about
how the system will be used. Will all mailbox access be via POP or
IMAP, or will some users log in to read mail using pine/mutt/etc? If
the latter, will these people also need POP/IMAP, or will they
exclusively use a local MUA?

Some MUA's don't grok maildirs. E.g., pine requires patches. Mutt has
excellent maildir support. For POP/IMAP users, maildir works well.

For other configuration options, we'd need to know more details of
your set-up. It's probably best to go with a basic configuration and
tweak it as necessary.

>2) Are there tuning/performance options I should change?

Raise concurrencylocal and concurrencyremote. Run dnscache.

>3) Which Pop server should I use (I am using the Washington EDU Imap
package
>now)

qmail-pop3d. There are imapd patches for maildir support. See:

  http://Web.InfoAve.Net/~dsill/lwq.html#imap-maildir

-Dave
Statistics from Fri Jan  7 09:55:08 2000
 M   msgsfr  bytes_from   msgsto    bytes_to  msgsrej msgsdis  Mailer
 3    12943     851594K    29467    1386329K        0       0  local
 5       13         74K        2          2K       20       0  fax
 8        4          4K       15         68K        7       0  suucp
13     9586     208522K     4751     297473K        0       0  esmtp
=============================================================
 T    22546    1060194K    34235    1683872K       27       0




Hi!
 
Recently I was asked by a customer if we provided APOP authentication.
Currently we do not, but I planned on supporting it anyway.
So, what's the best way to go without having to reinstall all the mailboxes and password that are currently setup manually?
 
Right now I'm using the vpopmail (vchkpw) package with checkpassword.
I saw a patch to qmail and another password checker that added APOP to its features.
Can I specify which user can authenticate how? like: user1=onlyAPOP user2=both etc.? because this would be a difference in price if sold
Any good FAQ on this?
 
Regards!

J.M. Roth




Hi!
 
Recently I was asked by a customer if we provided APOP authentication.
Currently we do not, but I planned on supporting it anyway.
So, what's the best way to go without having to reinstall all the mailboxes and password that are currently setup manually?
 
Right now I'm using the vpopmail (vchkpw) package with checkpassword.
I saw a patch to qmail and another password checker that added APOP to its features.
Can I specify which user can authenticate how? like: user1=onlyAPOP user2=both etc.? because this would be a difference in price if sold
Any good FAQ on this?
 
Regards!

J.M. Roth
PS. I think the mail didn't get through the first time. Sorry in case you receive it twice.




Hi!
 
Recently I was asked by a customer if we provided APOP authentication.
Currently we do not, but I planned on supporting it anyway.
So, what's the best way to go without having to reinstall all the mailboxes and password that are currently setup manually?
 
Right now I'm using the vpopmail (vchkpw) package with checkpassword.
I saw a patch to qmail and another password checker that added APOP to its features.
Can I specify which user can authenticate how? like: user1=onlyAPOP user2=both etc.? because this would be a difference in price if sold
Any good FAQ on this?
 
Regards!

J.M. Roth
The new versions of vpopmail support APOP verification on an individual user basis.
 
JES




thanks, great!
how can I check with f.e. telnet if the APOP authentication is working?
 
-- jmr
 
----- Original Message -----
Sent: Saturday, January 22, 2000 2:25 AM
Subject: Re: APOP

Hi!
 
Recently I was asked by a customer if we provided APOP authentication.
Currently we do not, but I planned on supporting it anyway.
So, what's the best way to go without having to reinstall all the mailboxes and password that are currently setup manually?
 
Right now I'm using the vpopmail (vchkpw) package with checkpassword.
I saw a patch to qmail and another password checker that added APOP to its features.
Can I specify which user can authenticate how? like: user1=onlyAPOP user2=both etc.? because this would be a difference in price if sold
Any good FAQ on this?
 
Regards!

J.M. Roth
The new versions of vpopmail support APOP verification on an individual user basis.
 
JES





Remember all that stuff about virtual UW-IMAP users? Well, I've finally got
something online. It's actually been up for a while, but I forgot to
announce it.

What I have is just the C interface that I described on the list. I'm hoping
that others will pick it up and write flat file, dbfile, and/or database
backends to authenticate virtual users.

http://www.davideous.com/imapvpop/

Quick Summary
This is a patch to the UW-IMAP server which allows it to authenticate
virtual users and system users in the same IMAP daemon. A C interface is
provided for hooking in an authentication routine for the virtual users.
Hopefully others will develop and contribute interfaces for reading virtual
users from databases, flat files, and an external program.

Important Note: This software is not supported by David Harris.
I simply don't have the time right now. Rather, I'm posting my work and
hoping that others will add to it and contribute their improvements. A
little open-source community devoted to single-uid uwimap solutions will
hopefully develop here. Read more about this in the "description" section
below.

 - David Harris
   Principal Engineer, DRH Internet Services






I know this question might not seem relevant (or too obvious to ask) on this list, but here it goes.
when a remote conection is established, say to the POP3 server, is there an environment variable that is set with the name of the server being connected to?
for example, my machine is domain.com but I receive POP3 connections for a virtual domain (same IP), domain2.com. Is there an environment variable that I can read to know if the remote computer requested a connection for domain.com or domain2.com?   
 
Thanks,
JES






On Fri, 21 Jan 2000, Juan E Suris wrote:

> virtual domain (same IP), domain2.com. Is there an environment
> variable that I can read to know if the remote computer requested a
> connection for domain.com or domain2.com?

No.

If you alias multiple IPs, though, to the same box, you can read
TCPLOCALIP.







I'm having trouble getting qmail-popd to accept my password.  What could be causing the trouble.  The user is in the assign file and I have run qmail-newu and then restarted qmail.  I've delivered a message to the user for testing, but I can't see anything in that user's directory with ls -al nor can I get in with pop.
 
Any ideas?
Jacob Joseph




On Fri, 21 Jan 2000, Jacob Joseph wrote:

> I'm having trouble getting qmail-popd to accept my password.  What
> could be causing the trouble.  The user is in the assign file and I
> have run qmail-newu and then restarted qmail.  I've delivered a
> message to the user for testing, but I can't see anything in that
> user's directory with ls -al nor can I get in with pop.
> 
> Any ideas?

AFAIK qmail-pop3d does not read assign, and it authenticates against the
system username only.





I believe my problem may be in setting up the maildirs.  How exactly can I
have qmail send to maildirs?  I've got it accepting messages for users(the
maillog shows success), but I have no idea where they're going.  Perhaps
it's using normail mail files?  This, however still wouldn't explain the
reason for the password to be rejected by popd.  Must a user belong to a
certain group?  I have installed checkpasswd and tried users in various
groups including qmail and popusers.  Yes, the user is in the assign config
file and qmail-newu has been run.  Any ideas?

Jacob Joseph

----- Original Message -----
From: "Sam" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, January 21, 2000 5:53 PM
Subject: Re: POP password checking


> On Fri, 21 Jan 2000, Jacob Joseph wrote:
>
> > I'm having trouble getting qmail-popd to accept my password.  What
> > could be causing the trouble.  The user is in the assign file and I
> > have run qmail-newu and then restarted qmail.  I've delivered a
> > message to the user for testing, but I can't see anything in that
> > user's directory with ls -al nor can I get in with pop.
> >
> > Any ideas?
>
> AFAIK qmail-pop3d does not read assign, and it authenticates against the
> system username only.
>





Looks like I'm answering my own questions :)  OK, by creating changing the
permissions of the user/Maildir directory, I was able to get in.  What a
decieving message from qmail-popd to my mailer.  The directory was there,
just unaccessable!  Anyways, now I do know the mail is not going to the
Maildir, so what settings do I need to change?

Thanks again,
Jacob Joseph


----- Original Message -----
From: "Jacob Joseph" <[EMAIL PROTECTED]>
To: "Sam" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, January 21, 2000 8:06 PM
Subject: Re: POP password checking


> I believe my problem may be in setting up the maildirs.  How exactly can I
> have qmail send to maildirs?  I've got it accepting messages for users(the
> maillog shows success), but I have no idea where they're going.  Perhaps
> it's using normail mail files?  This, however still wouldn't explain the
> reason for the password to be rejected by popd.  Must a user belong to a
> certain group?  I have installed checkpasswd and tried users in various
> groups including qmail and popusers.  Yes, the user is in the assign
config
> file and qmail-newu has been run.  Any ideas?
>
> Jacob Joseph
>
> ----- Original Message -----
> From: "Sam" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Friday, January 21, 2000 5:53 PM
> Subject: Re: POP password checking
>
>
> > On Fri, 21 Jan 2000, Jacob Joseph wrote:
> >
> > > I'm having trouble getting qmail-popd to accept my password.  What
> > > could be causing the trouble.  The user is in the assign file and I
> > > have run qmail-newu and then restarted qmail.  I've delivered a
> > > message to the user for testing, but I can't see anything in that
> > > user's directory with ls -al nor can I get in with pop.
> > >
> > > Any ideas?
> >
> > AFAIK qmail-pop3d does not read assign, and it authenticates against the
> > system username only.
> >
>





qmail-smtpd returns responses beginning with 555 for syntax errors in the
parameters to MAIL and RCPT.  From qmail-smtpd.c:

void err_syntax() { out("555 syntax error (#5.5.4)\r\n"); }

RFC 821 says that x5y status codes are for mail system problems, while x0y
status codes should be used for syntax errors:

         The second digit encodes responses in specific categories:

            x0z   Syntax -- These replies refer to syntax errors,
                  syntactically correct commands that don't fit any
                  functional category, and unimplemented or superfluous
                  commands.

[...]

            x5z   Mail system -- These replies indicate the status of
                  the receiver mail system vis-a-vis the requested
                  transfer or other mail system action.

and it also specifically lists 501 as the error code to send for syntax
errors in parameters of a command:

         501 Syntax error in parameters or arguments

draft-ietf-drums-smtpupd-10.txt seems to agree.  Shouldn't qmail-smtpd use
501 as the status code in this case?

-- 
Russ Allbery ([EMAIL PROTECTED])         <URL:http://www.eyrie.org/~eagle/>




If you have questions about SMTP, the Internet mail message-header
format, or the Internet mail infrastructure, try my reference manuals:

   http://cr.yp.to/smtp.html
   http://cr.yp.to/immhf.html
   http://cr.yp.to/im.html

You don't have to suffer through the RFCs; I did all the work for you.

Russ Allbery writes:
> RFC 821 says that x5y status codes are for mail system problems, while x0y
> status codes should be used for syntax errors:

In this case, RFC 821 is obsolete. A subsequent RFC added code 555 for
certain syntax errors.

> draft-ietf-drums-smtpupd-10.txt seems to agree.

smtpupd-10 is garbage. See http://cr.yp.to/smtp/klensin.html for further
explanation. In this case, Klensin simply screwed up.

---Dan




D J Bernstein <[EMAIL PROTECTED]> writes:

> If you have questions about SMTP, the Internet mail message-header
> format, or the Internet mail infrastructure, try my reference manuals:

>    http://cr.yp.to/smtp.html
>    http://cr.yp.to/immhf.html
>    http://cr.yp.to/im.html

> You don't have to suffer through the RFCs; I did all the work for you.

Sometimes I have to quote the appropriate RFC in order to convince someone
else, though.  :)  Thanks, your pages contained a pointer to RFC 1869,
which specifies 555:

   If the server SMTP does not recognize or cannot implement one or more
   of the parameters associated with a particular MAIL FROM or RCPT TO
   command, it will return code 555.

I'll pass that back.

-- 
Russ Allbery ([EMAIL PROTECTED])         <URL:http://www.eyrie.org/~eagle/>




Is there a way I can get qmail-local to deliver to /var/spool/mail/username 
file??

I know you can get the mbox format by using /bin/mail but I want
mbox format delivery with qmail-local!

Thankyou,
Kristina



Reply via email to