Portál AbcLinuxu, 12. května 2025 06:05

Dotaz: Postfix + Dovecot, pristup ke schrankam

13.1.2010 16:17 hoffmann44
Postfix + Dovecot, pristup ke schrankam
Přečteno: 651×
Odpovědět | Admin

Zdravim,

mam problem s pristupem ke schrankam pres postovniho klienta. Stale to pise viz. nize. Linux Debian Postfix 2.5.5-1.1 Dovecot 1:1.0.15-2 instalovane balicky posfix dovecot-common dovecot-imapd dovecot-pop3d vypis z logu

Jan 13 15:36:40 mujstroj dovecot: auth(default): client in: AUTH#0111#011PLAIN#011service=IMAP#011lip=83.167.x.x#011rip=90.178.x.x
Jan 13 15:36:40 mujstroj dovecot: auth(default): client out: CONT#0111#011
Jan 13 15:36:40 mujstroj dovecot: auth(default): client in: CONT((hidden) melo to byt v <>)
Jan 13 15:36:40 mujstroj dovecot: auth(default): passwd-file(mailxxx,90.178.x.x): no passwd file: scheme=plain username_format=mailxxx /etc/dovecot/passwd
Jan 13 15:36:41 mujstroj dovecot: auth(default): new auth connection: pid=30064
Jan 13 15:36:42 mujstroj dovecot: auth(default): client out: FAIL#0111#011user=mailxxx
Jan 13 15:36:42 mujstroj dovecot: auth(default): client in: AUTH#0112#011PLAIN#011service=IMAP#011lip=83.167.x.x#011rip=90.178.x.x#011r$
Jan 13 15:36:42 mujstroj dovecot: auth(default): passwd-file(mailxxx,90.178.x.x): no passwd file: scheme=plain username_format=mailxxx /etc/dovecot/passwd
Jan 13 15:36:44 mujstroj dovecot: auth(default): client out: FAIL#0112#011user=mailxxx
Jan 13 15:36:44 mujstroj dovecot: auth(default): client in: AUTH#0113#011PLAIN#011service=IMAP#011lip=83.167.x.x#011rip=90.178.x.x
Jan 13 15:36:44 mujstroj dovecot: auth(default): client out: CONT#0113#011
Jan 13 15:36:44 mujstroj dovecot: auth(default): client in: CONT((hidden) melo to byt v <>)
Jan 13 15:36:44 mujstroj dovecot: auth(default): passwd-file(mailxxx,90.178.x.x): no passwd file: scheme=plain username_format=mailxxx /etc/dovecot/passwd
Jan 13 15:36:46 mujstroj dovecot: auth(default): client out: FAIL#0113#011user=mailxxx
Jan 13 15:36:46 mujstroj dovecot: auth(default): client in: AUTH#0114#011PLAIN#011service=IMAP#011lip=83.167.x.x#011rip=90.178.x.x#011r$
Jan 13 15:36:46 mujstroj dovecot: auth(default): passwd-file(mailxxx,90.178.x.x): no passwd file: scheme=plain username_format=mailxxx /etc/dovecot/passwd
Jan 13 15:36:48 mujstroj dovecot: auth(default): client out: FAIL#0114#011user=mailxxx
Jan 13 15:36:48 mujstroj dovecot: imap-login: Disconnected: user=<mailxxx>, method=PLAIN, rip=90.178.x.x, lip=83.167.x.x

obsah souboru /etc/dovecot/passwd

xxx@mojedomena:{plain}heslo:1000:1000:::

cast obsahu souboru /etc/dovecot/passwd

auth default {
mechanisms = plain login cram-md5 digest-md5 ntlm

passdb passwd-file {
args = scheme=plain username_format=%u /etc/dovecot/passwd
}

userdb passwd-file {
args = username_format=%u /etc/dovecot/passwd
}

user = dovecot-auth


socket listen {
client {
path = /var/spool/postfix/private/auth
mode = 0660
user = postfix
group = postfix
}
}


}

/var/spool/postfix/private/auth soubor auth je prazdny

 

Dekuji moc za kazdou radu.

Nástroje: Začni sledovat (2) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

13.1.2010 18:16 svaca | skóre: 38
Rozbalit Rozbalit vše Re: Postfix + Dovecot, pristup ke schrankam
Odpovědět | | Sbalit | Link | Blokovat | Admin
pod jakym userem jede ten dovecot, vypada to, ze nevidi ten passwd file ...
Never give up ! Stay ATARI !
13.1.2010 18:42 Hoffmann44
Rozbalit Rozbalit vše Re: Postfix + Dovecot, pristup ke schrankam

No prave. Ja si myslim, ze tam je zakopany pes. Ten jede pod dovecot-auth (z duvodu bezpecnosti) a jen on ma prava ke cteni souboru. Viz. nize

user = dovecot-auth

Divne je, ze kdyz smazu soubor paswd a Devecot restartuji tak nehlasi zadnou chybu!

13.1.2010 21:22 svaca | skóre: 38
Rozbalit Rozbalit vše Re: Postfix + Dovecot, pristup ke schrankam
to je spatne, je rozdil login_user a user ....
# User to use for the login process. Create a completely new user for this,
# and don't use it anywhere else. The user must also belong to a group where
# only it has access, it's used to control access for authentication process.
# Note that this user is NOT used to access mails.
# http://wiki.dovecot.org/UserIds
#login_user = dovecot

# User to use for the process. This user needs access to only user and
  # password databases, nothing else. Only shadow and pam authentication
  # requires roots, so use something else if possible. Note that passwd
  # authentication with BSDs internally accesses shadow files, which also
  # requires roots. Note that this user is NOT used to access mails.
  # That user is specified by userdb above.
  user = nobody

Never give up ! Stay ATARI !
13.1.2010 21:42 Hoffmann44
Rozbalit Rozbalit vše Re: Postfix + Dovecot, pristup ke schrankam

jestli jsem si to spravne prelozil tak user = dovecot-auth slouzi k overovani

 

passdb passwd-file {     args = scheme=plain username_format=%u /etc/dovecot/passwd   }
userdb passwd-file {     args = username_format=%u /etc/dovecot/passwd   }

 

mam to tedy dobre, ne?

GeckoN avatar 15.8.2011 08:46 GeckoN
Rozbalit Rozbalit vše Re: Postfix + Dovecot, pristup ke schrankam
Sice je to už starší dotaz, ale také jsem to teď řešil, tak to snad pomůže i budoucím :)

V místním tutoriálu (podle kterého je zřejmě psán tento config) je zmíněna možná rozdílnost verzí v návaznosti na možných odlišnostech v konfiguraci..

V tomto případě mi pomohlo vynechat argumenty scheme=plain i username_format, a pouze zde nechat cestu k souboru, jednoduše takto:

passdb passwd-file { args = /etc/dovecot/passwd } userdb passwd-file { args = /etc/dovecot/passwd }
30.3.2015 18:38 marian
Rozbalit Rozbalit vše Re: Postfix + Dovecot, pristup ke schrankam
velky palec hore (y)!!1 velmi mi to pomohlo

GOOD JOB :-)
15.1.2010 13:03 hoffmann44
Rozbalit Rozbalit vše Re: Postfix + Dovecot, pristup ke schrankam
Odpovědět | | Sbalit | Link | Blokovat | Admin
Nikdo nevi kde je problem?

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.