Solved

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

Posted on 2011-02-14
16
451 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
[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
  • 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
Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

 
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime is disastrous for companies and can lead to major hits on a brand, reputation, an…
This video teaches users how to migrate an existing Wordpress website to a new domain.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

730 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