G
G
gre2012-04-12 11:10:28
linux
gre, 2012-04-12 11:10:28

How to redirect in qmail?

Task: to redirect so that when a letter arrives at [email protected] it goes to a person at [email protected]
.qmail-someemail looks like this:

#cat .qmail-testsomeemail <br/>
| forward [email protected]<br/>

I also tried the "regular" version.
#cat .qmail-testsomeemail <br/>
[email protected]<br/>

The problem is this: I'm using a modified qmail-remote that checks that the sender exists and if it doesn't, it throws an error.
As a result, when redirecting, qmail-remote sees an attempt to send a letter from [email protected] to [email protected] And, of course, does not miss it, so as not to be a relay.
Question - how to force .qmail to create a new letter and forward it by changing the sender?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
gre, 2012-04-12
@gre

it turned out to solve the problem) with the
next hack :)
| /var/qmail/bin/qmail-remote.orig anotherdomain.ru [email protected] [email protected]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question