Jump to content

User to Virtual...


Recommended Posts

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?

Link to comment
Share on other sites

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??

Link to comment
Share on other sites

  • 2 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.