Submitted by dkuhlman on Wed, 03/30/2011 - 23:37
Roundcube is adding .domain-prefix (.agacademy for example) to email addresses when sending outbound email from Roundcube. For instance I just created a test account for dkuhlman@agacademy.com and when I sent an outbound email from Roundcube it sent from dkuhlman.agacademy@agacademy.com. This is happening for all of our domains (as far as I can tell).
How can we fix the server so that new accounts are created with the correct email address? Thanks.
Status:
Active
Comments
Submitted by JamieCameron on Thu, 03/31/2011 - 00:30 Comment #1
Virtualmin should actually configure a new install of Roundcube to set email addresses correctly ..
You can check if this is setup by looking at the file config/main.inc.php under the Roundcube install directory. There should be a line like :
$rcmail_config['virtuser_file'] = '/etc/postfix/virtual';
And in the /etc/postfix/virtual file you should see entries like :
dkuhlman@agacademy.com dkuhlman.agacademy
Is this the case on your system?
Submitted by sgrayban on Thu, 03/31/2011 - 05:29 Comment #2
Jamie that isn't the problem.... I have been working on this for the client and have been trying to explain it but he simply does not want to hear it.
The problem is that when Roundcube logs in a new person under the domain it automatically parses the login name, creates the directory and uses the login name for the identity name.... there is nothing you can do to stop this.
So if your login name is dkuhlman.agacademy that is exactly what RC is going to use to setup the initial identity.
I have gone through every RC doc there is and many people have complained but it not a critical issue by no means.
Submitted by sgrayban on Thu, 03/31/2011 - 05:38 Comment #3
And this client understand how to fix it..... and this is the reply I got back from him. He doesn't want anything manual or have his clients do anything... claiming they are not tech savvy which this isn't even close to techy. You have to setup identities in any mail client in the first place.... TB even uses defaults which you have to change when it creates a new email account.... this isn't rocket science and I hate being accused of being lazy. If he wants to kiss his clients ass thats his problem not mine. I can't fix what isnt broken.
dkuhlman do not accuse me of being lazy like your clients I have bent over backwards for these blokes last year when there email was completely screwed up. For a group of "Academy for Sciences and Agriculture" people they can't be this lazy.
Submitted by JamieCameron on Thu, 03/31/2011 - 11:00 Comment #4
So is the issue the identity roundcube uses, or the default email address? In my tests with a fresh roundcube install using Virtualmin, if you login as user.domain the from address is correctly set to user@domain.com
Submitted by sgrayban on Thu, 03/31/2011 - 11:05 Comment #5
The default identity it creates.
In every install from the scripts the default Name and address has always contained the persons login name... its never removed the domain from the username.domain.
I don't know how you are setting it up by I know the default install does this.
Submitted by clwheatley on Thu, 03/31/2011 - 13:44 Comment #6
Strange, what sgrayban describes is exactly the problem I have had with SquirrelMail. Originally, I was able to change the code that creates the default identity but subsequent updates would only break it. I had to install a plugin to force users to enter their identity details upon their first login. With RoundCube I have not had this trouble but the similarity makes we wonder if VM might not really be configuring either as correctly - maybe due to differences in OSs? Just a thought. I know I spent far too long on it with SquirrelMail and still have a handful of users with their email address shown as user.domain@domain.tld because they haven't figured out how to change it.
Submitted by sgrayban on Thu, 03/31/2011 - 16:43 Comment #7
I installed a brand new RC on one of my domains and it does the same thing -- its always user.domain@domain
I have no idea how to fix this short of running a sql replace string every time a new user is added.
Submitted by JamieCameron on Thu, 03/31/2011 - 18:07 Comment #8
For anyone who is seeing this with Roundcube - is the file /etc/postfix/virtual (or /etc/mail/virtusertable on Sendmail) world-readable?
Submitted by sgrayban on Thu, 03/31/2011 - 21:50 Comment #9
The ones I'm working with has
-rwxr-xr-x 1 root root 46037 2011-03-30 19:07 /etc/postfix/virtual
I can also tell you that not one RC install had this line
$rcmail_config['virtuser_file'] = '/etc/postfix/virtual';
that you mentioned.Submitted by JamieCameron on Thu, 03/31/2011 - 22:49 Comment #10
You should add that line if it is missing then. It may be missing if you upgraded from an old version of Roundcube..
Submitted by sgrayban on Fri, 04/01/2011 - 02:40 Comment #11
Still the same problem -- see attached
Submitted by JamieCameron on Fri, 04/01/2011 - 15:08 Comment #12
Does it also show that incorrect address when you compose email?
Also, if you do a fresh install into a separate directory, do you still see the same bug?
Submitted by sgrayban on Fri, 04/01/2011 - 16:23 Comment #13
Yes on both
Submitted by JamieCameron on Fri, 04/01/2011 - 18:52 Comment #14
I think I'd need to login to a system that is seeing this issue to debug it further ..
Submitted by sgrayban on Sat, 04/02/2011 - 00:23 Comment #15
Ok I activated the support login for the server -- mx0.tech-shield.net -- you should be getting a email for the remote login soon.
Submitted by JamieCameron on Sat, 04/02/2011 - 12:17 Comment #16
Thanks - logging in to take a look now.
Submitted by JamieCameron on Sat, 04/02/2011 - 12:22 Comment #17
Ok, I see the cause - in roundcube's
config/main.inc.php
file theplugins
line was not correctly set to :$rcmail_config['plugins'] = array('virtuser_file');
Fixing this solved the issue - but only for users who haven't logged in yet. Otherwise roundcube caches the old incorrect identity in its database.
I'm not sure how this could be missing, as Virtualmin sets that option for new roundcube installs..
Submitted by sgrayban on Sat, 04/02/2011 - 13:54 Comment #18
So I'm suppose to go through at least a couple hundred RC installs between 24 servers and add those two lines just to fix this ?