titan21 Posted April 2, 2012 Share Posted April 2, 2012 Hi, I set up my mail server some time ago and set it up so that essentially I get all the mail. It's basically a user on the system. But now I am needing to set up virtual users and wondered if there is anyway to combine the two? My current dovecot.conf has the following: auth default { passdb passwd-file { args = /etc/dovecot/passwd } userdb static { args = uid=vmail gid=vmail home=/home/%u } } Is there a way to override this default behaviour at all for specific mail recipients? Quote Link to comment https://forums.phpfreaks.com/topic/260179-user-to-virtual/ Share on other sites More sharing options...
titan21 Posted April 2, 2012 Author Share Posted April 2, 2012 Okay - well I've been messing around a bit on this. I have set up the following dovecot config: mail_location = maildir:/var/mail/%d/%n/Maildir auth_verbose = yes auth default { mechanisms = plain userdb static { args = uid=vmail gid=vmail home=/var/mail/%d/%n mail=maildir:/var/mail/%d/%n/Maildir } passdb passwd-file { args = /etc/dovecot/passwd } } but when the mail tries to get delivered - its states: Apr 02 15:49:07 deliver(www-data): Info: msgid=<20120330151626.8764E262711@titan21.Belkin>: save failed to INBOX: Internal error occurred. Refer to server log for more information. [2012-04-02 15:49:07] Apr 02 15:49:07 deliver(www-data): Info: maildir: data=/var/mail//www-data/Maildir Apr 02 15:49:07 deliver(www-data): Info: maildir++: root=/var/mail//www-data/Maildir, index=, control=, inbox=/var/mail//www-data/Maildir Apr 02 15:49:07 deliver(www-data): Info: Namespace : Permission lookup failed from /var/mail//www-data/Maildir Apr 02 15:49:07 deliver(www-data): Info: Namespace : Using permissions from /var/mail//www-data/Maildir: mode=0700 gid=-1 Apr 02 15:49:07 deliver(www-data): Error: stat(/var/mail//www-data/Maildir/tmp) failed: Not a directory Apr 02 15:49:07 deliver(www-data): Info: msgid=<20120328213648.859AB2625B2@titan21.Belkin>: save failed to INBOX: Internal error occurred. Refer to server log for more information. [2012-04-02 15:49:07] now i think this has soemthing to do with either the way deliver is configure in master.cf which is dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${recipient}-d ${user}@${nexthop} -m ${extension} or perhaps i have to use a namespace?? Quote Link to comment https://forums.phpfreaks.com/topic/260179-user-to-virtual/#findComment-1333591 Share on other sites More sharing options...
titan21 Posted April 13, 2012 Author Share Posted April 13, 2012 Going to mark this as solved - god knows how I did it but I do have a better understanding of how all this fits together (he says - unconvinced...) Quote Link to comment https://forums.phpfreaks.com/topic/260179-user-to-virtual/#findComment-1337106 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.