Ad Widget

Collapse

SMTP Authentication - Difficults while sending mail alerts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • WilliamSG
    Member
    • Jun 2014
    • 41

    #1

    SMTP Authentication - Difficults while sending mail alerts

    HI!

    On my company, the default smtp port (25) is blocked, so, by defaults I can't send mail alerts with Zabbix...

    Reading some topics about "How to change the default port" I found that is impossible, is that true?

    Well, assuming it's true I found this topic. The third message, from Dreas, explaim a simpler solution, I did it but still not working, on Zabbix audit I have the error "No media for "user""

    I'll explain my steps:

    1- Installed SendMail and start his process
    2- Created a script on "/usr/lib/zabbix/alertscripts/"
    Q: I created 2 scripts, because I'm not sure about the extension of the file, I created a file called "zabbix_sendemail.conf" and another "zabbix_sendmail". Tryied both, with same error. What's the extension of a script in this case?
    Here my script


    3- Ran chmod 755
    4- Configured the Media


    5- Changed the action to send only by SendMail media

    and here the result


    I'm open to another solutions to main problem: the block of port 25
  • WilliamSG
    Member
    • Jun 2014
    • 41

    #2
    Good news! I solved the problem...

    First I didn't installed sendemail, I had instaled sendmail.... $#@$%... another few things and now I can send e-mails using SMTP authentication, but...



    Take a look into "Zabbixmailto=$1" and others "$'s"... When I change the "$" for real valors (like an e-mail and the texts) the script works, but, even while using the $ and Zabbix, it's not replaced by my configurations on zabbix.

    In simple words, $1 ins't replaced by media mail, and $2 and $3 by the zabbix error values.

    Anyone can help me with this one?

    Comment

    Working...