Re: [Evolution] Dynamic SMTP settings
- From: Jeffrey Stedfast <fejj ximian com>
- To: Sam Hart <hart physics arizona edu>
- Cc: evolution lists ximian com
- Subject: Re: [Evolution] Dynamic SMTP settings
- Date: Tue, 24 Feb 2004 15:45:24 -0500
in your situation, I'd probably do something crafty such as the following hack:
1. create 2 accounts (or more, if you have more networks... basically 1 per network)
2. launch gconf-editor and take a look at the /apps/evolution/mail/accounts key and see what the account uids are.
3. write a shell script that will get run whenever your network changes that overwrites the /apps/evolution/mail/default_account gconf key
gconftool-2 --type string --set /apps/evolution/mail/default_account "<uid>"
the other way might be to instead of changing uids:
1. create an account
2. edit the account settings to work with one of your network setups
3. use `gconftool-2 --get /apps/evolution/mail/accounts` to dump the contents into a file
4. repeat steps 2 & 3 until all network setups are configured [1]
5. write a shell script that will get run whenever your network changes and have it overwrite the contents of the /apps/evolution/mail/accounts gconf key (note that /apps/evolution/mail/accounts is a list of strings, not a singleton string - so you'll need to use `gconftool-2 --set --list-type string /apps/evolution/mail/accounts <account dump>`)
[1] important!: you need to edit the same account over and over so that the uid is the same among all accounts, if you don't do it this way then you'll need to either: a) manually edit the account file dumps to change the uid to the one specified in /apps/evolution/mail/default_account -or- b) also change the default_account key when you override the accounts key
Jeff
On Tue, 2004-02-24 at 11:42 -0700, Sam Hart wrote:
I am using Evolution 1.4.5 (avail in Debian sid) to read email from an
IMAP server. Reading mail works fine.
The problem comes when I want to send mail back out. Depending on where
the laptop is, I have to use different SMTP settings. For example, on
COX.net (my home cable modem connection) I have to use COX's SMTP server
(as they block all outbound port 25 connections) and everywhere else I can
use an authenticated SMTP gateway I have set up.
Is there a way to have Evolution somehow switch which SMTP server to use
based upon either an automatic check of domain or via something manual I
can do (other than just reconfigure SMTP every time I go home or come to
work ;-) ?
Something like this:
if (on COX.net )
use COX's SMTP
else
use My SMTP AUTH gateway
I looked through the mail archives for this list (back to June 2002) and
couldn't find someone with a similar problem. If there is a trivial soln
feel free to RTFM me to a document somewhere ;-)
--
Sam Hart
University/Work addr. <hart physics arizona edu>
Personal addr. <criswell geekcomix com>
Alternative <criswell tux4kids net>
end
_______________________________________________
evolution maillist - evolution lists ximian com
http://lists.ximian.com/mailman/listinfo/evolution
--
Jeffrey Stedfast
Evolution Hacker - Ximian, Inc.
fejj ximian com - www.ximian.com
|
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]