google apps email

Discussion in 'Installation/Configuration' started by ichpen, May 12, 2012.

  1. ichpen

    ichpen New Member

    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.
     
  2. wichu

    wichu New Member

    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).
     
  3. ichpen

    ichpen New Member

    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: May 12, 2012
  4. falko

    falko Super Moderator Howtoforge Staff

    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.
     
  5. ichpen

    ichpen New Member

    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=<[email protected]>
    May 12 08:22:27 server1 postfix/qmgr[10890]: 7520615A16AD: from=<[email protected]>, 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=<[email protected]>
    May 12 08:22:27 server1 postfix/qmgr[10890]: 917C215A1612: from=<[email protected]>, 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, <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, 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=<[email protected]>, 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=<[email protected]>, 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: May 12, 2012
  6. stinson6016

    stinson6016 New Member

    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
     
  7. ichpen

    ichpen New Member


    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.
     
  8. Admn

    Admn New Member

  9. akia

    akia New Member

    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

    [email protected]
    [email protected]
    [email protected] etc etc

    depending what site it was sent from.
     

Share This Page