[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Q: Setting retries on the half-hour?





> 	- some people have asked for an ability to:
> 		- try to send with SMTP
> 		- if SMTP timeouts (no connection), send with UUCP
> 	  That can (perhaps) be solved with alternate-routes
> 	  mechanism, however it was never finished in the
> 	  original system, and there are just some hooks, but
> 	  small parts of it are still missing...  (Like a way
> 	  to handle interlocks of multiple channels processing
> 	  same message..  Consider the SMTP vs. UUCP above,
> 	  if BOTH systems send, you will get double delivery
> 	  every time..)

Well. It's not that hard to do if you just need a fallback from direct
smtp to a smart uucp-host that can deliver your mail for you. I have a 
leased line and normaly deliver via smtp, but if the line breaks, i do
dialup and uucp (in fact, uucp does this itself because i get my news
via uucp over tcp, if this fails it dials). 
All I had to change was:

--- rrouter.cf.orig	Wed Jan  3 09:54:41 1996
+++ rrouter.cf	Fri Mar 15 04:18:22 1996
@@ -129,14 +129,20 @@
 
 
 		if [ "$SMARTHOST" ]; then
-			return $(rrouter "$SMARTHOST!$(uucproute "$address")" "$origaddr" $A)
+#			return $(rrouter "$SMARTHOST!$(uucproute "$address")" "$origaddr" $A)
+# hack to deliver mail if smtp isn't available
+			return (((myuucp $SMARTHOST  "$address" $A)))
 		else
 			return ((($UNRESOLVABLEACTION "$address" $A)))
 		fi
 		;;
 

And define a SMARTHOST. This works, because nameservice also get's lost if
the leased line drops, so smtp can't look up the host anymore.

  Tom
-- 
i feel like a falling leaf / departed from my source of life
dipping into the ground    / to become one with the earth
todessehnsucht - wo bleibt die gerechtigkeit?     -atrocity-