Mailing List Archive

maildir
how does one setup Maildir delivery for just one user?
Re: Maildir [ In reply to ]
I vaguely remember in past discussions that I-nodes are somehow linked to
filenames, is this going to be a problem if I move the user Maildir? Or is
that relationship somewhere else in the Qmail heirarchy?

Jose

-----Original Message-----
From: Michael Samuel <michael@surfnetcity.com.au>
To: Jose de Leon <jadiel@thevision.net>
Cc: QMail List <djb-qmail@koobera.math.uic.edu>
Date: Wednesday, November 05, 1997 1:37 PM
Subject: Re: Maildir


Kill qmail-lspawn before doing so. You may also want to kill the popper.
Afterwards, you will be ok, so long as you don't lose any permissions.


On Wed, 5 Nov 1997, Jose de Leon wrote:

> Date: Wed, 5 Nov 1997 11:27:17 -0800
> From: Jose de Leon <jadiel@thevision.net>
> To: QMail List <djb-qmail@koobera.math.uic.edu>
> Subject: Maildir
>
> I'm about to move my entire /home/* tree which includes all users and
> Maildirs' to a new HD. The current filesystem is getting full and I have
a
> mounted filesytem that is practically empty.
>
> IS Qmail going to get upset if I move it over? I plan on renaming /home/
to
> a temp name, copying it to a new name on the new filesystem, creating a
> symbolic link from /home/ to /mnt/home/
>
> Thanks,
> Jose
>
>
>




Michael Samuel,

Surf-Net City - Internet Cafe and Internet Service Provider
http://www.surfnetcity.com.au/
Phone: +61 3 9593-9977
mailto:michael@surfnetcity.com.au
Re: Maildir [ In reply to ]
At 17:04 5/11/97 -0800, Jose de Leon wrote:
>I vaguely remember in past discussions that I-nodes are somehow linked to
>filenames, is this going to be a problem if I move the user Maildir? Or is
>that relationship somewhere else in the Qmail heirarchy?


That's in the queue only. Not in Maildir.

It's a neat way of guaranteeing a unique filename. I like the idea so much I
stole it :>


Regards.
Re: Maildir [ In reply to ]
On Wed, Feb 17, 1999 at 11:10:10AM -0800, Mark Zugsmith wrote:
> Sorry folks, I am brand new to qmail and I am just getting it up and
> running on a test box. I setup Maildir for my home directory and I am just
> wondering if root in fact is the owner for the users Maildir/ directory..
>
>
> -----snipit-------
> ls -alg Maildir/
> ls: Maildir/: Permission denied
> [mark@rati mark]$ su
> Password:
> [root@rati mark]# ls -alg Maildir/
> total 5
> drwx------ 5 root root 1024 Feb 17 11:37 .
> drwx------ 6 mark mark 1024 Feb 17 12:09 ..
> drwx------ 2 root root 1024 Feb 17 11:37 cur
> drwx------ 2 root root 1024 Feb 17 11:37 new
> drwx------ 2 root root 1024 Feb 17 11:37 tmp
>
> Do I have my ownerships and permissions completely @#$%#! up?

I don't know about completely @#$%#! up, but it's not right and won't work. As
it stands, your Maildir and its contents are owned by root. You need to chown
-R mark.mark ~mark/Maildir.

Chris
Re: Maildir [ In reply to ]
On Wed, 17 Feb 1999 15:25:19 -0500,
Chris Johnson <cjohnson@palomine.net> wrote:
> On Wed, Feb 17, 1999 at 11:10:10AM -0800, Mark Zugsmith wrote:
> > Sorry folks, I am brand new to qmail and I am just getting it up and
> > running on a test box. I setup Maildir for my home directory and I am just
> > wondering if root in fact is the owner for the users Maildir/ directory..
> > -----snipit-------
> > ls -alg Maildir/
> > ls: Maildir/: Permission denied
> > [mark@rati mark]$ su
> > Password:
> > [root@rati mark]# ls -alg Maildir/
> > total 5
>
> I don't know about completely @#$%#! up, but it's not right and won't work. As
> it stands, your Maildir and its contents are owned by root. You need to chown
> -R mark.mark ~mark/Maildir.
For your next users you should su to the user before running maildirmake. Or
better do a maildirmake (as root) in /etc/skel, so new users on your system
will get it automatically. During creation of a new user the ownerships
will be switched afterwards.

Regards
Mirko

--
mailto:mirko.zeibig@gmx.de myhome_aka_~:http://sites.inka.de/picard
RedHat=~/rh52_isdn.html teles16.3c=~/teles163c/teles163c_contents.html
XL97-Classes ~/vba-classes/
be aware of culture www.uni-karlsruhe.de/~etcetera
Re: Maildir [ In reply to ]
At 09:59 16.11.99 -0200, Carlo Gibertini wrote:
>Hello,
>
>I instaled qmail with Maildir, but cannot figure how to do for each time
>I add a user the linux automaticly create the Maildir.

Actually it depends on what system you use, in RedHat and Hp-UX there is a
directory called /etc/skel/ which is exactely what's beeing copied into the
new home-dir.. so if you do a maildirmake in that directory and create a
.qmail file which contains ./Maildir/ then things should be ok and you
don't have to think of it any more. If you run something else, and
/etc/skel isn't existing, then I guess you'll have to check and fint it,
and then do the above. Hope this helps a bit at least.


--
-Marthe
Ano-Tech Computers, www.atc.no

"You humans are a disease, a cancer to this planet..
You are a plague.. and we.. are the cure."
Re: Maildir [ In reply to ]
> Actually it depends on what system you use, in RedHat and Hp-UX there is a
> directory called /etc/skel/ which is exactely what's beeing copied into the
> new home-dir.. so if you do a maildirmake in that directory and create a
> .qmail file which contains ./Maildir/ then things should be ok and you
> don't have to think of it any more. If you run something else, and
> /etc/skel isn't existing, then I guess you'll have to check and fint it,

/etc/skel exists in Slackware too. if it's absent in Your system, just
modify Your adduser script (if You don't have that one also, create one
<;} ) so that it'll create the required directories and files whenever You
create a new user.

btw sorry about the man pages question, i missed it in LWQ...


love, peace etc,
dd
Re: maildir [ In reply to ]
On Sat, 20 May 2000, suresh wrote:

> Hello
> I have installed qmail.but not very sure whether i have done it properly.if
> i telnet to port 25 it works but if i telnet to 110 ,I am getting this error
> "- ERR this user has no $homeMaildir .Do i have to install maildir
>
you have to do "maildirmake /home/user/Maildir" for example. you can put
your Maildir anywhere, just remember to put in the .qmail file on the
users home to point to the maildir. eg. .qmail file:
/home/user/Maildir/

don't forget this "/" at the end. if you want to use Mailbox format the
strip off that last "/".

>
> Suresh
>
> ----------------------------------------------------------------
> Send and receive mails in Indian languages.
> Register free with http://www.mailjol.com
>
>
>
Re: Maildir [ In reply to ]
Try removing Maildir/ from /etc/skel (or /etc/newuser)

Brett Randall

-----Original Message-----
From: Alan Chung <alan@silveregg.co.jp>
To: qmail@list.cr.yp.to <qmail@list.cr.yp.to>
Date: Thursday, June 29, 2000 7:00 PM
Subject: Maildir


>There is one thing bothering me for a while. I first compiled qmail using
>Maildir but decided to back to Mailbox instead later. But whenever I add a
>new user using "useradd" on my redhat, it automatically adds a Maildir in
>the user's folder. Even after I recompiled qmail. Does anybody have the
>same experience before?
>
>Any help is appreciated.
>
>Alan
>********************************
>$B%7%9%F%`%^%M!<%8%c!<(B
>$B%"%i%s!!%A%c%s(B
>********************************
>$B%7%k%P!<%(%C%0%F%/%N%m%8!<3t<02q >$B9A6h@V:d(B 2-14-15
$B%W%i%6%_%+%I(B303$B9f(B
>TEL : 03-3560-1831
>FAX : 03-3560-1832
>Email: alan@silveregg.co.jp
>Homepage: http://www.silveregg.co.jp
>********************************
Re: Maildir [ In reply to ]
check your /skel directory remove your .qmail file there.
if your using linux try in /etc/skel




At 05:59 PM 6/29/00 +0900, you wrote:
>There is one thing bothering me for a while. I first compiled qmail using
>Maildir but decided to back to Mailbox instead later. But whenever I add a
>new user using "useradd" on my redhat, it automatically adds a Maildir in
>the user's folder. Even after I recompiled qmail. Does anybody have the
>same experience before?
>
>Any help is appreciated.
>
>Alan
>********************************
>$B%7%9%F%`%^%M!<%8%c!<(B
>$B%"%i%s!!%A%c%s(B
>********************************
>$B%7%k%P!<%(%C%0%F%/%N%m%8!<3t<02q<R(B
>$B9A6h@V:d(B 2-14-15 $B%W%i%6%_%+%I(B303$B9f(B
>TEL : 03-3560-1831
>FAX : 03-3560-1832
>Email: alan@silveregg.co.jp
>Homepage: http://www.silveregg.co.jp
>********************************
>
>
RE: MailDir [ In reply to ]
One other thing is that each of the home directories must have a .qmail file
which contains ./Maildir/ as well (exactly as I have typed it), and make
sure that it contains a Maildir naturally with the owner and group being the
same as who will be accessing it.

Brett Randall.

Manager
InterPlanetary Solutions
http://ipsware.com/



> -----Original Message-----
> From: philipp@ns.oberberg-online.de
> [mailto:philipp@ns.oberberg-online.de]On Behalf Of Philipp Steinkrüger
> Sent: Monday, July 24, 2000 6:57 PM
> To: qmail@list.cr.yp.to
> Subject: MailDir
>
>
> Hello,
>
>
> i have a problem with Qmail and Maildir. I installed qmail and vpopmail
> and everything
> works fine for local accounts.
> So if i send an email to philipp@the.real.host.name the mail is put into
> ~philipp/Maildir/new.
> Thats nice !
>
> But if i send an email to philipp@the.virtual.domain the log gives me
> this error message:
>
> Jul 20 15:16:13 diavolos qmail: 964098973.224255 delivery 8: failure:
> Sorry,_no
> _mailbox_here_by_that_name._(#5.1.1)/
>
> I created the POP account with qmailadmin, and there is a dir in
> ~vpopmail/domain/virtualdomain/
> but it stays empty....
>
> Here is my qmail startup script:
>
> case "$1" in
> start)
> echo -n "Starting mail-transfer agent: qmail"
> /usr/sbin/qmail-start ./Maildir/ splogger qmail &
>
> /usr/bin/tcpserver 0 pop3 /usr/sbin/qmail-popup
> diavolos.oberberg-online.de /bin/checkpassword /usr/sbin/qmail-pop3d
> Maildir &
> echo -s "Starting Pop Service"
>
> # prevent denial-of-service attacks, with ulimit
> ulimit -v 2048
>
> /usr/bin/tcpserver -S -u 71 -g 65534 -x /etc/tcp.smtp.cdb 0 smtp
> /usr/sbin/qmail-smtpd 2>&1 | logger -t qmail -p mail.notice &
> echo -n "Starting Smtp Service"
> echo "."
> ;;
> stop)
>
> As far as i see the "./Maildir/" parameter should tell the qmail
> deliverer to not use Mailbox. I think that
> there is a problem with vpopmail. Where is the mail given from qmail to
> vpopmail ? Or do you think
> there is another problem ?
>
> Thank you for you help.
>
> Philipp Steinkrüger
>
>
Re: MailDir [ In reply to ]
> /usr/bin/tcpserver 0 pop3 /usr/sbin/qmail-popup
> diavolos.oberberg-online.de /bin/checkpassword /usr/sbin/qmail-pop3d
> Maildir &

Here is definitely an error - if you use vpopmail you cannot use the
checkpassword provided by DJB.

Regarding the delivery you should first try to use the commandline tools
of vpopmail for creating virtual domains and POP accounts.
If that doesn't work please ask on the vpopmail mailinglist because this
is not a qmail issue.

Regards, Frank
Re: MailDir [ In reply to ]
Brett Randall wrote:

> One other thing is that each of the home directories must have a .qmail file
> which contains ./Maildir/ as well (exactly as I have typed it), and make
> sure that it contains a Maildir naturally with the owner and group being the
> same as who will be accessing it.
>

Allright, there was no .qmail in the vpopmail virtual domain directory. i
created one
and made vpopmail the owner, because the Maildir directory is owned my
vpopmail, too.
Unfortunately, i still have the same problem and error message in my logfile.

When i asked for help in the IRC chat channel on efnet, someone told me that
qmail tries
to deliver to a mailbox, instead of Maildir
(Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/)

^^^^^^^
I think i started qmail correctly to use Maildir.

What else could be wrong ??

Thanx,
Philipp
Re: MailDir [ In reply to ]
Frank Tegtmeyer wrote:

> > /usr/bin/tcpserver 0 pop3 /usr/sbin/qmail-popup
> > diavolos.oberberg-online.de /bin/checkpassword /usr/sbin/qmail-pop3d
> > Maildir &
>
> Here is definitely an error - if you use vpopmail you cannot use the
> checkpassword provided by DJB.

I found this in the qmail-FAQ, Question 5.3: how do i set up qmail-pop3d.
So there is a problem with my startup script ?

> Regarding the delivery you should first try to use the commandline tools
> of vpopmail for creating virtual domains and POP accounts.
> If that doesn't work please ask on the vpopmail mailinglist because this
> is not a qmail issue.

I added a domain with the commandline tool, vadddomain, and added a pop
account
using qmail-admin. as far as i see everything went ok, because the
directories were
created and i can log on the virtual pop account using sqwebmail.

I think that there is problem with qmail giving the mail to vpopmail. Is it
possible that
my mistake in the startup script is responsible? If, what would be the
correct startup
command ?

Thank you,
Philipp
RE: MailDir [ In reply to ]
OK, try changing the ownership of the Maildir and the .qmail file to the
actual person that the mail is being delivered to...When qmail-local tries
delivering there, it relies on those permissions to be able to write to the
Maildir

Brett

Manager
InterPlanetary Solutions
http://ipsware.com/



> -----Original Message-----
> From: philipp@ns.oberberg-online.de
> [mailto:philipp@ns.oberberg-online.de]On Behalf Of Philipp Steinkrüger
> Sent: Monday, July 24, 2000 7:32 PM
> To: Brett Randall; qmail@list.cr.yp.to
> Subject: Re: MailDir
>
>
> Brett Randall wrote:
>
> > One other thing is that each of the home directories must have
> a .qmail file
> > which contains ./Maildir/ as well (exactly as I have typed it), and make
> > sure that it contains a Maildir naturally with the owner and
> group being the
> > same as who will be accessing it.
> >
>
> Allright, there was no .qmail in the vpopmail virtual domain directory. i
> created one
> and made vpopmail the owner, because the Maildir directory is owned my
> vpopmail, too.
> Unfortunately, i still have the same problem and error message in
> my logfile.
>
> When i asked for help in the IRC chat channel on efnet, someone
> told me that
> qmail tries
> to deliver to a mailbox, instead of Maildir
> (Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/)
>
> ^^^^^^^
> I think i started qmail correctly to use Maildir.
>
> What else could be wrong ??
>
> Thanx,
> Philipp
>
Re: MailDir [ In reply to ]
Brett Randall wrote:

> OK, try changing the ownership of the Maildir and the .qmail file to the
> actual person that the mail is being delivered to...When qmail-local tries
> delivering there, it relies on those permissions to be able to write to the
> Maildir
>

Hmm, i cannot do this, because the user the mail is deliverd to does not exist
in
/etc/passwd. the account is virtual like the domain.
qmail works fine for local accounts but not for the virtual domains, as i
described in my
first mail.

Still an idea what could be wrong ?

Philipp
RE: MailDir [ In reply to ]
OK...I didn't know virtual users actually existed. Somewhere along the line
qmail has to know where to deliver the mail to, and this is pulled
(eventually, no matter how many virtualhosts and aliases you have) from the
passwd file or NIS map. It will go to the home directory, open .qmail and
see where to store the e-mail. A virtual user? I might be wrong (not
unusual), but I don't believe that is possible. Could you e-mail the
contents of the virtualhosts file? (If you included it at first, sorry, I
have deleted that e-mail already...)

Thanks

Brett

Manager
InterPlanetary Solutions
http://ipsware.com/



> -----Original Message-----
> From: philipp@ns.oberberg-online.de
> [mailto:philipp@ns.oberberg-online.de]On Behalf Of Philipp Steinkrüger
> Sent: Monday, July 24, 2000 7:51 PM
> To: Brett Randall; qmail@list.cr.yp.to
> Subject: Re: MailDir
>
>
> Brett Randall wrote:
>
> > OK, try changing the ownership of the Maildir and the .qmail file to the
> > actual person that the mail is being delivered to...When
> qmail-local tries
> > delivering there, it relies on those permissions to be able to
> write to the
> > Maildir
> >
>
> Hmm, i cannot do this, because the user the mail is deliverd to
> does not exist
> in
> /etc/passwd. the account is virtual like the domain.
> qmail works fine for local accounts but not for the virtual domains, as i
> described in my
> first mail.
>
> Still an idea what could be wrong ?
>
> Philipp
>
>
Re: MailDir [ In reply to ]
> I found this in the qmail-FAQ, Question 5.3: how do i set up qmail-pop3d.
> So there is a problem with my startup script ?

Definitely. You will not be able to get mails by POP3 for virtual
domains.

> created and i can log on the virtual pop account using sqwebmail.
That would surprise me. Are you sure?

> I think that there is problem with qmail giving the mail to vpopmail. Is it
> possible that
> my mistake in the startup script is responsible? If, what would be the
> correct startup
> command ?

The startup command for qmail is the same with and without using vpopmail
(Maildir delivery assumed).
What has to be different is the start of qmail-popup/qmail-pop3d because
the checkpassword is replaced.

I think your problem is either in virtualdomains or users/assign or simply
a missing restart of qmail.
Please post that files for further assistance.
Still this would better go to the vpopmail list.

Regards, Frank
Re: MailDir [ In reply to ]
Brett Randall wrote:

> OK...I didn't know virtual users actually existed. Somewhere along the line
> qmail has to know where to deliver the mail to, and this is pulled
> (eventually, no matter how many virtualhosts and aliases you have) from the
> passwd file or NIS map. It will go to the home directory, open .qmail and
> see where to store the e-mail. A virtual user? I might be wrong (not
> unusual), but I don't believe that is possible. Could you e-mail the
> contents of the virtualhosts file? (If you included it at first, sorry, I
> have deleted that e-mail already...)

hmm, allright, perhaps my bad english made you misunderstood what i tried to
say.
the pop account is virtual, because it is no real account on the box. there is
no
entry in the passwd.
here is my /var/qmail/control/virtualdomains (i hope this is the file you mean)
file:

test.de:test.de
cyberraum.de:cyberraum.de

I read in the vpopmail docu about these .qmail files. there is a file
/home/vpopmail/cyberraum.de/
called .qmail-default and it looks like this:

| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox

Perhaps here is something wrong. I tried to create files like .qmail-philipp
but it didnt work out...

Do you need something else ?


Philipp
Re: MailDir [ In reply to ]
Philipp Steinkrüger wrote:

> > Here is definitely an error - if you use vpopmail you cannot use the
> > checkpassword provided by DJB.
>
> I found this in the qmail-FAQ, Question 5.3: how do i set up qmail-pop3d.
> So there is a problem with my startup script ?

Just a poor assumption -- qmail-pop3d isn't being used if you use virtual
domains, the vpopmail package comes with its own. Read the vpopmail INSTALL
files (and FAQ) for their example of how to set up POP3. All your other
startup configuration should be the same as a standard Qmail install.
re: maildir [ In reply to ]
>#pwd
>/var/qmail/boot/
>#grep Maildir *
>#

>There is no file in boot containing a Maildir delivery instruction.
There
>are ./Mailbox examples, and this is correct, but MailBOX and not
MailDIR
>format.


My mistake..sorry...no wonder I can't get the Maildir to work :-)

Rob..
Re: Maildir [ In reply to ]
On Mon, Oct 08, 2001 at 12:08:13AM -0700, jose wrote:
> I just installed the qmail 1.03 in freebsd 4.0
>
> but when I try to start the Maildir script located in the /var/qmail/rc
>
> can't start. It say
>
> # env: qmail-start: no such file or directory

At a guess, qmail-start is not in your $PATH. Either fix the path in the
script, or post the actual script and someone will tell you.

Out of curiousity, how the heck did you get a /var/qmail/rc that's
broken out-of-the-box? They all have 'exec env - PATH=....' in them when
you copy them from /var/qmail/boot....??


--
Greg White
Re: Maildir [ In reply to ]
Charles Cazabon is subscribed to the list, no need to send him an
extra copy of your message.

On Mon, Mar 04, 2002 at 01:24:17AM +0530, Chittaranjan Mandal wrote:
> I would like to have names of a few mailtools that work with Maildir.
> Has anyone used tkrat with Maildir?

Check the documentation for "tkrat." Good MUAs will document their
support for Maildir.
Re: Maildir [ In reply to ]
Alex Pennace <alex@pennace.org> wrote:
> Charles Cazabon is subscribed to the list, no need to send him an
> extra copy of your message.

Indeed.

> On Mon, Mar 04, 2002 at 01:24:17AM +0530, Chittaranjan Mandal wrote:
> > I would like to have names of a few mailtools that work with Maildir.

My setup:

MUA - mutt works with Maildir.
POP3 retriever - getmail works with Maildir (see link below).
If you want something more specific, please be more specific.

But one of the best things about Maildir is that (gasp!) normal Unix utilties
work with Maildir! Want to find that message to Joe you wrote last week?
`find Maildir/cur -type f -ctime -7 | xargs grep 'To: joe'`. No need for
special "mboxgrep" commands and such.

Charles
--
-----------------------------------------------------------------------
Charles Cazabon <qmail@discworld.dyndns.org>
GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/
-----------------------------------------------------------------------
Re: Maildir [ In reply to ]
On Friday 24 May 2002 12:40 am, you wrote:

> Thanks for your reply. I followed your instructions but still no
> messages. I checked my logs and there is no activity. That's bad.
> When I was using mbox types things were working fine. I'm thinking I
> should go back to using that. Where can I change the mailbox type
> back to mboxes?
>

Rob,

Before you give up on Maildir, you may want to check your /var/qmail/rc
file...

To change back to /var/spool/mail/user delivery,

/var/qmail/rc should look similar to below:

#!/bin/sh
# Using qmail-local to deliver messages to ~/Mailbox by default.
exec env - PATH="/var/qmail/bin:$PATH" \
qmail-start ./Mailbox

note: the above has the splogger removed, the default file can be copied
from /var/qmail/boot/home to /var/qmail/rc

If running linux, most newer distributions install procmail by default,
if procmail is installed, use a .qmail file in /home/user which
contains: | preline procmail

I am not sure if '| preline procmail' works in the
/var/qmail/control/defaultdelivery file.

George


> > I'm using the Maildir mailbox type, however I am not receiving any
> > mail in the ~/Maildir/new dir. I was receiving mail when I used the
> > mbox mailbox type. Is there an extra step? Here is what I have done
> > to setup Maildir
> >
> > echo ./Maildir/ >/var/qmail/control/defaultdelivery
> > maildirmake /home/user/Maildir
> >
> > Maildir is in my user dir and w/ cur, new, and tmp subdirectories.
> >
> > Thank you
> >
> > - rob
>
> Rob
>
> First, make sure that Maildir is owned by 'user',
> chown -R user /home/user/Maildir
>
> If you set up qmail using the online LWQ, I think this implements the
> /var/qmail/control/defaultdelivery, the defaultdelivery file is not a
> default qmail control file.
>
> You could also use a .qmail file in your /home/user directory,
> which would contain a single line: ./Maildir/
> Make sure it is owned by 'user' and chmod 644.
>
> Also, after making changes, you should re-start
> qmail-send, svc -du /service/qmail-send
>
>
> George

--
George Auch
Linux 2.4.19-pre8 i686

1 2  View All