On Thu, 7 Dec 2000, Peter Rundle wrote:
> I.E using Mozilla at home I send a message with my from address as
> me at work. I want this mail to be forwarded to the work mta server
> first before it goes out to the world. However, I decide to send a
> mail to a friend (and just for the sake of the argument let's assume
> that I have a least one friend ;-) I want the MTA to send it direct
> to the destination (or at least to the DNS MX server).
Sounds like you need a MUA that supports multiple accounts or roles that
lets you change the SMTP server based on which role you are. Pine has
roles but it does not let you override the STMP server. Maybe mutt will
let you do it.
Otherwise if you were really desperate you try and get sendmail to do it,
which is probably why you are after a guru, which I am not.
The way I would approach it was that for certain from domains I would use
a smart relay (work) and everything else send direct. The problem is how
to do that.
Ruleset 0 does the setting of the delivery agent, my sendmail.cf has this
in it within ruleset 0.
++
# short circuit local delivery so forwarded email works
R$=L < @ $=w . > $#local $: @ $1 special local names
R$+ < @ $=w . > $#local $: $1 regular local name
# resolve remotely connected UUCP links (if any)
# resolve fake top level domains by forwarding to other hosts
# pass names that still have a host to a smarthost (if defined)
R$* < @ $* > $* $: $>95 < $S > $1 < @ $2 > $3 glue on smarthost name
# deal with other remote names
R$* < @$* > $* $#esmtp $@ $2 $: $1 < @ $2 > $3 [EMAIL PROTECTED]
# handle locally delivered names
R$=L $#local $: @ $1 special local names
R$+ $#local $: $1 regular local names
++
Notice that it does various tests to set the $# variable to something
like local, esmtp. One of them use $S which is your smart host definition.
Ruleset 0 only get the to address though. You might be able to format the
address differently such as [EMAIL PROTECTED] In Ruleset 0 you
could test for viawork in the address and set the delivery agent.
Then in ruleset 2 hack the viawork off.
The chapters in the Bat book are "8 - Addresses and Rules",
"9 - Rules set 0".
Well thats all way beyond my understanding but it may be a start.
Rodos
--
[EMAIL PROTECTED] | Programming is like sex: one mistake and you have to
Camion Technology | support it for the rest of your life. [Michael Sinz]
+61 2 9873 5105 |
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug