Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Postfix delivers mail to Maildir\ instead of mailbox
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ecataranciuc
n00b
n00b


Joined: 07 Jun 2011
Posts: 5

PostPosted: Mon Jun 13, 2011 8:25 am    Post subject: Postfix delivers mail to Maildir\ instead of mailbox Reply with quote

Hello!
I have a problem with postfix delivering mail to /var/spool/mail instead of users home directory. I have left the default settings for home_mailbox and mail_spool_directory (it is uncommented). In the comments for the home_mailbox field in said that by default postfix will deliver mail to /var/spool/mail/user or /var/mail/user, but mail is delivered to /home/user/.maildir .
If I specify mail_spool_directory = /var/spool/mail mail still gets delivered to users home directory.

By the way, as far as I understand maildir is a format in which mail is kept (and mbox too). But mailbox is "RFC 5321, defines an email address as a character string that identifies a user to whom mail will be sent or a location into which mail will be deposited. The term mailbox refers to that depository. In that sense, the terms mailbox and address can be used interchangeably." So my questions are: Why is there the mailbox option for home_mailbox parameter since the right one would be mbox? And wouldn't it be better to name this option as mailbox_format instead of home_mailbox? I understand that these questions are better suit to address to the developers of postfix but I give it a try here. Maybe I don't understand something.

Thank you!
Back to top
View user's profile Send private message
Herring42
Guru
Guru


Joined: 10 Mar 2004
Posts: 373
Location: Buckinghamshire

PostPosted: Mon Jun 13, 2011 11:41 am    Post subject: Reply with quote

Postfix usually uses a local delivery agent, such as maildrop or procmail. Check to see if you have one of these installed, and where it is configured to put your mail.
_________________
"The problem with quotes on the internet is that it is difficult
to determine whether or not they are genuine." -- Abraham Lincoln
Back to top
View user's profile Send private message
ecataranciuc
n00b
n00b


Joined: 07 Jun 2011
Posts: 5

PostPosted: Mon Jun 13, 2011 12:45 pm    Post subject: Reply with quote

Well, I have none of them. :-) But I don't really get it. If postfix needs one of these tools to store mail in a user defined folder then why does it have home_mailbox and mail_spool_directory?
Thanks!
Back to top
View user's profile Send private message
ecataranciuc
n00b
n00b


Joined: 07 Jun 2011
Posts: 5

PostPosted: Mon Jun 13, 2011 12:56 pm    Post subject: Reply with quote

By the way, in postfix documentation is written that by default mail is delivered to /var/mail/user or /var/spool/mail/user. And my case is totally different.
Back to top
View user's profile Send private message
Herring42
Guru
Guru


Joined: 10 Mar 2004
Posts: 373
Location: Buckinghamshire

PostPosted: Mon Jun 13, 2011 4:41 pm    Post subject: Reply with quote

Fair enough! :)
_________________
"The problem with quotes on the internet is that it is difficult
to determine whether or not they are genuine." -- Abraham Lincoln
Back to top
View user's profile Send private message
ecataranciuc
n00b
n00b


Joined: 07 Jun 2011
Posts: 5

PostPosted: Mon Jun 13, 2011 8:58 pm    Post subject: Reply with quote

Thank you. I have dovecot installed and I didn't know it does have a LDA.
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Mon Jun 13, 2011 10:29 pm    Post subject: Reply with quote

"mbox" is not the same as "mailbox"

mbox is a storage format, where all messages are kept in one single enormous file, concatenating new messages onto the large file as they arrive
as opposed to "maildir", where each email that arrives exists as a separate file on the system

the "home_mailbox" setting has nothing to do with the mbox format.
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
punki
n00b
n00b


Joined: 13 Jun 2011
Posts: 4

PostPosted: Mon Jun 13, 2011 11:21 pm    Post subject: Reply with quote

I just installed postfix. In combination with dyndns, it's freak'n awesome.

If you do want an mbox formatted mailbox, make sure you compile it with the mbox USE flag.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum