1
0
Fork 0

start some backend work

git-svn-id: file:///home/www/usr01/svn/gnuviechadmin/gnuviech.info/gnuviechadmin/trunk@30 a67ec6bc-e5d5-0310-a910-815c51eb3124
This commit is contained in:
Jan Dittberner 2003-12-21 23:07:42 +00:00
parent 9cea2ab6b4
commit 283f07fbe1
4 changed files with 13 additions and 7 deletions

2
backend/.cvsignore Normal file
View File

@ -0,0 +1,2 @@
*.pyc
*.pyo

View File

@ -0,0 +1,4 @@
USERPREFIX="usr"
EXIMCONFDIR="etc/exim/"
VIRTUALDOMDIR=EXIMCONFDIR+"virtual/"
POPHOMEDIR="home/mail/"

2
backend/gvadm.py Normal file
View File

@ -0,0 +1,2 @@
import mailtools

View File

@ -2,9 +2,7 @@
import os, string
USERPREFIX="usr"
EXIMCONFDIR="etc/exim/"
VIRTUALDOMDIR=EXIMCONFDIR+"virtual/"
execfile('gvadm.preferences')
# if [ -n $USERPREFIX ]; then
# USERPREFIX="usr"
@ -29,6 +27,10 @@ VIRTUALDOMDIR=EXIMCONFDIR+"virtual/"
# echo "Herzlich willkommen auf dem GNU-Viech" | mail -s "Willkommen auf dem GNU-Viech" ${NEWUSER}
# echo added new pop3 user $NEWUSER with password $NEWPASS
def createpopaccount(domainname, sysuser):
"""Creates a pop3/imap account for given domain and system user"""
"addpopuser sysusrp<num>"
def readaliasfile(domainname):
"""reads the aliasfile for the given domain and returns a dictionary
object with the aliases
@ -62,10 +64,6 @@ def writealiasfile(domainname, aliases):
else:
print "no write access to directory "+VIRTUALDOMDIR+"."
def createpopaccount(domainname, sysuser):
"""Creates a pop3/imap account for given domain and system user"""
"addpopuser sysusrp<num>"
def setmailalias(domainname, alias, target):
"""sets a mail alias for given domain which directs the MTA to the
given target