> I use evolution on my laptop (Ubuntu breezy) and I want to send email from > my work and also from home. The point is that I cannot use the same smtp > server at the two places. I have several email account configured, and I > send mails from all account in the two place (work and home). > > Now I need to change manually the smtp server almost each time I want to > send an email... it's a little bit annoying... Is there a way to configure > several smtp server for all accounts at the same time (the smtp server > should depend on your Internet config not on your email identity)?
No, any given account can have one SMTP server only. There is no way for the mail client to determine, which network you are in. Anyway, there are some possible solutions for this. They all need some manually tweaking, since *you* can decide which network you are in, but the the client can't. a) Use a "made up" alias name as SMTP server, like for example "smtp" or "smtp.automagic.net". Then add this name to your /etc/hosts file along with the IP address of the SMTP server you want to use. b) Change the Evolution account settings using 'gconftool-2'. The first option can be done during your network gets initialized. Those scripts already know which network you are in. Both options can be done at any later time. It's up to you do decide which network you are in. This can be done automatically, for example based on your own hostname, your IP address, the default gateway or any other part of the network that is distinct in both cases. To automate this process you will need a script, that maybe checks for the network you are in and then uses one of the options above. If you need help in this, feel free to ask. However, you should know the networks you are frequently in. Unless some stupid admins forgot to offer any way of authentication (the remote network) or the paranoid admin (local network) simply blocks outgoing SMTP traffic to servers which are not in his own network, SMTP authentication is the best way. Unfortunately you did not mention, why you cannot use the other SMTP server and why you are forced to change this. Using SMTP with any kind of authentication, you can use the proper SMTP for any account regardless of the (local) network you are currently in. Would this be an option? HTH... ...guenther -- char *t="[EMAIL PROTECTED]"; main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1: (c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}} _______________________________________________ Evolution-list mailing list Evolution-list@gnome.org http://mail.gnome.org/mailman/listinfo/evolution-list