<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }body { font-size: 10.5pt; font-family: 'Microsoft YaHei UI'; color: rgb(0, 0, 0); line-height: 1.5; }</style>
</head>
<body>
<div><span></span>Hi Jonas,</div>
<div><br>
</div>
<div>Thank you very much!</div>
<div><br>
</div>
<div>After manually creat the lookup tables, it can send login confirmation email and login successfully now, though mailman core can not start as said in previous email.</div>
<div><br>
</div>
<div>Rex</div>
<blockquote style="margin-Top: 0px; margin-Bottom: 0px; margin-Left: 0.5em">
<div> </div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<div style="PADDING-RIGHT: 8px; PADDING-LEFT: 8px; FONT-SIZE: 12px;FONT-FAMILY:tahoma;COLOR:#000000; BACKGROUND: #efefef; PADDING-BOTTOM: 8px; PADDING-TOP: 8px">
<div><b>From:</b> <a href="mailto:jonas@freesources.org">Jonas Meurer</a></div>
<div><b>Date:</b> 2018-04-22 18:36</div>
<div><b>To:</b> <a href="mailto:izysun@outlook.com">Sun Zhiyong</a></div>
<div><b>CC:</b> <a href="mailto:pkg-mailman-hackers@lists.alioth.debian.org">Debian Mailman Team</a></div>
<div><b>Subject:</b> Re: [Pkg-mailman-hackers] postfix/smtpd[12870]: error: open database /var/lib/mailman3/data/postfix_domains.db: No such file or directory</div>
</div>
</div>
<div>
<div>Hi Rex,</div>
<div> </div>
<div>Am 22.04.2018 um 12:25 schrieb Sun Zhiyong:</div>
<div>> I installed mailman3 on debian, it can visit http://server/mailman3/,</div>
<div>> but when login, it says Sever Error (500). in</div>
<div>> /var/log/mailman3/web/mailman-web.log there is a line:</div>
<div>> SMTPRecipientsRefused: {u'xxx@xx.com': (451, '4.3.0 <xxx@xx.com>:</div>
<div>> Temporary lookup failure')} </div>
<div>> # xxx@xx.com is superuser email address.</div>
<div> </div>
<div>Apparently your local mailserver (Postfix) is not able to send mail to</div>
<div>'xxx@xx.com'. Postorius (the Mailman3 web interface) sends a</div>
<div>confirmation mail to the user at first login. This mail cannot be sent</div>
<div>for some reason.</div>
<div> </div>
<div>> in postfix log file, there is:</div>
<div>> Apr 22 18:05:53 mail postfix/smtpd[12870]: error: open database</div>
<div>> /var/lib/mailman3/data/postfix_domains.db: No such file or directory</div>
<div>> Apr 22 18:05:53 mail postfix/smtpd[12870]: error: open database</div>
<div>> /var/lib/mailman3/data/postfix_lmtp.db: No such file or directory</div>
<div>> </div>
<div>> how to solve it?</div>
<div> </div>
<div>That's because you didn't configure any list domain yet. Mailman only</div>
<div>creates/updates these lookup table files when list domains are edited.</div>
<div> </div>
<div>As far as I know, Postfix should ignore this error and still deliver</div>
<div>normal mail.</div>
<div> </div>
<div>The error will go away automatically once you added the first list</div>
<div>domain for Mailman3.</div>
<div> </div>
<div>You can also manually create empty lookup tables with the following</div>
<div>commands:</div>
<div> </div>
<div>$ touch /var/lib/mailman3/data/postfix_{domains,lmtp}</div>
<div>$ chmod 660 /var/lib/mailman3/data/postfix_{domains,lmtp}</div>
<div>$ chown list:list /var/lib/mailman3/data/postfix_{domains,lmtp}</div>
<div>$ postmap /var/lib/mailman3/data/postfix_{domains,lmtp}</div>
<div> </div>
<div>Please let us know if your login error is fixed by creating the files or</div>
<div>if it was another problem.</div>
<div> </div>
<div>Cheers,</div>
<div>jonas</div>
<div> </div>
</div>
</blockquote>
</body>
</html>