Skip to content

kumo.uuid.new_v1()

Since: Version 2024.09.02-c5476b89

The functionality described in this section requires version 2024.09.02-c5476b89 of KumoMTA, or a more recent version.

Create a new version 1 UUID with the current timestamp and the current node ID.

The node ID is taken from the MAC address of the first non-loopback interface on the system. If there are no candidate interfaces, fall back to the gethostid() function, which, on most Linux systems, will attempt to load a host id from a file on the filesystem, or if that fails, resolve the hostname of the node to its IPv4 address using a reverse DNS lookup, and then derive some 32-bit number from that address through unspecified means.

See The UUID Object for more information about the returned UUID object.