Changeset - 6b01b0d70d92
[Not reviewed]
0 1 0
Lance Edgar - 5 years ago 2019-09-13 13:24:09
lance@edbob.org
Add `postfix.set_myorigin()` and `set_mynetworks()`
1 file changed with 14 insertions and 0 deletions:
0 comments (0 inline, 0 general) First comment
rattail_fabric2/postfix.py
Show inline comments
 
@@ -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
0 comments (0 inline, 0 general) First comment
You need to be logged in to comment. Login now