Views:
Modify smtp_allow_client_ip to specify the client IP addresses (separated by a comma or space) that can connect to the IMSS daemon SMTP stream port.
  • If smtp_allow_client_ip is not specified, the default value is 127.0.0.1.
  • smtp_allow_client_ip supports IPv4 and IPv6 addresses in the following IP formats:
    127.0.0.1
    ::1
    123.123.123.123
    2001:db8:10ff::ae:44f2
    123.123.123.123/24
    2001:db8:10ff::ae:44f2/64
    123.123.123.123-223
    2001:db8:10ff::ae:44f2-45ff
For example, if you only want to allow a localhost (either IPv4 and IPv6) and the IPv6 address 2001:db8:10ff::ae:44f3 to connect to the daemon service, use the following configuration:
smtp_allow_client_ip=127.0.0.1, ::1, 2001:db8:10ff::ae:44f3