PROBLEM TO CONFIGURE POSTFIX TO CENTOS 7

Discussion in 'Installation/Configuration' started by guebre ismael, Nov 6, 2015.

  1. guebre ismael

    guebre ismael New Member

    Hello. I came to seek your help. I eentrain configure postfix on 7 centos but I have a concern during the test. I have a message when I execute the following command:

    #echo "This is a test." | Email -s "test message" send myaccountmail: can not set X509 file /usr/share/ca-certificates/mozilla/Equifax_Secure_CA.crt trust for TLS session: fichier.send-mail read error: Could not send mail (default account from /root/.msmtprc)

    what should I do? thank you in advance!!!
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Seems as if a ssl cert /usr/share/ca-certificates/mozilla/Equifax_Secure_CA.crt is configured in postfix and hs cert does not exist. Check postfix main.cf file for this cert.
     
  3. guebre ismael

    guebre ismael New Member

    Hello. excuse me I was traveling that's why I is not answer you faster. here is my configuration done but still the same.
    [root@localhost serverntop]# yum install postfix ca-certificates
    [root@localhost serverntop]# systemctl enable postfix
    [root@localhost serverntop]# systemctl start postfix
    [root@localhost serverntop]# vi /etc/postfix/main.cf
    relayhost = smtp.gmail.com:587
    smtp_sasl_auth_enable = yes
    smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
    smtp_sasl_security_options = noanonymous
    smtp_tls_CAfile = /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
    smtp_use_tls = yes

    [root@localhost serverntop]# vi /etc/postfix/sasl_passwd
    smtp.gmail.com:587 myaccountgmail.com:mypass

    [root@localhost serverntop]# postmap /etc/postfix/sasl_passwd
    [root@localhost serverntop]# chmod 0400 /etc/postfix/sasl_passwd
    [root@localhost serverntop]# systemctl reload postfix
    [root@localhost serverntop]# echo "test"|mail -s "test" myaccountgmail.com
    [root@localhost serverntop]# send-mail: cannot set X509 trust file /usr/share/ca-certificates/mozilla/Equifax_Secure_CA.crt for TLS session: Erreur de lecture de fichier.
    send-mail: could not send mail (account default from /root/.msmtprc)
     
  4. guebre ismael

    guebre ismael New Member

    Hello. How are you? I still have not found a solution to my request. can you help me?
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    run:

    grep -r -n mozilla/Equifax_Secure_CA.crt /etc/postfix

    to find the place where this non existing cert is configured.
     
  6. guebre ismael

    guebre ismael New Member

    thank you for all your help. now I like my worries when I send email with the echo command, I get:
    [root@localhost serverntop]# echo "Test mail from postfix" | mail -s "Test Postfix" [email protected]
    /usr/bin/msmtp: Aucun fichier ou dossier de ce type
    "/root/dead.letter" 9/243
    . . . message not sent.

    what should I do? I had started installing ssmtp but it was inconclusive. I uninstall with the command # yum remove msmtp.
    thank you in adavance!!!
     
  7. guebre ismael

    guebre ismael New Member

    I had done the installation apache, mysql and php to ssmtp. the problem does not he come here?
     
  8. guebre ismael

    guebre ismael New Member

    I had done the installation apache, mysql and php to ssmtp. the problem does not he come here?
     

Share This Page