Add postfix.set_myorigin() and set_mynetworks()

This commit is contained in:
Lance Edgar 2019-09-12 22:05:59 -05:00
parent 7b939ec4a3
commit 6b01b0d70d

View file

@ -71,6 +71,13 @@ def set_myhostname(c, hostname):
set_config(c, 'myhostname', hostname)
def set_myorigin(c, origin):
"""
Configure the 'myorigin' setting with the given string.
"""
set_config(c, 'myorigin', origin)
def set_mydestination(c, *destinations):
"""
Configure the 'mydestinations' setting with the given strings.
@ -78,6 +85,13 @@ def set_mydestination(c, *destinations):
set_config(c, 'mydestination', ', '.join(destinations))
def set_mynetworks(c, *networks):
"""
Configure the 'mynetworks' setting with the given strings.
"""
set_config(c, 'mynetworks', ' '.join(networks))
def set_relayhost(c, relayhost):
"""
Configure the 'relayhost' setting with the given string