vieux trucs
This commit is contained in:
parent
587b76d930
commit
c9b3198e26
4 changed files with 8 additions and 6 deletions
|
@ -260,3 +260,11 @@ class ServerConnection(object):
|
|||
|
||||
def __exit__(self, type, value, traceback):
|
||||
self._conn.quit()
|
||||
|
||||
# TODO: intégrer ceci dans le ServerConnection
|
||||
def postconf(i):
|
||||
"Fixe la fréquence d'envoi maximale par client (en msg/min)"
|
||||
os.system("/usr/sbin/postconf -e smtpd_client_message_rate_limit=%s" % i)
|
||||
os.system("/etc/init.d/postfix reload")
|
||||
|
||||
# opt = commands.getoutput("/usr/sbin/postconf smtpd_client_message_rate_limit")
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo "deprecated"
|
||||
exit 1
|
||||
|
||||
exec /etc/init.d/intranet restart
|
Loading…
Add table
Add a link
Reference in a new issue