@ -1,11 +1,29 @@
# trash-email-alias
a dovecot sieve 's script and configuration to generate random alias
a dovecot sieve 's script and configuration to generate a temporary random alias
# usage
Just send an email to the configured em-mail generator. It will respond you and indicate what is your alias.
You can test it by sending a mail to [ getalias Arobaze tinad.fr ]
# Configure
Need dovecot and dovecot pigeon hole.
You need an e-mail server with dovecot and sieve. The mail box structure is the classical one.
Add a colomn named "temporary" type Boolean, default 0 to the table alias. So alias table structure is:
+-----------+--------------+------+-----+---------------------+-------+
| Field | Type | Null | Key | Default | Extra |
+-----------+--------------+------+-----+---------------------+-------+
| address | varchar(255) | NO | PRI | | |
| goto | text | NO | | NULL | |
| domain | varchar(255) | NO | | | |
| created | datetime | NO | | 0000-00-00 00:00:00 | |
| modified | datetime | NO | | 0000-00-00 00:00:00 | |
| active | tinyint(1) | NO | | 1 | |
| temporary | tinyint(1) | NO | | 0 | |
+-----------+--------------+------+-----+---------------------+-------+
On /etc/dovecot/dovecot.conf my plugin section looks like:
plugin {
@ -29,4 +47,8 @@ On /etc/dovecot/dovecot.conf my plugin section looks like:
(...)
}
Change your mysql credentials on cron/purge.sh and execute/genalias.sh
In my case, this files are owned by the unix user "dovecot".
Add purge.sh on your crontab. Evrey 10 minutes is enougth.