Neverthless all the mailboxes on postfix created on the virtualmin appears on user@domain.tld format, so when you say that the id on the gmail msg is ok, I really don’t understand how the system translates that.
That’s all part of the Virtualmin magic that goes into configuring Postfix!
This might be a simpler way of explaining it though… all of the users on your server actually have two email addresses.
One is user@domain.tld.
The other is user-domain.tld@host.mydomain.tld.
That’s because their actual system account is “user-domain.tld”. You’ll see entries for that in the /etc/passwd file.
So, in your /etc/postfix/virtual file, you have a number of “virtual” email addresses setup, like user@domain.tld.
Once Postfix receives those, it turns around and delivers it to the address “user-domain.tld@host.mydomain.tld”.
That normally all occurs behind the scenes, and just works. Unfortunately, in your case, something isn’t working right!
I will try to solve this, eventhough I am not a postfix expert
Well, we’re here to help… I’m trying to get a better understanding of what’s going on, and tossing out some ideas that might resolve your issue. But, if none of those ideas help, the next step is to have someone log in and take a look to see if we can determine what’s going on there.
You might want to start with the “hostname” questions above… and also determining what, if anything, is in your /etc/postfix/transport file (which will show what exactly the transport_maps line is doing).
-Eric