History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-606
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Robin Shen
Reporter: Roger Perkins
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.

SMTP host requires a server restart to change

Created: 08/Sep/10 12:50 PM   Updated: 16/Sep/10 10:57 AM
Component/s: None
Affects Version/s: None
Fix Version/s: 3.0.4

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. Zip Archive failmail.zip (4 kb)

 Description  « Hide
Try changing the SMTP host. Kick off a build, it uses the old host (even if that throws errors) to try and send the mail. A server restart is required before it picks up the change.

 All   Comments   Work Log   Change History      Sort Order:
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?

Roger Perkins [09/Sep/10 11:12 AM]
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.

Robin Shen [09/Sep/10 12:18 PM]
I did send an email before changing smtp server and new setting can still take effect.

Roger Perkins [09/Sep/10 01:06 PM]
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.

Robin Shen [09/Sep/10 01:12 PM]
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?

Roger Perkins [10/Sep/10 09:55 AM]
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.

Robin Shen [10/Sep/10 02:03 PM]
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.