Guest User

Untitled

a guest
May 22nd, 2018
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. mail=# CREATE TABLE aliases (
  2. alias text NOT NULL,
  3. email text NOT NULL
  4. );
  5. mail=# CREATE TABLE users (
  6. email text NOT NULL,
  7. password text NOT NULL,
  8. maildir text NOT NULL,
  9. created timestamp with time zone DEFAULT now()
  10. );
  11.  
  12. mail=# CREATE TABLE domain (
  13. domain varchar(50) NOT NULL,
  14. node varchar(50),
  15. comment varchar(500),
  16. PRIMARY KEY (domain)
  17. );
  18.  
  19. virtual_alias_maps = proxy:pgsql:/etc/postfix/virtual_alias_maps.cf
  20. virtual_mailbox_domains = proxy:pgsql:/etc/postfix/virtual_mailbox_domains.cf
  21. virtual_mailbox_maps = proxy:pgsql:/etc/postfix/virtual_mailbox_maps.cf
  22.  
  23. user = postfix_user
  24. password = your-pass
  25. hosts = localhost
  26. dbname = postfix_db
  27. query = SELECT email FROM aliases WHERE alias='%s'
Add Comment
Please, Sign In to add comment