Ad Widget

Collapse

Media type test successful but no email being received

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • KBBarbers
    Junior Member
    • Oct 2024
    • 12

    #1

    Media type test successful but no email being received


    Hi all,

    When I run a test on my generic SMTP media type I get a success which I believe means that both my SMTP server address, port number, and destination email address are correct. However the email is not actually received by the address specified in "Send to". I have confirmed that as well as the test not working, that attempts to send email on trigger also do not work.

    Click image for larger version

Name:	zabbix media test covered.png
Views:	288
Size:	19.3 KB
ID:	496652

    I have to say I don't have a good understanding of what SMTP Helo is and I wonder if that's my problem. My only other previous experience of using SMTP protocol is to set up email notifications on an Rsyslog server which didn't need SMTP Helo as a parameter and that worked fine.

    I tried following the example on wikipedia.org/wiki/Simple_Mail_Transfer_Protocol where they seemed to use FQDN in the format hostname.domain.org , but using MyHostName.MyDomainName.net has the same behavior while following the example format from the media type template which has SMTP Helo of "example.com" and setting it in my media type to "myDomainName.net" returns an error "wrong answer on HELO "501 5.5.54 Invalid domain name ..."

    the hostname and domain name I have been using is for my zabbix server. should this be for my mail server instead?

    Does anyone have any ideas of how to go about debugging this (or just fixing my configuration if its straightforward)?
  • KBBarbers
    Junior Member
    • Oct 2024
    • 12

    #2
    OK I actually just fixed this

    The problem was not SMTP Helo. In fact I left it blank and the test email was received fine. I'm assuming that in this case that it must simply use the domain from your email address.

    The actual problem was the "email" field which I guess in SMTP terms is the content to pass to the "MAIL FROM" command:

    The default value for this in the media type template is "[email protected]". I changed it to "[email protected]" and it worked! I'm guessing that our mail server refused to send an email from an address from a different example.com domain.

    Anyway I'll leave this post up in case it helps someone else in the future.

    Comment

    Working...