Postfix cannot find \/etc\/postfix\/sasl_passwd
bencomp opened this issue · 4 comments
bencomp commented
Since recreating the postfix container (after a pull) I cannot send emails anymore, which used to work with the exact same settings.
The /var/log/maillog
shows that Postfix cannot find the password file:
postfix_1 | Mar 10 16:51:58 ac84ee08fcbb postfix/smtp[156]: warning: hash:\/etc\/postfix\/sasl_passwd is unavailable. open database \/etc\/postfix\/sasl_passwd.db: No such file or directory
I think the recent merge of #7 has caused this: postconf
doesn't appear to unescape the \/
, whereas sed
probably did. When I manually change the line
smtp_sasl_password_maps = hash:\/etc\/postfix\/sasl_passwd
to
'smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
(and not restart the container!) emails are sent again, including ones in the queue.
juanluisbaptiste commented
Ooops, let me review this...
juanluisbaptiste commented
You are right, pushing a fix now.
juanluisbaptiste commented
Fix pushed, wait some minutes for the updated image to be available.
bencomp commented
Thanks for the quick response!