>[оверквотинг удален]
> ssl_key = </etc/ssl/private/dovecot.pem
> userdb {
> args = /etc/dovecot/dovecot-sql.conf
> driver = sql
> }
> protocol pop3 {
> pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
> pop3_uidl_format = %08Xu%08Xv
> }
> подскажите, что не так делаю?рабочий конф с боевого сервака:
$cat /usr/local/etc/dovecot.conf
base_dir = /var/run/dovecot/
protocols = pop3 imaps managesieve
ssl_cert_file=/usr/local/etc/dovecot/cert.pem
ssl_key_file=/usr/local/etc/dovecot/key.pem
mail_location = maildir:/var/mail/virtual/%d/%n
protocol imap {
# listen=*:143
ssl_listen=*:993
mail_plugins = quota imap_quota
imap_client_workarounds = delay-newmail outlook-idle netscape-eoh tb-extra-mailbox-sep
imap_logout_format = bytes=%i/%o
}
protocol pop3 {
# listen=*:110
ssl_listen=*:995
ssl_cert_file=/usr/local/etc/dovecot/cert.pem
ssl_key_file=/usr/local/etc/dovecot/key.pem
pop3_uidl_format = %08Xu%08Xv
pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
mail_plugins = quota
}
protocol lda {
postmaster_address = postmaster@xxxxxx.ru
hostname = xxx.xxxxxxx.ru
mail_plugins = quota sieve
deliver_log_format = msgid=%m: %$ %f
sendmail_path = /usr/sbin/sendmail
auth_socket_path = /var/run/dovecot/auth-master
}
shutdown_clients = yes
log_timestamp = "%Y-%m-%d %H:%M:%S "
login_log_format_elements = user=<%u> method=%m rip=%r lip=%l %c
syslog_facility = mail
first_valid_uid = 1981
last_valid_uid = 1981
first_valid_gid = 1981
last_valid_gid = 1981
maildir_stat_dirs = yes
maildir_copy_with_hardlinks = yes
maildir_copy_preserve_filename = no
namespace private {
separator = /
prefix =
inbox = yes
}
auth default {
mechanisms = plain login cram-md5
socket listen {
master {
path = /var/run/dovecot/auth-master
mode = 0600
user = virtual
group = virtual
}
client {
path = /var/spool/postfix/private/dovecot-smtp-auth
mode = 0660
user = postfix
group = postfix
}
}
passdb sql {
args = /usr/local/etc/dovecot-sql.conf
}
userdb sql {
args = /usr/local/etc/dovecot-sql.conf
}
user=virtual
}
plugin {
quota = maildir
quota_rule2 = Trash:storage=500M
sieve = ~/.dovecot.sieve
sieve_global_path = /var/mail/virtual/.sieve
}
$ cat /usr/local/etc/dovecot-sql.conf
driver = mysql
connect = host=/tmp/mysql.sock dbname=postfix user=postfix password=xxxxxxxxxxxxxxxx
default_pass_scheme = MD5-CRYPT
password_query = SELECT username AS user,password FROM mailbox WHERE username = '%u' AND active = '1' LIMIT 1
user_query = SELECT maildir, 1981 AS uid, 1981 AS gid, CONCAT('maildir:storage=', FLOOR( quota / 1024 ) ) AS quota FROM mailbox WHERE username = '%u' AND active = '1'
PS. uname=freebsd! по этому пути уж сами смотрите ) и сокеты... mysql тоже только через сокет /tmp/mysql.sock