I have postfix configured on server.mydomain.com serving some other mail domains.
I have an mydomain.com account which receives some aliases (root, admin, hostmaster, etc)@mydomain.com.
But when someones sends a mail to firstname.lastname@example.org it actually sends the mail to the ‘admin’ unix account and I would like to have it sent to email@example.com.
How can I get this working?
There is another question I need to solve: how can I limit the maximum size limit for an incoming or outgoing mail?
thank you in advance
Well, since it’s a different domain name – those are two completely different email addresses in unrelated Virtual Servers.
If you want firstname.lastname@example.org to go to the address email@example.com, the simplest way would probably be to edit /etc/aliases, and add a line that looks like this:
And then run the command:
That should do what you’re after!
I did solve it using masquerading, all the srv.mydomain.com is outgoing as mydomain.com.
It is done on postfix configuration module.