Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 29th January 2011, 20:08
SacreBleu SacreBleu is offline
Junior Member
 
Join Date: Jan 2011
Location: The Netherlands
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
Default Mail server configuration with "The Perfect Server" for Ubuntu 10.10

Hello all,

I've just freshly registered to this community, couldn't find a proper introduction forum so I'll just post something nice here.

I am a Dutch student at the Rotterdam University studying to become a teacher, I love photography and always shared a passion with anything IT-related.
This passion brought me the idea to host a website myself, something which I've been doing successfully for some time now.
I felt it was time to get a bigger project started so I bought a domain-name and wanted to see what kind of 'cool stuff' I could do with it.

The basic concept what I have now, is just to host "a bunch of websites" be it Wordpress, Joomla! or Drupal anything and everything just as a huge experimentation.

To cut a long story short, I followed this excellent tutorial: http://www.howtoforge.com/perfect-se...at-ispconfig-3 to the letter, copied and pasted as much as I could and trying to Google what the heck I was exactly doing.

Now, one of my greatest desires is to have my own mail-server, so being able to send and receive mail to other domains.
As I said, I followed the tutorial to the letter, and made some quick configurations in ISPconfig.

However, I don't have the ability to receive or send mail to domains outside my own, I've taken it upon myself to start a new leaf, format and start over.
For this to be successful I have a few enquiries which I hope people will be able to help me with.



I have the ability to change my DNS settings by a third-party provider, I've deleted all the records, save for two:

Code:
A brothersonline.nl →    
A localhost.brothersonline.nl → 127.0.0.1  
CNAME www.brothersonline.nl → brothersonline.nl
Starting a new leaf, first things first, how should I name my server?
The first time I went through the guide I choose server1.brothersonline.nl is this suitable or should it be (e.g mail.brothersonline.nl)

I know I have to make an MX-record to whatever my mailserver is, so this will likely be:

Code:
MX-xx     brothersonline.nl  -->   xx.16x.2xx.xx
To send mail to certain hosts, gmail in particular, I probably should create a PTR record too, my DNS provider allows me to create a PTR record. so this should probably be:

Code:
PTR        brothersonline      -->   xx.16x.2xx.xx
When we're done with that, I will resume my guide.
After I am done, how do I configure my mail-server to receive and send mail to other domains?

I received this error everytime I tried to send a mail to damien@brothersonline.nl

Code:
Delivery to the following recipient failed permanently:

    damien@brothersonline.nl

Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 550 550 5.7.1 <damien@brothersonline.nl>... Relaying denied (state 14).

----- Original message -----

Received: by 10.216.162.84 with SMTP id x62mr3805903wek.106.1296284765224;
 Fri, 28 Jan 2011 23:06:05 -0800 (PST)
MIME-Version: 1.0
Sender: xxxxxxxxxxxxxxxxxxx
Received: by 10.216.23.20 with HTTP; Fri, 28 Jan 2011 23:05:45 -0800 (PST)
From: xxxxxxxxxxxxxxxn <xxxxxxxxxxxxxxx>
Date: Sat, 29 Jan 2011 08:05:45 +0100
X-Google-Sender-Auth: CiqsmDbD3LQsVFZYaNHeIu2E1R4
Message-ID: <AANLkTi=SLxhqLsBAA97n5mOUcAQWTrGfHfQ=2hcgW-a0@mail.gmail.com>
Subject: test
To: damien@brothersonline.nl
Content-Type: multipart/alternative; boundary=001636458010f58022049af6d0b2
I've also tried sending e-mails to: dxxxx@server1.brxxxxthersonline.nl and dxxxx@mail.brxxxxsonline.nl.

I'm pretty new to this level of hosting, and I know I might be lacking some basic understanding, but I am dead in the water about now, so if anybody could give some pointers, be it explanations or just even hints, I will gladly try to follow up on them and see if it fixes my particular problem.

Thank you kindly for any help you might be able to provide me with.

Last edited by SacreBleu; 30th January 2011 at 20:21.
Reply With Quote
Sponsored Links
  #2  
Old 29th January 2011, 22:06
pititis pititis is offline
Senior Member
 
Join Date: Dec 2010
Location: München
Posts: 364
Thanks: 39
Thanked 90 Times in 68 Posts
Default

Hello SacreBleu,

Code:
dig mx brothersonline.nl

; <<>> DiG 9.7.1-P2 <<>> mx brothersonline.nl
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 826
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;brothersonline.nl.		IN	MX

;; ANSWER SECTION:
brothersonline.nl.	11302	IN	MX	20 mx1.cyso.net.
brothersonline.nl.	11302	IN	MX	30 mx2.cyso.net.

;; Query time: 33 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Sat Jan 29 21:59:07 2011
;; MSG SIZE  rcvd: 83
I think your MX record is not set properly or dns is not updated yet
Reply With Quote
  #3  
Old 29th January 2011, 22:49
SacreBleu SacreBleu is offline
Junior Member
 
Join Date: Jan 2011
Location: The Netherlands
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thanks,

Let me update those MX-records, since right now I haven't got any since I wanted to start over, although I haven't formatted the server and followed the guide to the letter, is there anything (hostname?) that I might've done wrong?

Or could it just be the MX records not being properly updated?

Updated my MX record it says:

Code:
MX-10 brothersonline.nl → mail.brothersonline.nl
My complete DNS table:


Code:
A brothersonline.nl → 62.163.251.35  
A localhost.brothersonline.nl → 127.0.0.1  
A mail.brothersonline.nl → 62.163.251.35 
MX-10 brothersonline.nl → mail.brothersonline.nl    
CNAME www.brothersonline.nl → brothersonline.nl

Last edited by SacreBleu; 29th January 2011 at 22:55.
Reply With Quote
  #4  
Old 29th January 2011, 23:18
pititis pititis is offline
Senior Member
 
Join Date: Dec 2010
Location: München
Posts: 364
Thanks: 39
Thanked 90 Times in 68 Posts
Default

Well done.

Are your using dynamic ip???
Reply With Quote
  #5  
Old 29th January 2011, 23:50
SacreBleu SacreBleu is offline
Junior Member
 
Join Date: Jan 2011
Location: The Netherlands
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Internally the server has a static IP, yes.

My internet/external IP is not static but we have an unlimited lease until you reset the modem, which we do about every two years (or longer when our connection stays stable, we have a pretty reliable ISP, so that's not much of a problem.

I created a client (myself) in ISPconfig, created a domain for e-mail (brothersonline.nl) and created an e-mail box.
Should everything work correctly now? -- Or is there something I still need to do to send mail to outside domains?

Checked my status with dig:


Code:
; <<>> DiG 9.7.1-P2 <<>> mx brothersonline.nl
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37816
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; QUESTION SECTION:
;brothersonline.nl.             IN      MX

;; ANSWER SECTION:
brothersonline.nl.      86328   IN      MX      10 mail.brothersonline.nl.

;; ADDITIONAL SECTION:
mail.brothersonline.nl. 86328   IN      A       62.163.251.35

Last edited by SacreBleu; 30th January 2011 at 00:09.
Reply With Quote
  #6  
Old 30th January 2011, 00:08
pititis pititis is offline
Senior Member
 
Join Date: Dec 2010
Location: München
Posts: 364
Thanks: 39
Thanked 90 Times in 68 Posts
Default

Yes. But dynamic ip addresses are normally blacklisted...

Check it
Reply With Quote
  #7  
Old 30th January 2011, 00:09
SacreBleu SacreBleu is offline
Junior Member
 
Join Date: Jan 2011
Location: The Netherlands
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
Default

How can I check, whether it is blacklisted?

Shouldn't a PTR record, get rid of that problem?

Used: http://www.mxtoolbox.com/
To check for blacklist, out of many only 4 reported me as blacklisted and I could automatically remove myself from one of them.

When I launched a SMTP scan I received the following report:

Code:
smtp:brothersonline.nl		    smtp    
220 server1.brothersonline.nl ESMTP Postfix (Ubuntu)


 OK - 62.163.251.35 resolves to a251035.upc-a.chello.nl
 Warning - Reverse DNS does not match SMTP Banner
 0 seconds - Good on Connection time
 Not an open relay.
 1.217 seconds - Good on Transaction time

Session Transcript:
HELO please-read-policy.mxtoolbox.com
250 server1.brothersonline.nl [140 ms]
MAIL FROM: <supertool@mxtoolbox.com>
250 2.1.0 Ok [172 ms]
RCPT TO: <test@example.com>
554 5.7.1 <test@example.com>: Relay access denied [140 ms]
QUIT
221 2.0.0 Bye [156 ms]

Last edited by SacreBleu; 30th January 2011 at 00:18.
Reply With Quote
  #8  
Old 30th January 2011, 00:21
pititis pititis is offline
Senior Member
 
Join Date: Dec 2010
Location: München
Posts: 364
Thanks: 39
Thanked 90 Times in 68 Posts
Default

http://www.mxtoolbox.com/blacklists.aspx
http://www.spamhaus.org/query/bl?ip=62.163.251.35

The dynamic ip is the problem. There are many post in the forum with this issue, but try to use your server. You must set spf record and rdns. To set rdns try in your panel, if not ask your isp.

Last edited by pititis; 30th January 2011 at 00:23.
Reply With Quote
  #9  
Old 30th January 2011, 00:30
SacreBleu SacreBleu is offline
Junior Member
 
Join Date: Jan 2011
Location: The Netherlands
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thank you,

I am unable to set a SPF and rDNS record in the panel I use that is provided by the DNS provider.

I reckon I could remove this issue by hosting my own DNS server, but I am not sure whether or not I run into the same problems regarding my blacklisted IP.

However, despite of the blacklist, shouldn't I at least be able to receive e-mail?
Reply With Quote
  #10  
Old 30th January 2011, 00:39
pititis pititis is offline
Senior Member
 
Join Date: Dec 2010
Location: München
Posts: 364
Thanks: 39
Thanked 90 Times in 68 Posts
 
Default

No.
If you can set cname and A records you should can set TXT records.
Try to run new test when your will done. rdns had nothing to do with your dns control panel, it's a isp issue.
Reply With Quote
The Following User Says Thank You to pititis For This Useful Post:
SacreBleu (30th January 2011)
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
All my mail is going to /var/mail/vmail _sluimers_ Installation/Configuration 21 10th January 2011 13:21
amavis & ispconfig 3 yalex2000 Installation/Configuration 20 18th February 2010 17:02
Sending emails with custom FROM email address merisor Installation/Configuration 4 8th February 2010 16:27
Postfix problem and few questions Gimly Installation/Configuration 12 7th July 2009 16:27
Help configure Postfix to use alt port 465 or 587 BoloMarkIII Installation/Configuration 10 16th March 2009 17:57


All times are GMT +2. The time now is 04:39.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.