2013-08-07 15:17:49 +02:00
|
|
|
emailPoubelle.php
|
|
|
|
=============
|
|
|
|
|
|
|
|
Un script pour un petit service d'email jetable
|
|
|
|
|
|
|
|
* [Démo](http://poubelle.zici.fr/)
|
|
|
|
* [Page du projet](http://forge.zici.fr/p/emailpoubelle-php/)
|
|
|
|
* [Download](http://forge.zici.fr/p/emailpoubelle-php/source/download/master/)
|
|
|
|
* [Bug report](http://forge.zici.fr/p/emailpoubelle-php/issues/)
|
|
|
|
|
|
|
|
Installation
|
|
|
|
-----------
|
|
|
|
|
|
|
|
Installation des dépendances :
|
|
|
|
|
|
|
|
pear install Net_DNS2
|
|
|
|
|
|
|
|
Télécharger & décompresser les sources :
|
|
|
|
|
|
|
|
mkdir -p /www/emailPoubelle/postfix
|
|
|
|
cd /tmp
|
2018-11-16 13:36:55 +01:00
|
|
|
wget -O emailPoubelle.zip https://framagit.org/kepon/emailPoubellePhp/-/archive/master/emailPoubellePhp-master.zip
|
2013-08-07 15:17:49 +02:00
|
|
|
unzip emailPoubelle.zip
|
2014-01-05 23:23:09 +01:00
|
|
|
cp -r emailpoubelle-php-master/* /var/www/emailPoubelle
|
2013-11-18 15:43:30 +01:00
|
|
|
|
2018-11-16 13:36:55 +01:00
|
|
|
Configure apache virtualhost (ou autres serveur http)
|
2013-11-18 15:43:30 +01:00
|
|
|
[...]
|
|
|
|
DocumentRoot /var/www/emailPoubelle/www
|
|
|
|
[...]
|
2013-08-07 15:17:49 +02:00
|
|
|
|
|
|
|
Configurer Postfix :
|
|
|
|
|
|
|
|
vi /etc/postfix/main.cf
|
|
|
|
[...]
|
2014-01-05 23:23:09 +01:00
|
|
|
virtual_alias_maps = hash:/www/emailPoubelle/var/virtual
|
|
|
|
touch /www/emailPoubelle/var/virtual
|
|
|
|
/usr/sbin/postmap /www/emailPoubelle/var/virtual
|
|
|
|
chown www-data /www/emailPoubelle/var/virtual
|
|
|
|
chown www-data /www/emailPoubelle/var/virtual.db
|
2013-11-18 14:02:48 +01:00
|
|
|
|
2014-01-05 23:23:09 +01:00
|
|
|
Ajouter dans le fichier /etc/aliases le devnull
|
2013-11-18 14:02:48 +01:00
|
|
|
|
|
|
|
echo "devnull: /dev/null" >> /etc/aliases
|
|
|
|
newaliases
|