sendmail delivery to local maildir?

2009-06-07 Thread Christoph Höger
Hi all,

I would like to have sendmail sending all local mail to a maildir folder
in my home (thats were all my IMAP mails go), so I can read _all_ my
mail _everywhere_. Is it possible to convince sendmail to put my mail

a) in maildir format instead of INBOX?

b) in ~/Maildir/SOMEFOLDER instead of /var/spool/mail/choeger ? Maybe
simply by linking?


And if so, how to do that?


thanks

christoph


signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Re: sendmail delivery to local maildir?

2009-06-07 Thread Mail Lists
On 06/07/2009 11:54 AM, Christoph Höger wrote:
> Hi all,
> 
> I would like to have sendmail sending all local mail to a maildir folder
> in my home (thats were all my IMAP mails go), so I can read _all_ my
> mail _everywhere_. Is it possible to convince sendmail to put my mail
> 
> a) in maildir format instead of INBOX?

INBOX is a place for mail not a format - you probably meant mbox
format (INBOX can be in maildir format too ...) mbox is essentially
deprecated and only legacy stuff (like thunderbird) holds onto mbox.

 I am assuming you're asking how to make yoru INBOX folder be
maildir++ format as well.

> 
> b) in ~/Maildir/SOMEFOLDER instead of /var/spool/mail/choeger ? Maybe
> simply by linking?


  Simply add a folder for each user you want in maildir format and it
should just work. You may need to move aside your existing
/var/spool/mail/choeger folder - use your mail client to move the
contents to the imap server - you can put them back in your INBOX later
after its in maildir format.


  ie shutdown sendmail - then add the maildir folders:

 mkdir -p /var/spool/mail/choeger/cur
 mkdir -p /var/spool/mail/choeger/new
 mkdir -p /var/spool/mail/choeger/tmp

  chown -R choeger.choeger /var/spool/mail/choeger

now procmail will recognize this (its the deliv agent for sendmail)
as maildir and automatically store it in maildir format ... dovecot (if
you're using dovecot for your imap server) will need to have in
dovecot.conf this line:

mail_location = maildir:/var/spool/mail/%u

Restart sendmail and dovecot and you should be done.

 Good luck.
 gene/


-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: sendmail delivery to local maildir?

2009-06-07 Thread Mail Lists
On 06/07/2009 12:50 PM, Mail Lists wrote:
> On 06/07/2009 11:54 AM, Christoph Höger wrote:

>  mkdir -p /var/spool/mail/choeger/cur
>  mkdir -p /var/spool/mail/choeger/new
>  mkdir -p /var/spool/mail/choeger/tmp
> 
>   chown -R choeger.choeger /var/spool/mail/choeger
> 
>

   You also should do a chmod -R o-rwx  /var/spool/mail/choeger


-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: sendmail delivery to local maildir?

2009-06-08 Thread Christoph Höger
Hi,

thanks for the advice. It nearly worked. After
making /var/spool/mail/choeger a dir (and setting group to mail, at
least my old mbox was set to that group), procmail seems to store the
messages in maildir format. But it does so by putting them directly
under /var/spool/mail/choeger so I can only read them after moving them
to cur manually. 

Is that my fault?


signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Re: sendmail delivery to local maildir?

2009-06-08 Thread Mail Lists
On 06/08/2009 07:12 AM, Christoph Höger wrote:
> Hi,
> 
> thanks for the advice. It nearly worked. After
> making /var/spool/mail/choeger a dir (and setting group to mail, at


  Oh yes sorry - you need to add these 2 lines to each users
~/.procmailrc (could be systemwide I suppose). Please note the trailing
/ after MAILDIR is vital - it tells procmail it is a directory.

MAILDIR=/var/spool/mail/$LOGNAME
DEFAULT=$MAILDIR/


-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: sendmail delivery to local maildir?

2009-06-09 Thread Christoph Höger
Am Montag, den 08.06.2009, 20:30 -0400 schrieb Mail Lists:
> 
> MAILDIR=/var/spool/mail/$LOGNAME
> DEFAULT=$MAILDIR/

Yep, that made my day. Especially because that means I can drop mail
directly under my home and do not have to link or do any other
workaround.

Thanks a lot 


signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines