Solved How to change system account in webmail to domain name instead of localhost?

Richard G

Verified User
Joined
Jul 6, 2008
Messages
13,909
Location
Maastricht
We have the system account and we can mail from the system account. For example your system account is foo and the domain is bar.com then you would be able to send mail from [email protected] via your e-mail client.

However, if you log in at webmail with your username foo and the password of your account, then you see you can only send form foo@localhost instead of [email protected] so it's missing the domain name. And we don't want to send from [email protected] ofcourse, because that is localhost.

How can this be fixed so it will use [email protected] instead of foo@localhost in webmail?
 
Last edited:
Thank you, I could indeed just edit it and change the domain name.
But I would expected it to use the main domain by default.
 
RoundCube does not know anything about a main domain of an user. You will probably need to write a plugin for it. The plugin which will connect to directadmin API and get a default domain for an user if it's connects as bob (for example) instead of [email protected].
 
RoundCube does not know anything about a main domain of an user.
Aha... I see what you mean. Seems logical indeed. Because normally for other accounts one logs in with the email address. So Roundcube picks it from there I guess.

If I'm not mistaken, we might also use the DA option to create a virtual alias for the system account, then we can login with the complete accountname like [email protected] and then Roundcube would also see the correct domain name because we log in with the full name. Is that a correct assumption?
 
Yes, that might work if you mean this
Yep, that's the one I ment.

However, that seems to work a bit buggy. When using that feature you have to run the task queue. So I did this for 1 user (myself) to test.
Then it works and you can login with the full mail address (so the system account with @domain.com behind it) and it works.

But there is no reversing or undoing possible.

I used this one:
Code:
echo "action=rewrite&value=email_passwd&user=fred" >> /usr/local/directadmin/data/task.queue
where ofcourse fred was changed to the correct username.

But if you change the setting to 0 again in directadmin.conf it does not disable this feature anymore, it keeps working either way (so with only system name or full system mail address) no matter the setting in directadmin.conf.
 
And if an admin does not have any domain on their own account, they will still have localhost in RoundCube. Which can be edited in identities of the webmail.

Thanks for checking.
 
Correct, that's a good thing. Only pity it's not reversible.

And also, once editted in identities, you can't set localhost there back again. That will not be accepted by Roundcube.
 
Back
Top