Add anything@your.onion aliases (for sending and receiving)
This commit is contained in:
@ -41,7 +41,7 @@ inet_protocols = all
|
||||
#relay_domains = onion
|
||||
relay_domains = !dhosting4okcs22v.onion onion lelantos.org mail2tor.com anoninbox.net anonplus.org o3mail.org volatile.ch danwin1210.me
|
||||
home_mailbox = Maildir/
|
||||
canonical_maps = regexp:/etc/postfix/canonical
|
||||
canonical_maps = proxy:mysql:/etc/postfix/sql/alias.cf regexp:/etc/postfix/canonical
|
||||
ignore_mx_lookup_error = yes
|
||||
always_add_missing_headers = yes
|
||||
message_drop_headers = bcc content-length resent-bcc return-path x-mailer received x-originating-ip x-original-to user-agent
|
||||
|
@ -1 +1,2 @@
|
||||
/(.*)@dhosting4okcs22v.onion/ $1@dhosting4okcs22v.onion
|
||||
/@([a-z2-7]{16}).onion/ $1.onion@dhosting4okcs22v.onion
|
||||
|
5
etc/postfix/sql/alias.cf
Normal file
5
etc/postfix/sql/alias.cf
Normal 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')
|
Reference in New Issue
Block a user