Solved

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

Posted on 2011-02-14
16
445 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
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
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
 

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

776 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