Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Linux Mail server

Posted on 2008-09-30
2
Medium Priority
?
231 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 2000 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

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

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

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
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 how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month6 days, 19 hours left to enroll

782 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