Add anything@your.onion aliases (for sending and receiving)

This commit is contained in:
Daniel Winzen
2017-05-01 17:42:58 +02:00
parent c1f53feb94
commit f164927471
5 changed files with 13 additions and 5 deletions

5
etc/postfix/sql/alias.cf Normal file
View File

@ -0,0 +1,5 @@
user = postfix
password = MY_PASSWORD
hosts = localhost
dbname = hosting
query = SELECT '%d@dhosting4okcs22v.onion' FROM users WHERE '%d' = CONCAT(onion, '.onion')