Помогите!!! где-то в конфиге ошибка!!! Настраивал Exim+Dovecot+Mysql!!! посылаю письмо почтовым клиентом bat!! Exim получает и читает!! а dovecot пишет 0 messeges inbox!!тоесть нифега нету!!!!!!!!!В логах пишeт что то типа этого!!!!! Exim: roman@mail.kiev.ua H=localhost (nmail.kiev.ua) [127.0.0.1] P=smtp S=256 from <rom@mail.kiev.ua> for bobot@nmail.kiev.ua
2008-05-27 15:13:09 1K10rG-0001Wk-9T => bobot <bobot@nmail.kiev.ua> R=virtual_localuser T=local_delivery
2008-05-27 15:13:09 1K10rG-0001Wk-9T Completed
Dovecot: May 27 09:55:03 newmail dovecot: Dovecot v1.0.7 starting up
May 27 09:55:03 nmail dovecot: auth-worker(default): mysql: Connected to localhost (exim)
May 27 09:55:04 nmail dovecot: auth(default): new auth connection: pid=4688
May 27 09:55:04 nmail dovecot: auth(default): new auth connection: pid=4690
May 27 09:55:04 nmail dovecot: auth(default): new auth connection: pid=4691
May 27 09:55:04 nmail dovecot: auth(default): new auth connection: pid=4692
May 27 09:55:04 nmail dovecot: auth(default): new auth connection: pid=4693
May 27 09:55:04 nmail dovecot: auth(default): new auth connection: pid=4689
>[оверквотинг удален]
>2008-05-27 15:13:09 1K10rG-0001Wk-9T => bobot <bobot@nmail.kiev.ua> R=virtual_localuser T=local_delivery
>2008-05-27 15:13:09 1K10rG-0001Wk-9T Completed
>Dovecot: May 27 09:55:03 newmail dovecot: Dovecot v1.0.7 starting up
>May 27 09:55:03 nmail dovecot: auth-worker(default): mysql: Connected to localhost (exim)
>May 27 09:55:04 nmail dovecot: auth(default): new auth connection: pid=4688
>May 27 09:55:04 nmail dovecot: auth(default): new auth connection: pid=4690
>May 27 09:55:04 nmail dovecot: auth(default): new auth connection: pid=4691
>May 27 09:55:04 nmail dovecot: auth(default): new auth connection: pid=4692
>May 27 09:55:04 nmail dovecot: auth(default): new auth connection: pid=4693
>May 27 09:55:04 nmail dovecot: auth(default): new auth connection: pid=4689Включай лог на dovecot и показывай попытку забрать почту
вот лог Dovecot:May 28 09:47:59 newmail dovecot: auth-worker(default): mysql: Connected to localhost (exim)
May 28 09:48:00 newmail dovecot: auth(default): new auth connection: pid=8480
May 28 09:48:00 newmail dovecot: auth(default): new auth connection: pid=8482
May 28 09:48:00 newmail dovecot: auth(default): new auth connection: pid=8477
May 28 09:48:00 newmail dovecot: auth(default): new auth connection: pid=8478
May 28 09:48:00 newmail dovecot: auth(default): new auth connection: pid=8479
May 28 09:48:00 newmail dovecot: auth(default): new auth connection: pid=8481
May 28 09:48:54 newmail dovecot: auth(default): new auth connection: pid=8485
May 28 09:49:10 newmail dovecot: auth(default): client in: AUTH 1 PLAIN service=POP3 secured lip=127.0.0.1 rip=127.0.0.1 resp=<hidden>
May 28 09:49:10 newmail dovecot: auth-worker(default): sql(bobot@newmail.univ.kiev.ua,127.0.0.1): query: SELECT `username` as `user`, `password` FROM `newmailbox` WHERE `username` = 'bobot@newmail.univ.kiev.ua' AND `active`='1'
May 28 09:49:10 newmail dovecot: auth(default): client out: OK 1 user=bobot@newmail.univ.kiev.ua
May 28 09:49:10 newmail dovecot: auth(default): master in: REQUEST 1 8479 1
May 28 09:49:10 newmail dovecot: auth-worker(default): sql(bobot@newmail.univ.kiev.ua,127.0.0.1): SELECT `maildir`, `home`, `uid`, `gid` FROM `newmailbox` WHERE `username` = 'bobot@newmail.univ.kiev.ua' AND `active`='1'
May 28 09:49:10 newmail dovecot: auth(default): master out: USER 1 bobot@newmail.univ.kiev.ua maildir=/var/spool/mail/test home=/home/bobot/ uid=1000 gid=12
May 28 09:49:10 newmail dovecot: pop3-login: Login: user=<bobot@newmail.univ.kiev.ua>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
May 28 09:49:10 newmail dovecot: POP3(bobot@newmail.univ.kiev.ua): Effective uid=1000, gid=12
May 28 09:49:10 newmail dovecot: POP3(bobot@newmail.univ.kiev.ua): maildir: data=/var/mail/exim/bobot@newmail.univ.kiev.ua
May 28 09:49:10 newmail dovecot: POP3(bobot@newmail.univ.kiev.ua): maildir: root=/var/mail/exim/bobot@newmail.univ.kiev.ua, index=/var/mail/exim/bobot@newmail.univ.kiev.ua, control=, inbox=
May 28 09:49:21 newmail dovecot: POP3(bobot@newmail.univ.kiev.ua): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
May 28 09:47:59 newmail dovecot: auth-worker(default): mysql: Connected to localhost (exim)
May 28 09:48:00 newmail dovecot: auth(default): new auth connection: pid=8480
May 28 09:48:00 newmail dovecot: auth(default): new auth connection: pid=8482
May 28 09:48:00 newmail dovecot: auth(default): new auth connection: pid=8477
May 28 09:48:00 newmail dovecot: auth(default): new auth connection: pid=8478
May 28 09:48:00 newmail dovecot: auth(default): new auth connection: pid=8479
May 28 09:48:00 newmail dovecot: auth(default): new auth connection: pid=8481
May 28 09:48:54 newmail dovecot: auth(default): new auth connection: pid=8485
May 28 09:49:10 newmail dovecot: auth(default): client in: AUTH 1 PLAIN service=POP3 secured lip=127.0.0.1 rip=127.0.0.1 resp=<hidden>
May 28 09:49:10 newmail dovecot: auth-worker(default): sql(bobot@newmail.univ.kiev.ua,127.0.0.1): query: SELECT `username` as `user`, `password` FROM `newmailbox` WHERE `username` = 'bobot@newmail.univ.kiev.ua' AND `active`='1'
May 28 09:49:10 newmail dovecot: auth(default): client out: OK 1 user=bobot@newmail.univ.kiev.ua
May 28 09:49:10 newmail dovecot: auth(default): master in: REQUEST 1 8479 1
May 28 09:49:10 newmail dovecot: auth-worker(default): sql(bobot@newmail.univ.kiev.ua,127.0.0.1): SELECT `maildir`, `home`, `uid`, `gid` FROM `newmailbox` WHERE `username` = 'bobot@newmail.univ.kiev.ua' AND `active`='1'
May 28 09:49:10 newmail dovecot: auth(default): master out: USER 1 bobot@newmail.univ.kiev.ua maildir=/var/spool/mail/test home=/home/bobot/ uid=1000 gid=12
May 28 09:49:10 newmail dovecot: pop3-login: Login: user=<bobot@newmail.univ.kiev.ua>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
May 28 09:49:10 newmail dovecot: POP3(bobot@newmail.univ.kiev.ua): Effective uid=1000, gid=12
May 28 09:49:10 newmail dovecot: POP3(bobot@newmail.univ.kiev.ua): maildir: data=/var/mail/exim/bobot@newmail.univ.kiev.ua
May 28 09:49:10 newmail dovecot: POP3(bobot@newmail.univ.kiev.ua): maildir: root=/var/mail/exim/bobot@newmail.univ.kiev.ua, index=/var/mail/exim/bobot@newmail.univ.kiev.ua, control=, inbox=
May 28 09:49:21 newmail dovecot: POP3(bobot@newmail.univ.kiev.ua): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
>May 28 09:49:10 newmail dovecot: auth(default): master out: USER 1
>bobot@newmail.univ.kiev.ua maildir=/var/spool/mail/test home=/home/bobot/
> uid=1000 gid=12
>May 28 09:49:10 newmail dovecot: POP3(bobot@newmail.univ.kiev.ua): maildir: root=/var/mail/exim/bobot@newmail.univ.kiev.ua, index=/var/mail/exim/bobot@newmail.univ.kiev.ua, control=, inbox=А то, что разные каталоги указаны после maildir в вышеприведенных строках это нормально?
тоесть мне надо в конфиге Dovecot изменить строчку
default_mail_env = maildir:/var/mail/exim/%n@%d на
default_mail_env = maildir:/var/spool/mail/test/%n@%d
вот испарвил ошибку но не фига!! вот конфиг---
May 28 12:51:09 newmail dovecot: Dovecot v1.0.7 starting up
May 28 12:51:09 newmail dovecot: auth-worker(default): mysql: Connected to localhost (exim)
May 28 12:51:10 newmail dovecot: auth(default): new auth connection: pid=9164
May 28 12:51:10 newmail dovecot: auth(default): new auth connection: pid=9165
May 28 12:51:10 newmail dovecot: auth(default): new auth connection: pid=9166
May 28 12:51:10 newmail dovecot: auth(default): new auth connection: pid=9167
May 28 12:51:10 newmail dovecot: auth(default): new auth connection: pid=9168
May 28 12:51:10 newmail dovecot: auth(default): new auth connection: pid=9169
May 28 12:51:36 newmail dovecot: auth(default): new auth connection: pid=9171
May 28 12:52:05 newmail dovecot: auth(default): client in: AUTH 1 PLAIN service=POP3 secured lip=127.0.0.1 rip=127.0.0.1 resp=<hidden>
May 28 12:52:05 newmail dovecot: auth-worker(default): sql(bobot@newmail.univ.kiev.ua,127.0.0.1): query: SELECT `username` as `user`, `password` FROM `newmailbox` WHERE `username` = 'bobot@newmail.univ.kiev.ua' AND `active`='1'
May 28 12:52:05 newmail dovecot: auth(default): client out: OK 1 user=bobot@newmail.univ.kiev.ua
May 28 12:52:05 newmail dovecot: auth(default): master in: REQUEST 1 9166 1
May 28 12:52:05 newmail dovecot: auth-worker(default): sql(bobot@newmail.univ.kiev.ua,127.0.0.1): SELECT `maildir`, `home`, `uid`, `gid` FROM `newmailbox` WHERE `username` = 'bobot@newmail.univ.kiev.ua' AND `active`='1'
May 28 12:52:05 newmail dovecot: auth(default): master out: USER 1 bobot@newmail.univ.kiev.ua maildir=/var/spool/mail/test home=/home/bobot/ uid=1000 gid=12
May 28 12:52:05 newmail dovecot: pop3-login: Login: user=<bobot@newmail.univ.kiev.ua>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
May 28 12:52:05 newmail dovecot: POP3(bobot@newmail.univ.kiev.ua): Effective uid=1000, gid=12
May 28 12:52:05 newmail dovecot: POP3(bobot@newmail.univ.kiev.ua): maildir: data=/var/spool/mail/test/bobot@newmail.univ.kiev.ua
May 28 12:52:05 newmail dovecot: POP3(bobot@newmail.univ.kiev.ua): maildir: root=/var/spool/mail/test/bobot@newmail.univ.kiev.ua, index=/var/spool/mail/test/bobot@newmail.univ.kiev.ua, control=, inbox=
May 28 12:52:47 newmail dovecot: POP3(bobot@newmail.univ.kiev.ua): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
May 28 09:47:59 newmail dovecot: Dovecot v1.0.7 starting up
May 28 09:47:59 newmail dovecot: auth-worker(default): mysql: Connected to localhost (exim)
May 28 09:48:00 newmail dovecot: auth(default): new auth connection: pid=8480
May 28 09:48:00 newmail dovecot: auth(default): new auth connection: pid=8482
May 28 09:48:00 newmail dovecot: auth(default): new auth connection: pid=8477
May 28 09:48:00 newmail dovecot: auth(default): new auth connection: pid=8478
May 28 09:48:00 newmail dovecot: auth(default): new auth connection: pid=8479
May 28 09:48:00 newmail dovecot: auth(default): new auth connection: pid=8481
May 28 09:48:54 newmail dovecot: auth(default): new auth connection: pid=8485
May 28 09:49:10 newmail dovecot: auth(default): client in: AUTH 1 PLAIN service=POP3 secured lip=127.0.0.1 rip=127.0.0.1 resp=<hidden>
May 28 09:49:10 newmail dovecot: auth-worker(default): sql(bobot@newmail.univ.kiev.ua,127.0.0.1): query: SELECT `username` as `user`, `password` FROM `newmailbox` WHERE `username` = 'bobot@newmail.univ.kiev.ua' AND `active`='1'
May 28 09:49:10 newmail dovecot: auth(default): client out: OK 1 user=bobot@newmail.univ.kiev.ua
May 28 09:49:10 newmail dovecot: auth(default): master in: REQUEST 1 8479 1
May 28 09:49:10 newmail dovecot: auth-worker(default): sql(bobot@newmail.univ.kiev.ua,127.0.0.1): SELECT `maildir`, `home`, `uid`, `gid` FROM `newmailbox` WHERE `username` = 'bobot@newmail.univ.kiev.ua' AND `active`='1'
May 28 09:49:10 newmail dovecot: auth(default): master out: USER 1 bobot@newmail.univ.kiev.ua maildir=/var/spool/mail/test home=/home/bobot/ uid=1000 gid=12
May 28 09:49:10 newmail dovecot: pop3-login: Login: user=<bobot@newmail.univ.kiev.ua>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
May 28 09:49:10 newmail dovecot: POP3(bobot@newmail.univ.kiev.ua): Effective uid=1000, gid=12
May 28 09:49:10 newmail dovecot: POP3(bobot@newmail.univ.kiev.ua): maildir: data=/var/mail/exim/bobot@newmail.univ.kiev.ua
May 28 09:49:10 newmail dovecot: POP3(bobot@newmail.univ.kiev.ua): maildir: root=/var/mail/exim/bobot@newmail.univ.kiev.ua, index=/var/mail/exim/bobot@newmail.univ.kiev.ua, control=, inbox=
May 28 09:49:21 newmail dovecot: POP3(bobot@newmail.univ.kiev.ua): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
May 28 09:47:59 newmail dovecot: Dovecot v1.0.7 starting up
May 28 09:47:59 newmail dovecot: auth-worker(default): mysql: Connected to local host (exim)
May 28 09:48:00 newmail dovecot: auth(default): new auth connection: pid=8480
May 28 09:48:00 newmail dovecot: auth(default): new auth connection: pid=8482
May 28 09:48:00 newmail dovecot: auth(default): new auth connection: pid=8477
May 28 09:48:00 newmail dovecot: auth(default): new auth connection: pid=8478
May 28 09:48:00 newmail dovecot: auth(default): new auth connection: pid=8479
May 28 09:48:00 newmail dovecot: auth(default): new auth connection: pid=8481
May 28 09:48:54 newmail dovecot: auth(default): new auth connection: pid=8485
May 28 09:49:10 newmail dovecot: auth(default): client in: AUTH 1 PLAIN s ervice=POP3 secured lip=127.0.0.1 rip=127.0.0.1 resp=<hidden>
May 28 09:49:10 newmail dovecot: auth-worker(default): sql(bobot@newmail.univ.ki ev.ua,127.0.0.1): query: SELECT `username` as `user`, `password` FROM `newmailbo x` WHERE `username` = 'bobot@newmail.univ.kiev.ua' AND `active`='1'
May 28 09:49:10 newmail dovecot: auth(default): client out: OK 1 user=bob ot@newmail.univ.kiev.ua
May 28 09:49:10 newmail dovecot: auth(default): master in: REQUEST 1 8 479 1
May 28 09:49:10 newmail dovecot: auth-worker(default): sql(bobot@newmail.univ.ki ev.ua,127.0.0.1): SELECT `maildir`, `home`, `uid`, `gid` FROM `newmailbox` WHERE `username` = 'bobot@newmail.univ.kiev.ua' AND `active`='1'
May 28 09:49:10 newmail dovecot: auth(default): master out: USER 1 b obot@newmail.univ.kiev.ua maildir=/var/spool/mail/test home=/home/bobot / uid=1000 gid=12
May 28 09:49:10 newmail dovecot: pop3-login: Login: user=<bobot@newmail.univ.kie v.ua>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
May 28 09:49:10 newmail dovecot: POP3(bobot@newmail.univ.kiev.ua): Effective uid =1000, gid=12
May 28 09:49:10 newmail dovecot: POP3(bobot@newmail.univ.kiev.ua): maildir: data =/var/mail/exim/bobot@newmail.univ.kiev.ua
May 28 09:49:10 newmail dovecot: POP3(bobot@newmail.univ.kiev.ua): maildir: root =/var/mail/exim/bobot@newmail.univ.kiev.ua, index=/var/mail/exim/bobot@newmail.u niv.kiev.ua, control=, inbox=
May 28 09:49:21 newmail dovecot: POP3(bobot@newmail.univ.kiev.ua): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
> T=local_deliveryэтот транспорт обычно для доставки в стандартный /var/spool/mail, если конечно он не переделан или dovecot не научен брать письма оттуда.
покажи конфиг роутеров и транспортов
begin routersdnslookup:
driver = dnslookup
domains = ! +local_domains
transport = remote_smtp
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
no_more#system_aliases:
# driver = redirect
# allow_fail
# allow_defer
# data = ${lookup mysql{SELECT recipients FROM aliases \
# WHERE local_part='${local_part}' AND domain='${domain}'}}#userforward:
# driver = redirect
# allow_fail
# allow_defer
# data = ${lookup mysql{SELECT recipients FROM userforward \
# WHERE local_part='${local_part}' AND domain='${domain}'}}virtual_localuser:
driver = accept
domains = ${lookup mysql{SELECT domain from domains WHERE domain='${domain}'}}
local_parts = ${lookup mysql{SELECT login from users WHERE login='${local_part}' AND domain='${domain}'}}
transport = local_deliverybegin transports
remote_smtp:
driver = smtplocal_delivery:
driver = appendfile
check_string = ""
create_directory
delivery_date_add
directory = /var/mail/$domain/$local_part
directory_mode = 770
envelope_to_add
group = mail
maildir_format
maildir_tag = ,S=$message_size
message_prefix = ""
message_suffix = ""
mode = 0660
quota = ${lookup mysql{SELECT quota FROM users WHERE login='${local_part}' AND domain='${domain}'}{${value}M}}
quota_size_regex = S=(\d+)$
quota_warn_threshold = 75%
return_path_addaddress_pipe:
driver = pipe
return_outputaddress_file:
driver = appendfile
delivery_date_add
envelope_to_add
return_path_add
address_reply:
driver = autoreply