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
https://forums.phpfreaks.com/topic/260179-user-to-virtual/
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=<[email protected]>: 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=<[email protected]>: 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
https://forums.phpfreaks.com/topic/260179-user-to-virtual/#findComment-1333591
Share on other sites

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.