I’ve been using postfix
for a while, and feel comfortable with many of its ins and outs. I just ran into a virtualmin
challenge that has me thinking the design of virtualmin
may be making some (possibly invalid) configuration assumptions overlaid on top of how postfix actually functions.
PROPER USE
The postfix virtual
file supports at least three generic types of virtual alias definition:
-
Virtual Domain
dom.ain <anything>
This is required for any virtual domain.<anything>
is literally any text. I use it to describe the domain (usually preceded by DOMAIN: to highlight the line ) -
Normal virtual email alias
user@dom.ain target-address
Target-address can be any combination of local (user
) or fulll (user@dom.ain) addresses -
Wildcard virtual email alias
@dom.ain target-address
Same as #2, but receives all other user emails for the domain. (Be careful in use, as this can gather a lot of spam quickly!)
I have a virtual file that provides definitions for a dozen or so virtual domains, and a hundred or more virtual aliases.
WHAT I SEE IN VIRTUALMIN
Under Edit Users → (user xyz) → Email Settings → Additional Email Addresses, I see:
- One virtual alias (user@dom.ain) that does point to user xyz
- Two wildcard aliases (@dom.ain) that also point to user xyz
Here’s a few issues:
- I can’t save ANY edits. Virtualmin complains “The additional email domain ‘dom.ain’ is not managed by Virtualmin” due to the wildcard aliases – yet those domains are properly defined in the virtual file.
- A number of virtual aliases have multiple targets: abc, xyz – and xyz doesn’t list those
… no surprise to me I think
So, some questions and ideas:
- How do I get virtualmin to recognize these virtual domains?
- Could it be that the way virtualmin stores a virtual domain in the virtual file is a requirement? (it duplicates the domain name in the right-hand
<anything>
field) - Is it a problem to have multiple right-hand-side targets for a virtual alias?
Thanks!
SYSTEM INFORMATION | |
---|---|
Operating system Debian Linux 10 | |
Webmin version 1.981 | |
Usermin version 1.823 | |
Virtualmin version 6.17-3 | |
Authentic theme version 19.83-2 |