Solved

Linux Mail server

Posted on 2008-09-30
2
225 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
[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 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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
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 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.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

735 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