Skip to content

Commit

Permalink
Merge pull request #448 from romracer/pod-address
Browse files Browse the repository at this point in the history
Use POD_ADDRESS_RANGE for Dovecot if it exists
  • Loading branch information
kaiyou committed May 28, 2018
2 parents 3beceb9 + 6018995 commit a47ba34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/dovecot/conf/dovecot-sql.conf.ext
Expand Up @@ -3,7 +3,7 @@ connect = /data/main.db

# Return the user hashed password
password_query = \
SELECT NULL as password, 'Y' as nopassword, '{{ FRONT_ADDRESS }}{% if WEBMAIL_ADDRESS %},{{ WEBMAIL_ADDRESS }}{% endif %}' as allow_nets \
SELECT NULL as password, 'Y' as nopassword, '{% if POD_ADDRESS_RANGE %}{{ POD_ADDRESS_RANGE }}{% else %}{{ FRONT_ADDRESS }}{% if WEBMAIL_ADDRESS %},{{ WEBMAIL_ADDRESS }}{% endif %}{% endif %}' as allow_nets \
FROM user \
WHERE user.email = '%u'

Expand Down

0 comments on commit a47ba34

Please sign in to comment.