Faire un message d'absence avec Qmail
Par Mickael Fradin le mardi, avril 29 2008, 12:22 - Serveur - Lien permanent
Le fichier dot qmail (.qmail) du repertoire utilisateur permet d'executer des commandes et redirections lors de la réception d'email.
Ce fichier doit être placé ici : /var/vpopmail/domains/mydomain.com/user1/.qmail
Voir la documentation officielle ici : http://www.qmail.org/man/man5/dot-qmail.html
Dans l'exemple ci-dessous nous renverrons un message à l'expediteur tout en en stockant le message dans la boite mail de destination.
Le fichier .qmail:
| cat .email | sed s/"\!SENDER\!"/$SENDER/g | /var/qmail/bin/qmail-inject /var/vpopmail/domains/mydomain.com/user1/.maildir/
L'email de réponse .email
From: "User 1" <user1@mydomain.com> To: !SENDER! Subject: Automatic response You would rather like to send messages to user2@mydomain.com. Thank you.
Et voilà, l'expéditeur sera averti de l'absence de la personne, mais l'email sera quand même receptionné. A vous de personnaliser le message bien sûr!
Commentaires
Hi, My name is christine,and I am one of the owners of Futures Best Nursery Academy in Fort Lee.I would like to Let you know about our summer program. Each week has a " theme", for example our first week, July 5th-9th is western week. One day will be having square dance lessons another will be making a wagon and so forth. We also have picnic days and sprinkler days daily. Please feel free to call or stop by to see all the other creative and exciting things we have in store for our kids this summer.
AAA This looks to be a very active website. How on earth do you keep up with approving all the comments?