1
Server / Email server nepřijímá poštu
« kdy: 06. 10. 2010, 22:55:35 »
Ahojte, postavil som si mail server. Debian/mysql/postfix/dovecot.
Odosielanie mi funguje. Ale mam mensie problemy s prijimanim.Jeden server mam uz funkcny ale nemal som LDA a quoty. Preto som sa rozhodol postavit dalsi.
Inspiraciu som bral http://wiki.mediatemple.net/w/Setting_up_an_email_server_in_CentOS odtial.
A dict
Odosielanie mi funguje. Ale mam mensie problemy s prijimanim.Jeden server mam uz funkcny ale nemal som LDA a quoty. Preto som sa rozhodol postavit dalsi.
Inspiraciu som bral http://wiki.mediatemple.net/w/Setting_up_an_email_server_in_CentOS odtial.
Citace
Oct 6 12:26:39 server dovecot: dict: dict client: Unconfigured dictionary name 'quotadict'Dovecot :
Oct 6 12:26:39 server dovecot: deliver(test@blabla.eu): read(/var/run/dovecot/dict-server) failed: Remote disconnected
Oct 6 12:26:39 server dovecot: deliver(test@blabla.eu): Internal quota calculation error
Oct 6 12:26:39 server dovecot: deliver(test@blabla.eu): msgid=<20101006095255.A8E236F5D8@server.blabla.eu>: save failed to INBOX: Internal error occurred. Refer to server log for more information.
postfix/pipe[3319]: A8E236F5D8: to=<test@blabla.eu>, relay=dovecot, delay=38989, delays=38989/0.08/0/0.02, dsn=4.3.0, status=deferred (temporary failure)
Kód: [Vybrat]
server:~# cat /etc/dovecot/dovecot.conf | grep -v "^ *#" | grep -v "^ *$"
protocols = imap imaps pop3 pop3s
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_location = maildir:%hMaildir
mail_privileged_group = mail
protocol imap {
mail_plugins = quota imap_quota
}
protocol pop3 {
pop3_uidl_format = %08Xu%08Xv
mail_plugins = quota
pop3_uidl_format = %08Xu%08Xv
}
protocol managesieve {
}
protocol lda {
postmaster_address = postmaster@blabla.eu
mail_plugins = quota
}
auth default {
mechanisms = plain login cram-md5
passdb sql {
args = /etc/dovecot/dovecot-sql.conf
}
userdb prefetch {
}
userdb sql {
args = /etc/dovecot/dovecot-sql.conf
}
user = vmail
socket listen {
master {
path = /var/run/dovecot/auth-master
mode = 0600
user = vmail
}
client {
path = /var/run/dovecot/auth-client
mode = 0660
user = postfix
group = postfix
}
}
}
dict {
quota = mysql:/etc/dovecot/dovecot-dict-quota.conf
}
plugin {
quota = dict:user::proxy::quotadict
}
server:~#
A dict
Kód: [Vybrat]
server:~# cat /etc/dovecot/dovecot-dict-quota.conf
connect = host=localhost dbname=postfix user=postfix password=postfix2010
map {
pattern = priv/quota/storage
table = quota2
username_field = username
value_field = bytes
}
map {
pattern = priv/quota/messages
table = quota2
username_field = username
value_field = messages
}
server:~#