ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Building Elastix MT via RPM Repo

    IT Discussion
    voip asterisk linux elastix mt pbx centos 6 elastix centos
    13
    101
    39.9k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      VoipNewbie @scottalanmiller
      last edited by

      @scottalanmiller I was following your tutorial. Hy4y? Above.

      1 Reply Last reply Reply Quote 0
      • V
        VoipNewbie @scottalanmiller
        last edited by

        @scottalanmiller I was following your Elastix MT tutorial. The one you posted above.

        1 Reply Last reply Reply Quote 0
        • V
          VoipNewbie @scottalanmiller
          last edited by

          @scottalanmiller this is the tutorial I was following.

          #!/bin/bash

          SAM's Elastix MT on CentOS 6 Installation and Build Script

          http://mangolassi.it/topic/6243/building-elastix-mt-via-rpm-repo

          Report any issues or questions on that thread.

          yum -y install epel-release
          yum -y install fail2ban htop sysstat glances wget screen
          yum -y update
          cd /tmp
          wget http://sourceforge.net/projects/elastix/files/Elastix PBX Appliance Software/3.0.0/latest/Elastix-3.0.0-Stable-x86_64-bin-10nov2014.iso/download
          mv download elastixmt.iso
          mkdir -p /mnt/elastixmt
          mount -o loop /tmp/elastixmt.iso /mnt/elastixmt
          cat > /etc/yum.repos.d/Elastix.repo <<EOF
          [Elastix-cd]
          name=Elastix-cd
          baseurl=file:///mnt/elastixmt/
          gpgcheck=0
          enabled=1
          EOF
          cd /mnt/elastixmt/Elastix
          for i in $(ls); do yum -y install $i; done
          for i in $(ls); do yum -y install $i; done
          /etc/init.d/mysqld start
          /etc/init.d/elastix-firstboot start && reboot

          1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller
            last edited by

            That suggests that one of these two lines failed when you ran it. Did you get an error message?

            mkdir -p /mnt/elastixmt
            mount -o loop /tmp/elastixmt.iso /mnt/elastixmt
            

            If you do a df -h we should see if it is mounted or not.

            1 Reply Last reply Reply Quote 0
            • B
              bgiacaman @scottalanmiller
              last edited by

              @scottalanmiller Thanks for the script! I was able to install Elastix MT on a cloud server from Digital Ocean running CentOS 6.8 64-bit. I am having an issue and I was wondering if you could help me. I am trying to configure the server, and the first step I usually do is set up the Email > Remote SMTP. I usually use a gmail account, but I am getting an error saying that it "Failed to send hello command" and it won't let me keep the status to ON. I am at a loss... Do you have some light you can shed to this? Thank you in advance for your time and response.

              P.S > I think the script ran successfully, but I got a lot of "Missing; Nothing to do" messages when running the "for i in $(ls); do yum -y install $i; done" commands. In fact, the second time I ran it, it was all about those messages. Nothing really installed. The first time around, it downloaded and ran many items.

              scottalanmillerS 2 Replies Last reply Reply Quote 0
              • scottalanmillerS
                scottalanmiller @bgiacaman
                last edited by

                @bgiacaman welcome to the community!

                1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller @bgiacaman
                  last edited by

                  @bgiacaman said in Building Elastix MT via RPM Repo:

                  @scottalanmiller Thanks for the script! I was able to install Elastix MT on a cloud server from Digital Ocean running CentOS 6.8 64-bit. I am having an issue and I was wondering if you could help me. I am trying to configure the server, and the first step I usually do is set up the Email > Remote SMTP. I usually use a gmail account, but I am getting an error saying that it "Failed to send hello command" and it won't let me keep the status to ON. I am at a loss... Do you have some light you can shed to this? Thank you in advance for your time and response.

                  P.S > I think the script ran successfully, but I got a lot of "Missing; Nothing to do" messages when running the "for i in $(ls); do yum -y install $i; done" commands. In fact, the second time I ran it, it was all about those messages. Nothing really installed. The first time around, it downloaded and ran many items.

                  Start by testing with mailx. Try this...

                  yum -y install mailx
                  

                  Then try sending yourself something...

                  mail -s "This is a test" [email protected] < sometextfile
                  
                  B 1 Reply Last reply Reply Quote 0
                  • B
                    bgiacaman @scottalanmiller
                    last edited by

                    @scottalanmiller Thanks for the quick reply! Tried it and it sent me an email (although went straight to my junk folder). Email came from [email protected].

                    scottalanmillerS 1 Reply Last reply Reply Quote 0
                    • scottalanmillerS
                      scottalanmiller @bgiacaman
                      last edited by

                      @bgiacaman said in Building Elastix MT via RPM Repo:

                      @scottalanmiller Thanks for the quick reply! Tried it and it sent me an email (although went straight to my junk folder). Email came from [email protected].

                      OKay, so the email subsystem is working. That's the first thing. Now... where could the break be after that.....

                      B 1 Reply Last reply Reply Quote 0
                      • B
                        bgiacaman @scottalanmiller
                        last edited by

                        @scottalanmiller Maybe firewall rules? 😮

                        1 Reply Last reply Reply Quote 0
                        • scottalanmillerS
                          scottalanmiller
                          last edited by

                          You can turn off the firewall to be sure, but no, not realistically. Firewall would not cause that error nor would it impact outgoing SMTP by default.

                          1 Reply Last reply Reply Quote 0
                          • scottalanmillerS
                            scottalanmiller
                            last edited by

                            An EXTERNAL firewall would be more likely.

                            B 1 Reply Last reply Reply Quote 0
                            • B
                              bgiacaman @scottalanmiller
                              last edited by

                              @scottalanmiller True. Same outcome as expected whether firewall is off or not. There is no external firewall given this is a cloud-hosted (digital ocean) server, is there?

                              1 Reply Last reply Reply Quote 0
                              • scottalanmillerS
                                scottalanmiller
                                last edited by

                                No, no external firewall.

                                1 Reply Last reply Reply Quote 0
                                • scottalanmillerS
                                  scottalanmiller
                                  last edited by

                                  Check the logs, I would expect this error to get logged. Maybe start a tail follow on the logs and trigger the error, see if it gets logged.

                                  B 1 Reply Last reply Reply Quote 1
                                  • B
                                    bgiacaman @scottalanmiller
                                    last edited by

                                    @scottalanmiller Ok, I think I got it. Per http://bugs.elastix.org/view.php?id=2549:

                                    Starting with PHPMailer v5.2.7, the default HELO hostname is not set anymore to 'localhost' if not supplied on the Hello() function... This generates that the Elastix remotesmtp configuration checker ends up sending an empty HELO/EHLO command, which makes Gmail (and probably many other SMTP servers) really unhappy.

                                    A possible solution would be to modify /var/www/html/modules/remote_smtp/libs/paloSantoEmailRelay.class.php on line 156:

                                    if(!$smtp->Hello()){

                                    change to:

                                    if(!$smtp->Hello(getHostname())){

                                    If you are using the Multi Tenant version the location is /usr/share/elastix/apps/remote_smtp/libs/paloSantoEmailRelay.class.php

                                    Changed that and it worked. However, whenever I create a new organization and the email is sent to the "admin", I never receive anything... what could it be now? Any ideas? Thanks!

                                    1 Reply Last reply Reply Quote 1
                                    • 1
                                    • 2
                                    • 3
                                    • 4
                                    • 5
                                    • 6
                                    • 2 / 6
                                    • First post
                                      Last post