postfix: relay by gmail

Discussion in 'HOWTO-Related Questions' started by mexus, Jan 31, 2008.

  1. mexus

    mexus New Member

    I have followed the Virtual Users And Domains With Postfix, Courier And MySQL (CentOS 5.1)
    I don't have reverse dns, so i want to relay all my e-mail with gmail.
    How to enable STARTTLS in postfix??
     
  2. topdog

    topdog Active Member

    Does gmail allow relaying ? How do u plan to do this ? I think the howto enables STARTTLS by default.
     
  3. mexus

    mexus New Member

    Via SMTP.
    Yes it does.
     
  4. topdog

    topdog Active Member

    Okay in that case postfix does support postfix as a client authentication.

    Add this to your config
    Code:
     smtp_sasl_auth_enable = yes
     smtp_sasl_password_maps = hash:/etc/postfix/gmail_passwd
     smtp_sasl_type = cyrus
     relayhost = [smtp.gmail.com]:587
    
    Create the file /etc/postfix/gmail_passwd
    Code:
    [smtp.gmail.com]:587            [email protected]:password
    
    Then
    Code:
    postmap /etc/postfix/gmail_passwd
    postfix restart
    
     
    Last edited: Jan 31, 2008
  5. mexus

    mexus New Member

    Yes it works! Thanks.
     
  6. razor7

    razor7 Member

    Hi, followed instructions but in ISPConfgi 3 I get this

    Is there anything I can do?

    Thanks a lot!
     

Share This Page