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
Solved

Linux Mail server

Posted on 2008-09-30
2
224 Views
Last Modified: 2013-12-16
Dear Sir/Madam:

I have redhat enterprise linux ver 5 host name is parrot.abc.com the same is local name server for the internal resolving and this server also works as ftp server this is been assigned with the private ip address  i,e 192.168.1.250 and one more linux box works as a router DNAT and SNAT is done here so from the internet ftp server can be accessed similarly lan users can access the internet but now my requirement is :
To configure the server parrot.abc.com as a Mailserver for the different domain name xyz.com  
that is host name is parrot.abc.com but mail server should be for the xyz.com  please help me how to do this ,
Is it required to change the hostname but i do not want to do so .
please help.



0
Comment
Question by:D_wathi
2 Comments
 
LVL 13

Accepted Solution

by:
WizRd-Linux earned 500 total points
ID: 22612303
There is no need to change the hostname at all.

If you are using for example sake postfix, there is a line in the main.cf configuration file which specifies which domains to accept mail for, as long as the system has a valid user.

mydestination = mail.abc.com, parrot.abc.com, abc.com, mail.xyz.com, xyz.com


From there, your external box, which is doing the NAT for you just forwards port 25 traffic to this server.

From there, setup the domain xyz.com and point the MX record at your external NAT box.
0
 
LVL 19

Expert Comment

by:bevhost
ID: 22612592
If using sendmail add the names to /etc/mail/local-host-names

# telnet localhost 25
quit

to see which mail server you have.


0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
error while installing php56 in redhat enterprise linux 20 50
I NEED A "BARE" LINUX ... 9 56
SSL/TLS - openssl troubleshooting 3 39
Delayed Email Deliveries 5 22
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

840 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