#1  
Old 12th May 2012, 01:57
ichpen ichpen is offline
Junior Member
 
Join Date: Dec 2011
Posts: 21
Thanks: 0
Thanked 1 Time in 1 Post
Default google apps email

Hi,

Does ispconfig 3 support routing to google's smtp servers? If not how would one go about doing this. I'm running on ubuntu 11.10, postfix. I basically need to offload email to google for certain domains. Not sure how easy that would be to configure.

Appreciate any tips.
Reply With Quote
Sponsored Links
  #2  
Old 12th May 2012, 02:00
wichu wichu is offline
Junior Member
 
Join Date: Apr 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What do you exactly mean by "some domains"?

I have the setup, that only in DNS I have configured the google mail servers and so it is not more in the ISPconfig (just the dns records).
Reply With Quote
  #3  
Old 12th May 2012, 02:05
ichpen ichpen is offline
Junior Member
 
Join Date: Dec 2011
Posts: 21
Thanks: 0
Thanked 1 Time in 1 Post
Default

Maybe I should explain myself better.

I have a ubuntu 11.10 server, ispconfig, postfix, standard stuff. I have 30 odd domains pointed to that server.

Email for most of those domains is handled by the server.

I've setup 3 domains with google apps mx records. All fine and good.

Problem is server originating email from the likes of phpmail, wordpress mail functions etc. I'd like to have this email routed through google's smtp as opposed to mine for their corresponding google apps accounts. Is this even possible on a per domain level? I know you can setup postfix to simply relay all email to a foreign smtp host.

I should mention that name server/host tables are being handled by my registrar not on the server.

Last edited by ichpen; 12th May 2012 at 02:08.
Reply With Quote
  #4  
Old 12th May 2012, 11:42
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Make sure you didn't create these three domaisn as email domains in ISPConfig - if you did, the ISPConfig server will feel responsible for those emails and not forward them to the correct server.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 12th May 2012, 14:16
ichpen ichpen is offline
Junior Member
 
Join Date: Dec 2011
Posts: 21
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by falko View Post
Make sure you didn't create these three domaisn as email domains in ISPConfig - if you did, the ISPConfig server will feel responsible for those emails and not forward them to the correct server.
That's an excellent suggestion and low and behold it's still trying to send email from my server. Mail log attached. I've removed all traced of this domain's email settings in ispconfig.

Another question now is how to setup a relay to google's smtp servers and authenticate. I guess this is no longer ispconfig territory but I'll post anyway in case someone's done it.



May 12 08:22:27 server1 postfix/pickup[10891]: 7520615A16AD: uid=5011 from=<web9>
May 12 08:22:27 server1 postfix/cleanup[11375]: 7520615A16AD: message-id=<6113e948d060fcf6662d523f794b95a7@www.allwords. ca>
May 12 08:22:27 server1 postfix/qmgr[10890]: 7520615A16AD: from=<web9@server1.raced.ca>, size=946, nrcpt=1 (queue active)
May 12 08:22:27 server1 postfix/smtpd[11381]: connect from localhost.localdomain[127.0.0.1]
May 12 08:22:27 server1 postfix/smtpd[11381]: 917C215A1612: client=localhost.localdomain[127.0.0.1]
May 12 08:22:27 server1 postfix/cleanup[11375]: 917C215A1612: message-id=<6113e948d060fcf6662d523f794b95a7@www.allwords. ca>
May 12 08:22:27 server1 postfix/qmgr[10890]: 917C215A1612: from=<web9@server1.raced.ca>, size=1402, nrcpt=1 (queue active)
May 12 08:22:27 server1 postfix/smtpd[11381]: disconnect from localhost.localdomain[127.0.0.1]
May 12 08:22:27 server1 amavis[28251]: (28251-05) Passed CLEAN, <web9@server1.raced.ca> -> <ichpen3@gmail.com>, Message-ID: <6113e948d060fcf6662d523f794b95a7@www.allwords.ca> , mail_id: IUBafkc5+is1, Hits: -0.001, size: 909, queued_as: 917C215A1612, 129 ms
May 12 08:22:27 server1 postfix/smtp[11378]: 7520615A16AD: to=<ichpen3@gmail.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.24, delays=0.1/0/0/0.13, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 917C215A1612)
May 12 08:22:27 server1 postfix/qmgr[10890]: 7520615A16AD: removed
May 12 08:22:27 server1 postfix/smtp[11382]: 917C215A1612: to=<ichpen3@gmail.com>, relay=gmail-smtp-in.l.google.com[173.194.76.26]:25, delay=0.26, delays=0.06/0.01/0.06/0.14, dsn=2.0.0, status=sent (250 2.0.0 OK 1336825347 et1si1439135qab.101)
May 12 08:22:27 server1 postfix/qmgr[10890]: 917C215A1612: removed

Last edited by ichpen; 12th May 2012 at 14:26.
Reply With Quote
  #6  
Old 12th May 2012, 20:16
stinson6016 stinson6016 is offline
Junior Member
 
Join Date: May 2012
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

sounds like an mx record issue, have have to check the domain ms records an example from a domain controlled by godaddy


20 @ alt1.aspmx.l.google.com
20 @ alt2.aspmx.l.google.com
10 @ aspmx.l.google.com
30 @ aspmx2.googlemail.com
30 @ aspmx3.googlemail.com
30 @ aspmx4.googlemail.com
10 @ aspmx5.googlemail.com

the emails need to know where to go, so I'd check where your mx records are pointing
Reply With Quote
  #7  
Old 13th May 2012, 16:20
ichpen ichpen is offline
Junior Member
 
Join Date: Dec 2011
Posts: 21
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by stinson6016 View Post
sounds like an mx record issue, have have to check the domain ms records an example from a domain controlled by godaddy


20 @ alt1.aspmx.l.google.com
20 @ alt2.aspmx.l.google.com
10 @ aspmx.l.google.com
30 @ aspmx2.googlemail.com
30 @ aspmx3.googlemail.com
30 @ aspmx4.googlemail.com
10 @ aspmx5.googlemail.com

the emails need to know where to go, so I'd check where your mx records are pointing

All mx records are setup as google apps. I can send/receive email via google apps. It seems server originating email isn't doing an mx lookup. Just trying to figure out where that happens.
Reply With Quote
  #8  
Old 20th May 2012, 06:56
Admn Admn is offline
Junior Member
 
Join Date: May 2012
Location: Miami Beach
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default google apps email

Have you resolved this issue? If not, please contact me for assistance. http://EasygApps.com
Reply With Quote
  #9  
Old 21st May 2012, 22:33
akia akia is offline
HowtoForge Supporter
 
Join Date: May 2012
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

I've just come to the forum to find out whether this same thing is possible as all my mail is done via Google Aps

I've read that you can get postfix to relay all mail to a external server i.e. Google Apps but from what I've read it seems that any mail sent by php scripts like wordpress or vbulletin would all go via the one account as you have to log into the gmail smtp server with a account.

Is it possibe to do this on a domain level.

So that mail sent out via the php scripts would show as coming from

server@domain1.com
server@domain2.com
server@domain3.com etc etc

depending what site it was sent from.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
using google apps as the email server chaloum Installation/Configuration 19 27th March 2012 21:02
Google apps integration Lord_Garfield General 0 13th March 2012 11:06
Some problem with using google apps kelyiu3000 Server Operation 5 17th September 2011 20:26
Unknown MX record and Reverse PTR question for Google Apps email safoo Server Operation 1 31st March 2009 17:26
Cannot set up Google Apps Email. Please Help! alexwalkey Installation/Configuration 6 8th April 2008 09:43


All times are GMT +2. The time now is 02:58.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.