I have a significant number of aliased websites setup and I’ve been fighting email alias for quite some time now. I have created a user for each website for email only, I want the email that is sent to these accounts to drop the mail into a local accounts on the server and also to forward it to a central account. So my command line setup is like this:
This creates the aliased site - example.com. Then I run:
virtualmin create-user --domain example.com --user dan --pass password
I then run this command
This creates functionality that I want - i.e. I have two aliases - one to dump the email to the local box, one to forward it to firstname.lastname@example.org -
Here’s the problem:
This alias doesn’t show up in virtualmin when I click on “edit mail aliases” - if I click on edit manually I get this warning: “1 aliases were not displayed below, as their destinations are too complex to edit manually,” so it’s in the system but not accessible via virtualmin.
When I click on “webmin/servers/postfix mail server/mail aliases” I can see the two aliases. Since they are not showing up in the virtualmin window, it does not look like I can access this alias via the command line interface. Is this a bug? or is this how it is designed? I need to be able to manage these aliases via command line (actually through PHP but using the command line interface). when I make a list-alias call - I get an empty set (I have deleted the catch all forwarder).
Is there a better way to set up the system to deliver mail locally? or I’m I stuck with this?