Bug 1126794

Summary: dovecot segfault with multi passdb in lmtp
Product: Red Hat Enterprise Linux 7 Reporter: ayaka <ayaka>
Component: dovecotAssignee: Michal Hlavinka <mhlavink>
Status: CLOSED WONTFIX QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.2CC: amahdal, ayaka
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-06-10 10:24:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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,27.156.49.90): lookup service=dovecot
Aug  5 17:09:12 kozue dovecot: auth-worker(27025): Debug: pam(tp,27.156.49.90): #1/1 style=1 msg=Password:
Aug  5 17:09:13 kozue dovecot: auth-worker(27025): pam(tp,27.156.49.90): pam_authenticate() failed: Authentication failure (password mismatch?)
Aug  5 17:09:13 kozue dovecot: auth-worker(27025): Debug: sql(tp,27.156.49.90): query: SELECT email AS user, password AS password FROM virtual_users WHERE email = 'tp'
Aug  5 17:09:13 kozue dovecot: auth: Debug: client passdb out: OK       1       user=tp
Aug  5 17:09:13 kozue postfix/smtpd[27019]: 825F810229D: client=unknown[27.156.49.90], sasl_method=PLAIN, sasl_username=tp
Aug  5 17:09:13 kozue postfix/cleanup[27030]: 825F810229D: message-id=<53E0911C.2000602>
Aug  5 17:09:13 kozue postfix/qmgr[25916]: 825F810229D: from=<tp>, 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  service=lmtp
Aug  5 17:09:13 kozue dovecot: auth-worker(27025): Debug: passwd(tp): lookup
Aug  5 17:09:13 kozue dovecot: auth-worker(27025): passwd(tp): unknown user
Aug  5 17:09:13 kozue dovecot: auth: Debug: password(tp): passdb doesn't support credential lookups
Aug  5 17:09:13 kozue dovecot: auth-worker(27025): Debug: sql(tp): query: SELECT email AS user, password AS password FROM virtual_users WHERE email = 'tp'
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): Disconnected unexpectedly
Aug  5 17:09:13 kozue postfix/lmtp[26995]: 825F810229D: to=<tp>, 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> 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]

Comment 3 Michal Hlavinka 2020-06-10 10:24:31 UTC
The Red Hat Enterprise Linux 7 life cycle has entered Maintenance Support Phase, which means that only qualified Critical and Important Security errata advisories (RHSAs) and some Urgent Priority Bug Fix errata advisories (RHBAs) will be released as they become available.  Unfortunately, this issue was not selected to be included in Red Hat Enterprise Linux 7. We will now close this issue. We recommend moving the request to Red Hat Enterprise Linux 8 if applicable.

See the Red Hat Enterprise Linux Life Cycle for more details:
https://access.redhat.com/support/policy/updates/errata/