How to do in qmail forwarding?

Objective: to make a redirect page so when the letter comes someemail@mydomain.ru it took the man at personal_email@anotherdomain.ru

.qmail-someemail looks like this:
#cat .qmail-testsomeemail <br>
| forward personal_email@anotherdomain.ru<br / >


Tried the "normal" version
#cat .qmail-testsomeemail <br>
entervuz@yandex.ru<br / >


The problem is this: I use the modified qmail-remote, which checks that the sender exists and if it is not — it gives an error.

The result of qmail-remote when you forward see the attempt to send the mail from v.romaneev@gmail.com to entervuz@yandex.ru. And, of course don't miss it, not to be a relay.


Question — how to make .qmail to create a new email and send it changing the sender?
October 8th 19 at 00:22
1 answer
October 8th 19 at 00:24
it did work to solve the problem )
next hack :)
| /var/qmail/bin/qmail-remote.orig anotherdomain.ru someemail@mydomain.ru personal_email@anotherdomain.ru

Find more questions by tags * nix-like systemsE-mailLinux