When you use Google Apps for your domain you might want to forward e-mail for your domain to the Mail-eXchangers from Google so that e-mails get delivered in your inbox at Google and not on the local server.
Why do so? When someone uses sendmail or mails from another domain on the same server, Plesk / Qmail / Postfix do a local delivery to the corresponding domain / e-mail account. Thus the message stays on the same server and never reaches your mailbox.
Plesk 9.x is compatible with Postfix as well as Qmail. If you want to switch to postfix i suggest you check the Parallels KB over at: http://kb.parallels.com/5801
First we need to change the location of the transport file where we then need to make an entry. (We need to change this so that when we run the psa/admin/sbin/mchk the modifications aren’t lost)
in /etc/postfix/main.cf find the following line
transport_maps = hash:/var/spool/postfix/plesk/transport
and change it to something like
transport_maps = hash:/etc/postfix/transport_maps
Save your changes, create the file and add one of the following lines (replace example.com)
example.com relay:aspmx.l.google.com info@example.com relay:aspmx.l.google.com
Now execute the following command and restart postfix.
[root@vps1106]# postmap /etc/postfix/transport_maps [root@vps1106]# service postfix restart Shutting down postfix: [ OK ] Starting postfix: [ OK ]
And that’s it.
E-mail for the specified domain will now be redirected to the mailexchanges from Google.
Please note that this is was only tested on CentOS 5 and Plesk 9.3/9.5 but might also work for other versions.
Comments (0)