-----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@xxxxxxxxxxxx" instead of
| "root@xxxxxxx". 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@xxxxxxxxxxxxxxx". 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@xxxxxxxxxxxx
scowles steve@xxxxxxxxxxx
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-----
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list