Would you like to receive emails from my server (postfix) to an email address in my domain that will be delivered to Google applications

I have Google email applications. I receive requests from people at info @ [my-domain.com], whose email address is hosted by Google.

Sometimes I want my rail settings to send emails from my own server, and this works fine. But when I want to send an email address in my own domain, for example info@my-domain.com , postfix sees my-domain.com and tries to perform local delivery.

I understand that this is normal, but I would like these letters to be sent to Google applications, rather than trying to get it locally.

I know that there is a postfix configuration file for aliases, but here the email addresses are the same, you just need to tell postfix so that they do not try to perform local delivery.

How to do it?

+3
source share
3 answers

It looks like you have two mail servers designed to act as the primary email recipient in your domain: Google Apps and your postfix server. You cannot do this because, as you have discovered, mail is sometimes delivered to one server, and sometimes to another.

, , Google Apps . , Google, . , .

/etc/postfix/main.cf mydestination. .

postfix, , , :

mydestination = $myhostname localhost.$mydomain localhost

, "test1", - "example.com". :

info@test1
info@localhost.example.com
info@localhost

info@example.com Google Apps, "example.com".

+3

, , postfix, my-domain.com , $mydestination postfix, , Postfix, ( @my-domain.com) , Google, .

Postfix ; . sendmail ( , /etc/aliases, /etc/postfix/aliases ) . , sendmail "info" - @your-google-domain-domain.

postfix.org .

http://www.postfix.org/STANDARD_CONFIGURATION_README.html

http://www.postfix.org/ADDRESS_CLASS_README.html

http://www.postfix.org/ADDRESS_REWRITING_README.html

http://www.postfix.org/VIRTUAL_README.html

0

Source: https://habr.com/ru/post/1707200/


All Articles