【问题标题】:Configuring gmail, postfix with my domain?用我的域配置 gmail、postfix?
【发布时间】:2014-09-09 18:14:59
【问题描述】:

我的域 (contact@mybus.com) 有一个 gmail 帐户,我的网站位于 DigitalOcean,后缀工作正常。

我的域“www.mybus.com”有他的 dns 指向我在 DigitalOcean 的网站,我想使用我的 gmail 帐户而不是 postfix 来接收和发送电子邮件,我该如何配置呢?

另一个问题,是否可以在 gmail 帐户接收电子邮件并在 DigitalOcean 发送 trought postfix?

谢谢!!

【问题讨论】:

    标签: email configuration dns gmail postfix-mta


    【解决方案1】:

    在后缀的 main.cf 中添加以下内容

    install 
    yum -y install cyrus-sasl cyrus-sasl-plain
    
    myhostname=<hostname>
    relayhost = [smtp.gmail.com]:587
    smtp_use_tls = yes
    smtp_sasl_auth_enable = yes
    smtp_sasl_security_options = noanonymous
    smtp_sasl_tls_security_options = noanonymous
    smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
    smtp_tls_CAfile = /etc/ssl/certs/ca-bundle.crt
    smtp_tls_security_level = encrypt
    
    /etc/postfix/sasl_passwd
    add gmail account details to above file
    [smtp.gmail.com]:587 xxxxx@gmail.com:passwd
    
    use postmap to create db
    postmap sasl_passwd
    

    然后重启 postfix 这应该工作。

    【讨论】:

      【解决方案2】:

      为了解决这个问题,我使用我的域登录我的 google 帐户并获得 google 的测试域,例如: contact@mybus.com.test-google-a.com

      我将收到的所有电子邮件转发到上面的域,此配置是在 DigitalOcean 的 postfix 中进行的。

      现在我在 DigitalOcean 接收和发送带有后缀的电子邮件,并使用 gmail 服务来查阅我的电子邮件。

      =)

      【讨论】:

        猜你喜欢
        • 2018-07-21
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-11-22
        • 2020-10-15
        相关资源
        最近更新 更多