Zimbra using Gmail Mail Relay

May 10th, 2011 by Pawan Kumar Leave a reply »

Setting up gmail as a mail relay

You won’t be able to send or receive mail yet as you don’t have a mail relay set up. You can specify your ISPs mail server here or do what I do and use googles gmail servers.su – zimbra

zmprov ms mail.soundlinuxtraining.com zimbraMtaRelayHost smtp.gmail.com:587
echo smtp.gmail.com username:password > /opt/zimbra/conf/relay_password
postmap hash:/opt/zimbra/conf/relay_password
postconf -e smtp_sasl_password_maps=hash:/opt/zimbra/conf/relay_password
postconf -e smtp_sasl_auth_enable=yes
postconf -e smtp_cname_overrides_servername=no
postfix reload

Here I’m setting the relay host for mail.soundlinuxtraining.com to smtp.gmail.com port number 587. You may or may not need to port number if you use a different relay. Check with the relay provider for more info. Of course change username:password your gmail username and password. I batteled the Zimbra install for quite a while and gmail relaying for quite a while and the answer ended up being to just do it over and over and over until you get it right. If you have any errors during installing Zimbra then just install it again. I thought I was having a problem with relaying through gmail because when I sent mail it wasn’t ending up at the destination. I finally gave up and went to work only to find the mail in my inbox when I go there. Seems it was taking 5 minutes to send it. I’m not sure yet why this is and the logs show that Gmail is not accepting my certificate but ultimately sending the mail anyway. I’ll check into it more when I get some time.

Advertisement
  • http://arie.co.za/2011/05/zimbra-using-gmail-mail-relay/ Arie.Co.Za » Zimbra using Gmail Mail Relay

    [...] zimbraMtaRelayHost smtp.gmail.com:587 echo smtp.gmail.com username:password >  Read More… This is an RSS feed. Read the original article [...]

  • Contact2sp

    We want to get any permission to use the smtp.gmail.com from google ? once we done these changes.when you send the email to anyone, the gmail user id will be appear in any mails

blog comments powered by Disqus