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

How to define a SMTP sever which does not need any authentication? #70

Closed
l00mi opened this issue Sep 15, 2017 · 3 comments
Closed

How to define a SMTP sever which does not need any authentication? #70

l00mi opened this issue Sep 15, 2017 · 3 comments

Comments

@l00mi
Copy link

l00mi commented Sep 15, 2017

e.g. only accessible in the internal network ?

Do we need also to expose a EMAIL_AUTH?

@l00mi
Copy link
Author

l00mi commented Sep 18, 2017

Only removing the username / password field from actually worked for me that cake mailer does not anymore use any AUTH. Setting them "false" did not work for us.

public $default = array(
                'transport' => 'Smtp',
                'from' => array('passbolt@localhost' => 'Passbolt'),
                'host' => 'localhost',
                'port' => 25,
                'timeout' => 30,
                'tls' => false,
);

Best might be to remove the lines if EMAIL_USERNAME is set empty?

@justb81
Copy link
Contributor

justb81 commented Sep 19, 2017

if you set username / password to null it works the same. the current version of the docker_entrypoint.sh has sets single quotes around the value given in the environment.

sed -i "0,/"$default_username"/s:"$default_username":'${EMAIL_USERNAME:-email_user}':" $email_config

a solution would be to set this to null if username is empty.

@Richigeht
Copy link

Hello,
So I try to do the same but it is just not sending any mails - using a local SMTP (postfix) Server... sending mails via console works great.
Any idea why this is?

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

3 participants