Solved

sending email to xxx@SMTP_email_server_IP_address & registering MX / SMTP server addr

Posted on 2011-02-14
16
441 Views
Last Modified: 2013-11-19

Hi

Pending the purchase of our domain,  I have already set up an
SMTP email server running postfix & this server has been given
a public IP address, say aa.bb.cc.dd

Q1
Can I test send an email to this server by sending to
a_postfix_mailbox@aa.bb.cc.dd ?

Q2:
Secondly after getting the domain, how do I link my SMTP server's
IP address so that it appears in MX record ?  The domain provider
I'm using is Adicio (it's just a website & we have to DIY, I'm not sure
if there's a support hotline to call)
0
Comment
Question by:sunhux
  • 9
  • 6
16 Comments
 
LVL 35

Accepted Solution

by:
Ernie Beek earned 400 total points
ID: 34887982
Q1: Not really. You can test connectivity by doing a telnet from a remote location to aa.bb.cc.dd at port 25.

Q2: The domain provider (the one who manages your DNS) is the one who should create an MX record pointing to the public address of your mailserver (and perhaps a PTR record as well).
0
 

Author Comment

by:sunhux
ID: 34888044

Q1:
 I told my boss & the security guys that they have to permit SMTP (Tcp 25) to the whole
Internet & they insisted that since there's only a handful of organizations (about 5-6) that
send emails to my postfix/SMTP server, the firewall rule should be such that it permits
only those few organizations' SMTP servers to connect to my postfix server on Tcp25.
Looks like from your answer, email is relayed across several hops & it may be an SMTP
server that's totally unrelated to those organizations' (& their domains) that could be
connecting to my postfix server on Tcp 25, is this right?

Q2:
Out of curiosity, if the domain provider is running a DNS/BIND on a Linux box, what's
the commands that they would issue to get this done?
     
0
 
LVL 35

Assisted Solution

by:Ernie Beek
Ernie Beek earned 400 total points
ID: 34888122
Q1: That could be the case. If they use a smart host for forwarding mail or use a hotmail/yahoo/gmail/whatever account, the ip addresses might vary and indeed be unrelated.

Q2: Phew, let me think.

The should set up a zone record something like:

$ttl 38400
yourdomain.com.    IN    SOA    ns1.yourdomain.com. webmaster.yourdomain.com. (
            1055026205
            6H
            1H
            5D
            20M )
yourdomain.com.        IN    A     1.2.3.4
ns1.yourdomain.com.    IN    A     1.2.3.4
ns2.yourdomain.com.    IN    A     1.2.3.5
yourdomain.com.        IN    NS    ns1.yourdomain.com.
yourdomain.com.        IN    NS    ns2.yourdomain.com.
mail.yourdomain.com.   IN    MX    1 yourdomain.com.
0
 
LVL 4

Assisted Solution

by:RyanShafer
RyanShafer earned 100 total points
ID: 34888167
Q1 smtp relays are typically used to relay mail from the edge of a network to the mail server which actually has a private ip on the internal network.  The smtp relay will still have the ip that the mail server is registered to. so the answer is no it cannot be accessed from anyone on the internet.

Q2

DNS records must be present within the zone and this is the syntax

mail.domain.com.    IN   A   aa.bb.cc.dd
domain.com.   MX  10    mail.domain.com.

10 is the priority number where MX record with lowest priority is chosen first.  Many mail servers will require you to create a PTR record as well.  this is done differenlt howver.
0
 

Author Comment

by:sunhux
ID: 34889098

Bear with me, one last question :

since my server's already been given a public IP address, how do I
assign this public IP address to the new domain I've just bought?
PTR record?  or how exactly is the DNS/BIND record being defined
(with a sample format of the record if possible)

Many thanks
0
 
LVL 35

Assisted Solution

by:Ernie Beek
Ernie Beek earned 400 total points
ID: 34889129
Here we go:

yourdomain.com.        IN    A     1.2.3.4
www.yourdomain.com.    IN    CNAME yourdomain.com.

0
 

Author Comment

by:sunhux
ID: 34889152

and oh, someone from postfix list told me I can send test emails in advance
(prior to my domain being registered) by addressing the test emails to :
   recipient@[a.b.c.d]
where a.b.c.d is the public IP address of my SMTP/postfix server.

Well, gmail won't accept something with brackets in its "To: " field, & I
tested with Outlook webmail - those mails bounced with the message:
  recipeint@ (MOBILE:203126130167)
  To be able to send text messages, you need to set up your text messaging account.
  Click here to set up your account.
0
 
LVL 35

Assisted Solution

by:Ernie Beek
Ernie Beek earned 400 total points
ID: 34889158
B.t.w. A PTR record is being used to do a reverse lookup, mostly used with mailservers to check if you really are who you say you are.
A PTR record is NOT being set up by the domain provider but by your ISP (so the one who manages your physical internet connection).
0
Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

 

Author Comment

by:sunhux
ID: 34889175


Thanks Ernie.

So in your last reply 1.2.3.4 is the public IP address of my SMTP postfix server
or my webserver?  I don't have a webserver
0
 
LVL 35

Expert Comment

by:Ernie Beek
ID: 34889183
I think you should also try that from a postfix server. That isn't a correct syntax when using anemail client.
0
 

Author Comment

by:sunhux
ID: 34889201

So I guess I don't have to do anything further about PTR record as my ISP
who assigned me the public IP address would have set up the PTR record
in the first place, is this right?
0
 
LVL 35

Expert Comment

by:Ernie Beek
ID: 34889210
Ok, allready posted that before so i thought you wanted a web address as well.

Then it is:

yourdomain.com.        IN    A     1.2.3.4
mail.yourdomain.com.   IN    MX    10 yourdomain.com.
0
 
LVL 35

Expert Comment

by:Ernie Beek
ID: 34889233
Depends, normally they night set up a PTR record but with a generic name. You would like it to point back at the domain you just set up.
0
 
LVL 35

Expert Comment

by:Ernie Beek
ID: 34889235
night = might :-~
0
 

Author Closing Comment

by:sunhux
ID: 34906777
'excellent
0
 
LVL 35

Expert Comment

by:Ernie Beek
ID: 34907136
Thx.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Read about why website design really matters in today's demanding market.
Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

758 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now