?
Solved

Setting up an Email Server

Posted on 2004-11-26
7
Medium Priority
?
278 Views
Last Modified: 2013-12-15
I am trying to setup my Mail Server.

2 DNS Servers
name.myhostname.com (Primary)
mail.myhostname.com (Secondary)

Two users pop and imap

I can send/recieve an email from/to
imap@mail.myhostname.com
pop@mail.myhostname.com

however,how would I go about setting it up so it works for
imap@myhostname.com
pop@myhostname.com

 
0
Comment
Question by:Dmitri Farafontov
  • 4
  • 3
7 Comments
 
LVL 38

Expert Comment

by:wesly_chen
ID: 12682771
Hi,

  Add MX record into your DNS servers :

--BIND DNS ---------------------
myhostname.com
...
   MX 10 mail.myhostname.com    <====
----------------------
Wesly
0
 
LVL 12

Author Comment

by:Dmitri Farafontov
ID: 12732671
That entry is already in the DNS Server. Anything else I can try?
0
 
LVL 38

Expert Comment

by:wesly_chen
ID: 12732711
Change the mail server (sendmail ?) config of your server to "masquerade" as its domain.

Wesly
0
 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

 
LVL 12

Author Comment

by:Dmitri Farafontov
ID: 12732909
I use Postfix as my MTA.
0
 
LVL 38

Expert Comment

by:wesly_chen
ID: 12736842
/etc/postfix/main.cf:
    masquerade_domains = mail.myhostname.com myhostname.com

For more details, please check:
http://www.postfix.org/ADDRESS_REWRITING_README.html

Wesly
0
 
LVL 12

Author Comment

by:Dmitri Farafontov
ID: 12742599
Email does arrive with proper headers like:
imap@myhostname.com
pop@myhostname.com

However, when I send it I still need to type
pop@mail.myhostname.com
imap@mail.myhostname.com

How would I fix it to be   a Global Setting for all the users. Someone told that DNS would be enough, but however its not working out ways I want it to be.


0
 
LVL 38

Accepted Solution

by:
wesly_chen earned 150 total points
ID: 12760446
> However, when I send it I still need to type
> pop@mail.myhostname.com

On the machine you send email,
If it is a Windows machines, then bring the comand prompt (cmd) and do
c:\> nslookup
> set q=mx
> myhostname.com  <=== put your hostname
What's the result?

If it is a Linux box, then do
# host -t mx myhostname.com  <=== put your hostname

What's the result?

Wesly

0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
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
Suggested Courses
Course of the Month14 days, 19 hours left to enroll

839 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