Hi ABerglund, thanks for your reply.
I had to use an absolute path in mine, and actually declared the file path in main.inc.php, not in the plugin code.
Sorry for any confusion. I declared this in my main.inc.php as well, not the plugin.
I'm assuming that your IMAP server requires full addresses on login? (Mine does not.) If so, have you looked at the 'username_domain' params in main.inc.php? If the username they use to login is the same as the user part of the address, this should work.
Yes, the mail server I use does require full
username@domain.tld. I have tried both with and without username_domain set. My thought was that by having this set, it would append the domain twice based on what was entered in the file (so that
user@domain.tld from the virtuser file would be sent as
user@domain.tld@domain.tld but this doesn't seem to be the case at all).
But I'm not certain that the plugin will do what you want it to do. I think all it does is to assist in matching a user account to an email address for creating the identity. At least, that's what I am using it for.
I hope I understand what the plugin is supposed to do. My understanding is that I can define an alias to an actual e-mail address in the file, and then at the webmail interface use the alias in the username box and the actual IMAP account password in the password box, and the plugin will send the actual username/email address in place of the alias. Whereas right now even though I have specified the alias and e-mail addresses in the virtuser file, it seems to just be ignoring this and sending along the alias that was typed in at the login form (and of course being rejected).
The reason I need to use aliases is that the e-mail addresses that will be used aren't very consistent and most of the users I have don't even know (or won't be able to remember) the full address, even without the domain. We primarily will be using this for internal communication based on address book entries (my plan is to use global address book plugin eventually). To be consistent with our other logon systems, I had planned on using the user's lastname as the alias. So basically, my virtuser file looks like this:
john.smith.depta@example.com smith
jack.g.brown@example.com brown
gsusanfox@example.com fox
From what I can tell in the error logs, if I log in with "brown" as the username and the IMAP password for
jack.g.brown@example.com, instead of roundcube trying to authenticate to IMAP as
jack.g.brown@example.com it is just sending "brown" (or "brown@example.com" depending on if I have the username_domain param set) as the username to IMAP and obviously failing a the user doesn't exist.
I know the solution would just be to re-do the email system with more consistent usernames, but unfortunately I do not have the option to make changes to the e-mail system at this time.
Thanks again!