Bug 1126794 - dovecot segfault with multi passdb in lmtp
Summary: dovecot segfault with multi passdb in lmtp
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: dovecot
Version: 7.2
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Michal Hlavinka
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-08-05 09:58 UTC by ayaka
Modified: 2019-08-01 17:44 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description ayaka 2014-08-05 09:58:16 UTC
Description of problem:
I configure postfix with dovecot using lmtp.
I configure two passdb, one is auth-system the other is auth-sql
I works fine for pop3 but I can't work with lmtp. It would cause a segfault.
If I remove auth-system, it works fine.

Version-Release number of selected component (if applicable):
postfix 2.10.1 6.el7
dovecot 2.2.10 4.el7_0.1
dovecot mysql 2.2.10 4.el7_0.1

Additional info:
Aug  5 17:09:03 kozue postfix/smtpd[27019]: warning: hostname 90.49.156.27.broad.fz.fj.dynamic.163data.com.cn does not resolve to address 27.156.49.90: Name or service not known
Aug  5 17:09:03 kozue postfix/smtpd[27019]: connect from unknown[27.156.49.90]
Aug  5 17:09:03 kozue dovecot: auth: Debug: Loading modules from directory: /usr/lib64/dovecot/auth
Aug  5 17:09:03 kozue dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libdriver_mysql.so
Aug  5 17:09:03 kozue dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libdriver_sqlite.so
Aug  5 17:09:03 kozue dovecot: auth: Debug: Read auth token secret from /var/run/dovecot/auth-token-secret.dat
Aug  5 17:09:03 kozue dovecot: auth: Debug: auth client connected (pid=0)
Aug  5 17:09:12 kozue dovecot: auth: Debug: client in: AUTH     1       PLAIN   service=smtp    nologin lip=108.61.200.231      rip=27.156.49.90        secured resp=<hidden>
Aug  5 17:09:12 kozue dovecot: auth-worker(27025): Debug: Loading modules from directory: /usr/lib64/dovecot/auth
Aug  5 17:09:12 kozue dovecot: auth-worker(27025): Debug: Module loaded: /usr/lib64/dovecot/auth/libdriver_mysql.so
Aug  5 17:09:12 kozue dovecot: auth-worker(27025): Debug: Module loaded: /usr/lib64/dovecot/auth/libdriver_sqlite.so
Aug  5 17:09:12 kozue dovecot: auth-worker(27025): Debug: pam(tp@example.org,27.156.49.90): lookup service=dovecot
Aug  5 17:09:12 kozue dovecot: auth-worker(27025): Debug: pam(tp@example.org,27.156.49.90): #1/1 style=1 msg=Password:
Aug  5 17:09:13 kozue dovecot: auth-worker(27025): pam(tp@example.org,27.156.49.90): pam_authenticate() failed: Authentication failure (password mismatch?)
Aug  5 17:09:13 kozue dovecot: auth-worker(27025): Debug: sql(tp@example.org,27.156.49.90): query: SELECT email AS user, password AS password FROM virtual_users WHERE email = 'tp@example.org'
Aug  5 17:09:13 kozue dovecot: auth: Debug: client passdb out: OK       1       user=tp@example.org
Aug  5 17:09:13 kozue postfix/smtpd[27019]: 825F810229D: client=unknown[27.156.49.90], sasl_method=PLAIN, sasl_username=tp@example.org
Aug  5 17:09:13 kozue postfix/cleanup[27030]: 825F810229D: message-id=<53E0911C.2000602@example.info>
Aug  5 17:09:13 kozue postfix/qmgr[25916]: 825F810229D: from=<tp@example.org>, size=513, nrcpt=1 (queue active)
Aug  5 17:09:13 kozue dovecot: lmtp(27031): Debug: none: root=, index=, indexpvt=, control=, inbox=, alt=
Aug  5 17:09:13 kozue dovecot: lmtp(27031): Connect from local
Aug  5 17:09:13 kozue dovecot: auth: Debug: master in: USER     1       tp@example.org  service=lmtp
Aug  5 17:09:13 kozue dovecot: auth-worker(27025): Debug: passwd(tp@example.org): lookup
Aug  5 17:09:13 kozue dovecot: auth-worker(27025): passwd(tp@example.org): unknown user
Aug  5 17:09:13 kozue dovecot: auth: Debug: password(tp@example.org): passdb doesn't support credential lookups
Aug  5 17:09:13 kozue dovecot: auth-worker(27025): Debug: sql(tp@example.org): query: SELECT email AS user, password AS password FROM virtual_users WHERE email = 'tp@example.org'
Aug  5 17:09:13 kozue dovecot: auth: Fatal: master: service(auth): child 27023 killed with signal 11 (core dumps disabled)
Aug  5 17:09:13 kozue dovecot: lmtp(27031): Error: userdb lookup(tp@example.org): Disconnected unexpectedly
Aug  5 17:09:13 kozue postfix/lmtp[26995]: 825F810229D: to=<tp@example.org>, relay=kozue.example.org[private/dovecot-lmtp], delay=0.24, delays=0.24/0/0/0, dsn=4.3.0, status=deferred (host kozue.example.org[private/dovecot-lmtp] said: 451 4.3.0 <tp@example.org> Internal error occurred. Refer to server log for more information. (in reply to RCPT TO command))
Aug  5 17:09:13 kozue dovecot: lmtp(27031): Disconnect from local: Successful quit
Aug  5 17:09:13 kozue postfix/smtpd[27019]: disconnect from unknown[27.156.49.90]


Note You need to log in before you can comment on or make changes to this bug.