using google apps as the email server

Discussion in 'Installation/Configuration' started by chaloum, Mar 23, 2012.

  1. chaloum

    chaloum New Member


    We are using ISPConfig on CentOs 6 the DNS server id DYNDNS and the email server is Google apps.

    We need to get being sent by the ISPConfig/CentOs server through our Google Apps IMAP email system.

    I cant see how this is done as there needs to be authentication at Googles end and I can see in ISP config how I can get the two system working as one.

    any help is much appreciated.
  2. till

    till Super Moderator

    You can set the relay server, uer and password in ISPConfig under System > Server config > mail.
  3. chaloum

    chaloum New Member

    So the relay host would be

    and the user and password as sent in Gmail
  4. kwickcut

    kwickcut Member

    1) In your email client software, under Outgoing mail, set the SMTP server to

    2) Set the your username is and make sure "Use username and password" is checked.

    3) Also check off "TLS" under "Use secure connection."

    also i would check out Gmail's help section on POP access for Gmail
  5. chaloum

    chaloum New Member


    It not the client where I having the issue it with server and Gmail
  6. till

    till Super Moderator

    You use the same email login details and smtp (not imap) server that you use in your mail client when you want to sent trough google servers.
  7. chaloum

    chaloum New Member

    we user imap not smtp but will give smtp a go
  8. chaloum

    chaloum New Member

    Our of interest, squirrel mail also wants to use IMAP

    Error connecting to IMAP server: localhost.
    111 : Connection refused
  9. falko

    falko Super Moderator

    It seems there is a misunderstanding: SMTP is for sending email, IMAP (and POP3) is for fetching emails.
  10. chaloum

    chaloum New Member

    I understand pop, smtp and imap. I have issues with them all.

    Whilst I've got the smtp showing that it's online in ispconfig, I don't believe it's actually sending emails or at lest sending emails out from the server.

    Pop and iMac arent online and refuse to go online thus squirrel mail doesn't work
  11. falko

    falko Super Moderator

    Can you post the outputs of
    netstat -tap
    iptables -L
  12. chaloum

    chaloum New Member


    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 *:mysql *:* LISTEN 1827/mysqld
    tcp 0 0 *:sunrpc *:* LISTEN 1363/rpcbind
    tcp 0 0 *:ftp *:* LISTEN 2044/pure-ftpd (SER
    tcp 0 0 *:* LISTEN 1342/named
    tcp 0 0 localhost.localdomai:domain *:* LISTEN 1342/named
    tcp 0 0 *:ssh *:* LISTEN 1651/sshd
    tcp 0 0 localhost.localdomain:ipp *:* LISTEN 1528/cupsd
    tcp 0 0 *:smtp *:* LISTEN 8238/master
    tcp 0 0 *:41567 *:* LISTEN 1381/rpc.statd
    tcp 0 0 localhost.localdomain:10024 *:* LISTEN 26212/amavisd (mast
    tcp 0 0 *:amqp *:* LISTEN 2057/qpidd
    tcp 0 0 localhost.localdomain:10025 *:* LISTEN 8238/master
    tcp 0 0 ESTABLISHED 13669/sshd
    tcp 0 0 ESTABLISHED 17286/sshd
    tcp 0 0 ESTABLISHED 17636/sshd
    tcp 0 0 ESTABLISHED 1917/sshd
    tcp 0 0 *:pop3 *:* LISTEN 16779/couriertcpd
    tcp 0 0 *:imap *:* LISTEN 16766/couriertcpd
    tcp 0 0 *:sunrpc *:* LISTEN 1363/rpcbind
    tcp 0 0 *:webcache *:* LISTEN 8418/httpd
    tcp 0 0 *:http *:* LISTEN 8418/httpd
    tcp 0 0 *:tproxy *:* LISTEN 8418/httpd
    tcp 0 0 *:ftp *:* LISTEN 2044/pure-ftpd (SER
    tcp 0 0 *:domain *:* LISTEN 1342/named
    tcp 0 0 *:ssh *:* LISTEN 1651/sshd
    tcp 0 0 localhost.localdomain:ipp *:* LISTEN 1528/cupsd
    tcp 0 0 *:42487 *:* LISTEN 1381/rpc.statd
    tcp 0 0 *:smtp *:* LISTEN 8238/master
    tcp 0 0 *:https *:* LISTEN 8418/httpd
    tcp 0 0 *:imaps *:* LISTEN 16773/couriertcpd
    tcp 0 0 *:pop3s *:* LISTEN 16785/couriertcpd


    Chain INPUT (policy ACCEPT)
    target prot opt source destination
    fail2ban-SSH tcp -- anywhere anywhere tcp dpt:ssh

    Chain FORWARD (policy ACCEPT)
    target prot opt source destination

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination

    Chain fail2ban-SSH (1 references)
    target prot opt source destination
    RETURN all -- anywhere anywhere
  13. falko

    falko Super Moderator

    Looks ok. What's the output of
  14. chaloum

    chaloum New Member

    the out put of getenforce os Disabled
  15. deskartez

    deskartez New Member

    Google Apps

    I have setup google apps to handle all email on my previous server. All that is required is that you setup the DNS portion of your server, specifically setup a subdomain to point to google's email server.
  16. chaloum

    chaloum New Member

    Yes I've already done that and from the DNS and Google site every thing is cool but not with the web server nothing goes out from the server
  17. deskartez

    deskartez New Member

    ah ok now i understand, yes i have had this problem as well. Basically a CMS or service like fail2ban cannot send outgoing emails on the server. My workaround for this was to have postfix and mailman installed and running on the server solely for the purpose of handling server originated email. Without a mail server like postfix a content managment system using standard php form will not be able to send any outgoing emails. Correct me if i am wrong but my understanding is that a mail server is still required to run on linux server. Google apps mail server does not and cannot handle the goings on of a servers internal mail. Hence a mail server daemon needs to be on at all times on your own server to relay and direct mail from the local server to any outbound server. That being said you have to configure your postfix and mailman installations to send email using your hosting company or ISPs SMTP Service - they designate a specific Server Name for your account. This is your smtp email relay which is required for any emails to be sent from your server.
    Last edited: Mar 27, 2012
  18. chaloum

    chaloum New Member

    deskartez, unfortunately the local email service is only partially working only the SMTP side of thing and emails don't get sent outside the server.

    As for configuring the local services I've no head where they are located and how to configure it under the Centos/ISPConfig system

    All I know is postfix and courier are in the mix
  19. deskartez

    deskartez New Member

    hello you can install postfix and mailman by just doing a yum install.
    yum install postfix mailman

    however yum is the package installer for fedora. I only use fedora or redhat linux. Other distros have different package installers like apt-get ....(unbunto/debian)

    after installation on fedora, adjust the config files in the etc directory to reflect your smtp relay and then on the command terminal just run the cammands
    service postfix start
    service mailman start
    Last edited: Mar 27, 2012
  20. chaloum

    chaloum New Member

    Been through that at least a dozen times

Share This Page