Subject: Choose different SMTP servers

From: Nuno Teixeira <[email-masked]>
Date: Tue, 24 Apr 2001 00:46:17 +0100 (WEST)

Hi,

I'd like to know if it is possible to choose a SMTP server when we send
mail.

I know that we can setup several SMTP servers but I can't find the option
to choose the one that I want to use for a certain role.

Thanks very much,

- --
Nuno Teixeira
Dir. Técnico
pt-quorum.com
- --
PGP Public Key:
http://www.pt-quorum.com/pgp/nunoteixeira.asc

-- 
-----------------------------------------------------------------
 For information about this mailing list, and its archives, see: 
 http://www.washington.edu/pine/pine-info/
-----------------------------------------------------------------

---

From: Eduardo Chappa <[email-masked]>
Date: Mon, 23 Apr 2001 17:39:02 -0700 (PDT)

*** Nuno Teixeira ([email-masked]) wrote in the pine-info list...:

:) I know that we can setup several SMTP servers but I can't find the option
:) to choose the one that I want to use for a certain role.

Unfortunately the answer is no, at this time. I would like to set also
some other variables just depending on the role being used. This one,
however, can be set if you apply a patch that I wrote. The patch is called
"define your own rules...", and in particular allows you to define this
behavior. After you apply the patch and restart pine all you need to do is
press M S C and define the smtp-rules variable as follows:

smtp-rules  =  _ROLE_ == {name of role} => _SMTP_{smtp.server.com}

What will happen will be that Pine will go through all the rules that you
have listed in this variable, when sending the message. If one of them
matches the criteria that you selected (e.g ROLE, TO, etc) it will be
added to your list of smpt servers that you specificied in the smtp-server
variable, and it will be added at the top. When Pine sends the message it
will go through your list of servers from the top and check each one at
the time.  If you do this in the right way, you can always have one server
used to send a message for each message.

  If you are interested, the patch can be obtained from the address below.

-- 
Eduardo
http://www.math.washington.edu/~chappa/pine/