View previous topic :: View next topic |
Author |
Message |
cslyon n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Simpsons/simpsons_homer.gif)
Joined: 21 Apr 2004 Posts: 68 Location: California
|
Posted: Wed May 12, 2004 2:36 pm Post subject: procmail sendmail w/maildir setup mail command 'no mail for |
|
|
Maybe I am doing something that shouldn't work but I added the maildir to my use statment and them loaded sendmail, procmail and all the mailx apps. I have been sending messages from one user to another user on the same system and all seems fine. I see that mail going for local delivery in the logs and I see the mail in the $HOME/.maildir directory.
Now here is the problem. I know there is mail for this user but when I use the mail command, mail thinks there is no mail. So, I think it is looking for the mbox style of mail. Right? How do I change that or am I completly off base with what I am trying to do? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
adaptr Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/17218567054377b9b6104ea.jpg)
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Wed May 12, 2004 2:42 pm Post subject: |
|
|
Just setting maildir in your USE flags is not enough; every MTA that supports mboxes comes with mboxes configured by default.
You will have to change sendmail / procmail's delivery format to maildir in the config. _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cslyon n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Simpsons/simpsons_homer.gif)
Joined: 21 Apr 2004 Posts: 68 Location: California
|
Posted: Wed May 12, 2004 2:57 pm Post subject: |
|
|
So the config that you are talked about is in the sendmail.mc/cf files. We need to tell sendmail/procmail how to store the message?
This is the lines from my sendmail.mc file:
Code: | FEATURE(local_procmail,`',`procmail -t -a $h -d $u')dnl
LOCAL_DOMAIN(`localhost')dnl
MAILER(local)dnl
MAILER(smtp)dnl
MAILER(procmail)dnl |
Shouldn't that procmail -t -a.... command to the trick?
Besides I think I am seeing the messages formatting correctly in the ~/.maildir/new directory. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
DaveArb Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 29 Apr 2004 Posts: 510 Location: Texas, USA
|
Posted: Wed May 12, 2004 3:03 pm Post subject: |
|
|
If incoming mail is being delivered to your .maildir directories, the problem is with neither sendmail nor procmail, it is your MUA or POP3/IMAP daemon.
You indicated that "mail" couldn't find the delivered mail. Does it support maildirs or just mboxen?
Dave |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cslyon n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Simpsons/simpsons_homer.gif)
Joined: 21 Apr 2004 Posts: 68 Location: California
|
Posted: Wed May 12, 2004 3:07 pm Post subject: |
|
|
I am not even using pop3 or imap yet as I havn't gotten that far.
The "mail" is the mail command so better stated "/bin/mail".
I am not sure if it support maildirs, I guess that is what I am asking. I know it supports mboxen.
So the real questions is, how do I get it working with maildirs or can it work only with mboxen? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
DaveArb Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 29 Apr 2004 Posts: 510 Location: Texas, USA
|
Posted: Wed May 12, 2004 3:20 pm Post subject: |
|
|
Just taking a quick scan through the mail(1) manpage, I really don't think it supports maildir. It looks kind of hard-coded for mbox, at least as far as documentation.
Dave |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cslyon n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Simpsons/simpsons_homer.gif)
Joined: 21 Apr 2004 Posts: 68 Location: California
|
Posted: Wed May 12, 2004 3:26 pm Post subject: |
|
|
That goes in-line with what I am seeing. So, there is a text based client that I can use to test?
Also, what is a good light weight IMAP daemon to use fora maildir setup?
courier?
cyrus?
If I use cyrus then I can do a local delivery right to cyrus right? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
DaveArb Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 29 Apr 2004 Posts: 510 Location: Texas, USA
|
Posted: Wed May 12, 2004 3:57 pm Post subject: |
|
|
cslyon wrote: | So, there is a text based client that I can use to test? |
I'm not aware of one. My mail server has no local users, so I've never looked for one either. I think so far as testing is concerned, you can see the mail being delivered to the maildir, IMAP access would be the next step for me. Once it is up and running, you could use Pine or Mutt for local mail access via IMAP.
cslyon wrote: | Also, what is a good light weight IMAP daemon to use fora maildir setup? |
(Dave turns red-faced)We use mbox here...
I took a try at Courier-IMAP some time ago, and it thumped me. That was a roll-your-own installation, perhaps the Gentoo ebuild is more nicely packaged.
Dave |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cslyon n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Simpsons/simpsons_homer.gif)
Joined: 21 Apr 2004 Posts: 68 Location: California
|
Posted: Wed May 12, 2004 6:10 pm Post subject: |
|
|
I like the idea of being able to delete old messages based on file time stamp with the maildir setup. Maybe there is a better way to do that in a mbox setup.
Well, I got courier imapd working without a problem.
So pine or mutt is text based? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
DaveArb Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 29 Apr 2004 Posts: 510 Location: Texas, USA
|
Posted: Wed May 12, 2004 6:42 pm Post subject: |
|
|
Mboxes are flat files. More of a "POP off the server, let the MUA handle it" approach is required. That's one of the big complaints people have about mbox, along with concurrent file access issues.
Both pine and mutt are text based, yes.
Dave |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cslyon n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Simpsons/simpsons_homer.gif)
Joined: 21 Apr 2004 Posts: 68 Location: California
|
Posted: Wed May 12, 2004 6:45 pm Post subject: |
|
|
Thanks for the help and information
BTW, I did an emerge of courier-imap and followed the directions in this link:
https://forums.gentoo.org/viewtopic.php?t=56633
Courier wasn't a problem to set at all. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
DaveArb Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 29 Apr 2004 Posts: 510 Location: Texas, USA
|
Posted: Wed May 12, 2004 6:48 pm Post subject: |
|
|
Thanks. I may give Courier-IMAP another spin one day soon, I have an experimental backup MTA ticking along to test things on.
Glad to hear you're on the way.
Dave |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|