Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Jun 17, 2011 2:21 pm 
Offline
Junior Member

Joined: Thu Jun 16, 2011 12:49 am
Posts: 27
Hello everybody. Would somebody mind explaining how I can set up folders with a Dovecot/MySQL/Postfix setup on Ubuntu 11.04? I have my server running already, but I cannot for the life of me, get folders to work. I am trying to setup folders like Spam and Trash.

I have tried setting it up in the Dovecot configuration file (dovecot.conf). But, it still doesn't seem to operate as expected (or at all).

My current dovecot.conf:
Quote:
protocols = imap imaps pop3 pop3s
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_location = maildir:/home/vmail/%d/%n/Maildir

ssl_cert_file = /etc/ssl/certs/dovecot.pem
ssl_key_file = /etc/ssl/private/dovecot.pem

namespace private {
separator = .
prefix = INBOX.
inbox = yes
}

namespace private {
separator = .
prefix = INBOX.Trash.
inbox = no
}

protocol lda {
log_path = /home/vmail/dovecot-deliver.log
auth_socket_path = /var/run/dovecot/auth-master
postmaster_address = postmaster@<omitted>.com
mail_plugins = sieve
global_script_path = /home/vmail/globalsieverc
}

protocol pop3 {
pop3_uidl_format = %08Xu%08Xv
}

auth default {
user = root

passdb sql {
args = /etc/dovecot/dovecot-sql.conf
}

userdb static {
args = uid=5000 gid=5000 home=/home/vmail/%d/%n allow_all_users=yes
}

socket listen {
master {
path = /var/run/dovecot/auth-master
mode = 0600
user = vmail
}

client {
path = /var/spool/postfix/private/auth
mode = 0660
user = postfix
group = postfix
}
}
}


Thank you for your help!


Top
   
PostPosted: Mon Jun 20, 2011 5:13 pm 
Offline

Joined: Mon Jun 20, 2011 5:07 pm
Posts: 1
Hi

I'm with the same problem. I did follow this tutorial [1] and I can telnet to dovecot and postfix, but there isn't anything under /home/vmail - user's home where the mailboxes is supposed to be.

If somebody could give me any hints ou clues, I'll appreciate.

Thanks in advance.

1 - http://library.linode.com/email/postfix ... 0.04-lucid


Top
   
 Post subject:
PostPosted: Mon Jun 20, 2011 7:42 pm 
Offline
Senior Member

Joined: Mon Aug 31, 2009 2:33 pm
Posts: 78
Location: The OC
IIRC, folders under /home/vmail are not created until mail has been received.


Top
   
 Post subject:
PostPosted: Tue Jun 21, 2011 5:38 pm 
Offline
Junior Member

Joined: Thu Jun 16, 2011 12:49 am
Posts: 27
If you are still looking for a solution, you need to create the account and login for the first time. Then after, in order to create folders like Trash, Spam, and so-forth you need to run the following command:


Code:
sudo maildirmake.dovecot /etc/skel/Maildir
sudo maildirmake.dovecot /etc/skel/Maildir/.Drafts
sudo maildirmake.dovecot /etc/skel/Maildir/.Sent
sudo maildirmake.dovecot /etc/skel/Maildir/.Trash
sudo maildirmake.dovecot /etc/skel/Maildir/.Templates

Make sure you replace the directories as necessary.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


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

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group