[SOLVED] Sendmail, why am I not getting FQDN in email address with masquerading off?
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Sendmail, why am I not getting FQDN in email address with masquerading off?
I have a host at myhost.mydom.org. I do not have any of the masqerading features turned on in the sendmail.mc file. Yet, when I send a message from a user on this host the sees the from address as user@mydom.org. I am expecting the from address to be user@myhost.mydom.org. Why am I not seeing this?
Yes, I regenerated the /etc/sendmail.cf from the .mc and yes, I restarted sendmail.
The email client is mailx and there is no "set from" in the .mailrc or /etc/nail.rc files.
How are you sending the mail? That is, what command or program are you using to send the mail? e.g.: mailx, Thunderbird, etc.
...asked as you answered...
Please show the exact mailx command you used.
What does
I have a host at myhost.mydom.org. I do not have any of the masqerading features turned on in the sendmail.mc file. Yet, when I send a message from a user on this host the sees the from address as user@mydom.org. I am expecting the from address to be user@myhost.mydom.org. Why am I not seeing this?
Yes, I regenerated the /etc/sendmail.cf from the .mc and yes, I restarted sendmail.
The email client is mailx and there is no "set from" in the .mailrc or /etc/nail.rc files.
If it's not masquerading, it could be that you're using genericstable to rewrite the From: address.
Please show the exact mailx command you used.
What does
Code:
hostname
return?
The exact command is simply 'mail user@thatdom.com'. 'hostname' returns "webserver" (the name of this host).
Quote:
Originally Posted by bathory
If it's not masquerading, it could be that you're using genericstable to rewrite the From: address.
I have no genericstable. However, I do have a smart host defined. The smarthost does have masquerading defined. Could that be it? If so, what if on the smart host I defined:
I have no genericstable. However, I do have a smart host defined. The smarthost does have masquerading defined. Could that be it? If so, what if on the smart host I defined:
EXPOSED_USER(`useridOnOtherHost`)
Alright, so the rewrite happens on the smarthost.
Use the EXPOSED_USER as above in the smarthost's sendmail.mc, recreate sendmail.cf, restart sendmail and test.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.