Postfix myorigin

Steve Cowles steve at stevecowles.com
Wed Sep 15 22:40:41 UTC 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Stardate 6609.08, Chris Purcell said:
| I've set up a bunch of Postfix servers in the past, but I have these two
| new Red Hat Enterprise Linux 3 AS servers running Postfix that don't use
| the "myorigin" parameter in main.cf for some reason.
|
| mydomain = foo.com
| myhostname = mail.foo.com
| myorigin = $mydomain
|
| Whenever I send mail out from the command line using either the mail or
| sendmail command, the mail will be sent as "root at mail.foo.com" instead of
| "root at foo.com".  It uses whatever the hostname of the machine is...not the
| hostname listed in main.cf.  If I run the command "hostname
| newname.foo.net" and then send mail out, it will go out as
| "root at newname.foo.net".   I've never seen this problem before on any other
| servers.  Chaning the myorigin parameter to anything and running 'postfix
| reload' has no effect.
|
| Also, I tried addding the "masquerade_domain = foo.com" option but it
| didn't change anything.
|

I use canonical maps to re-write addresses with postfix. Example:

In main.cf
sender_canonical_maps = hash:/etc/postfix/canonical_sender

In canonical_sender
root   root at mydomain.com
scowles steve at virtual.com
etc...

BTW: I don't canonicalize the root account. I show it above as an
example only.
- --
Steve Cowles
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBSMTp+EiWPcdLGmQRAg6LAJ9lTuisrbVbzEHZ5auSRDH5tw6ojQCgiGTZ
Un1kjuxzi2vojKSfikgG+5A=
=mEoW
-----END PGP SIGNATURE-----





More information about the redhat-list mailing list