Postfix SMTP server: errors

  • I have this error


    I made several steps including upgrade ca-certificated , removed smtpd_tls_CAfile from main.cf, install ssl for panel, but I could not solve, someone has any idea how to do?

    Notelseit.com

  • Hello,


    We need more information:


    • Distro? Codename?
    • i-MSCP 1.3.x from when?
    • main.cf content?
    • master.cf content?


    Also please

    • Set the value of smtpd_tls_loglevel parameter to 2 in your main.cf
    • Restart Postfix
    • Do a tail -fn0 /var/log/mail.log
    • Try a SMTP session again (with TLS)
    • Post the log output

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • No LSB modules are available.
    Distributor ID: Debian
    Description: Debian GNU/Linux 7.11 (wheezy)
    Release: 7.11
    Codename: wheezy


    2) today


    3) main.cf content


    Code
    1. ### Common parameters#inet_protocols = ipv4inet_interfaces = allmynetworks_style = hostsmtp_bind_address = 5.9.163.245smtp_bind_address6 = myhostname = moon.notelseit.commydomain = moon.notelseit.com.localmyorigin = $myhostnamesmtpd_banner = $myhostname ESMTPappend_dot_mydomain = noappend_at_myorigin = yesbiff = norecipient_delimiter = +message_size_limit = 0### Local delivery parameters#mydestination = $myhostname, $mydomainalias_database = hash:/etc/aliasesalias_maps = hash:/etc/aliaseslocal_transport = locallocal_destination_recipient_limit = 1local_recipient_maps = unix:passwd.byname $alias_databasemail_spool_directory = /var/mailmailbox_size_limit = 0### Virtual delivery parameters#virtual_mailbox_base = /var/mail/virtualvirtual_mailbox_limit = 0virtual_mailbox_domains = hash:/etc/postfix/imscp/domainsvirtual_mailbox_maps = hash:/etc/postfix/imscp/mailboxesvirtual_alias_domains =virtual_alias_maps = hash:/etc/postfix/imscp/aliasesvirtual_minimum_uid = 999virtual_uid_maps = static:999virtual_gid_maps = static:8### Relay parameters#relay_domains = hash:/etc/postfix/imscp/relay_domainsrelay_recipient_maps =relay_transport = relayrelayhost =### Transport parameters#transport_maps = hash:/etc/postfix/imscp/transport### SMTP restrictions#smtpd_helo_required = yessmtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_helo_hostname, reject_invalid_helo_hostname, permitsmtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_sender, reject_unknown_sender_domain, permitsmtpd_relay_restrictions =smtpd_recipient_restrictions = reject_non_fqdn_recipient, reject_unknown_recipient_domain, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_unlisted_recipient, permitsmtpd_data_restrictions = reject_multi_recipient_bounce, reject_unauth_pipelining### i-MSCP responder parameters#imscp-arpl_destination_recipient_limit = 1### Other parameters## Those parameters are added dynamically by i-MSCP or 3rd-party softwares## Maildrop MDA parametersvirtual_transport = maildropmaildrop_destination_concurrency_limit = 1maildrop_destination_recipient_limit = 1# Cyrus SASL parameterssmtpd_sasl_type = cyrussmtpd_sasl_path = smtpdsmtpd_sasl_auth_enable = yessmtpd_sasl_security_options = noanonymousbroken_sasl_auth_clients = yessmtpd_sasl_authenticated_header = yes# smtpd TLS parameters (opportunistic)smtpd_tls_security_level = maysmtpd_tls_ciphers = highsmtpd_tls_exclude_ciphers = aNULL, MD5smtpd_tls_protocols = !SSLv2, !SSLv3smtpd_tls_loglevel = 1smtpd_tls_cert_file = /etc/imscp/imscp_services.pemsmtpd_tls_key_file = /etc/imscp/imscp_services.pemsmtpd_tls_CAfile = /etc/ssl/certs/ca-certificates.crtsmtpd_tls_auth_only = nosmtpd_tls_received_header = yessmtpd_tls_session_cache_database = btree:/var/lib/postfix/smtpd_scachesmtpd_tls_session_cache_timeout = 3600s


    4) master.cf content



    Notelseit.com

  • Notelseit.com

  • @theprincy


    I've just made a test with 1.3.x from now and I cannot reproduce the problem.



    I made the test under Ubuntu precise. I'll do a test with Wheezy soon but this should not change anything.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • i have this error


    Jun 14 06:23:39 moon postfix/smtpd[5965]: initializing the server-side TLS engine
    Jun 14 06:23:39 moon postfix/tlsmgr[5966]: open smtpd TLS cache btree:/var/lib/postfix/smtpd_scache
    Jun 14 06:23:39 moon postfix/tlsmgr[5966]: tlsmgr_cache_run_event: start TLS smtpd session cache cleanup
    Jun 14 06:23:39 moon postfix/smtpd[5965]: warning: cannot get RSA private key from file /etc/imscp/imscp_services.pem: disabling TLS support
    Jun 14 06:23:39 moon postfix/smtpd[5965]: warning: TLS library problem: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch:x509_cmp.c:330:

    Notelseit.com

  • I resolved, after trying several times to activate the ssl by reconfiguring , always he gave as an error "


    Code
    1. [ERROR] Package::FrontEnd::start: Could not start the nginx service: iMSCP::Provider::Service::Sysvinit::_exec: nginx: [emerg] SSL_CTX_use_PrivateKey_file("/etc/imscp/admin.moon.notelseit.com.pem") failed (SSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch) at /var/www/imscp/engine/setup/../PerlLib/iMSCP/Service.pm line 158.



    ", now seems to be going, but created another problem, all emails are redirected account info , although there are other accounts configured

    Notelseit.com

  • All problems come from the same source here: Your private KEY is not ok. Fix it.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206