nsbin/postgresfixmailneu.sh
Nico Schottelius df2daf524d init
Signed-off-by: Nico Schottelius <nico@manager.schottelius.org>
2017-07-19 17:15:41 +02:00

16 lines
229 B
Bash

#!/bin/sh
[ "$#" -eq 2 ] || exit 1
user="$1"
domain="$2"
password="$3"
base=/home/server/mail
maildirmake.dovecot
cat << eof
insert into mailboxes values ('$user','$domain','$password','$domain/$user',1,1)
eof | psql mail