Advertisement
Guest User

Untitled

a guest
Sep 27th, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.26 KB | None | 0 0
  1. mysql_all_domain_alias:
  2. driver = redirect
  3. domains = +local_domains
  4. local_parts = alle
  5. data = ${lookup mysql{ SELECT CONCAT(username,'@',domain) AS sendto FROM users WHERE domain='${quote_mysql:$domain}' }}
  6. condition = ${if or {{
  7. def:authenticated_id
  8. }{
  9. eq {$sender_host_address}{127.0.0.1}
  10. }}
  11. }
  12. file_transport = address_file
  13. pipe_transport = address_pipe
  14.  
  15.  
  16. mysql_alias:
  17. driver = redirect
  18. domains = +local_domains
  19. file_transport = address_file
  20. pipe_transport = address_pipe
  21. data = ${if or {{
  22. def:authenticated_id
  23. }{
  24. eq {$sender_host_address}{127.0.0.1}
  25. }}{
  26. ${lookup mysql{ SELECT sendto FROM alias WHERE ( username='${quote_mysql:$local_part}' AND (domain='${quote_mysql:$domain}' OR domain='') )}}
  27. } {
  28. ${lookup mysql{ SELECT sendto FROM alias WHERE ( ( username='${quote_mysql:$local_part}' AND (domain='${quote_mysql:$domain}' OR domain='')) AND internal='NO' )}}
  29. }}
  30. local_part_suffix = +*
  31. local_part_suffix_optional
  32.  
  33. mysql_user_condition:
  34. driver = accept
  35. domains = +local_domains
  36. caseful_local_part = true
  37. condition = ${if and {{
  38. eq {${lookup mysql{
  39. SELECT CONCAT(username,'@',domain) AS email
  40. FROM users
  41. WHERE username='${quote_mysql:$local_part}'
  42. AND domain='${quote_mysql:$domain}'
  43. }{true}{false}}}{true}
  44. }{
  45. or {{
  46. and {{
  47. eq {${sg{$local_part_suffix}{^#([^#]+)#[0-9]{8}$}{$1}}}{before}
  48. }{
  49. lt {$tod_logfile}{${sg{$local_part_suffix}{^#[^#]+#([0-9]{8})$}{$1}}}
  50. }
  51. }
  52. }{
  53. and {{
  54. eq {${sg{$local_part_suffix}{^#([^#]+)#.*$}{$1}}}{fromdomain}
  55. }{
  56. eq {$sender_address_domain}{${sg{$local_part_suffix}{^#[^#]+#(.*)$}{$1}}}
  57. }
  58. }
  59. }{
  60. and {{
  61. eq {${sg{$local_part_suffix}{^#([^#]+)#.*$}{$1}}}{b64from}
  62. }{
  63. eq {${str2b64:$sender_address}}{${sg{$local_part_suffix}{^#[^#]+#(.*)$}{$1}}}
  64. }
  65. }
  66. }
  67. }
  68. }
  69. }
  70. }
  71. local_part_suffix = #*
  72. transport = local_mysql_delivery
  73.  
  74.  
  75. mysql_user:
  76. driver = accept
  77. domains = +local_domains
  78. condition = ${lookup mysql{
  79. SELECT CONCAT(username,'@',domain) AS email
  80. FROM users
  81. WHERE username='${quote_mysql:$local_part}'
  82. AND domain='${quote_mysql:$domain}'
  83. }{true}{false}}
  84. local_part_suffix = +*
  85. local_part_suffix_optional
  86. transport = local_mysql_delivery
  87. no_more
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement