Join the community today
Register Now

Routing outgoing emails with Centmin and Sendgrid

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Nelson, Dec 14, 2014.

  1. Nelson

    Nelson New Member

    9
    3
    3
    Jun 2, 2014
    Ratings:
    +3
    Local Time:
    1:43 AM
    Hi there, my provider does not allow me to use port 25 for SMTP.
    The solution is to use services such as:
    • Mailgun
    • Mailchimp
    • Sendgrid
    In my other server I use cpanel with SendGrid, see this guide:
    Exim - SendGrid Documentation | SendGrid
    Cpanel setup is easy, but how you could use centmin mod With SendGrid, anyone of you had a similar problem?

    Thanks.

     
  2. eva2000

    eva2000 Administrator Staff Member

    54,546
    12,221
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,790
    Local Time:
    4:43 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  3. Nelson

    Nelson New Member

    9
    3
    3
    Jun 2, 2014
    Ratings:
    +3
    Local Time:
    1:43 AM
    Thanks for you reply.
     
  4. Razib Hasan

    Razib Hasan Member

    37
    15
    8
    May 31, 2014
    Dhaka, Bangladesh
    Ratings:
    +15
    Local Time:
    12:43 PM
    1.7.6
    5.10
    The configuration below works fine for me with Mandrill;

    Code:
    
    # Cyrus SASL for System Administrators
    yum install cyrus-sasl-plain -y
    
    # create a file
    touch /etc/postfix/sasl_passwd
    
    # edit sasl_passwd file
    nano /etc/postfix/sasl_passwd
    
    #Occupy sasl_passwd file with mandrill's SMTP address and port along with your mandrill username & SMTP password
    [smtp.mandrillapp.com]:587 yourmandrilUsername@something.com:password
    
    # File permission for sasl_passwd file
    chmod 600 /etc/postfix/sasl_passwd
    postmap /etc/postfix/sasl_passwd
    
    #edit postfix configuration
    nano /etc/postfix/main.cf
    
    # === paste the following lines at the very last of main.cf file ===
    
    # enable SASL authentication
    smtp_sasl_auth_enable = yes
    # tell Postfix where the credentials are stored
    smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
    smtp_sasl_security_options = noanonymous
    # use STARTTLS for encryption
    smtp_use_tls = yes
    relayhost = [smtp.mandrillapp.com]:587
    
    
    #restart postfix
    service postfix restart
    
    ### Note: Make sure you have port 587 open in CSF configuration.