Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single quotes around postfix_sasl_password in sasl_passwd file #30

Open
Salvoxia opened this issue Oct 20, 2024 · 0 comments
Open

Single quotes around postfix_sasl_password in sasl_passwd file #30

Salvoxia opened this issue Oct 20, 2024 · 0 comments

Comments

@Salvoxia
Copy link

Salvoxia commented Oct 20, 2024

Hi,

the auth task wraps the postfix_sasl_password in single quotes ' when writing it to the sasl_passwd file.
https://github.com/dgibbs64/ansible-role-postfix_send_only_relay/blob/ded040dc7aa015fe0de0e9a572cb7f93e475394a/tasks/auth.yml#L62C71-L62C92

When I tried to set up postfix with this role, authentication with my SMTP relay host would always fail until I manually removed the quotes from sasl_passwd, ran postmap again and restarted saslauthd and postfix services.

Running postmap -s sasl_passwd on the host also showed the quotes around the password, so it seems they are interpreted as part of the password.

The used quote filter is used for shell quoting, so this problem will not show up if the password does not contain characters that filter would quote. If it does, quotes are added, that are interpreted by postfix literally.

Best Regards
Salvoxia

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant