On 2007-09-10, Kumar Appaiah <[EMAIL PROTECTED]> wrote:
> On Mon, Sep 10, 2007 at 06:42:32AM +0000, Jude DaShiell wrote:
>> If using exim4 and it's necessary to use a smarthoast where can that be 
>> configured?  I find sendmail less complex than exim4 and all other mail 
>> transport agents I've tried less complex than the pair of them.
>
> sudo dpkg-reconfigure exim4-config
>
> Adn this is waaaaaay less complex than anything else I've seen for
> smarthost!
>

This is probably common knowledge, but I recently discovered the -u
flag. This is handy, since I routinely use three different smarthosts.
So when I plug my laptop into a different network, I switch the
comments in my /etc/exim4/update.conf.conf file to point to the right
smarthost:

  dc_smarthost='smtp1.ns.sympatico.ca'
  #dc_smarthost='smtp.smu.ca'
  #dc_smarthost='mailhost.mcgill.ca'

and then run 

  dpkg-reconfigure -u exim4-config

This way, dpkg-reconfigure just switches the smarthost, without making
me answer a bunch of questions about things that don't change.

At some point I suppose I should write a script that will check which
network I'm on and invoke dpkg-reconfigure exim4-config with the right
options, but I'm not sure how to do that yet - any hints welcome!

Cheers,

Tyler


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to