mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-25 17:06:01 +03:00
[GH-ISSUE #840] Invalid postfix_maps for postgresql #750
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#750
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @neutrinus on GitHub (Mar 3, 2016).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/840
Originally assigned to: @tonioo on GitHub.
The auto-created postfix maps have a typo. There is
admin_aliasrecipientinstead ofmodoboa_admin_aliasrecipient.Log:
Mar 03 12:37:54 Debian-jessie-amd64-netboot postfix/smtpd[11121]: warning: pgsql query failed: fatal error from host localhost: ERROR: relation "admin_aliasrecipient" does not exist?LINE 1: ... '@' || dom.name FROM admin_mailbox mb INNER JOIN admin_alia...? ^?/etc/postfix/sql-sender-login-aliases.cf:
query = SELECT mb.address || '@' || dom.name FROM admin_mailbox mb INNER JOIN admin_aliasrecipient alr ON alr.r_mailbox_id=mb.id INNER JOIN admin_domain dom ON dom.id=mb.domain_id INNER JOIN admin_alias al ON alr.alias_id=al.id WHERE al.enabled AND al.address='%s'Relations in DB:
Modoboa installed from pip==1.4.4
This way it has been deployed:
/home/modoboa/virtualenv/bin/modoboa-admin.py deploy mailadmin --dburl default:postgres://modoboa:modoboa@localhost:5432/maildb --domain localhost/home/modoboa/virtualenv/bin/modoboa-admin.py postfix_maps --dburl postgres://modoboa:modoboa@localhost:5432/maildb /etc/postfix@tonioo commented on GitHub (Mar 9, 2016):
Hi, thanks for reporting but this issue is already fixed and will be released soon. (see
github.com/tonioo/modoboa@0a62b0f9a4)@neutrinus commented on GitHub (Mar 9, 2016):
Great, thank you!