[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: |
|
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 |