1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/emailpoubelle_ynh.git synced 2024-09-03 18:26:29 +02:00
emailpoubelle_ynh/src
2018-11-22 22:06:37 +01:00
..
bin Rename bin/migrate-0.3-1.0.php to src/bin/migrate-0.3-1.0.php 2018-11-18 15:39:45 +01:00
lang Delete fr_FR 2018-11-21 23:40:57 +01:00
lib Add files via upload 2018-11-18 15:49:16 +01:00
var Add files via upload 2018-11-18 15:49:16 +01:00
www update index.php pour retirer tous les exemples 2018-11-22 22:06:37 +01:00
.gitignore Rename .gitignore to src/.gitignore 2018-11-18 15:55:14 +01:00
CHANGELOG.md Rename CHANGELOG.md to src/CHANGELOG.md 2018-11-18 15:37:43 +01:00
conf-dist.php Update conf-dist.php 2018-11-22 21:03:57 +01:00
emailPoubelle.php Rename emailPoubelle.php to src/emailPoubelle.php 2018-11-18 15:38:28 +01:00
emailPoubelleAdmin.php Rename emailPoubelleAdmin.php to src/emailPoubelleAdmin.php 2018-11-18 15:38:48 +01:00
README.md Rename README.md to src/README.md 2018-11-18 15:54:42 +01:00

emailPoubelle.php

Un script pour un petit service d'email jetable

Installation

Installation des dépendances :

pear install Net_DNS2

Télécharger & décompresser les sources :

mkdir -p /www/emailPoubelle/postfix
cd /tmp
wget -O emailPoubelle.zip https://framagit.org/kepon/emailPoubellePhp/-/archive/master/emailPoubellePhp-master.zip
unzip emailPoubelle.zip
cp -r emailpoubelle-php-master/* /var/www/emailPoubelle

Configure apache virtualhost (ou autres serveur http) [...] DocumentRoot /var/www/emailPoubelle/www [...]

Configurer Postfix :

vi /etc/postfix/main.cf
    [...]
    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

Ajouter dans le fichier /etc/aliases le devnull

echo "devnull:	/dev/null" >> /etc/aliases
newaliases