Ad Widget

Collapse

Unable to send mail to gmail from zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Akansha123
    Member
    • Jun 2016
    • 54

    #1

    Unable to send mail to gmail from zabbix

    Hey,

    I have properly configured Postfix as MTA on Ubuntu 14.04. I am able to send mail via below command
    "echo "Body test email from 'hostname -f' "| mail -s "subject here" <my_personal_email-id>@gmail.com"

    zabbix V3.2 is installed on the same server where postfix is installed but zabbix is not able to send mail even though I have properly configured media type and action. Even I don't find logs related to action in zabbix_server.log. Could be please tell me how to debug this further as even in audit log there is nothing.

    Steps Performed:-
    1) In Administration-> users-> "Admin" media is taken as email and send to "<my_personal_email-id>@gmail.com"

    2) In Administration-> Media types
    SMTP server : smtp.gmail.com
    SMTP server port : 25
    SMTP helo : gmail.com
    SMTP email : <my_personal_email-id>@gmail.com
    Connection security : STARTTLS
    Authentication : NormalPassword
    Username : <gmail_user_name>
    Password : <gmail_passwd>

    3) configuration of action
    Below conditions are set in actions:
    A Maintenance status not in maintenance
    B Trigger = ubuntu_new: vfs_fs_size_root_trig

    Below settings are done in operations as well as recovery operations
    Operation type : send message
    Send to Users : Admin (Zabbix Administrator)
    Send only to : Email
  • sca_ebe
    Junior Member
    • Jul 2017
    • 15

    #2
    Hello Akansha123

    I think there is a misconfiguration in your media type.

    If you want to use None encryption, you need to set smtp port to 25
    If you want to use STARTTLS, you need to set smtp port to 587
    If you want to use SSL, you need to set smtp port to 465

    EBE

    Comment


    • lojigik472
      lojigik472 commented
      Editing a comment
      If you are looking for a fun, fast-paced work environment, opportunities for growth, And a chance to make a difference, Then a career at Zaxby’s Careers might be the perfect fit for you. https://zaxbysmenu.online/zaxbys-careers/
  • Akansha123
    Member
    • Jun 2016
    • 54

    #3
    Thanks for the information

    I have changed the port as 587 in case of STARTTLS but even though action is not performed and no logs are there related to mail.
    How to analyse it further?

    Comment

    • mit56ki
      Junior Member
      • Jul 2017
      • 1

      #4
      Send Mail Notification From Zabbix Server Using Gmail

      Comment

      • mohamadsajedi
        Junior Member
        • Apr 2019
        • 2

        #5
        Hello dear,,, I Have the same problem. so i can send mail via cli but zabbix can not send mail to admin...I mean when i send mail via cli, its sending from gmail account but zabbix can not do this..everything i checked is ok... this is my EMAIL configuration :
        I had installed postfix on zabbix server and configured that for realying to Gmail... it works fine and i can send mail via command line.
        it seems that i've missed some configuration,,, any idea?
        also I'm using zabbix server V4.0 and i checked other port and features like port 465 and 25.
        can somebody help me
        kind regards
        Attached Files

        Comment

        • Kenial296
          Junior Member
          • Apr 2019
          • 2

          #6
          Looks like the problem is in the connection between zabbix server and gmail server, hard to say what the exact problem would be with so little information.


          tellpopeyes
          Last edited by Kenial296; 15-04-2019, 10:59.

          Comment

          • reekjohns
            Junior Member
            • Nov 2019
            • 4

            #7
            Try Google Less secure apps configuration

            Log in to your Gmail account through a web browser and enable access through less secure apps . Less secure apps can make your account more vulnerable, Google will automatically turn this setting off if it's not being used. However, bypass this security setting with a configuration tweak within your Google Email Account .


            Comment

            • weejayrane
              Junior Member
              • Dec 2022
              • 5

              #8
              Your media type may be misconfigured, in my opinion.

              Set the smtp port to 25 if you want to use no encryption; set the smtp port to 587 if you want to use STARTTLS; set the smtp port to 465 if you want to use SSL. skyline emulator
              krnl download
              Last edited by weejayrane; 11-01-2023, 16:10.

              Comment

              • weejayrane
                Junior Member
                • Dec 2022
                • 5

                #9
                In the event of STARTTLS, I changed the port to 587, but no action has been taken and no mail-related logs have been created.
                How can I further examine it?​ pgsharp tinytask mod ffh4x mod

                Comment

                • weejayrane
                  Junior Member
                  • Dec 2022
                  • 5

                  #10
                  I have changed the port as 587 in case of STARTTLS but even though action is not performed and no logs are there related to mail.
                  thaumcraft

                  Comment

                  • weejayrane
                    Junior Member
                    • Dec 2022
                    • 5

                    #11
                    Set the smtp port to 25 if you want to use no encryption; set the smtp port to 587 if you want to use STARTTLS; set the smtp port to 465 if you want to use SSL. balenaetcher aniyomi saikou

                    Comment

                    Working...