Solved

Sendmail Configuration - Masquerading

Posted on 2004-04-14
4
579 Views
Last Modified: 2010-03-18
Greetings,
this is a new install. Sendmail 8.12.10 on Redhat Linux Enterprise 9.0
The server is NATed behind a firewall, so it has a private hostname and IP. It is to be a relay for an internal Exchange server.
The Host name is "Priv", the DMZ domain is "Local.priv". The Public domain is "Domain.com". the Exchange box sits in "Domain.Otherdomain.com".
The goal is to send/receive mail and have it appear as "user@Domain.com". Can you advise the correct way to do this?

Also, what is the best way to test Sendmail and that this server is relaying correctly? I tried running the command line /usr/lib/sendmail with various switches, but that doesn't seem to work correctly.

thank you in advance for your assistance.

Jeff.
0
Comment
Question by:Sysdeath
  • 2
  • 2
4 Comments
 
LVL 14

Accepted Solution

by:
pablouruguay earned 500 total points
Comment Utility
ok. you need to create a file /etc/mail/generics-domains and add domain.com in this file
 

 modify this lines in /etc/mail/sendmail.cf

# class E: names that should be exposed as from this host, even if we masquerade
# class L: names that should be delivered locally, even if we have a relay
# class M: domains that should be converted to $M
# class N: domains that should not be converted to $M
#CL root
C{E}root
C{M}domain.com
F{G}/etc/mail/generics-domains



# who I masquerade as (null for no masquerading) (see also $=M)
DMdomian.com



its all
0
 

Author Comment

by:Sysdeath
Comment Utility
Thank you for your post.
When you say to modify the lines, do you mean that I should un-comment all of them? Like this -class E: names that should be exposed as from this host, even if we masquerade
class L: names that should be delivered locally, even if we have a relay
class M: domains that should be converted to $M
class N: domains that should not be converted to $M
CL root
C{E}root
C{M}domain.com
F{G}/etc/mail/generics-domains

Aslo, there are multiple C{M} lines like this-
C{M}localhost
C{M}localhost.localdomain
C{M}mydomainalias.com
C{M}mydomain.lan

Do I change all or those?

Thanks again,
Jeff

0
 
LVL 14

Expert Comment

by:pablouruguay
Comment Utility
like i put up  only these 3 lines was uncomment


#class L: names that should be delivered locally, even if we have a relay
#class M: domains that should be converted to $M
#class N: domains that should not be converted to $M
#CL root
C{E}root
C{M}domain.com
F{G}/etc/mail/generics-domains

you masq only with the real domain

C{M}mydomainalias.com

and another think... you need to add the lines
mydomain.lan
mydomainalias.com


localhost into the file

/etc/mail/local-host-names


0
 

Author Comment

by:Sysdeath
Comment Utility
Hey, never mind.
After some experimentation, I got it.
Life is good, thanks for your help.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
This video discusses moving either the default database or any database to a new volume.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now