PDA

View Full Version : Send mail to a mailbox if forwarding fails?


wpress
08-23-2002, 03:12 PM
Hello!

I have an email user with a linux box at home, including SMTP server. They'd like their FQ mailbox to forward to their mailbox there. I'm reluctant to do this because my guess is that their server uptime is nowhere near FQ's :) and I don't want to be bouncing unforwardable mail back to the sender.
Is there any way to try the forward, but, if it fails, send the message to one of my FQ-hosted POP3 boxes instead?
Even if what gets sent to the FQ box is an error email, this would be OK, as long as it includes the full text of the "undeliverable" original message.
Thanks for any suggestions!
Cheers,
Bill P.

Bruce
08-23-2002, 03:25 PM
The only way to do what you describe is to arrange to have the bounce go to that address by changing the sender address. This has the (potentially) unfortunate side-effect of sending all bounces to the FutureQuest address. You can achieve this by using the following filter command: env NEWSENDER=fqaccount@fqdomain.tld forward home@server.tld Note that if the remote server is down, unreachable, or presents anything other than a permanent error to our servers, we will retry the message for up to four days.

wpress
08-23-2002, 07:13 PM
Thanks, Bruce. I think changing all the sender addresses has, as you point out, too dire consequences! Too bad there isn't another way to do this. I could potentially write a filter script that attempts to connect to the remote server as a pre-check before actually forwarding the message -- but I fear that this could too easily hang if the remote server was down (and I have learned the hard way the consequences of causing hangs in an FQ email script!).

Cheers,
-B.