Since you are using NAT, the important IP address and host name associated with it is the one the outside world sees. Does that IP address have a host name the world sees and does that name then resolve to the same IP address?
Since you are using NAT, the important IP address and host name
associated with it is the one the outside world sees. Does that IP address have a host name the world sees and does that name then resolve to the same IP address?
Yup -- that's what I'm trying to get sendmail to use, but it's insisting on using the internal hostname, inclusive of the machine name. I.e., "betsy.example.com" is the actual hostname, at 10.x.x.x; all the 10.x.x.x machines have custom /etc/hosts that define betsy.example.com, etc., with their 10.x.x.x IPs. When it sends email to the outside world, I need to to send as "example.com", dropping the "betsy" part.
Is this really that hard?
best, Jeff
Around 09:59pm on Monday, July 02, 2007 (UK time), Jeff Potter scrawled:
Yup -- that's what I'm trying to get sendmail to use, but it's insisting on using the internal hostname, inclusive of the machine name. I.e., "betsy.example.com" is the actual hostname, at 10.x.x.x; all the 10.x.x.x machines have custom /etc/hosts that define betsy.example.com, etc., with their 10.x.x.x IPs. When it sends email to the outside world, I need to to send as "example.com", dropping the "betsy" part.
Are you talking about what appears on the "from" header line. Id so, these instuctions: http://www.stevesearle.com/tech/centos5.0.svr.html#sendmail explain how I set it up to work for me, showing mail as comming from ...@stevesarle.com, where the IP address that stevesearle.com resolves to is really a box hosted by my ISP, not on my local network.
Can you check that you have sendmail-cf installed (yum list installed sendmail-cf) as I think that may be your problem.
Steve
Are you talking about what appears on the "from" header line. If so, these instuctions: http://www.stevesearle.com/tech/centos5.0.svr.html#sendmail explain how
Ah.
One needs to comment out the "EXPOSED_USER" variable -- i.e., make it look like: dnl # EXPOSED_USER(`root')dnl
Thanks, guys! I think I'd have banged my head on this one for a long while, because it would work for all users *except* root, and I was testing it as root (and actually need it to work for root, too).
best, Jeff
On Monday, July 02, 2007 10:14 PM +0100 Steve Searle steve@stevesearle.com wrote:
Are you talking about what appears on the "from" header line.
What's important here is the HELO/EHLO name. That's what the receiving MTA will use to check against your reverse DNS.
The "envelope from" specified in the MAIL FROM command comes from the message from the MUA. This is the part that can be masqueraded.
Hi Jeff
I am wrestling with the same problem. However I set the masquerading - it just wont do it. My theory is that the user "root" is a "trusted user" and is allowed to override outgoing email addresses. I think this is overriding the masquerading. I suspect that the masquerading will work for non-trusted users. Also - if I change roots "from addresss" to eliminate the "host" then both the from " and "envelope sender" are sent without the host. Let me know if you find a better solution.
Richard.
Jeff Potter wrote:
Since you are using NAT, the important IP address and host name
associated with it is the one the outside world sees. Does that IP address have a host name the world sees and does that name then resolve to the same IP address?
Yup -- that's what I'm trying to get sendmail to use, but it's insisting on using the internal hostname, inclusive of the machine name. I.e., "betsy.example.com" is the actual hostname, at 10.x.x.x; all the 10.x.x.x machines have custom /etc/hosts that define betsy.example.com, etc., with their 10.x.x.x IPs. When it sends email to the outside world, I need to to send as "example.com", dropping the "betsy" part.
Is this really that hard?
best, Jeff
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On 7/2/07, Richard Chapman rchapman@aardvark.com.au wrote:
My theory is that the user "root" is a "trusted user" and is allowed to override outgoing email addresses. I think this is overriding the masquerading. I suspect that the masquerading will work for non-trusted users.
You are correct. Root is exposed by default:
"There are always users that need to be "exposed" -- that is, their internal site name should be displayed instead of the masquerade name. Root is an example (which has been "exposed" by default prior to 8.10). You can add users to this list using
EXPOSED_USER(`usernames')"
from http://www.sendmail.org/doc/sendmail-current/cf/README