Skip to content

EMail (SMTP) Notification doesn't work with IPv6 anymoreΒ #6324

@tb1402

Description

@tb1402

πŸ“‘ I have found these related issues/pull requests

A search for the keywords 'smtp' and 'ipv6' didn't find something related.

πŸ›‘οΈ Security Policy

πŸ“ Description

I switched from version 1.23.17 to 2.0.2 recently, without any migration. As I don't have that many monitors, I just installed v2 and entered all the data again.

For some monitors in v1 I selectively filtered A or AAAA record with Adguard Home, as the HTTP monitor didn't had address family support back then. A domain filtered (allowing only AAAA) was the one of my mailserver, which is also used as a SMTP notification type.

Right after the new install of v2 the filters were still in place and returned only an IPv6 address for my mailserver domain, which resulted in a connection error while testing the connection in the Notifications section in the settings. As soon as i removed the filter, the IPv4 address was used by kuma to connect to the mailserver and to send the test EMail. So it seems like the functionality for SMTP Notification over IPv6 is somehow broken in v2.

πŸ‘Ÿ Reproduction steps

  • setup kuma v2
  • add a new notification with type EMail (SMTP) which uses a SMTP server domain that only has an IPv6 AAAA record in DNS
  • try to test the connection in the notification setup dialog
  • a connection error notification will be shown

πŸ‘€ Expected behavior

As it was in v1, kuma should automatically pick the IP family for the SMTP notification and not use fixed IPv4.

πŸ˜“ Actual Behavior

If the SMTP notification is used with an IPv6 only domain a connection error will show up.

🐻 Uptime-Kuma Version

2.0.2

πŸ’» Operating System and Arch

Debian 13 arm64

🌐 Browser

Firefox 141

πŸ–₯️ Deployment Environment

  • Runtime Environment:
    • Node.js: Version 20.19.2
  • Database:
    • SQLite: Embedded
  • Database Storage:
    • Filesystem:
      • Linux: ext4
    • Storage Medium: SSD
  • Uptime Kuma Setup:
    • Number of monitors: 11

πŸ“ Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions