Ad Widget

Collapse

Invalid email message

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • nbhanji
    Junior Member
    • Jan 2013
    • 16

    #1

    Invalid email message

    Hi,
    When I try to send an email that has + sign, I am unable to send a test email. I get an error - Invalid email address. I have tried sending email using thunderbird and gmail, and am successful. Attaching a image to see if anyone has run into this and how it is solved.

    Thanks in advance
    nb

    Click image for larger version

Name:	image.png
Views:	221
Size:	56.8 KB
ID:	450972
  • Answer selected by nbhanji at 16-12-2022, 03:21.
    dimir
    Zabbix developer
    • Apr 2011
    • 1080

    Zabbix is using standard PHP function filter_var with constant FILTER_VALIDATE_EMAIL which conforms to RFC5321 that says
    Code:
    4.5.3.1.1. Local-part
    
    The maximum total length of a user name or other local-part is 64
    octets.
    ​
    So, the error message is not there because of plus symbols but because it's just breaking the RFC that says the username part (the left-side of the @) cannot be longer than 64 symbols.

    What I can think of is you could use mail aliases to overcome this.
    Last edited by dimir; 07-09-2022, 10:29.

    Comment

    • dimir
      Zabbix developer
      • Apr 2011
      • 1080

      #2
      What Zabbix version? How long is the e-mail address part before @? I tested it here and could get this error when it was 64 and more symbols.

      Comment

      • nbhanji
        Junior Member
        • Jan 2013
        • 16

        #3
        zabbix_server (Zabbix) 6.0.8
        Revision c7c3044a4a2 29 August 2022, compilation time: Aug 29 2022 07:33:19

        Copyright (C) 2022 Zabbix SIA
        License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>.
        This is free software: you are free to change and redistribute it according to
        the license. There is NO WARRANTY, to the extent permitted by law.

        This product includes software developed by the OpenSSL Project
        for use in the OpenSSL Toolkit (http://www.openssl.org/).

        Compiled with OpenSSL 1.1.1f 31 Mar 2020
        Running with OpenSSL 1.1.1f 31 Mar 2020


        Number of characters is 79, the string is formed as "zchat+client-zabbix-notifications.<32 chars of HEX>.show-finder"@<domain>.com

        Comment

        • dimir
          Zabbix developer
          • Apr 2011
          • 1080

          #4
          Zabbix is using standard PHP function filter_var with constant FILTER_VALIDATE_EMAIL which conforms to RFC5321 that says
          Code:
          4.5.3.1.1. Local-part
          
          The maximum total length of a user name or other local-part is 64
          octets.
          ​
          So, the error message is not there because of plus symbols but because it's just breaking the RFC that says the username part (the left-side of the @) cannot be longer than 64 symbols.

          What I can think of is you could use mail aliases to overcome this.
          Last edited by dimir; 07-09-2022, 10:29.

          Comment

          • nbhanji
            Junior Member
            • Jan 2013
            • 16

            #5
            Thank you. I actually ended up going through the source and saw what you referenced. So I did use the shorter name email address. Thank you for your help.

            Comment

            Working...