Skip to content
Discussion options

You must be logged in to vote

I managed to get it working, thanks to this issue you told me to take a look at.

mail.env

SMTP_ONLY=1
SMTP_USERNAME=user
SMTP_DOMAIN=domain.tld
SMTP_PASSWORD=password
ENABLE_SASLAUTHD=1
SASLAUTHD_MECHANISMS=

postfix-main.cf

smtpd_sasl_auth_enable = yes
smtpd_sasl_path = smtpd
smtpd_sasl_type = cyrus

user-patches.sh

#!/bin/bash

mkdir -p /etc/postfix/sasl

echo "pwcheck_method: auxprop
auxprop_plugin: sasldb
mech_list: PLAIN" > /etc/postfix/sasl/smtpd.conf

echo $SMTP_PASSWORD | saslpasswd2 -c -u $SMTP_DOMAIN $SMTP_USERNAME

I believe $SMTP_DOMAIN is useless, but I am not a pro at this so I'll leave it like this for now.

Adding a new 'local' mechanism to SASLAUTD_MECHANISMS, doing exactly t…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Daerendor
Comment options

@polarathene
Comment options

@polarathene
Comment options

@Daerendor
Comment options

Answer selected by Daerendor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants