Link to home
Create AccountLog in
Avatar of ryan80
ryan80

asked on

mail sent from sendmail does not have correct domain name

I am configuring a few Linux server to send mail to my internal Exchange server. I am just using sendmail to only send mail internaly.

I configured my Exchange server to be ther smart host, and am able to send mail to my internal domain now. However those emails show up as coming from @localhost.localdomain.

I edited the sendmail.mc file and edited these 2 lines thinking it would fix it, but no luck. What am I doing wrong?

MASQUERADE_DOMAIN(servername.this is my domain.com)dnl

MASQUERADE_AS(`this is my domain.com')dnl
ASKER CERTIFIED SOLUTION
Avatar of upanwar
upanwar
Flag of India image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of ryan80
ryan80

ASKER

Actually i just figured out about 15 seconds ago that I had it configured correctly. However when I sent a test message I was logged in as root, and the EXPOSED_USER option specifies root.

I logged on as another user and still had an issue. However I commented out
FEATURE(masquerade_envelope)
and it started working.