> the message just loops because qmail-send thinks that kendle.com is local.
> I know it's sort of nitpicky, but I need messages to be processed through
> fastforward and be relayed to the next server with the recipient
> address of
> [EMAIL PROTECTED] if no match is found.
>
> Any ideas?

OK I have spent all day pondering over ideas because I know I will be asked
one day 'why does it say e-mails are getting sent to [EMAIL PROTECTED]
instead of [EMAIL PROTECTED]?' so I better fix it now...

My idea (which I am going to try implementing this weekend not during week
when ppl are working :> ) so I don't know if it will work but it is an idea
anyway...

~alias/.qmail-default:
| fastforward -pd /etc/aliases.cdb
./Other/

Then a cron job every 5 minutes that runs maildir2smtp (part of the
serialmail package) on that ~/alias/Other maildir (might want to run the
e-mails through a perl or sed regex to get rid of the Delivered-to: line) to
pass it on to another relay.

Other thing I can think of (if two *nix boxes available) is have a NFS share
(rw) on the machine you WANT to relay the messages to. Mount this share on
the machine which is receiving the mail that you want to relay/forward on.
Have them delivered to a Maildir on that share (same as above), and run a
cron job on the machine that WILL process them properly (say every 5 minutes
again), which runs a script to go to each file in the Maildir and
qmail-inject it into the queue. I've had to do this before (I have a small
perl script to do it but it isn't hard to make one up...), and it worked
fine then. Different circumstances, however.

Hope this is less complex than Tony's suggestion. Tony's makes sense, but I
don't have the time for that...an extra addition to .qmail-default and a
cron job seems easy and relatively efficient to me... Let me know what you
think!

/BR

Manager
InterPlanetary Solutions
http://ipsware.com/

Reply via email to