Postfix configuration

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 admin@server.mydomain.com it actually sends the mail to the ‘admin’ unix account and I would like to have it sent to admin@mydomain.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

Howdy,

Well, since it’s a different domain name – those are two completely different email addresses in unrelated Virtual Servers.

If you want admin@server.mydomain.com to go to the address admin@mydomain.com, the simplest way would probably be to edit /etc/aliases, and add a line that looks like this:

admin: admin@mydomain.com

And then run the command:

newaliases

That should do what you’re after!

-Eric

Thank you.

I did solve it using masquerading, all the srv.mydomain.com is outgoing as mydomain.com.

It is done on postfix configuration module.

Ivan