How can I specify networks from which emails are allowed to be relayed

ucs-3-2
ucs

#1

Specify mail/postfix/mynetworks

You can specify networks from which relaying emails is allowed by setting the UCR variable mail/postfix/mynetworks:

Relaying is permitted for e-mails from the network(s) specified here. The format is described at . If the variable is unset, ‘127.0.0.0/8’ applies.

ucr set mail/postfix/mynetworks=“127.0.0.0/8 10.100.141.0/24”
/etc/init.d/postfix restart

Specify mail/postfix/mynetworks

You can specify networks from which relaying emails is allowed by setting the UCR variable mail/postfix/mynetworks:

Relaying is permitted for e-mails from the network(s) specified here. The format is described at . If the variable is unset, '127.0.0.0/8' applies.
ucr set mail/postfix/mynetworks="127.0.0.0/8 10.100.141.0/24"
/etc/init.d/postfix restart