<< Back to previous view

[QB-606] SMTP host requires a server restart to change
Created: 08/Sep/10  Updated: 16/Sep/10

Status: Resolved
Project: QuickBuild
Component/s: None
Affects Version/s: None
Fix Version/s: 3.0.4

Type: Bug Priority: Minor
Reporter: Roger Perkins Assigned To: Robin Shen
Resolution: Fixed Votes: 0
Remaining Estimate: Unknown Time Spent: Unknown
Original Estimate: Unknown

File Attachments: Zip Archive failmail.zip    

 Description   
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.

 Comments   
Comment by 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?
Comment by 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.
Comment by Robin Shen [ 09/Sep/10 12:18 PM ]
I did send an email before changing smtp server and new setting can still take effect.
Comment by 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.
Comment by 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?
Comment by 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.
Comment by 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.
Generated at Wed Apr 24 15:56:32 UTC 2024 using JIRA 189.