Closed
Description
After Mail 1.7.0 update a relay rule based on sender domain stops to send SMTP credentials.
Steps to reproduce
- Create a sender-based relay rule, for domain
domain.test
and remote server authentication credentials - Send a message from
[email protected]
Expected behavior
The message is relayed to the remote server with SMTP authentication.
Actual behavior
Credentials are not presented to the remote server, which may refuse to deliver the message.
Jul 09 16:20:32 dn1 postfix/smtp[28288]: maps_find: smtp_sasl_password_maps: [email protected]: not found
Jul 09 16:20:32 dn1 postfix/smtp[28288]: match_list_match: addusers.test: no match
Jul 09 16:20:32 dn1 postfix/smtp[28288]: dict_sqlite_lookup: /etc/postfix/relaycredentials.cf: Searching with query SELECT FORMAT('%s:%s', username, password) AS credentials FROM relayrules WHERE enabled = 1 AND ( (rule_subject = '@addusers.test' AND rule_type = 'sender') OR ('@addusers.test' IN (FORMAT('[%s]:%s', host, port), FORMAT('[%s]', host)) AND rule_type != 'sender') ) AND username != '' LIMIT 1
Jul 09 16:20:32 dn1 postfix/smtp[28288]: maps_find: smtp_sasl_password_maps: @addusers.test: not found
Jul 09 16:20:32 dn1 postfix/smtp[28288]: mail_addr_find: [email protected] -> (not found)
Jul 09 16:20:32 dn1 postfix/smtp[28288]: dict_sqlite_lookup: /etc/postfix/relaycredentials.cf: Searching with query SELECT FORMAT('%s:%s', username, password) AS credentials FROM relayrules WHERE enabled = 1 AND ( (rule_subject = '127.0.0.1' AND rule_type = 'sender') OR ('127.0.0.1' IN (FORMAT('[%s]:%s', host, port), FORMAT('[%s]', host)) AND rule_type != 'sender') ) AND username != '' LIMIT 1
Jul 09 16:20:32 dn1 postfix/smtp[28288]: maps_find: smtp_sasl_password_maps: 127.0.0.1: not found
Jul 09 16:20:32 dn1 postfix/smtp[28288]: dict_sqlite_lookup: /etc/postfix/relaycredentials.cf: Searching with query SELECT FORMAT('%s:%s', username, password) AS credentials FROM relayrules WHERE enabled = 1 AND ( (rule_subject = '[127.0.0.1]:10002' AND rule_type = 'sender') OR ('[127.0.0.1]:10002' IN (FORMAT('[%s]:%s', host, port), FORMAT('[%s]', host)) AND rule_type != 'sender') ) AND username != '' LIMIT 1
Jul 09 16:20:32 dn1 postfix/smtp[28288]: maps_find: smtp_sasl_password_maps: [127.0.0.1]:10002: not found
Jul 09 16:20:32 dn1 postfix/smtp[28288]: smtp_sasl_passwd_lookup: no auth info found (sender=`[email protected]', host=`127.0.0.1')
Components
- Mail 1.7.0
See also
Thanks to Madpatrick
Metadata
Metadata
Assignees
Type
Projects
Status