Add postfix.set_myorigin()
and set_mynetworks()
This commit is contained in:
parent
7b939ec4a3
commit
6b01b0d70d
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue