Solved

Sendmail Configuration - Masquerading

Posted on 2004-04-14
4
591 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
netcat nc -l reads data in socket too fast - slow it down 18 907
Linux Mailserver setup & redundancy 2 120
Linux Login using LDAP or Active Directory 4 157
Video Streaming 6 115
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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

739 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