Using CentOS 5.4 and Postfix 2.6.5
After spending a great deal of time on this issue, I have come to the conclusion that I have found two related bugs and it is not something that I'm doing wrong.
I have 30+ alias servers setup that I need to have email addresses and forwarders for users on the alias servers.
If I create a user in the parent domain, then create email aliases for that user, everything works as advertised; however, if I create a user in the alias domain, then create email aliases for that user, they do not show up in virtualmin.
Example 1 - working
create user dan in parent.com - two users are created - dan@parent.com and dan-parent.com
create email alias with option for local delivery - one goes to dump@somewhere.com and one goes to dan-parent.com
everyting works with this setup and the manual entry for the alias is shown as this - "dan::dump@somewhere.com:local dan-parent.com". Everything is working like it should
Example 2 - broken
create user dan in example.com (alias to parent.com) - two users are created - dan@example.com and dan-example.com
create email alias with option for local delivery - one goes to dump@somewhere.com and one goes to dan-example.com
The mail aspect of this set up works fine (i.e. the virtual servers and mail aliases are listed properly in postfix, and the mail is delivered properly) However, I do not see the entries in Virtualmin->Edit Mail Aliases (the table is blank and there is nothing in the manual entry field either).
The problem comes in that I need to have the ability to manipulate these settings via the remote api, but if virtualmin doesn't see the entries, then I cannot manipulate them.
I have a post in the virtualmin forum that explains how I set the users and aliases up. (complex aliases is the title from this morning)
The second bug that I have an issue with is that I cannot use the user name with the @ symbol to access the email in Thunderbird. I have to use the - symbol. When I create a user in the non alias domain then the @ symbol works fine but it does not work with an alias server user. I think these items are related but I'm not 100% sure.
Thanks
Dan
Comments
Submitted by JamieCameron on Thu, 05/13/2010 - 02:46 Comment #1
Have you tried using the API to manage the aliases on the user instead of managing aliases directly?
You can use the
list-users
API command to get all addresses and forwarding destinations for a user, and themodify-user
command with theadd-email
andremove-email
parameters to add and remove additional addresses for the user.Does that help?
Submitted by zombiitv on Thu, 05/13/2010 - 11:30 Comment #2
That will work, I would recommend that you update the "modify-user" documentation to include the latest changes that you have made to this function. In the docs, there is no mention of "add-forward address" or "del-forward address"
What about using @ in the user name to log in with Thunderbird? Any idea why it works with the parent level user and not the alias user?
Dan
Submitted by JamieCameron on Thu, 05/13/2010 - 12:00 Comment #3
Thanks, those options got added recently so the docs may need re-generation.
The best way to see what args a command really supports is to SSH into your virtualmin system as root and run something like :
virtualmin modify-user --help
Regarding that @ issue, what error do you get from thunderbird exactly?
Submitted by zombiitv on Thu, 05/13/2010 - 20:14 Comment #4
Everything is working as I want it to now... I changed the status to closed - thank you for your help
Dan
Submitted by JamieCameron on Fri, 05/14/2010 - 00:05 Comment #5
Great, thanks!