On 31.01.20 10:52, Msd wrote:
I have a user on my postfix example.com server that want all emails sent
to u...@example.com to be "relayed" to u...@external.example.net.

In main.cf I have set :
virtual_alias_maps = hash:/etc/postfix/virtual

# cat /etc/postfix/virtual
u...@example.com u...@external.example.net

The problem doing that is that some emails are rejected by
external.example.net mail servers because of SPF, for example :
"550 SPF Hard Fail: Following sender domain's SPF record v=spf1 [...]
-all does not designate a.b.c.d as permitted sender."

Is there a way to transfer the email as an attachment to avoid that ?
Or just a way to rewrite the envelope sender to u...@example.com ?
What do you advise for this case ?

you need to rewrite envelope from, e.g. by using postsrs.

Note that you can't do that from virtual maps, you must use aliases or
.forward.


--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Support bacteria - they're the only culture some people have.

Reply via email to