Christian Haugan Toldnes wrote:
> (Jun 15 2005 00:48) Christopher Thorjussen wrote:
>>Hi,
>>
>>For my root user on one of my tsl boxes I has a mbox file (5,8MB), a
>>Maildir/ folder (2K) and a Mail/ folder (empty). Why this caos? I have
>>never changed anything in postfix or other system settings in regards
>>to mail on this system.
> 
> Maildir is the official mailbox for all users.
> mbox is the place mail gets moved after reading with mutt.
> Mail is not known to me at last.

When I start mutt on another tsl system (2.2) I am asked if mutt should 
create a Mail/ folder. I said no..

> 
>>It is running tsl-2.2, but it was installed with tsl-2.1 and then some
>>time ago upgraded to tsl-2.2 with swup.
>>
>>If I run 'mail' I get:
>>[EMAIL PROTECTED] ~# mail
>>/root/Maildir/: Is a directory
> 
> The mail command does not cope with the fact that the mailbox (Maildir)
> is uses the maildir structure, and not the old mailbox format. It does,
> however, know where to look for mail.

Ok. I probably want to use mutt anyway to read root local mails.

> 
>>'mutt' opens a empty mutt screen, but shows this at the bottom:
>>---Mutt: ~/Maildir/ [Msgs:0]
> 
> 
> Mutt checks the Maildir, and finds no messages. Have you tried to send a
> test mail to root?

Yes I've tried. Maildir never gets populated with mail. mutt is empty.

> 
> Also, you might have enabled forwarding of root mail to another account.
> Take a look in /etc/postfix/aliases to check that out.

 From /etc/postfix/aliases:

# Person who should get root's mail. Don't receive mail as root!
#root:          you

Would this stop root from recieving mail?

> 
> 
>>It looks like the local (mail/mutt) mailclients knows it should use
>>/Maildir/, but it looks like the system delivers to mbox. Postfix is
>>only running on local host (standard config from install). All mails
>>in mbox is system messages from crontab etc..
> 
> 
> I'm pretty sure the system still delivers to Maildir, it should.
> 
> 
>>What should I check/do to get the mails delivered to /Maildir/ ?
>>And what is the /Mail/ folder doing there?
> 
> 
> echo "this is a test" | mail -s "This is a test" root

I did this on another tsl-2.2 I have access to right now, and root did 
not get mail.

from /var/log/mail/info I see:

Jun 15 18:50:37 naboo postfix/pickup[21598]: 733787C11: uid=0 from=<root>
Jun 15 18:50:37 naboo postfix/cleanup[22773]: 733787C11: 
message-id=<[EMAIL PROTECTED]>
Jun 15 18:50:37 naboo postfix/qmgr[561]: 733787C11: 
from=<[EMAIL PROTECTED]>, size=322, nrcpt=1 (queue active)
Jun 15 18:50:37 naboo postfix/cleanup[22773]: 80E747C10: 
message-id=<[EMAIL PROTECTED]>
Jun 15 18:50:37 naboo postfix/local[22774]: 733787C11: 
to=<[EMAIL PROTECTED]>, orig_to=<root>, relay=local, delay=0, 
status=sent (forwarded as 80E747C10)
Jun 15 18:50:37 naboo postfix/qmgr[561]: 80E747C10: 
from=<[EMAIL PROTECTED]>, size=455, nrcpt=1 (queue active)
Jun 15 18:50:37 naboo postfix/qmgr[561]: 733787C11: removed

To me it looks like it is delivered... mutt is empty.


Testing on a fresh installed TSL-2.2 system. When I start mutt here, I 
am asked if I want to create Mail/. When I read the mails (from swup to 
root) and quit mutt, I'm asked if i want to move read emails to mbox. So 
all three folders/files are connected on tsl-2.2 somehow. If I answer NO 
to both questions, my old mail remains in Maildir/ (viewable in mutt 
next time I open mutt). But why would mutt move them to mbox? What do I 
need to do to read the old mails later?

> kind regards
> c


/Christopher
_______________________________________________
tsl-discuss mailing list
[email protected]
http://lists.trustix.org/mailman/listinfo/tsl-discuss

Reply via email to