[SOLVED] configuring dovecot+vpopmail

I've set up qmail+vpopmail+dovecot on my sytem, but there is something I miss, and I have yet to find a howto that explains it.

vpopmail uses /var/vpopmail/domains/domain.com/username as the user's maildir directory.

qmail delivers to ~/.maildir (and mutt reads from the same dir).

If I set up vpopmail to use ~/.maildir (by changing the user entry in the vpopmail table - is there a better way?) I get a message from dovecot that it can't switch to ~/.maildir with user 89 (vpopmail).

How can I configure dovecot to use the same user's uid as the one who owns the mailbox?

Thanks!

2 Replies

I don't know qmail or vpopmail, but it sounds like ~ is being interpreted as the vpopmail user's home directory, not the addressee's home directory. If possible, you want to set up the config to drop mail into the /home/username/.maildir/ directory, where username is the addressee. Another way if you only have a few users would be to create a link from /var/vpopmail/domains/domain.com/username - e.g., by using the command ln -s /home/username/.maildir /var/vpopmail/domains/domain.com/username. This assumes that vpopmail has rights to write to /home/username/.maildir.

Thanks. I was using the full path, not the '~' notation.

As you have guessed, this is a permission issue. I do not want all mail to be under a single user ownership, since it means a user might be able to read other user's mail. I was looking for a way to make vpopmail write into the user directory, with the user ownership and read rights. (and I tried to link it, permission denied).

I ended giving up vpopmail as a whole, and just using qmail + dovecot. Dovecot has great documentation, both on the config file, and in the wiki, so it was very simple to configure the way I wanted it, once I dropped vpopmail.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct