Correction script redirection espace fichier config
This commit is contained in:
parent
81713c3d60
commit
1da1148b2e
4 changed files with 10 additions and 8 deletions
|
@ -24,7 +24,8 @@ echo "[OK]"
|
|||
|
||||
# Set default password
|
||||
echo -n "Setting default password.."
|
||||
echo "$user:password" | chpasswd
|
||||
password=$(pwgen -A -B -0 8 1)
|
||||
echo "$user:$password" | chpasswd
|
||||
echo "[OK]"
|
||||
|
||||
# Add account to members ML
|
||||
|
@ -37,4 +38,4 @@ echo -n "Reloading postfix..."
|
|||
postfix reload > /dev/null 2>&1
|
||||
echo "[OK]"
|
||||
|
||||
$SCRIPTPATH/sendmail_account.sh $user $email
|
||||
$SCRIPTPATH/sendmail_account.sh $user $email $password
|
||||
|
|
|
@ -39,7 +39,7 @@ postmap /etc/postfix/virtual_members
|
|||
echo "[OK]"
|
||||
|
||||
echo -n "Add redirection from $user to $email..."
|
||||
echo " $user $email" >> /etc/postfix/virtual_redirect
|
||||
echo "$user $email" >> /etc/postfix/virtual_redirect
|
||||
postmap /etc/postfix/virtual_redirect
|
||||
echo "[OK]"
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh
|
||||
users_num_robot=12
|
||||
users_num_robot=13
|
||||
|
||||
echo -n "Pre-processing..."
|
||||
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ $# -ne 2 ] ; then
|
||||
echo -e "Params:\t<username> <contact@email>" >&2
|
||||
if [ $# -ne 3 ] ; then
|
||||
echo -e "Params:\t<username> <contact@email> <password>" >&2
|
||||
exit
|
||||
fi
|
||||
|
||||
user=$1
|
||||
email=$2
|
||||
password=$3
|
||||
|
||||
echo -n "Sending mail to \"$email\" for account creation \"$user\"..."
|
||||
date=$( date -R )
|
||||
|
@ -23,8 +24,8 @@ Suite à votre adhésion à l'association Libre en Communs,
|
|||
nous avons mis en place les services que vous aviez demandés:
|
||||
|
||||
- Compte courriel $user@a-lec.org
|
||||
Identifiant: $user
|
||||
Mot de passe temporaire: password
|
||||
Identifiant: $user (ne pas mettre @a-lec.org)
|
||||
Mot de passe temporaire: $password
|
||||
|
||||
Serveur IMAP: mail.a-lec.org port 993 SSL/TLS
|
||||
Serveur SMTP: mail.a-lec.org port 587 STARTTLS
|
||||
|
|
Loading…
Reference in a new issue