[ZBX-8585] Problem with email notifications on ipv6-enabled host Created: 2014 Aug 06  Updated: 2017 May 30  Resolved: 2014 Aug 06

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 2.2.4
Fix Version/s: None

Type: Incident report Priority: Trivial
Reporter: Denis Volkov Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: email, ipv6, notifications
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Debian Linux 7.6
Linux test-srv211 3.2.0-4-amd64 #1 SMP Debian 3.2.46-1 x86_64 GNU/Linux


Issue Links:
Duplicate
duplicates ZBX-2568 cannot send email alerts with IPv6 en... Closed

 Description   

I have zabbix server installation on ipv6-enabled host. Email notifications are configured to send email to localhost. But mailserver (exim4) is configured only on ipv4 addresses. Zabbix complains that it cannot send email to localhost:
> 30283:20140806:112635.337 In execute_action(): alertid [9] mediatype [0]
> 30283:20140806:112635.337 In send_email() smtp_server:'localhost'
> 30283:20140806:112635.337 cannot connect to SMTP server [localhost]: cannot connect to [[localhost]:25]: [111] Connection refused
> 30283:20140806:112635.337 End of send_email():FAIL
> 30283:20140806:112635.337 End of execute_action():FAIL
> 30283:20140806:112635.337 error sending alert ID [9]
At the same time telnet works without problem:
> telnet localhost 25
> Trying ::1...
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> 220 test-srv211 ESMTP Exim 4.80 Wed, 06 Aug 2014 11:33:41 +0600
> quit
> 221 test-srv211 closing connection
> Connection closed by foreign host.
Looks like telnet falls back to ipv4 address when ipv6 address is not enabled, while Zabbix server does not.
Some


Generated at Fri Mar 14 12:55:11 EET 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.