Ad Widget

Collapse

SMTP alerts via custom port

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gee999
    Junior Member
    • Apr 2023
    • 2

    #1

    SMTP alerts via custom port

    Hi,

    Does anyone know if Zabbix supports custom ports for SMTP?
    It works when I use port 25 but it says 'cannot connect to server' when I use any other custom port number.
    The ports are not blocked on the SMTP server as other services use this custom port.

    We're running Zabbix 6.0 on CentOS 9 - I'm not sure if there are any blocks on the Linux end but I've allowed the custom port through the firewall on CentOS.

    Any help would be greatly appreciated.

    Thanks,
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    Check selinux. By default there is a restriction, so Zabbix can connect only "known" ports..
    If you want to determine whether zabbix can connect to all TCP ports, you must turn on the zabbix_can_network boolean. Disabled by default.

    setsebool -P zabbix_can_network 1
    Security-Enhanced Linux secures the zabbix processes via flexible mandatory access control. The zabbix processes execute with the zabbix_t SELinux type. You can

    Comment

    • gee999
      Junior Member
      • Apr 2023
      • 2

      #3
      Thank you cyber !!! That has fixed my issue

      Comment

      Working...