Want to subscribe to topics you're interested in?
Become a Member

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

    29,053
    6,594
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,790
    Local Time:
    4:43 PM
    Nginx 1.13.x
    MariaDB 5.5
    • Like Like x 1
  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 Premium Member Premium Member

    31
    11
    8
    May 31, 2014
    Dhaka, Bangladesh
    Ratings:
    +11
    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.
    
     
    • Like Like x 2