Postfix drama

Ok, I was having the message error : User unknown in virtual alias table but all the mapping was correct until i added this:

$myhostname, localhost.$mydomain, localhost, 1.actual.tld, 2.actual.tld, etc.

Is there a way to dynamically fix this instead of getting rid of the symptom like

$myhostname, localhost.$mydomain, localhost, "$domainname" or something?

in case anyone else runs into this problem …

$myhostname, localhost.$mydomain, localhost, $mydomain - fixes for all domains, done.

Thanks for the update, I’m glad you got it working.

If the line you’re referring to above is the “mydestination” line, Virtualmin handles all that for you by adding the domains to the /etc/postfix/virtual file. Unless you’re doing something particularly unusual, it wouldn’t generally be necessary to modify the mydestination line at all.

Have a good one,
-Eric