ruby on rails - want email from my server (postfix) to an email address on my domain to be delivered to google apps -


I have got the Google app to get an email. I get queries from people at info @ [my-domain.com] , Which is hosted on email.

Occasionally, I want to set my feet to send emails from my own server, and it works fine. But when I want to send an email address to my own domain, such as info@my-domain.com, postfix sees my-domain.com and tries to deliver locally.

I understand that this is normal, but I want to go to the applications instead of trying to deliver those emails locally.

I know there is a postfix config file for nicknames, but here, email addresses are the same, just do not try to give postfix at the local level.

Is there any way to do this?

This is the two mails set to work as the primary destination for email on your domain Servers are: Google Apps and your Postfix Server You can not do this because, as you've found, sometimes mail is delivered to a server and sometimes the other.

Perhaps you want Google Apps to become the primary destination. That is, the mail for your domain should go to Google servers, not your own. You must reconfigure postfix so that it is not a mail server for your domain.

Edit the /etc/postfix/main.cf file and remove the Maidestination line from your domain.

I usually do not use postfix, but I think if the line looks like this then you would be good:

  mydestination = $ Myhostname localhost. $ Mydomain localhost  

Assume that your server name is "test1" and your domain is "example.com". The following addresses will be delivered at the local level:

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

but to info@example.com Mail must go to Google Apps because Postfix is ​​not configured to accept mail for just "example.com"


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -