Current time: 05-08-2024, 01:10 PM Hello There, Guest! (LoginRegister)


Post Reply 
Roundcube quota error
Author Message
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #11
RE: Roundcube quota error
Quote:No I don't have it implemented. I rather have the mails stuck in my queue as bounced to the sender... So I am able to get in touch with the customer and after he deleted some messages or bought more quota I can flush the queue and he receive his mails...
Make sense and he get´s every mail!

I fixed something now and the most works now Smile Means the Quota with 1GB and the mail delivering! BUT Filtering (pysieved) doesn´t work anymore.
I can see my old filters and create a new one, but without any effect!

Here is my config:
Code:
# 1.1.9: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.9-023stab048.4-smp i686 Debian 5.0 reiserfs
base_dir: /var/run/dovecot/
protocols: imap pop3 imaps pop3s
disable_plaintext_auth: no
login_dir: /var/run/dovecot//login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
mail_access_groups: mail
mail_location: maildir:/var/mail/virtual/%d/%n
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/pop3
mail_plugins(default): quota imap_quota
mail_plugins(imap): quota imap_quota
mail_plugins(pop3): quota
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
pop3_uidl_format(default): %08Xu%08Xv
pop3_uidl_format(imap): %08Xu%08Xv
pop3_uidl_format(pop3): %u-%v
namespace:
  type: private
  prefix: INBOX.
  inbox: yes
  list: yes
  subscriptions: yes
auth pysieved:
  mechanisms: plain login
  verbose: yes
  passdb:
    driver: checkpassword
    args: /var/www/ispcp/engine/ispcp-dovecot-mngr
  userdb:
    driver: prefetch
  userdb:
    driver: sql
    args: /etc/dovecot/dovecot-sql-domain.conf
  userdb:
    driver: sql
    args: /etc/dovecot/dovecot-sql-aliasdomain.conf
  userdb:
    driver: sql
    args: /etc/dovecot/dovecot-sql-subdomain.conf
  socket:
    type: listen
    client:
      path: /var/run/pysieved/auth
      mode: 432
      user: vmail
      group: mail
    master:
      path: /var/run/pysieved/auth-master
      mode: 432
      user: vmail
      group: mail
auth default:
  mechanisms: plain login
  verbose: yes
  passdb:
    driver: checkpassword
    args: /var/www/ispcp/engine/ispcp-dovecot-mngr
  userdb:
    driver: prefetch
  userdb:
    driver: sql
    args: /etc/dovecot/dovecot-sql-domain.conf
  userdb:
    driver: sql
    args: /etc/dovecot/dovecot-sql-aliasdomain.conf
  userdb:
    driver: sql
    args: /etc/dovecot/dovecot-sql-subdomain.conf
  socket:
    type: listen
    client:
      path: /var/spool/postfix/private/auth
      mode: 432
      user: postfix
      group: postfix
    master:
      path: /var/run/dovecot/auth-master
      mode: 432
      user: vmail
      group: mail
plugin:
  quota: maildir:User quota
  quota_rule: *:storage=1G
And here is the SQL String i´m currently using:
(dovecot-sql-domain.conf)
Code:
user_query = SELECT concat('/var/mail/virtual/', domain.domain_name, '/',mail_acc) as home, '1000' as uid, '8' as gid, concat('maildir:storage=', floor(quota/1024)) AS quota FROM mail_users inner join domain on mail_users.domain_id = domain.domain_id WHERE mail_acc='%n' and (mail_type='normal_mail' OR mail_type='normal_mail,normal_forward');
As you can see, this is the string from the HowTo and not the String that you posted. It is more or less a mix of both and work.
This is the on you posted some post before with the 1GB Quota:
Code:
user_query = SELECT concat('/var/mail/virtual/', domain.domain_name, '/',mail_acc) as home, '1000' as uid, '8' as gid, concat(''*:bytes='', quota) AS quota_rule FROM mail_users inner join domain on mail_users.domain_id = domain.domain_id WHERE mail_acc='%n' and (mail_type='normal_mail' OR mail_type='normal_mail,normal_forward');
But with this i get Errors in the mail.log and pysieved doesn´t work so i get no e-Mails:
Code:
auth-worker(default): sql(bene@mydomain.tld): User query failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':bytes='', quota) AS quota_rule FROM mail_users inner join domain on mail_users.' at line 1
Mar  7 00:28:41 vsXXXX dovecot: auth-worker(default): sql(bene@mydomain.tld): Unknown user
But why ?


Quote:Hmm I might need some sleep ;-)
Dito! Wink

Greez BeNe
03-07-2009 11:10 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Roundcube quota error - saracibar - 02-28-2009, 05:35 PM
RE: Roundcube quota error - saracibar - 03-07-2009, 03:34 AM
RE: Roundcube quota error - rbtux - 03-07-2009, 03:41 AM
RE: Roundcube quota error - BeNe - 03-07-2009, 07:36 AM
RE: Roundcube quota error - rbtux - 03-07-2009, 08:08 AM
RE: Roundcube quota error - BeNe - 03-07-2009, 08:55 AM
RE: Roundcube quota error - rbtux - 03-07-2009, 09:15 AM
RE: Roundcube quota error - BeNe - 03-07-2009, 09:22 AM
RE: Roundcube quota error - BeNe - 03-07-2009, 10:22 AM
RE: Roundcube quota error - rbtux - 03-07-2009, 10:52 AM
RE: Roundcube quota error - BeNe - 03-07-2009 11:10 AM
RE: Roundcube quota error - rbtux - 03-07-2009, 11:19 AM
RE: Roundcube quota error - BeNe - 03-07-2009, 10:11 PM
RE: Roundcube quota error - rbtux - 03-07-2009, 10:29 PM
RE: Roundcube quota error - BeNe - 03-07-2009, 11:06 PM
RE: Roundcube quota error - TheCry - 03-12-2009, 03:19 AM
RE: Roundcube quota error - BeNe - 03-12-2009, 03:54 AM
RE: Roundcube quota error - TheCry - 03-12-2009, 04:12 AM
RE: Roundcube quota error - BeNe - 03-12-2009, 05:06 PM
RE: Roundcube quota error - FISA4 - 03-13-2009, 08:31 AM
RE: Roundcube quota error - rbtux - 03-13-2009, 09:24 AM
RE: Roundcube quota error - FISA4 - 03-13-2009, 09:32 AM
RE: Roundcube quota error - BeNe - 03-13-2009, 04:45 PM
RE: Roundcube quota error - FISA4 - 03-13-2009, 11:13 PM
RE: Roundcube quota error - alecksievici - 03-14-2009, 04:43 PM
RE: Roundcube quota error - fhawk - 03-14-2009, 07:42 PM
RE: Roundcube quota error - BeNe - 03-15-2009, 01:37 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)