Solved

Sendmail Configuration - Masquerading

Posted on 2004-04-14
4
593 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 14

Accepted Solution

by:
pablouruguay earned 500 total points
ID: 10832784
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
ID: 10833666
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
ID: 10833739
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
ID: 10834385
Hey, never mind.
After some experimentation, I got it.
Life is good, thanks for your help.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

734 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