Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-872

Recognition of specified SMTP server port in Email media type

    Details

    • Type: Change Request
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Server (S)

      Description

      Right now it's impossible to specify an arbitrary port in SMTP server Email media type. zbxmedia/email.c/send_email() assumes that incoming char *smtp_server doesn't contain any port definition as it's passed directly to zbx_tcp_connect() along with ZBX_DEFAULT_SMTP_PORT (25) port number.

      I hacked together a simple patch to add recognition of standard colon port notation, but I'd like to know what would be the official zabbix way of improving this, is it enough to patch zbxmedia/email.c/send_email() to recognize colon port notation, or more complex changes are required (such as adding a separate smtp server port field to database and frontend)?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                alix alix
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: