Le 28/11/2010 22:59, Eero Volotinen a écrit :
2010/11/28 Pete<p...@nrth.org>:
On Sun, 2010-11-28 at 23:38 +0200, Eero Volotinen wrote:
2010/11/28 Jerry<postfix-u...@seibercom.net>:
On Sun, 28 Nov 2010 23:06:48 +0200
Eero Volotinen<eero.voloti...@iki.fi> articulated:
I want to masquerade domain.fi with domain.com on outgoing mail? How
to do this on postfix?
http://www.postfix.com/postconf.5.html#masquerade_domains
Is this really correct setting? Manual says:
"Optional list of domains whose subdomain structure will be stripped
off in email addresses."
I don't want to strip subdomains, I just want to replace domain.fi
with domain.com from sender field ?
--
Eero
Hello,
Do you mean this from main.cf ? :
# The myorigin parameter specifies the domain that locally-posted
# mail appears to come from. The default is to append $myhostname,
# which is fine for small sites. If you run a domain with multiple
# machines, you should (1) change this to $mydomain and (2) set up
# a domain-wide alias database that aliases each user to
# u...@that.users.mailhost.
myorigin=domain.com
No, I want that my smarthost that is used via smtp, replaces domain
with another (for example.fi to example.com) in from field.
is the correct configuration option this:
http://swoolley.org/man.cgi/5/canonical
use postfix.org site instead:
http://www.postfix.org/canonical.5.html
There is also
http://www.postfix.org/generic.5.html
which is applied to mail sent via "smtp".
More info can be found in
http://www.postfix.org/ADDRESS_REWRITING_README.html
It is a good idea to visit
http://www.postfix.org/documentation.html