1

Wialon Local SMTP Setup

Тема: Wialon Local SMTP Setup

Hi,

Issue

i am looking for some help setting up SMTP server on Wialon Local.

Current Situation

    I have the Notifications set up correctly on my account as i am getting Online Notifications and Mobile App Notifications but currently struggling with Email notifications.

      i have the correct email in my settings and on the billing plan for the account on the CMS.

        i have setup my email account with Office365.

          when i log in to my server and verify the mail system, i get the following logs on the server and then get a mail from noreply@gurtam.com

          2020-01-26 20:20:50 Cannot send email. Check SMTP settings.
          2020-01-26 20:20:50 Trying to resend email using localhost
          2020-01-26 20:20:50 Email was successfully sent.

            i have logged this with Gurtam Support and they have said that i need to change my SMTP settings to plain text authentication but i dont think Office 365 is capable of this.

            Questions

            does anyone have any experience in this?
            are there any other Wialon Local Users that have this successfully set up?


            it seems odd to me that Wialon Local would need to dial down the encryption to plain text, i think this is something which is only going to get worse over time.


            Thanks for any help

            Terry

            2

            Wialon Local SMTP Setup

            Re: Wialon Local SMTP Setup

            VanguarderTerry, you want to setyour email account (ie: wialon@yourdomain.com) as sender of notification mails. Am I right? If yes please send me PM to help you in this case.

            3

            Wialon Local SMTP Setup

            Re: Wialon Local SMTP Setup

            Hello,

            I've the same problem too.
            I can send, with the wrong 'from' email address, email with the mail command from postifx.
            but there is no way to have email from wialon local.

            any suggest is really welcome
            regards

            4

            Wialon Local SMTP Setup

            Re: Wialon Local SMTP Setup

            edozio, VanguarderTerry here is a quick manual for what you need:

            Postfix configuration file changes:

            cat /etc/postfix/main.cf > /etc/postfix/main.cf.backup
            nano /etc/postfix/main.cf

            Add below lines to main.cf file:

            smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
            smtp_sasl_auth_enable = yes
            smtp_sasl_security_options = noplaintext noanonymous
            smtp_sender_dependent_authentication = yes
            smtp_connection_cache_on_demand = no
            sender_dependent_relayhost_maps = hash:/etc/postfix/sender_dependent
            sender_canonical_maps = hash:/etc/postfix/sender_canonical
            smtp_sasl_tls_security_options = noanonymous
            smtp_tls_note_starttls_offer = yes
            smtp_tls_security_level = may

            Create sasl_passwd file in Postfix directory:

            nano /etc/postfix/sasl_passwd

            Add Below line in sasl_passwd file:

            smtp.provider.com email@provider.com:password

            Create sender_dependent file in Postfix directory:

            nano /etc/postfix/sender_dependent

            Add Below line in sender_dependent file:

            email@provider.com smtp.provider.com

            Create sender_canonical file in Postfix directory:

            nano /etc/postfix/sender_canonical

            Add Below line in sender_canonical file:

            wialon@wialon-local.wialon-local email@provider.com

            Create DB for files:

            postmap /etc/postfix/sasl_passwd
            postmap /etc/postfix/sender_dependent
            postmap /etc/postfix/sender_canonical

            Secure Files:

            chown root:root /etc/postfix/sasl_passwd /etc/postfix/sasl_passwd.db /etc/postfix/sender_dependent /etc/postfix/sender_dependent.db /etc/postfix/sender_canonical /etc/postfix/sender_canonical.db
            
            chmod 0600 /etc/postfix/sasl_passwd /etc/postfix/sasl_passwd.db /etc/postfix/sender_dependent /etc/postfix/sender_dependent.db /etc/postfix/sender_canonical /etc/postfix/sender_canonical.db

            Restart Postfix:

            service postfix restart
            /etc/init.d/postfix restart

            Try to test postfix:

            sendmail recipient@elsewhere.com
            From: you@example.com
            Subject: Test mail
            This is a test email
            .

            Enjoy!

            5

            Wialon Local SMTP Setup

            Re: Wialon Local SMTP Setup

            Hello,

            applied the configuration as suggested I now have the following error

            Feb 25 11:21:24 wialocal postfix/smtp[24129]: warning: hash:/etc/postfix/sals_passwd lookup error for "root@xxxxx"
            Feb 25 11:21:24 wialocal postfix/smtp[24129]: warning: 93EC9107D321: smtp_sasl_password_maps lookup error

            it's seem that still postfix doesn't use the valid email account to send the message
            I've enabled the myorigin = /etc/mailname but doesn't seem to work

            any idea?
            thanks
            Ezio

            6

            Wialon Local SMTP Setup

            Re: Wialon Local SMTP Setup

            I've a similar issue as well. I can send, with an inappropriate from email address, email with the mail order from postifx however it is extremely unlikely to have email from wialon nearby MyCFAVisit.