-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Added blank SMTP_AUTHENTICATION if the SMTP_AUTHENTICATION env var is empty. #60
Conversation
@sameersbn I thought so but @LordFPL is using :plain as SMTP_AUTHENTICATION whereas I'm not using anything, though I don't mind passing an empty environment variable when I launch the container. |
@LordFPL do you think removing smtp user, pass and authentication parameters from the config when the smtp user is not defined a good idea? does it work for you? |
Hi @sameersbn , yes it was the only way to have mails working (smtp, plain). |
@arnos can you rebase the PR |
Yes retesting it and will rebase. On Mon, May 5, 2014 at 2:34 PM, Sameer Naik notifications@gh.neting.ccwrote:
|
…tication line in smtp config
Ok the rebase is done. @LordFPL I have one issue that doesn't make sense the if statements for SMTP_USER and SMTP_BASE should start with -z (check if length is 0) instead of -n (check if length > 0) no? |
@arnos thats right, it should be -z |
Oups... my fault... i already made the correction, but forget to copy it in the patch, sorry... |
Ok then I'm not sure why my if is working with -n (if I put -z the default On Mon, May 5, 2014 at 3:18 PM, LordFPL notifications@github.com wrote:
|
I think when -z / -n are used, the test string should not be surrounded by quotes. That's why I prefer using == operators |
Ok that makes sense. In this case if we can keep the -n for Thanks Sameer. On Mon, May 5, 2014 at 3:32 PM, Sameer Naik notifications@gh.neting.ccwrote:
|
@arnos I have fixed the issue with the -z/-n
:login gets set on SMTP_AUTHENTICATION because it is set by default, even if you don't pass SMTP_AUTHENTICATION or pass it as an empty string this value is internally set to :login I have changed the code b8266c0 so that the default value of SMTP_AUTHENTICATION is set to :login only if SMTP_USER is set. So i think this should work |
Hi, Just back to work, i try the new version : all is working ! :) |
I'll retest it tomorrow, this was bugging me as it didn't make sense that On Tuesday, May 6, 2014, Sameer Naik notifications@github.com wrote:
|
Have added a new SMTP configuration option named |
Added if statement to disable SMTP_AUTHENTICATION when SMTP_AUTHENTICATION env var is empty #59