Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have an e-mail server powered by Postfix. Aside from traditional e-mail accounts on my server, I want to maintain some accounts whose only role is to forward all incoming mail to differnet address on different mail system.

For example. I own domain example.com and I set account with address username@example.com on my server. And I want this one account to forward all incoming messages to mailbox in different mail system, in domain that does not belong to me username@stranger.net. I know, that i can add an entry in in my virtual_alias_maps lookup table.

username@example.com   username@stranger.net

But I'm worried that to deliver message, Postfix will use original envelope sender address. It's okay if sender is from domain example.com that belongs to me, but otherwise stranger.net server may classify this message as a spam.

Is there some way, to alter envelope sender on delivery ?

Are smtp_generic_maps ment for this ?

If so, is it okay, that my server sends an e-mail using specific envelope sender, and then something else in message being forwarded ?

How else to deal with such problem ?

share|improve this question

1 Answer 1

As you seem to be well aware, in a situation like yours, setting the return path to something that you control, is definitely important. As to how to do that, it should be as easy as simply reinjecting the email into postfix with the modified return path.

You can look into how to make postfix deliver your email to this command:

| sendmail -f postmaster@example.com username@stranger.net

I am just not sure if you can do that in the virtual_alias_maps table.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.