Announcement

Collapse
No announcement yet.

Error while sending E-Mail after server moving.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error while sending E-Mail after server moving.

    I moved my EspoCRM (version 7.1.3) from one server to another. After this, there is an error while sending e-mail out.

    In my log, I can see:

    [2022-04-28 08:47:59] ERROR: Email sending error: cannot connect to host; error = stream_socket_client(): unable to connect to ssl://mx2e12.netcup.net:465 (Network is unreachable) (errno = 0 ) [] []
    [2022-04-28 08:47:59] WARNING: Email sending:Email sending error.; 500 [] []

    The E-Mail Server is running and if I use for example Thunderbird I can send e-mail outgoing. The server is reachable with Thunderbird.

    I can receive e-mails in my EspoCRM Inbox, the cron is running.

    Any idea?

    Thanks for helping!
    --
    Florian

  • #2
    correct port?

    Comment


    • #3
      Hi,
      what is your server operating system ? old and new ?

      maybe you need to check selinux and firewall : https://linux.die.net/man/8/sendmail_selinux

      setsebool -P httpd_can_sendmail 1

      search google for your operating system and firewall and selinux (i think it's on all linux distribution)


      Comment


      • #4
        Originally posted by shalmaxb View Post
        correct port?
        Hey, yes it is still the same Port (465) for the SSL SMTP. With the Port Thunderbird is still working for outgoing Mails. I don't think, the Port is the Problem.

        Comment


        • #5
          Originally posted by item View Post
          Hi,
          what is your server operating system ? old and new ?

          maybe you need to check selinux and firewall : https://linux.die.net/man/8/sendmail_selinux

          setsebool -P httpd_can_sendmail 1

          search google for your operating system and firewall and selinux (i think it's on all linux distribution)

          I use Shared Webhostig. Now it is GoDaddy Germany - it is Linux Hoting.

          I found this on the GoDaddy Site:


          Could this be the Problem? I use the Linux (cPanel) -Hosting.

          Thank you for Helping!
          What is the name of my hosting account's relay server?-Plesk Hosting

          Comment


          • #6
            Hi,
            as you give some info this must be good. (i don't know godaddy or cpanel)
            Port: 25
            SMTP Authentication: none
            SSL or Secure Connection: None
            Server or Host : localhost

            in your case, you can test as above.
            if the mail go to spam, you need to add in dns : https://www.altospam.com/glossaire/spf.php ...
            some provider disable "port/smtp".. so you need to use provider "relay" with login/pass/port

            The relay, is something like so : crm send mail to relay (need login/pass generaly), relay dispatch to recepeint mail. sample "gmail, office365..."





            Comment


            • #7
              Hello Guys,
              for 90% you have wrong email configuration. host shouldn't be localhost, you should have login and password.
              Plase check this https://blog.cpanel.com/setting-up-a...mtp-in-cpanel/

              Comment


              • #8
                Hey,

                thank you all for your answers. But I went off from GoDaddy shared Host for running EspoCRM. It is not possible to send Mails with SMTP over a external Mailserver, which is not running at GoDaddy. This ist no good solution for me.

                Comment


                • #9
                  Are you able to send emails from mail client installed on computer? For example thunderbird?

                  Comment

                  Working...
                  X