Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

do anyone know how to alter the mail-from of a postfix mail server?

Example, I have a postfix mail server which sends mail for the domain

When a linux user, whose account is (mapped in postfix/virtual to, try to send an email, its mail from is

HELO hostname:
Source IP:      one ip here

Problems: instead of just user. instead of just

Desired mail-from:

This is causing me problems with SPF records for example ( differs from any idea of what can be the problem?

Thanks in advance, Simon.

share|improve this question
up vote 0 down vote accepted

I dont think you can have per user HELO hostname without having a separate instance of postfix for each user.

for info on how to mangle message contents see header_checks(5) manpage

share|improve this answer

See address masquerading in the postfix manual.

share|improve this answer

Your Answer


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.