-
-
Notifications
You must be signed in to change notification settings - Fork 3
vipmap.1
vipmap - maps an ip address to a virtual domain
vipmap [ options ] ip_address virtual_domain
vipmap maps an ip address to a virtual domain. During authentication if any connection from an mapped ip address gives a user without the domain part, the same will be used from an existing mapping. In case a host has multiple ip addresses, individual ip addresses can be mapped to individual virtual domains. This can be used instead of the environment variable DEFAULT_DOMAIN or INDIMAIL_DOMAIN. The environment variable INDIMAIL_DOMAIN takes precedence.
-v
Sets verbose option.
-d ipaddr
Deletes mapping for ip address ipaddr and domain virtual_domain
-i ipaddr
Adds a mapping between IP address ipaddr and domain virtual_domain
-p
Prints mapping between all IP addresses and virtual domains.
virtual_domain
Name of the new virtual domain.
for -p, -a option, 0 if all steps were successful, non-zero otherwise. for all other options, it returns number of rows affected or 111 for failure If any of the steps fail, a diagnostic message is printed.