Dovecot doesnt create all folders for virtual users.
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Dovecot doesnt create all folders for virtual users.
I have setup Dovecot with MySQL and Postfix for virtual users and domains. It works, can send mails and receive, but the users only have Inbox folder, there is no Trash, Drafts, Sent and so on.
driver = mysql
#default_pass_scheme = plain
default_pass_scheme = PLAIN-MD5
#connect = host=/var/run/mysqld/mysqld.sock dbname=mail user=root password=default
# Alternatively you can connect to localhost as well:
connect = host=localhost dbname=mail user=mail password=XXXXX
password_query = SELECT password FROM mailbox WHERE username = '%u'
user_query = SELECT '/srv/mail/vmail/%d/%n' as home, 'maildir:/srv/mail/vmail/%d/%n' as mail, 10005 AS uid, 12 AS gid, concat('dirsize:storage=',quota) AS quota FROM mailbox WHERE username ='%u' AND active ='1'
user = mail
password = XXXX
hosts = localhost
dbname = mail
table = alias
select_field = goto
where_field = address
additional_conditions = and active = '1'
user = mail
password = XXXX
hosts = localhost
dbname = mail
table = domain
select_field = domain
where_field = domain
additional_conditions = and backupmx = '0' and active = '1'
user = mail
password = XXXX
hosts = localhost
dbname = mail
table = mailbox
select_field = quota
where_field = username
additional_conditions = and active = '1'
user = mail
password = XXXX
hosts = localhost
dbname = mail
table = mailbox
select_field = CONCAT(domain,'/',maildir)
where_field = username
additional_conditions = and active = '1'
Are you sying that these are not created as require - ie, if a user connects a mail client and deletes an email, is the trash folder created? Ditto for sending mail being copied to sent?
Hello, no if I am using for example roundcube for check mail, there is only Inbox. There is no Sent, or Trash or Drafts. If Im using SquirrelMail then the folders will be created, by SquirrelMail.
I have busted my head to figure it out whats the deal... I know that normaly Dovecot shouldnt create the folders, but who should? and how to set it... coz not everybody likes to use SquirrelMail so then if they use Roundcube, they wont have the stupid folder, only if they use first SquirrelMail
I even had the misfortune to use Outlook Express today, and that forced the creation of necessary folders.
I've never used roundcube - are you sure there's no way of getting it to create what's required? Are you sure it doesn't create them when they're needed? What happens if you delete a message in roundcube if the deleted folder doesn't exist?
Why don't you write a script to create them for new users?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.