Advertisement
Guest User

Untitled

a guest
Jul 12th, 2017
731
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.14 KB | None | 0 0
  1. driver = mysql
  2.  
  3. connect = host=127.0.0.1 dbname=mail user=admin password=XIOVwxasxvD
  4.  
  5. default_pass_scheme = SHA512-CRYPT
  6.  
  7.  
  8. user_query = SELECT CONCAT('/home/vmail/',CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1))) AS home, 5000 AS uid, 5000 AS gid, concat('*:bytes=', quota) AS quota_rule FROM users WHERE email='%u'
  9.  
  10.  
  11. password_query = SELECT email as user, password, 5000 AS userdb_uid, 5000 AS userdb_gid, concat('*:bytes=', quota) AS userdb_quota_rule FROM users WHERE email='%u';
  12.  
  13. plugin {
  14. quota_rule = *:bytes=1G
  15. quota_rule2 = Trash:storage=+100M
  16. quota_rule3 = Sent:storage=+100M
  17. }
  18.  
  19. plugin {
  20. quota_warning = storage=95%% quota-warning 95 %u
  21. quota_warning2 = storage=80%% quota-warning 80 %u
  22. }
  23.  
  24. service quota-warning {
  25. executable = script /usr/local/bin/quota-warning.sh
  26. user = vmail
  27. unix_listener quota-warning {
  28. user = vmail
  29. }
  30. }
  31.  
  32. plugin {
  33. quota = maildir:User quota
  34. }
  35. plugin {
  36. quota_grace = 10%%
  37. quota_grace = 50M
  38. }
  39. plugin {
  40. quota_over_flag_value = TRUE
  41.  
  42.  
  43.  
  44. quota_over_script = quota-warning mismatch %u
  45. }
  46.  
  47. Jul 12 18:48:57 mail postfix/smtp[23827]: 22A7FE884: to=<user@mydomain.com>, relay=127.0.0.1[127.0.0.1]:10024, conn_use=178, delay=17, delays=0.01/16/0.01/1.7, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 490A8D627)
  48. Jul 12 18:48:57 mail postfix/qmgr[25020]: 22A7FE884: removed
  49. Jul 12 18:48:57 mail postfix/pickup[24689]: 5C653E898: uid=5000 from=<vmail@mail.mydomain.com>
  50. Jul 12 18:48:57 mail postfix/cleanup[25288]: warning: connect to Milter service inet:localhost:9001: Cannot assign requested address
  51. Jul 12 18:48:57 mail postfix/cleanup[25288]: 5C653E898: message-id=<20170712184857.5C653E898@mail.mydomain.com>
  52. Jul 12 18:48:57 mail postfix/qmgr[25020]: 5C653E898: from=<vmail@mail.mydomain.com>, size=418, nrcpt=1 (queue active)
  53. Jul 12 18:48:58 mail postfix/smtpd[25228]: 389E6D627: client=localhost[127.0.0.1]
  54. Jul 12 18:48:58 mail postfix/cleanup[25288]: 389E6D627: message-id=<20170712184840.D489CE885@mail.mydomain.com>
  55. Jul 12 18:48:58 mail postfix/qmgr[25020]: 389E6D627: from=<vmail@mail.mydomain.com>, size=877, nrcpt=1 (queue active)
  56. Jul 12 18:48:58 mail dovecot: lmtp(24483): Debug: Quota root: name=User quota backend=maildir args=
  57. Jul 12 18:48:58 mail dovecot: lmtp(24483): Debug: Quota rule: root=User quota mailbox=* bytes=1073741824 messages=0
  58. Jul 12 18:48:58 mail dovecot: lmtp(24483): Debug: Quota rule: root=User quota mailbox=Trash bytes=+104857600 messages=0
  59. Jul 12 18:48:58 mail dovecot: lmtp(24483): Debug: Quota rule: root=User quota mailbox=Sent bytes=+104857600 messages=0
  60. Jul 12 18:48:58 mail dovecot: lmtp(24483): Debug: Quota warning: bytes=1020054732 (95%) messages=0 reverse=no command=quota-warning 95 raw mail user
  61. Jul 12 18:48:58 mail dovecot: lmtp(24483): Debug: Quota warning: bytes=858993459 (80%) messages=0 reverse=no command=quota-warning 80 raw mail user
  62. Jul 12 18:48:58 mail dovecot: lmtp(24483): Debug: Quota grace: root=User quota bytes=52428800
  63. Jul 12 18:48:58 mail dovecot: lmtp(24483): Debug: none: root=, index=, indexpvt=, control=, inbox=, alt=
  64. Jul 12 18:48:58 mail dovecot: lmtp(24483): Connect from local
  65. Jul 12 18:48:58 mail dovecot: auth: Debug: master in: USER#011104#011user@mydomain.com#011service=lmtp
  66. Jul 12 18:48:58 mail dovecot: auth-worker(15471): Debug: sql(user@mydomain.com): SELECT CONCAT('/home/vmail/',CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1))) AS home, 5000 AS uid, 5000 AS gid, concat('*:bytes=', quota) AS quota_rule FROM users WHERE email='user@mydomain.com'
  67. Jul 12 18:48:58 mail dovecot: auth: Debug: userdb out: USER#011104#011user@mydomain.com#011home=/home/vmail/mydomain.com/user#011uid=5000#011gid=5000#011quota_rule=*:bytes=102400
  68. Jul 12 18:48:58 mail dovecot: lmtp(user@mydomain.com): Debug: auth input: user@mydomain.com home=/home/vmail/mydomain.com/user uid=5000 gid=5000 quota_rule=*:bytes=102400
  69. Jul 12 18:48:58 mail dovecot: lmtp(user@mydomain.com): Debug: Added userdb setting: plugin/quota_rule=*:bytes=102400
  70. Jul 12 18:48:58 mail dovecot: lmtp(24483, user@mydomain.com): Debug: Effective uid=5000, gid=5000, home=/home/vmail/mydomain.com/user
  71. Jul 12 18:48:58 mail dovecot: lmtp(24483, user@mydomain.com): Debug: Quota root: name=User quota backend=maildir args=
  72. Jul 12 18:48:58 mail dovecot: lmtp(24483, user@mydomain.com): Debug: Quota rule: root=User quota mailbox=* bytes=102400 messages=0
  73. Jul 12 18:48:58 mail dovecot: lmtp(24483, user@mydomain.com): Debug: Quota rule: root=User quota mailbox=Trash bytes=+104857600 messages=0
  74. Jul 12 18:48:58 mail dovecot: lmtp(24483, user@mydomain.com): Debug: Quota rule: root=User quota mailbox=Sent bytes=+104857600 messages=0
  75. Jul 12 18:48:58 mail dovecot: lmtp(24483, user@mydomain.com): Debug: Quota warning: bytes=97280 (95%) messages=0 reverse=no command=quota-warning 95 user@mydomain.com
  76. Jul 12 18:48:58 mail dovecot: lmtp(24483, user@mydomain.com): Debug: Quota warning: bytes=81920 (80%) messages=0 reverse=no command=quota-warning 80 user@mydomain.com
  77. Jul 12 18:48:58 mail dovecot: lmtp(24483, user@mydomain.com): Debug: Quota grace: root=User quota bytes=52428800
  78. Jul 12 18:48:58 mail dovecot: lmtp(24483, user@mydomain.com): Debug: Namespace inbox: type=private, prefix=, sep=, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/home/vmail/mydomain.com/user
  79. Jul 12 18:48:58 mail dovecot: lmtp(24483, user@mydomain.com): Debug: maildir++: root=/home/vmail/mydomain.com/user, index=, indexpvt=, control=, inbox=/home/vmail/mydomain.com/user, alt=
  80. Jul 12 18:48:58 mail dovecot: lmtp(24483, user@mydomain.com): Debug: quota: quota_over_flag check: STORAGE ret=1 value=101 limit=100
  81. Jul 12 18:48:58 mail dovecot: lmtp(24483, user@mydomain.com): Debug: quota: quota_over_flag check: MESSAGE ret=0 value=99 limit=0
  82. Jul 12 18:48:58 mail dovecot: lmtp(24483, user@mydomain.com): Debug: quota: quota_over_flag=0((null)) vs currently overquota=1
  83. Jul 12 18:48:58 mail dovecot: lmtp(24483, user@mydomain.com): Debug: quota: Executing warning: quota-warning mismatch user@mydomain.com
  84. Jul 12 18:48:58 mail dovecot: lmtp(user@mydomain.com): 4GRuG8FuZlmjXwAAPxyzFw: msgid=<20170712184840.D489CE885@mail.mydomain.com>: save failed to INBOX: Quota exceeded (mailbox for user is full)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement