qmail Digest 25 Jun 2000 10:00:01 -0000 Issue 1043

Topics (messages 43579 through 43609):

Re: Binary distribution
        43579 by: Magnus Bodin

Re: Logging traffic
        43580 by: Magnus Bodin

Mailbox
        43581 by: steffen
        43588 by: Steffan Hoeke

virtual domains
        43582 by: prashant

(resent) Relay problem
        43583 by: Sebastiaan van Erk
        43585 by: Chris Johnson
        43586 by: Sebastiaan van Erk

Thanks a bunch
        43584 by: Eric Walters

CheckPassword
        43587 by: Julian L. Cardarelli

qmail-qread -- "bouncing"
        43589 by: Ben Beuchler

Qmail Clients
        43590 by: John van V.
        43598 by: Magnus Bodin

Re: load balancing two qmail servers using nfs
        43591 by: Mike Denka
        43596 by: chuck
        43600 by: Mike Denka

INSTALL.maildir - Clairification please!
        43592 by: Mark Thomas
        43594 by: Steffan Hoeke
        43604 by: Mark Thomas
        43607 by: Steffan Hoeke

Where to read about single uid/gid virtual domain delivery?
        43593 by: Julian L. Cardarelli
        43595 by: chuck

overlooking virtualdomains?
        43597 by: Jud Harris
        43599 by: Magnus Bodin

Finished my checkpassword
        43601 by: Julian L. Cardarelli

Errormsg: Maildir is a directory
        43602 by: Jens Georg
        43603 by: Johan Almqvist

Maildir and Mailbox
        43605 by: Mark Thomas
        43606 by: Brett Randall

Re: rblsmtp with qmail-qmail-ldap patch
        43608 by: Scott Gifford

FreeBSD installation, was Re: INSTALL.maildir - Clairification please!
        43609 by: David Benfell

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]


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


On Sun, May 28, 2000 at 02:54:47PM -0400, Paul Farber wrote:
> It's tough to find any binary dist for qmail.... I actually *think* the
> dist of binaries is against his copyrights.

>From <http://cr.yp.to/qmail/dist.html>:

"Exception: You are permitted to distribute a precompiled var-qmail package
if (1) installing the package produces exactly the same /var/qmail hierarchy
as a user would obtain by downloading, compiling, and installing
qmail-1.03.tar.gz, fastforward-0.51.tar.gz, and dot-forward-0.71.tar.gz; (2)
the package behaves correctly, i.e., the same way as normal
qmail+fastforward+dot-forward installations on all other systems; and (3)
the package's creator warrants that he has made a good-faith attempt to
ensure that the package behaves correctly. It is not acceptable to have
qmail working differently on different machines; any variation is a bug. If
there's something about a system (compiler, libraries, kernel, hardware,
whatever) that changes qmail's behavior, then that platform is not
supported, and you are not permitted to distribute binaries."
 
> Best place to start www.qmail.org. 

How true. 

/magnus
--
http://x42.com/




On Fri, Jun 23, 2000 at 01:13:49PM +0200, Tomasz Antczak wrote:
> Hello
> 
> I looking for some way to log all traffic in and out of mailers in
> the indicated log file. Any ideas how do this ?

Take a look here; 

  http://web.infoave.net/~dsill/lwq.html#queue_extra

It's all accomplished with "QUEUE_EXTRA".

/magnus
--
http://x42.com/




Hello !

i have install qmail step by step ala qmail/doc ...
now i get the msg "Mailbox is a Directory"
what did i wrong ?

bye
steffen





On Sat, Jun 24, 2000 at 12:32:18PM +0200, steffen wrote:
> Hello !
> 
> i have install qmail step by step ala qmail/doc ...
> now i get the msg "Mailbox is a Directory"
> what did i wrong ?
What does the line you start qmail with read ?

You've probably told qmail to deliver to a mailbox in mbox format called Mailbox,
which is one large file which contains all messages.
You've  probably got an entry in $HOME which reads:
drwxr-xr-x  2 [user]  [group] 512 Jun 24 17:30 Mailbox
while it should read:
-rw-r--r--  1 [user]  [group]   0 Jun 24 17:30 Mailbox

Note the lacking of 'd' in the second line

You should try rm -rf'ing the Mailbox directory, after checking there's nothing
of value contained in it ....

After this qmail should automagically create the Mailbox file.

> bye
> steffen 
HTH,
 Steffan
-- 
http://therookie.dyndns.org





hello friends
 
 
 i have installed qmail 1.03 with qmail-ldap -latest-patch  on RedHat linux 6.1
 
i want to configure virtual domains  with out using ".qmail" file in users home dir and also dont want to use /etc/passwd
 
is this possible ? i can use some ldap entries rather then using .qmail flat files
 
 
thanks
Prashant Desai




Hi there,

I've been experiencing the following strange situation with qmail
when I try to send a message from localhost (with relaying from
localhost allowed) with a user-filled-in sender address. That is, when
I do the following on the mailserver host:

mailserver(ttyp2:138:0):/var/qmail/control# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mailserver.somewhere.com ESMTP
MAIL FROM: [EMAIL PROTECTED]             <-- this domain is NOT in the rcpthosts
250 ok
RCPT TO: [EMAIL PROTECTED]
250 ok
DATA 
354 go ahead
test
.
250 ok 961499283 qp 84857
quit
221 mailserver.somewhere.com
Connection closed by foreign host.

Then on the receiving host I listen for the mail I just made up:

anothermailserver(ttyp0:106:0):~# nc -l -p 25
220  
HELO mailserver.somewhere.com
250
MAIL FROM:<com>
250
RCPT TO:<[EMAIL PROTECTED]>
250
DATA
250
Received: (qmail 84417 invoked from network); 20 Jun 2000 10:51:25 -0000
Received: from localhost (127.0.0.1)
  by localhost with SMTP; 20 Jun 2000 10:51:25 -0000
test
.
250
QUIT

The part that I'm really confused on is HOW did qmail make up the
MAIL FROM: part, and why is it WRONG? Where should I look if I want to
fix this problem?

If the from address IS in the rcpthosts file, everything works just fine.
The above problem causes most receiving mail servers to bounce the message
complaining about an invalid sender address.

Thanks in advance,

Greetings
Sebastiaan van Erk




On Tue, Jun 20, 2000 at 01:46:52PM +0200, Sebastiaan van Erk wrote:
> I've been experiencing the following strange situation with qmail
> when I try to send a message from localhost (with relaying from
> localhost allowed) with a user-filled-in sender address. That is, when
> I do the following on the mailserver host:
> 
> mailserver(ttyp2:138:0):/var/qmail/control# telnet localhost 25
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> 220 mailserver.somewhere.com ESMTP
> MAIL FROM: [EMAIL PROTECTED]           <-- this domain is NOT in the rcpthosts

Try it with proper SMTP and see what happens:

MAIL FROM:<[EMAIL PROTECTED]>

Chris




Hello,

> > I've been experiencing the following strange situation with qmail
> > when I try to send a message from localhost (with relaying from
> > localhost allowed) with a user-filled-in sender address. That is, when
> > I do the following on the mailserver host:
> > 
> > mailserver(ttyp2:138:0):/var/qmail/control# telnet localhost 25
> > Trying 127.0.0.1...
> > Connected to localhost.
> > Escape character is '^]'.
> > 220 mailserver.somewhere.com ESMTP
> > MAIL FROM: [EMAIL PROTECTED]         <-- this domain is NOT in the rcpthosts
> 
> Try it with proper SMTP and see what happens:
> 
> MAIL FROM:<[EMAIL PROTECTED]>

Well, I've never met a single mail server that doesn't like the other
format, but ok, this is what I get on the receiving mail server if I do
as you say and use <[EMAIL PROTECTED]>:

MAIL FROM:<^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@com>                                 

where the ^@ are ascii NUL characters.
Now I still don't know where to look to find out what's going wrong here :-(
Hope someone can help,

Greetings,
Sebastiaan van Erk




Thanks a bunch to all in this list.  I may not have responded to all of you
who replied, but that was only because I have received an overwhelming
amount of support.  I started out on this project attempting to use sendmail
and 3 weeks, gallons of coffee and a few more gray hairs later, I gave up on
it.  The help from sendmail was pathetic at best.  They all shunted me aside
and kept trying to send me back to the FAQ page that I had already read a
1000 times.

Anywho...I was pointed to qmail from a freebsd maillist and it was the best
decision.  The support in here is terrific and does not slam newbies (unless
they deserve it).

If you have not gotten the Life with Qmail
docs(http://web.infoave.net/~dsill/lwq.html), I highly recommend them to
anyone trying to setup qmail for the first time.  Although I had a few bumps
getting it tweaked for freebsd, it is up and running within 4 days after I
downloaded it.

Thanks so much for everyone's help.








Anyone familiar with what Environment Variables the standard checkpassword sets for qmail-popup & what environment variables it receives from qmail-pop3d?
 
J
 
----- Original Message -----
From: prashant
Sent: Friday, June 23, 2000 8:12 AM
Subject: virtual domains

hello friends
 
 
 i have installed qmail 1.03 with qmail-ldap -latest-patch  on RedHat linux 6.1
 
i want to configure virtual domains  with out using ".qmail" file in users home dir and also dont want to use /etc/passwd
 
is this possible ? i can use some ldap entries rather then using .qmail flat files
 
 
thanks
Prashant Desai




qmail-qread occasionally sticks the word 'bouncing' in it's reports
concerning a specific message.  What triggers the presence of that word?
I've looked at the messages in question and they only appear to be
deferred, not actually bouncing.  

Thanks,
Ben

-- 
The spectre of a polity controlled by the fads and whims of voters who
actually believe that there are significant differences between Bud Lite
and Miller Lite, and who think that professional wrestling is for real, is
naturally alarming to people who don't.
                -- Neal Stephenson






Hi all, I hooked up a free smtp/pop3 page which sorta worked but broke on
attachments.

Unfortunately the author is clearly insane as his mailing list consists of
ficticous recipients and he started email stalking me !!!  He calls himself
Al-the-Pal.

Ahh, the net gotta love it.

I downloaded anohter that called mail man, but it is not open source and the
code is obfuscated.  I got these from the www.perl.com cgi search.  (upper
right corner)

I hardwired al-the-pal's to qmail inject and the new proc may be expensive but
its only for replys.  Managing Maildir actually looks like a piece of cake, all
I need is an open source set of CGI's to play with.

Ultimately I would like to combine it with other desktop apps such as
schedulers where document management, and code development, would be the common
space between between apps.  I mention development because thats who I want to
provide for and you get version control by defualt in that game.  I see CVS
handling all the mail and other documents but I'll need a plugin editor for the
browser.  

Sounds ambitious but you should see my other ideas http://puny.vm.com.
Ultimately I would like to get away from html, where tcp client/server would be
athe client/server link.



=====
John van Vlaanderen

      #############################################
      #    CXN, Inc. Contact:  [EMAIL PROTECTED]   #               #
      #      Proud Sponsor of Perl/Unix of NY     #
      #        http://puny.vm.com                 #                 
      #############################################

__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/




On Sat, Jun 24, 2000 at 10:06:24AM -0700, John van V. wrote:
> 
> 
> Hi all, I hooked up a free smtp/pop3 page which sorta worked but broke on
> attachments.
> 
[..]
> 
> I hardwired al-the-pal's to qmail inject and the new proc may be expensive but
> its only for replys.  Managing Maildir actually looks like a piece of cake, all
> I need is an open source set of CGI's to play with.


I really don't got the message of your mail, but you may have a look
at Mail::Folder::Maildir at the nearest CPAN.

http://search.cpan.org/search?dist=MailFolder

/magnus

--
http://x42.com/




Hmmm . . . that's a good thought.  I really hadn't considered using rsync
since NFS seems to be working fine at least in terms of handling large mail
volumes.  But rsync would have some distinct advantages.  However, I don't
think that is the source of my problems because I had access problems
getting to the control files when first setting up the server and the error
messages in /var/log/syslog are pretty clear (e.g., "Can't_read_control", or
something to that affect).

Thanks for the rsyinc tip.  I will try it out.  Meanwhile, any other
thoughts on why the second server suddenly cannot make smtp connections to
the outside world or chdir to Mailbox?

Mike

> -----Original Message-----
> From: steve j. kondik [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, June 24, 2000 12:39 AM
> To: [EMAIL PROTECTED]
> Subject: Re: load balancing two qmail servers using nfs
>
>
> you might consider using rsync to sync your conffiles, instead of
> sharing them over nfs.  this would eliminate alot of problems
> and latency i'd think.
>
> On 06/24/00 @ 12:11AM, Mike Denka wrote:
> > I've got two qmail servers running inside a load balancer.
> They both access
> > the same /var/mail/username/Maildir directories on an NFS
> server.  They also
> > share many of the same configuration files in
> /var/qmail/control on the NFS
> > server.  The files they share are local symbolic links to the
> shared volume
> > on the NFS server.  A few hours after bringing up the second
> qmail server,
> > the first one, which had been running fine for two weeks, quit
> working.  The
> > errors I am getting in the syslog file on the failing server are
> > "Can't_connect_to_SMTP_server" and "Can't_chdir_to_Maidir".
> Anyone have any
> > success with this configuration or have any idea what could be
> causing the
> > first server to loose its way?
> >
> > Running qmail and NFS on Solaris 2.7 (first server and NFS
> server) and 2.8
> > (second qmail server).  The first server (the one failing) responds to
> > connections on port 25 but can't send or deliver and is not spawning any
> > qmail processes.  The second server is now doing all the work.
> >
> > Thanks,
> >
> > Mike
> >
> >
>
> --
> Steve J. Kondik  <[EMAIL PROTECTED]>
> Stargate Industries, LLC - Network Operations Center
>






Mike,

You might make sure that the UID/GIDs map the same on both servers and the
NFS machine. 
i.e.- If the qmaild user is user 500 on the first server, but is a
different UID number on the second server or the NFS machine you might have
problems. 

Also, what do your tcpserver init scripts look like for both servers? They
should be identical.

Regards,
Charles Werbick
The Wirehouse


Mike Denka writes:

> Hmmm . . . that's a good thought.  I really hadn't considered using rsync
> since NFS seems to be working fine at least in terms of handling large mail
> volumes.  But rsync would have some distinct advantages.  However, I don't
> think that is the source of my problems because I had access problems
> getting to the control files when first setting up the server and the error
> messages in /var/log/syslog are pretty clear (e.g., "Can't_read_control", or
> something to that affect).
> 
> Thanks for the rsyinc tip.  I will try it out.  Meanwhile, any other
> thoughts on why the second server suddenly cannot make smtp connections to
> the outside world or chdir to Mailbox?
> 
> Mike
> 
> > -----Original Message-----
> > From: steve j. kondik [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, June 24, 2000 12:39 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: load balancing two qmail servers using nfs
> >
> >
> > you might consider using rsync to sync your conffiles, instead of
> > sharing them over nfs.  this would eliminate alot of problems
> > and latency i'd think.
> >
> > On 06/24/00 @ 12:11AM, Mike Denka wrote:
> > > I've got two qmail servers running inside a load balancer.
> > They both access
> > > the same /var/mail/username/Maildir directories on an NFS
> > server.  They also
> > > share many of the same configuration files in
> > /var/qmail/control on the NFS
> > > server.  The files they share are local symbolic links to the
> > shared volume
> > > on the NFS server.  A few hours after bringing up the second
> > qmail server,
> > > the first one, which had been running fine for two weeks, quit
> > working.  The
> > > errors I am getting in the syslog file on the failing server are
> > > "Can't_connect_to_SMTP_server" and "Can't_chdir_to_Maidir".
> > Anyone have any
> > > success with this configuration or have any idea what could be
> > causing the
> > > first server to loose its way?
> > >
> > > Running qmail and NFS on Solaris 2.7 (first server and NFS
> > server) and 2.8
> > > (second qmail server).  The first server (the one failing) responds to
> > > connections on port 25 but can't send or deliver and is not spawning any
> > > qmail processes.  The second server is now doing all the work.
> > >
> > > Thanks,
> > >
> > > Mike
> > >
> > >
> >
> > --
> > Steve J. Kondik  <[EMAIL PROTECTED]>
> > Stargate Industries, LLC - Network Operations Center
> >
> 







Both servers are NIS clients from the same master, which happens to be the
NFS server.  So the user information is identical across all machines
involved.  The tcpserver init scripts on the second machine were copied from
the first machine, and so are also identical.   Both good points, but not
the problem, I'm afraid.

Thanks,

Mike

> -----Original Message-----
> From: chuck [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, June 24, 2000 12:10 PM
> To: Mike Denka
> Cc: [EMAIL PROTECTED]
> Subject: Re: load balancing two qmail servers using nfs
>
>
>
> Mike,
>
> You might make sure that the UID/GIDs map the same on both servers and the
> NFS machine.
> i.e.- If the qmaild user is user 500 on the first server, but is a
> different UID number on the second server or the NFS machine you
> might have
> problems.
>
> Also, what do your tcpserver init scripts look like for both servers? They
> should be identical.
>
> Regards,
> Charles Werbick
> The Wirehouse
>
>
> Mike Denka writes:
>
> > Hmmm . . . that's a good thought.  I really hadn't considered
> using rsync
> > since NFS seems to be working fine at least in terms of
> handling large mail
> > volumes.  But rsync would have some distinct advantages.
> However, I don't
> > think that is the source of my problems because I had access problems
> > getting to the control files when first setting up the server
> and the error
> > messages in /var/log/syslog are pretty clear (e.g.,
> "Can't_read_control", or
> > something to that affect).
> >
> > Thanks for the rsyinc tip.  I will try it out.  Meanwhile, any other
> > thoughts on why the second server suddenly cannot make smtp
> connections to
> > the outside world or chdir to Mailbox?
> >
> > Mike
> >
> > > -----Original Message-----
> > > From: steve j. kondik [mailto:[EMAIL PROTECTED]]
> > > Sent: Saturday, June 24, 2000 12:39 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: load balancing two qmail servers using nfs
> > >
> > >
> > > you might consider using rsync to sync your conffiles, instead of
> > > sharing them over nfs.  this would eliminate alot of problems
> > > and latency i'd think.
> > >
> > > On 06/24/00 @ 12:11AM, Mike Denka wrote:
> > > > I've got two qmail servers running inside a load balancer.
> > > They both access
> > > > the same /var/mail/username/Maildir directories on an NFS
> > > server.  They also
> > > > share many of the same configuration files in
> > > /var/qmail/control on the NFS
> > > > server.  The files they share are local symbolic links to the
> > > shared volume
> > > > on the NFS server.  A few hours after bringing up the second
> > > qmail server,
> > > > the first one, which had been running fine for two weeks, quit
> > > working.  The
> > > > errors I am getting in the syslog file on the failing server are
> > > > "Can't_connect_to_SMTP_server" and "Can't_chdir_to_Maidir".
> > > Anyone have any
> > > > success with this configuration or have any idea what could be
> > > causing the
> > > > first server to loose its way?
> > > >
> > > > Running qmail and NFS on Solaris 2.7 (first server and NFS
> > > server) and 2.8
> > > > (second qmail server).  The first server (the one failing)
> responds to
> > > > connections on port 25 but can't send or deliver and is not
> spawning any
> > > > qmail processes.  The second server is now doing all the work.
> > > >
> > > > Thanks,
> > > >
> > > > Mike
> > > >
> > > >
> > >
> > > --
> > > Steve J. Kondik  <[EMAIL PROTECTED]>
> > > Stargate Industries, LLC - Network Operations Center
> > >
> >
>
>
>
>





Would someone help me out here just a bit.  I am Sooo, confused!
Any pointers or documents that explain some of this would be greatly
appreciated..
TIA,,
MarkT.

Here's where I am in the INSTALL.maildir document.
Here's how to set up qmail to use maildir for your incoming mail:
<**** This Command does not work
<**** Neither does maildirmake $HOME/Maildir, although the command
maildirmake is there.
<**** What is the deal with the "%" as the first portion of the command?

   % maildirmake $HOME/Maildir
   % echo ./Maildir/ > ~/.qmail

Make sure you include the trailing slash on Maildir/.

The system administrator can set up Maildir as the default for everybody
by creating a maildir in the new-user template directory and replacing
./Mailbox with ./Maildir/ in /var/qmail/rc.
<******** maildir in the new-user template??  create directory called
maildir?
<******** where is the new-user template directory on FreeBSD? What is the
new-user <******** template file called by default?

Until your MUA supports maildir, you'll probably want to convert maildir
format to (gaaack) mbox format. I've supplied a maildir2mbox utility
that does the trick, along with some tiny qail and elq and pinq wrappers
that call maildir2mbox before calling Mail or elm or pine.
<***** Does mail(MUA), I think binmail, support maildir?  This is what came
default on <***** the bare system load. How do you implement maildir2mbox
and (gaaack)?





On Sat, Jun 24, 2000 at 11:32:35AM -0500, Mark Thomas wrote:
> Would someone help me out here just a bit.  I am Sooo, confused!
> Any pointers or documents that explain some of this would be greatly
> appreciated..
Have you tried Dave Sill's "Life with qmail" ?

> TIA,,
> MarkT.
> 
> Here's where I am in the INSTALL.maildir document.
> Here's how to set up qmail to use maildir for your incoming mail:
> <**** This Command does not work
What error does it generate ?

> <**** Neither does maildirmake $HOME/Maildir, although the command
> maildirmake is there.
Are you running it as the user the maildir is for ?
What command line are you using ?
Should be something like :
        % su [username]
        % cd /home/[username]
        % maildirmake Maildir
        % exit

providing you're currently running as a user able to 'su'
this creates the following structure in the user's home dir:
/home/[username]/Maildir/
/home/[username]/Maildir/new/
/home/[username]/Maildir/cur/
/home/[username]/Maildir/tmp/

> <**** What is the deal with the "%" as the first portion of the command?
The % is like the C:\> prompt in DOS ....
 
>    % maildirmake $HOME/Maildir
>    % echo ./Maildir/ > ~/.qmail
> 
> Make sure you include the trailing slash on Maildir/.
> 
> The system administrator can set up Maildir as the default for everybody
> by creating a maildir in the new-user template directory and replacing
> ./Mailbox with ./Maildir/ in /var/qmail/rc.
> <******** maildir in the new-user template??  create directory called
> maildir?
Nope, run maildirmake in the skeleton directory

> <******** where is the new-user template directory on FreeBSD? What is the
> new-user <******** template file called by default?
Dunno on FreeBSD but on OpenBSD it's /etc/skel/ and /usr/share/skel
  
> Until your MUA supports maildir, you'll probably want to convert maildir
> format to (gaaack) mbox format. I've supplied a maildir2mbox utility
> that does the trick, along with some tiny qail and elq and pinq wrappers
> that call maildir2mbox before calling Mail or elm or pine.
> <***** Does mail(MUA), I think binmail, support maildir?  This is what came
> default on <***** the bare system load. How do you implement maildir2mbox
> and (gaaack)?

HTH,
 Steffan 

-- 
http://therookie.dyndns.org





> > **** Neither does maildirmake $HOME/Maildir, although the command
> > maildirmake is there.
>
> Are you running it as the user the maildir is for ?
> >> as root, and it was working on the root user.  Then I tried the
> >>~username/Maildir and it worked for the other 3 users.
It shouldn't, you'll run into problems later on !!
The ~username/Maildir **needs** to be owned by username ....
If it's not, qmail **won't** deliver mail

** OK, I went back and chown the directories to their user-owners.
The owner was root, like you said.
The command maildirmake $HOME/Maildir. Should it be run by the user only? I
was thinking this was an administrative command for setting up all users
with a ~user/Maildir.
I did a maildirmake /usr/share/skel/Maildir and then added a user.  It did
create the ~user/Maildir and its subs with the proper owner and rights.
drwx.  So I think that is straight now.
The other command that I ran, I dont completely understand, so I couldn't
verify that it worked properly.  echo ./Maildir/> ~/.qmail
I executed this from the same place I executed the other commands.
/var/qmail/bin
It seems like maybe I should have been in the users directory?  What does
this actually do?

I can send mail from all users, including root.  Local send and Internet
send.
I can reply to message to all users except root.  Anytime I send to root,
the log says un 24 19:46:38 ns1 qmail: 961893998.351162 delivery 56:
deferral: Unable_to_ope
n_./Mailbox:_access_denied._(#4.2.1)/
Jun 24 19:46:38 ns1 qmail: 961893998.351423 status: local 0/10 remote 0/20

I guess I didn't get /Mailbox switched to Maildir.  I figured I could fix
that in a bit. I have been looking in ~user/Mailbox to see if the messages
are being received.
The docs had me modify my rc file, then later had me copy
/var/qmail/boot/home to /var/qmail/rc which overwrote my previous edit of
./Maildir instead of ./Mailbox. I'll go and fix that now.
Here is the file before I edit it.
#!/bin/sh

# Using splogger to send the log through syslog.
# Using qmail-local to deliver messages to ~/Mailbox by default.

exec env - PATH="/var/qmail/bin:$PATH" \
qmail-start ./Mailbox splogger qmail
***
I am changing this line to :
qmail-start ./Maildir splogger qmail
Is the splogger qmail correct?

ONE MORE:
Where should the ~alias/Mailbox be, and who should be the owner.
Basic alias, ie.. Postmaster, MAILER-DAEMON, root.
All I did according to the doc was touch ~alias/.qmail-postmaster,
~alias/.qmail-mailer-daemon, ~alias/.qmail-default and ~alias/.qmail-root.
Then I chmod 644 qmail.*
These empty files are in /var/qmail/alias.  They are 0 byte files. Do they
need something in them relating to the alias?  The doc says look at
dot-qmail.0 for details, but the file has a bunch of characters just thrown
in where some of the important stuff is, and I don't want to make any
changes where I don't know what I am doing. I have to do some reading on man
to make it find the file where it is now.  It is still in the src diretory.
For some reason, it didn't get copied over to the regular man directories.

I hate to ask so many questions, but it is one of the best ways to figure
these things out.  My experience is with Novell/NT and desktops.  This is my
first stab at Unix.

I want to go back, if the original writer of the Install documents doesn't
mind and do a modification of these documents for FreeBSD 4.0, in
particular.  I know I would have been glad to get my hands on something like
this before I got started.
I already have a bunch of documentation on setting up Apache 1.3.12 that I
want to put out for some other people to get ahold of.  I find alot of
people asking the same questions that I had trouble with. Same thing with
DNS.  I am going to take my other PIII 600 and setup a second box with this
one to reference when I do a final re-write on the install differences for
FreeBSD.  It was mostly diretory differences and file name differences, but
it sure makes it easy when the doc says go here and edit this, and it is
really there to be edited.

Thanks for everyones comments.  I really appreciate the help.  I hope to
help others in return.  When I get finished with the docs that I am going to
re-write for FreeBSD, I'll send some periodic mails to the list so others
will know where to find them.

Thanks again,
Mark Thomas.
Special thanks to you, Steffan Hoeke...

-----Original Message-----
From: Steffan Hoeke [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 24, 2000 3:20 PM
To: Mark Thomas
Subject: Re: INSTALL.maildir - Clairification please!


On Sat, Jun 24, 2000 at 02:00:53PM -0500, Mark Thomas wrote:
> Yes, I have tried Life with Qmail.
> I got into trouble when I got to creating the rc.0 directories that don't
> exist on FreeBSD.  So, I stopped and went back to the INSTALL.
>
> I found workarounds for everything except the (gaaak) maildir2mbox, but I
am
> still searching for some additional info on install/setup of these two
> features.
>
> Thanks for your response.
> MarkT
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> Steffan Hoeke
> Sent: Saturday, June 24, 2000 12:51 PM
> To: [EMAIL PROTECTED]
> Subject: Re: INSTALL.maildir - Clairification please!
>
>
> On Sat, Jun 24, 2000 at 11:32:35AM -0500, Mark Thomas wrote:
> > Would someone help me out here just a bit.  I am Sooo, confused!
> > Any pointers or documents that explain some of this would be greatly
> > appreciated..
> Have you tried Dave Sill's "Life with qmail" ?
> >> YES, rc.0 file problems (not on FreeBSD
Neither on OpenBSD, but that's logical since OBSD is a derivative of FBSD


> > TIA,,
> > MarkT.
> >
> > Here's where I am in the INSTALL.maildir document.
> > Here's how to set up qmail to use maildir for your incoming mail:
> > <**** This Command does not work
> What error does it generate ?
> >> Command Not found, %command= too many arguments.
> >> I found that if I went one subdiretory under /var/qmail/bin and did a
> ./maildirmake >>there it worked.  I could do individual user diretories,
but
> not with the $HOME >>>variable. I don't know why ./mailmakedir
$HOME/Maildir
> didn't work, but ./mailmakedir >>.~userid/Maildir did work.  I had only 4
> users to deal with.
> >>I am OK here!
Great !

> > <**** Neither does maildirmake $HOME/Maildir, although the command
> > maildirmake is there.
>
> Are you running it as the user the maildir is for ?
> >> as root, and it was working on the root user.  Then I tried the
> >>~username/Maildir and it worked for the other 3 users.
It shouldn't, you'll run into problems later on !!
The ~username/Maildir **needs** to be owned by username ....
If it's not, qmail **won't** deliver mail

> What command line are you using ?
> >> /var/qmail/bin/mailmakedir ~bob/Maildir   (for user bob)
> Should be something like :
>       % su [username]
>       % cd /home/[username]
>       % maildirmake Maildir
>       % exit
>
> providing you're currently running as a user able to 'su'
> this creates the following structure in the user's home dir:
> /home/[username]/Maildir/
> /home/[username]/Maildir/new/
> /home/[username]/Maildir/cur/
> /home/[username]/Maildir/tmp/
>
> >> Yes, I got this to work after moving to /var/qmail/bin
You 'need' to do the su as well for the permissions to be correct ..


> > <**** What is the deal with the "%" as the first portion of the command?
> The % is like the C:\> prompt in DOS ....
> DUH,,, I don't know what I was thinking. But, I couldn't get it working
> before I sent >>then note
<G> Nobody's perfect ...

Sorry, didn't notice your comments the first time i read the message ;-)
and please, don't prepend your comments with >> it's confusing my mutt (mua)
--
http://therookie.dyndns.org






On Sat, Jun 24, 2000 at 07:31:51PM -0500, Mark Thomas wrote:
> > > **** Neither does maildirmake $HOME/Maildir, although the command
> > > maildirmake is there.
> >
> > Are you running it as the user the maildir is for ?
> > >> as root, and it was working on the root user.  Then I tried the
> > >>~username/Maildir and it worked for the other 3 users.
> It shouldn't, you'll run into problems later on !!
> The ~username/Maildir **needs** to be owned by username ....
> If it's not, qmail **won't** deliver mail
> 
> ** OK, I went back and chown the directories to their user-owners.
> The owner was root, like you said.
> The command maildirmake $HOME/Maildir. Should it be run by the user only? I
> was thinking this was an administrative command for setting up all users
> with a ~user/Maildir.
For existing users it's easiest to 'su username' and then run maildirmake
It is an administrative command, but it doesn't create the Maildir for every
user..

> I did a maildirmake /usr/share/skel/Maildir and then added a user.  It did
> create the ~user/Maildir and its subs with the proper owner and rights.
> drwx.  So I think that is straight now.
it should be FBSD changes the appropriate permissions as part of adduser IIRC.

> The other command that I ran, I dont completely understand, so I couldn't
> verify that it worked properly.  echo ./Maildir/> ~/.qmail
echo ./Maildir/> ~/.qmail creates a .qmail file in the *current* user's home
directory and tells qmail to deliver all mail for this user to the Maildir in
it's home directory.

> I executed this from the same place I executed the other commands.
> /var/qmail/bin
not quite correct

> It seems like maybe I should have been in the users directory?  
You're getting the hang of it ;-)
The other alternative is using lwq's defaultdelivery file.

> What does this actually do?
See above.....
 
> I can send mail from all users, including root.  Local send and Internet
> send.
> I can reply to message to all users except root.  Anytime I send to root,
> the log says un 24 19:46:38 ns1 qmail: 961893998.351162 delivery 56:
> deferral: Unable_to_open_./Mailbox:_access_denied._(#4.2.1)/
> Jun 24 19:46:38 ns1 qmail: 961893998.351423 status: local 0/10 remote 0/20
Did you create an alias for root in /var/qmail/alias ?
qmail, by design, doesn't deliver mail to root !

> I guess I didn't get /Mailbox switched to Maildir.  I figured I could fix
> that in a bit. I have been looking in ~user/Mailbox to see if the messages
> are being received.
If you created the .qmail file containing ./Maildir/ in each home dir the Mailbox file 
has become obsolete.

> The docs had me modify my rc file, then later had me copy
> /var/qmail/boot/home to /var/qmail/rc which overwrote my previous edit of
> ./Maildir instead of ./Mailbox. I'll go and fix that now.
<GRIN> 
 some insight in what you're doing *is* required 
</GRIN>

> Here is the file before I edit it.
> #!/bin/sh
> 
> # Using splogger to send the log through syslog.
> # Using qmail-local to deliver messages to ~/Mailbox by default.
> 
> exec env - PATH="/var/qmail/bin:$PATH" \
> qmail-start ./Mailbox splogger qmail
> ***
> I am changing this line to :
> qmail-start ./Maildir splogger qmail
> Is the splogger qmail correct?

The splogger qmail should work.
the ./Maildir entry is wrong, now qmail is delivering all mail to an mbox file named 
Maildir....
There should be a / after ./Maildir ....
The line should read:
qmail-start ./Maildir/ splogger qmail

 
> ONE MORE:
> Where should the ~alias/Mailbox be, and who should be the owner.
> Basic alias, ie.. Postmaster, MAILER-DAEMON, root.
> All I did according to the doc was touch ~alias/.qmail-postmaster,
> ~alias/.qmail-mailer-daemon, ~alias/.qmail-default and ~alias/.qmail-root.
> Then I chmod 644 qmail.*
> These empty files are in /var/qmail/alias.  They are 0 byte files. Do they
> need something in them relating to the alias?  The doc says look at
> dot-qmail.0 for details, but the file has a bunch of characters just thrown
> in where some of the important stuff is, and I don't want to make any
> changes where I don't know what I am doing. I have to do some reading on man
> to make it find the file where it is now.  It is still in the src diretory.
> For some reason, it didn't get copied over to the regular man directories.

The ~alias/Mailbox should be in /var/qmail/alias ;-)
BUT you don't want a Mailbox file. you want a Maildir !
If you on;y touch those files, all mail to these users will be delivered to
/var/qmail/alias/Maildir/
Touching those .qmail files isn't enough if you want mail to postmaster,root and 
mailer-daemon delivered to a specific user.

The man pages are in /var/qmail/man.
One way to acces them is to copy them to your main man location. Which, on OBSD is 
rooted in /usr/local/man.
The other way to acces them is to add /var/qmail/man to your MANPATH...
The appropriate command to read dot-qmail is 'man dot-qmail' which should 
output something like this:
dot-qmail(5)                                         dot-qmail(5)

NAME
       dot-qmail - control the delivery of mail messages

DESCRIPTION
       Normally  the  qmail-local  program delivers each incoming
       message to your  system  mailbox,  homedir/Mailbox,  where
       homedir is your home directory.

       It  can  instead  write  the  mail  to a different file or
       directory, forward it to another address, distribute it to
       a  mailing  list, or even execute programs, all under your
       control.

THE QMAIL FILE
       To change qmail-local's behavior, set up a .qmail file  in
       your home directory.
[etc..]
 
> I hate to ask so many questions, but it is one of the best ways to figure
> these things out.  My experience is with Novell/NT and desktops.  This is my
> first stab at Unix.
<G> Been there, done that, asked it ;-)

> I want to go back, if the original writer of the Install documents doesn't
> mind and do a modification of these documents for FreeBSD 4.0, in
> particular.  I know I would have been glad to get my hands on something like
> this before I got started.
That whould be the author of qmail ;)
The other way is to ask Dave Sill if he would like to add an OS specific
section to his Life with qmail document ....

> I already have a bunch of documentation on setting up Apache 1.3.12 that I
> want to put out for some other people to get ahold of.  I find alot of
> people asking the same questions that I had trouble with. Same thing with
> DNS.  I am going to take my other PIII 600 and setup a second box with this
> one to reference when I do a final re-write on the install differences for
> FreeBSD.  It was mostly diretory differences and file name differences, but
> it sure makes it easy when the doc says go here and edit this, and it is
> really there to be edited.
> 
> Thanks for everyones comments.  I really appreciate the help.  I hope to
> help others in return.  When I get finished with the docs that I am going to
> re-write for FreeBSD, I'll send some periodic mails to the list so others
> will know where to find them.
> 
> Thanks again,
> Mark Thomas.
> Special thanks to you, Steffan Hoeke...
No problem !
I needed a lot of help when i started as well (same background) and 'the list'
was a valuable resource ....

 
HTH,
 Steffan
PS: i'm a subscriber of this list, so there's no need to send it to me & the
    list ... TIA
-- 
http://therookie.dyndns.org






Where do I read about single uid/gid virtual domain delivery/pop?

J
----- Original Message -----
From: Mark Thomas <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 24, 2000 12:32 PM
Subject: INSTALL.maildir - Clairification please!


> Would someone help me out here just a bit.  I am Sooo, confused!
> Any pointers or documents that explain some of this would be greatly
> appreciated..
> TIA,,
> MarkT.
>
> Here's where I am in the INSTALL.maildir document.
> Here's how to set up qmail to use maildir for your incoming mail:
> <**** This Command does not work
> <**** Neither does maildirmake $HOME/Maildir, although the command
> maildirmake is there.
> <**** What is the deal with the "%" as the first portion of the command?
>
>    % maildirmake $HOME/Maildir
>    % echo ./Maildir/ > ~/.qmail
>
> Make sure you include the trailing slash on Maildir/.
>
> The system administrator can set up Maildir as the default for everybody
> by creating a maildir in the new-user template directory and replacing
> ./Mailbox with ./Maildir/ in /var/qmail/rc.
> <******** maildir in the new-user template??  create directory called
> maildir?
> <******** where is the new-user template directory on FreeBSD? What is the
> new-user <******** template file called by default?
>
> Until your MUA supports maildir, you'll probably want to convert maildir
> format to (gaaack) mbox format. I've supplied a maildir2mbox utility
> that does the trick, along with some tiny qail and elq and pinq wrappers
> that call maildir2mbox before calling Mail or elm or pine.
> <***** Does mail(MUA), I think binmail, support maildir?  This is what
came
> default on <***** the bare system load. How do you implement maildir2mbox
> and (gaaack)?
>






Julian,
There's a howto at- 

http://www.tibus.net/pgregg/projects/qmail/single-uid-howto.html

You may also want to check out vpopmail at-

http://www.inter7.com/vpopmail

Hope this helps.

Regards,
Charles Werbick
The Wirehouse

Julian L. Cardarelli writes:

> 
> Where do I read about single uid/gid virtual domain delivery/pop?
> 
> J




Hey folks -

Anyone have any ideas why this is bouncing or can you give me some tips
about how to better diagnose this?

judharris.com:jud -- is in my control/virtualdomains
judharris.com     -- is in control/rcpthosts

the only thing in control/locals is "localhost"

my .qmail-default contains "|/usr/local/bin/vdeliver"

Other vdomains on this server work fine.

Here's the bounce message I get:

----------
From: [EMAIL PROTECTED]
Date: 24 Jun 2000 19:21:45 -0000
To: [EMAIL PROTECTED]
Subject: failure notice

Hi. This is the qmail-send program at nurelm.com.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<[EMAIL PROTECTED]>:
Sorry. Although I'm listed as a best-preference MX or A for that host,
it isn't in my control/locals file, so I don't treat it as local. (#5.4.6)

...

shouldn't it overlook the locals file when it sees the entries in rcpthosts
and/or virtualdomains?  why's it choking on the locals?

Thanks in advance!
-Jud





On Sat, Jun 24, 2000 at 02:28:39PM -0500, Jud Harris wrote:
> Hey folks -
> 
> Anyone have any ideas why this is bouncing or can you give me some tips
> about how to better diagnose this?
> 
> judharris.com:jud -- is in my control/virtualdomains
> judharris.com     -- is in control/rcpthosts
> 
> the only thing in control/locals is "localhost"
> 
> my .qmail-default contains "|/usr/local/bin/vdeliver"
> 
> Other vdomains on this server work fine.
>
> Here's the bounce message I get:
> 
> ----------
> From: [EMAIL PROTECTED]
> Date: 24 Jun 2000 19:21:45 -0000
> To: [EMAIL PROTECTED]
> Subject: failure notice
> 
> Hi. This is the qmail-send program at nurelm.com.
> I'm afraid I wasn't able to deliver your message to the following addresses.
> This is a permanent error; I've given up. Sorry it didn't work out.

Have you restarted qmail? It needs to reread it's configuration files!

/magnus

--
http://x42.com/




I finished my checkpassword to allow multiple domains over one ip address by
having users login with [EMAIL PROTECTED]

It checks /var/qmail/domains/domain.com.passwd for the
username/password/mail root & shell.  It is intended to operate with the
single uid/gid "popuser" system by Paul Gregg and you can get it from me if
you want it.  Just let me know.

Regards,

Julian Cardarelli

----- Original Message -----
From: Magnus Bodin <[EMAIL PROTECTED]>
To: qmail list <[EMAIL PROTECTED]>
Sent: Saturday, June 24, 2000 5:11 PM
Subject: Re: Qmail Clients


> On Sat, Jun 24, 2000 at 10:06:24AM -0700, John van V. wrote:
> >
> >
> > Hi all, I hooked up a free smtp/pop3 page which sorta worked but broke
on
> > attachments.
> >
> [..]
> >
> > I hardwired al-the-pal's to qmail inject and the new proc may be
expensive but
> > its only for replys.  Managing Maildir actually looks like a piece of
cake, all
> > I need is an open source set of CGI's to play with.
>
>
> I really don't got the message of your mail, but you may have a look
> at Mail::Folder::Maildir at the nearest CPAN.
>
> http://search.cpan.org/search?dist=MailFolder
>
> /magnus
>
> --
> http://x42.com/





hi,

i told qmail to deliver emails to /home/[user]/Maildir, but whenever qmail
tries to deliver an email, it prints
"unable_to_open_./Maildir:is_a_directory._(#4.2.1)"

somebody here who could tell me how to get this fixed ?

-- 
regards
jens
---------------------------------------------------------------------------
department computer science, university of dortmund
linux ... life's too short for reboots!





On Sun, Jun 25, 2000 at 01:51:01AM +0200, Jens Georg wrote:
> hi,
> 
> i told qmail to deliver emails to /home/[user]/Maildir, but whenever qmail
> tries to deliver an email, it prints
> "unable_to_open_./Maildir:is_a_directory._(#4.2.1)"
> 
> somebody here who could tell me how to get this fixed ?

Yes: add a trailing slash to wherever you tell qmail to deliver to
the Maildir (ie: /home/$USER/Maildir/  and not /home/$USER/Maildir ).

-Johan
-- 
Johan Almqvist




Where does the incomming and outgoing mail actually get filed.
Each user has a Maildir subdirectory with tmp,cur,new subdirectories under
it.
It appears that I am able to receive messages, but they are not showing up
in Maildir.

I was able to send/recieve mail using the Mailbox file.  I could cat the
Mailbox file in the users directory, but since I tried to convert over to
Maildir, I havn't been able to find the incomming messages.

Mark





Make sure you have put:
./Maildir/
in ~/.qmail for each user (or /etc/skel/.qmail for new user). See man
dot-qmail for more info.

Brett Randall

Manager
InterPlanetary Solutions
http://ipsware.com/ <http://ipsware.com/>



> -----Original Message-----
> From: Mark Thomas [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, 25 June 2000 12:46 PM
> To: [EMAIL PROTECTED]
> Subject: Maildir and Mailbox
>
>
> Where does the incomming and outgoing mail actually get filed.
> Each user has a Maildir subdirectory with tmp,cur,new subdirectories under
> it.
> It appears that I am able to receive messages, but they are not showing up
> in Maildir.
>
> I was able to send/recieve mail using the Mailbox file.  I could cat the
> Mailbox file in the users directory, but since I tried to convert over to
> Maildir, I havn't been able to find the incomming messages.
>
> Mark
>





Yes, we do this.

Just follow the instructions that come with rblsmtpd.  It dropped in
no problem with the latest version of tcpserver.

-----ScottG.




On Sun, Jun 25, 2000 at 07:43:39AM +0200, Steffan Hoeke wrote:
> 
> > I want to go back, if the original writer of the Install documents doesn't
> > mind and do a modification of these documents for FreeBSD 4.0, in
> > particular.  I know I would have been glad to get my hands on something like
> > this before I got started.
> That whould be the author of qmail ;)
> The other way is to ask Dave Sill if he would like to add an OS specific
> section to his Life with qmail document ....
> 
I have to say, this seems like a wonderful idea.  It's nice that
FreeBSD has a port for qmail.  But because it doesn't complete the
installation, you have to go back and figure out what, in all those
directions, it didn't do.

-- 
David Benfell
[EMAIL PROTECTED]
ICQ 59438240 [e-mail first for access]
---
There are no physicists in the hottest parts of hell, because the
existence of a "hottest part" implies a temperature difference, and
any marginally competent physicist would immediately use this to
run a heat engine and make some other part of hell comfortably cool.
This is obviously impossible.
                                -- Richard Davisson
 
                                        [from fortune]

                 


Reply via email to