Pages: 1
RSS
Automating SMTP and POP3 config changes
 
Hello everyone,

My company recently started to block incoming pop3 and outgoing smtp mail.  I've setup an ssh tunnel to my home machine and everything works fine, but it means that I have to:

Code
1.  Run a batch file I wrote to setup the tunnel
2.  Change my smtp and pop3 settings from their real value to localhost.  I then have to change them back when I go home.


I'm trying to automate #2 and have been having some trouble.  I can easily determine where I'm at via a batch file by looking at the IP addresses.  I've read about the /add command line parm, but I can't seem to get it to work.

c:\apps\thebat\thebat.exe /Add:InServer=localhost /add:OutServer=localhost /exit

The bat exits and when I start it back up the settings have not changed.  I've tried various configurations of quotes but nothing seems to work (although the bat does exit via the /exit switch).

Does anyone have any idea on how to make this work or better ways to automate the switch.  I was hoping it would be something simple and dynamic.  I'm a bit bummed that the bat has to be restarted (according to the docs).

Thanks for all your help.

Michael
michael at fross dot org
 
Hmm... i tried to use like this:
C:\_APack\TheBat>thebat.exe /ADDUser="bla@bla.com";FileDir=C:\

I think "User=" is  obligatory.

Command creates a copy of account... :(
So you need "disconnect" account....
I wrote a bugreport about and a wish (#0005403).
 
Already fixed, wait for 3.80.04 :)
 
Hmm.  This is interesting.  Using the /ADDUser parm did allow the changes to be made.  Without it they were not.  However, thebat (latest version) is now creating duplicate accounts with the same name and using the same message base.

I'll check out that /disconnect until the next version comes out.

Also, is there a way for users to see the bug list?  I'd like to check out 0005403.

Thanks for your help.

Michael
michael at fross dot org
 
This bug is fixed today.

https://www.ritlabs.com/bt/view.php?id=5403

so next versions (3.81 and next) you can use this command .

Wait a little ;)
 
Will the next version allow the change of setting (such as inserver and outserver) without having to restart thebat?  That would be most helpful.

I suppose it would require you to check those values each time before they are used...

Thanks,

Michael
 
Hello,

Thanks for the Bat update.  Running the following command to start the bat does not result in duplicate entries in the account list:

c:\apps\TheBat\thebat.exe /ADDuser=FrossMail;InServer=%SMTPServer;OutServer=%SMTPServer /nologo

(%SMTP Server is an environment var that holds the right server).

This all works great.  However, I've discovered that if I start thebat in this manner, "Leave Message on Server" is selected even though I had it set for "delete messages".

If I set to delete messages and start the bat without any parameters, the setting for delete stays.  However, once I run it with the above switches, it changes the option to "leave messages on server".  Very odd.

Any ideas?  Is this a bug or am I missing something?

Thank you very much for all your help.

Michael
michael .at. fross .dot. org
 
confirmed.
 
Hello Ritlabs,

It's been two or three weeks since I discovered this bug.  Any thoughts or responses?

Many thanks,

Michael
 
I have added this to Official Bugtraq system maintained by Ritlabs developers, You can check report here:

https://www.ritlabs.com/bt/view.php?id=5891
 
Thank you very much.  Good luck squashing it.
 
problem fixed in 3.81.03 beta, wait for next final version.
Pages: 1