|
|
|
[
Permlink
| « Hide
]
Robin Shen [09/Sep/10 01:25 AM]
Just tested this in 3.0.0, and QB does pick up the smtp host change without restart. Can you verify this again?
So if you start up the server and change the SMTP server immediately it uses the new one, however once a mail has been sent (or at least tried to send with the wrong server) it seems to no longer pick up the changes and keeps trying to use the previous.
I did send an email before changing smtp server and new setting can still take effect.
Hmmm... well at least it's not something I do often.
My test setup was launching the server from the command line on Win7 x64, it's still using the default database as it's only my test rig. I tried to repro earlier before posting my last comment and it still seemed to show the same behaviour for me. Most curious. Can you send your test database to me? To test, is it sufficient to run a build to have QB send a notification email, and then change smtp host to another and run build again to see if new smtp host is used?
Here's a very basic example that doesn't work for me. When you import the backup there should be one configuration. The email settings are set to use "fail.wrongserver.com" as a bogus mailserver. Click to run the build, it should fail and say it couldn't connect to the SMTP server. Go to admin, change the email server to "right.wrongserver.com", run the build again, it will keep on saying "fail.wrongserver.com".
I've just created this by extracting the new QB 3.0.3 into a folder on my PC, then run it from the command line ( "server console" ) and set up the notification settings and mail server. I get this reproduced with your sample database. This only happens if smtp user name and password is left empty. QuickBuild uses Ant mail task to send email and this task caches smtp host name and ignored further changes if no credential is supplied. We've fixed this and next patch release will contain the fix.
Thanks for your help. |