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

    Solved Zabbix - email alerts

    IT Discussion
    zabbix linux centos centos 7 postfix email smtp mta
    7
    68
    13.3k
    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.
    • scottalanmillerS
      scottalanmiller @Mike Davis
      last edited by scottalanmiller

      @Mike-Davis said in Zabbix - email alerts:

      So install ssmpt and mailx and go about it that way?

      mailx is a client app, not used for applications to send mail. That's just for you to send them by hand.

      Do you have reason to believe that postfix doesn't have TLS capability by default? This is an enterprise OS here. Our matching system didn't need anything special to handle TLS to O365, right?

      Mike DavisM 1 Reply Last reply Reply Quote 0
      • JaredBuschJ
        JaredBusch
        last edited by

        Postfix can most certainly use TLS.

        1 Reply Last reply Reply Quote 0
        • Mike DavisM
          Mike Davis @scottalanmiller
          last edited by

          @scottalanmiller said in Zabbix - email alerts:

          Do the logs tell you anything?

          I looked at the /var/log/zabbix/zabbix_server.log and didn't see anything related to email. What are the names of the other log files I should look at?

          scottalanmillerS JaredBuschJ 2 Replies Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller @Mike Davis
            last edited by

            @Mike-Davis said in Zabbix - email alerts:

            @scottalanmiller said in Zabbix - email alerts:

            Do the logs tell you anything?

            I looked at the /var/log/zabbix/zabbix_server.log and didn't see anything related to email. What are the names of the other log files I should look at?

            Well normally /var/log/maillog, but it is completely empty prompting me to think that postfix is not being asked to send anything.

            1 Reply Last reply Reply Quote 0
            • JaredBuschJ
              JaredBusch @Mike Davis
              last edited by

              @Mike-Davis said in Zabbix - email alerts:

              @scottalanmiller said in Zabbix - email alerts:

              Do the logs tell you anything?

              I looked at the /var/log/zabbix/zabbix_server.log and didn't see anything related to email. What are the names of the other log files I should look at?

              /var/log/maillog
              
              Mike DavisM 1 Reply Last reply Reply Quote 0
              • Mike DavisM
                Mike Davis @scottalanmiller
                last edited by Mike Davis

                @scottalanmiller said in Zabbix - email alerts:

                Our matching system didn't need anything special to handle TLS to O365, right?

                right, that's why I set up the connector in o365. So I could send mail in on port 25 without authentication.

                scottalanmillerS 1 Reply Last reply Reply Quote 0
                • Mike DavisM
                  Mike Davis @JaredBusch
                  last edited by

                  @JaredBusch said in Zabbix - email alerts:

                  /var/log/maillog

                  is empty.

                  JaredBuschJ scottalanmillerS 2 Replies Last reply Reply Quote 0
                  • JaredBuschJ
                    JaredBusch @Mike Davis
                    last edited by

                    @Mike-Davis said in Zabbix - email alerts:

                    @JaredBusch said in Zabbix - email alerts:

                    /var/log/maillog

                    is empty.

                    Then it is not using postfix

                    1 Reply Last reply Reply Quote 0
                    • Mike DavisM
                      Mike Davis @scottalanmiller
                      last edited by

                      @scottalanmiller said in Zabbix - email alerts:

                      So install ssmpt and mailx and go about it that way? I could try that with a gmail account and see if I get anything that way.

                      Are you sure that that is needed?

                      Not sure it's needed. I was looking at this guide:
                      http://www.tecmint.com/configure-zabbix-to-send-email-alerts-to-gmail/

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

                        @Mike-Davis said in Zabbix - email alerts:

                        @scottalanmiller said in Zabbix - email alerts:

                        Our matching system didn't need anything special to handle TLS to O365, right?

                        right, that's why I set up the connector in o365. So I could send mail in on port 25 without authentication.

                        I'm confused. Doesn't that mean the opposite of what I said?

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

                          @Mike-Davis said in Zabbix - email alerts:

                          @JaredBusch said in Zabbix - email alerts:

                          /var/log/maillog

                          is empty.

                          That's what I said 🙂

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

                            @Mike-Davis said in Zabbix - email alerts:

                            @scottalanmiller said in Zabbix - email alerts:

                            So install ssmpt and mailx and go about it that way? I could try that with a gmail account and see if I get anything that way.

                            Are you sure that that is needed?

                            Not sure it's needed. I was looking at this guide:
                            http://www.tecmint.com/configure-zabbix-to-send-email-alerts-to-gmail/

                            Why? It's purpose is expressly to do something different from what we have today: "This tutorial will briefly discuss you on how to setup Zabbix server to send mail reports to a Gmail address by using SSMTP program, without the need to install and configure any local MTA daemon, such as Postfix, Exim etc."

                            We already have Postfix installed, running and you said that you tested it and it worked.

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

                              Let's stick to testing one thing at a time. Don't hit one hiccup and start ripping and replacing the entire email system. Chances are we are dealing with something really simple, like Zabbix isn't trying to send email or isn't trying to use the MTA. If we have to put SMTP details into Zabbix, it seems like it is trying to send directly without Postfix, otherwise it would use the Postfix settings, right?

                              Mike DavisM 1 Reply Last reply Reply Quote 1
                              • Mike DavisM
                                Mike Davis @scottalanmiller
                                last edited by

                                @scottalanmiller
                                This command works:

                                sendmail <myemailaddress>@ntg.co < /tmp/email.txt
                                

                                That was to make sure that no firewalls or anything were getting in the way. That said, when I checked the headers, it didn't seem to connect directly to the o365 connector where I expected it to.

                                scottalanmillerS 1 Reply Last reply Reply Quote 0
                                • Mike DavisM
                                  Mike Davis @scottalanmiller
                                  last edited by

                                  @scottalanmiller said in Zabbix - email alerts:

                                  Let's stick to testing one thing at a time. Don't hit one hiccup and start ripping and replacing the entire email system. Chances are we are dealing with something really simple, like Zabbix isn't trying to send email or isn't trying to use the MTA. If we have to put SMTP details into Zabbix, it seems like it is trying to send directly without Postfix, otherwise it would use the Postfix settings, right?

                                  I agree.

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

                                    @Mike-Davis said in Zabbix - email alerts:

                                    That was to make sure that no firewalls or anything were getting in the way. That said, when I checked the headers, it didn't seem to connect directly to the o365 connector where I expected it to.

                                    Where did you expect it to? Should be TLS on Port 25.

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

                                      Before we head down any rabbit holes, change the settings in Zabbix to send to port 25 on the local machine.

                                      Mike DavisM 1 Reply Last reply Reply Quote 0
                                      • Mike DavisM
                                        Mike Davis @scottalanmiller
                                        last edited by

                                        @scottalanmiller said in Zabbix - email alerts:

                                        That was to make sure that no firewalls or anything were getting in the way. That said, when I checked the headers, it didn't seem to connect directly to the o365 connector where I expected it to.

                                        Where did you expect it to? Should be TLS on Port 25.

                                        scratch that. It did connect to protection.outlook.com

                                        I don't think TLS is needed because the connector in o365 is just set to allow the connection by IP address.

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

                                          @Mike-Davis said in Zabbix - email alerts:

                                          @scottalanmiller said in Zabbix - email alerts:

                                          That was to make sure that no firewalls or anything were getting in the way. That said, when I checked the headers, it didn't seem to connect directly to the o365 connector where I expected it to.

                                          Where did you expect it to? Should be TLS on Port 25.

                                          scratch that. It did connect to protection.outlook.com

                                          I don't think TLS is needed because the connector in o365 is just set to allow the connection by IP address.

                                          But Postfix is not configured for that, right? Only Zabbix is?

                                          1 Reply Last reply Reply Quote 0
                                          • Mike DavisM
                                            Mike Davis @scottalanmiller
                                            last edited by

                                            @scottalanmiller said in Zabbix - email alerts:

                                            Before we head down any rabbit holes, change the settings in Zabbix to send to port 25 on the local machine.

                                            so just set SMTP server to: localhost ?

                                            scottalanmillerS 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 2 / 4
                                            • First post
                                              Last post