Ad Widget

Collapse

Zabbix Sending Mail > Through Local Machine

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • low10sws6
    Member
    • Oct 2008
    • 44

    #1

    Zabbix Sending Mail > Through Local Machine

    How do i get zabbix to send mail through only the local machine
    I've tried everything from FQDN, IPs I'm getting an error of
    Wrong answer on RCPT TO [550 relay not permitted ]

    the zabbix server is also running a mail, i want to send mail through it's self.

    any Ideas?
  • cioris
    Member
    • Oct 2008
    • 30

    #2
    sendmail configuration

    First check if the sendmail is properly configured on the machine running zabbix server. Login as root (or any other regular unix user) and try to send an e-mail using mail/pine, etc.

    Ones you have it working just configure zabbix to use the local machine for e-mail notifications:

    Administration->Media Types->Email:
    Description: EMail (or whatever name you like)
    Type: email
    SMTP Server: localhost
    SMTP helo: localhost
    SMTP email: [email protected] (your email addres or whatever email address you want to be used for notifications)

    i hope it helps

    Comment

    • allrise
      Junior Member
      • Mar 2009
      • 18

      #3
      Originally posted by cioris
      First check if the sendmail is properly configured on the machine running zabbix server. Login as root (or any other regular unix user) and try to send an e-mail using mail/pine, etc.

      Ones you have it working just configure zabbix to use the local machine for e-mail notifications:

      Administration->Media Types->Email:
      Description: EMail (or whatever name you like)
      Type: email
      SMTP Server: localhost
      SMTP helo: localhost
      SMTP email: [email protected] (your email addres or whatever email address you want to be used for notifications)

      i hope it helps
      hi!!

      I am also facing an issue Wrong answer on RCPT TO [550 5.7.1 Unable to relay ]. I know the reason its because I am sending email to person of another domain..

      but this could be possible my SMTP server : xyz.com
      and I am sending mail to: [email protected]

      In this particular case what should I do.. pl guide me on this
      Last edited by allrise; 19-08-2009, 12:23.

      Comment

      • jgonzalez
        Junior Member
        • Aug 2009
        • 3

        #4
        Hi,

        As far as I know you cannot setup smtp authentication in Zabbix you should modify the security policies of your MTA for permitting this relay.

        You can also open your MTA to everybody but it could be dangerous and your server could be blacklisted.

        From my point of view the best choice in create an exception in your MTA for an specific source IP addresses and specific destination domains.

        I hope it helps

        Regards

        Comment

        • 1080
          Junior Member
          • Aug 2009
          • 2

          #5
          i dont have sendmail, can i configure zabbix to send emails through external mailserver somewhere in internet ?

          Comment

          • hellocgq
            Junior Member
            • Jul 2009
            • 6

            #6
            Mine is :
            ubuntu 9(in the ubuntu installing , I choosed mailserver too,it will default install sendmail. or,you can run apt-get install sendmail after you have installed ubuntu.)/zabbix 1.6.5

            while the installing of sendmail, it asked you to config "domain、host....",and I config the domain as "zabbix.net" or "myname.net",which you want is to be.

            and when I first login ubuntu,I create a user with name "alertmail"(or any name you like),just create a user without doing other things.

            then in zabbix,
            Administration->Media Types->Email:
            Description: EMail (or any words you like)
            Type: email
            SMTP Server: localhost(127.0.0.1)
            SMTP helo: localhost(or the hostname of the zabbix machine)
            SMTP email: [email protected](this parameter must be "the user you created @the domain you configured")

            and then,I config zabbix item、trigger、action,then I can recieve the alert mail from zabbix server.

            I am poor in English,wish it can help you.

            Comment

            • VIS
              Junior Member
              • Aug 2009
              • 1

              #7
              Here is a link for using Gmail as a sendmail relay. That should allow you to send mail to users outside your domain....just have to have a Gmail account or use Google Apps.

              After that is setup its just a matter of setting the email options in Zabbix to localhost described in the posts above.

              Comment

              Working...