• This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Setting up Google as SMTP server for your XenForo

Blandt

Well-known member
Using Google instead of setting up your own SMTP server is an easy process and one less thing to worry about and maintain on your own server. and this is Uber Newbie how to

1st you need to setup your domain name MX records to point to your custom google email.
It's free :
http://google.com/a

Select Standard from the Apps Editions

aped.webp

Then click on get started,
getstarted.webp

you will be prompted with a field to enter your domain name :

domain.webp


Follow the instructions from there. Google covers every major Domain registrar on how to Edit your MX records.
once you verify your domain, Activate the Email service and add a new user. In this case will create support@mydomain.com So all of the administrative emails generated by xenforo will be sent from that email : support@mydomain.com

Then logon to your XenForo admin panel and select the option tab

xenadmin.webp
Then select Email options :

emailoptions.webp

Then finally setup your xenforo to use google SMTP Like this

SMTP.webp
Make sure you enter support@mydomain.com complete (the whole email string) your password you just setup with google apps.
The port is 465 or 587
Select SSL

Click save and happy emailing :D

This way you avoid having your emails flagged as spam on your users end.
Let me know if further help is needed.
 
Google limits emails for its free accounts. 500 per day, or 2000 per day if it is a "premier" box.

https://www.google.com/support/a/bin/answer.py?hl=en&answer=166852

Unless you are using XenForo to send marketing emails, I do not see how you can reach 500 emails/day

Keep in mind that this is only to send notifications, approvals and the routine cron emails. If one have the need for more than that limit then I think one must invest in some Email solution...

But good point ...
 
You could also setup your server to use Postfix instead of Sendmail and chain several Google accounts to send out emails. Still, if you have to send out an email to your 100k users, you will need 200 email accounts. :)

I'm not even sure if Google will ban you when they see you are hammering their servers with a ton of emails...
Personally I use Postfix because is way easier to configure, MUCH faster and secure than Sendmail. For example, if you need to send a large number of emails, Postfix exponentially backs off as the load increases and always remains in control. Try to do this with Sendmail. :)
 
According to the link posted above, that's the workaround offered by Google :
"
  • Create multiple user accounts to send mail. For example, 'Admin1' and 'Admin2' can each send 500 messages to reach 1000 unique recipients. (On the Premier or Education Edition, two accounts can reach 4000 recipients.)
  • Stagger mass communications over the course of two days. For example, send messages to the allotted number of recipients on day one, wait for 24 hours, and send messages to another group of recipients on day two.
  • In all editions of Google Apps, an individual message can be sent to a maximum of 500 external recipients at one time.
  • If you use a POP or IMAP client (e.g., Microsoft Outlook or Apple Mail), you may only send a message to 100 people at a time
https://www.google.com/support/a/bin/answer.py?hl=en&answer=166852
 
Why could we not skip the step about changing our MX record? I did this and was still able to send mail from by board using google's smtp server (and the header showed it went through google's server). Then I could still receive mail from my hosts pop server.

It would seem to me, that this option allows me the best of both worlds. I can send 500 emails with google smtp, then turn around and send another 500 from my host, by setting it back to the default option temporarily.

Am I wrong on this?
 
Back
Top Bottom