How to alter mail-from postfix?

Posted by Simon on Server Fault See other posts from Server Fault or by Simon
Published on 2010-03-21T21:10:47Z Indexed on 2010/03/21 21:11 UTC
Read the original article Hit count: 447

Filed under:

Hi all,

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 example.org.

When a linux user, whose account is user.example.org (mapped in postfix/virtual to [email protected]), try to send an email, its mail from is [email protected].

HELO hostname:  server.hostname.org
Source IP:      one ip here
mail-from:      [email protected]

Problems:

user.example.org instead of just user.

server.hostname.org instead of just example.org.

Desired mail-from: [email protected].

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

Thanks in advance, Simon.

© Server Fault or respective owner

Related posts about postfix