[ZBXNEXT-872] Recognition of specified SMTP server port in Email media type Created: 2011 Aug 07  Updated: 2015 May 06  Resolved: 2015 May 06

Status: Closed
Project: ZABBIX FEATURE REQUESTS
Component/s: Server (S)
Affects Version/s: None
Fix Version/s: None

Type: Change Request Priority: Minor
Reporter: alix Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: email, flexibility, trivial
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates ZBXNEXT-679 SMTP authentication support Closed
is duplicated by ZBXNEXT-2058 Extend Media-Type e-Mail with Port, S... Closed

 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)?



 Comments   
Comment by richlv [ 2015 May 06 ]

this will be implemented in ZBXNEXT-679 - closing this issue as a duplicate

Generated at Thu Apr 25 16:25:31 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.