vieux trucs

This commit is contained in:
Daniel STAN 2015-08-31 12:17:04 +02:00
parent 587b76d930
commit c9b3198e26
4 changed files with 8 additions and 6 deletions

View file

@ -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")

View file

@ -1,6 +0,0 @@
#!/bin/sh
echo "deprecated"
exit 1
exec /etc/init.d/intranet restart