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
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!
Greez BeNe