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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 12th November 2011, 15:58
_X_ _X_ is offline
Senior Member
 
Join Date: Oct 2008
Posts: 247
Thanks: 8
Thanked 37 Times in 35 Posts
Red face ISP Config 2: From POP3/SMTP to GMail/Google

I have fully functional ISP Config 2 server (ubuntu) on one IP/Domain and second IP/Domains for shared hosting.

On second IP(shared) there is Domain (MyDomain.com) that used local mail server (postfix) for years without any problem and with all records set. They want to move mail to GMail/Google. All steps that I know of are in order but mail is not working so I'm missing something. Here is what I have done so far.

1) IPS Manager/Sites/MyDomain Site
Co-Domains:
Domain: MyDomain.com
Options: Mailserver: External Mailserver
2) DNS Manager/MyDomain.com/Records
aspmx.l.google.com.
alt1.aspmx.l.google.com.
alt2.aspmx.l.google.com.
aspmx2.googlemail.com.
aspmx3.googlemail.com.
3) in named.conf there is:
zone "mydomain.com" {
type master;
file "pri.mydomain.com";
};
4) in pri.mydomain.com there is:
$TTL 86400
@ IN SOA not shared IP. mydomain.mydomain.com. (
2011111201 ; serial, todays date + todays serial #
28800 ; refresh, seconds
7200 ; retry, seconds
604800 ; expire, seconds
86400 ) ; minimum, seconds
;
NS IP of server that is not shared IP. ; Inet Address of name server 1
NS nameserver.com. ; Inet Address of name server 2
;

MX 10 aspmx.l.google.com.
MX 20 alt1.aspmx.l.google.com.
MX 20 alt2.aspmx.l.google.com.
MX 50 aspmx2.googlemail.com.
MX 50 aspmx3.googlemail.com.

mydomain.com. A mydomain IP
www A mydomain IP

mydomain.com. TXT "v=spf1 a mx ptr ~all"

;;;; MAKE MANUAL ENTRIES BELOW THIS LINE! ;;;;

5) dig mx mydomain.com gives:
; <<>> DiG 9.4.2-P2.1 <<>> mx mydomain.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 33901
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;mydomain.com. IN MX

;; ANSWER SECTION:
mydomain.com. 2118 IN MX 10 mail.mydomain.com.

;; Query time: 1 msec
;; SERVER: someIP#53(someIP)
;; WHEN: Sat Nov 12 15:55:41 2011
;; MSG SIZE rcvd: 51

6) local-host-names is:

###################################
#
# ISPConfig local-host-names Configuration File
# Version 1.0
#
###################################
localhost
maindomain.com
localhost.maindomain.com
localhost.com
localhost.localdomain
mail.mydomain.com
forum.mydomain.com
#### MAKE MANUAL ENTRIES BELOW THIS LINE! ####


something is wrong and I cannot see it, although it is probably screaming and jumping in front of me
bold section is problem I know, but dont know where does it came from

Last edited by _X_; 12th November 2011 at 16:12.
Reply With Quote
The Following User Says Thank You to _X_ For This Useful Post:
nflcorbin (19th November 2011)
Sponsored Links
  #2  
Old 12th November 2011, 16:17
_X_ _X_ is offline
Senior Member
 
Join Date: Oct 2008
Posts: 247
Thanks: 8
Thanked 37 Times in 35 Posts
Default

6a) After ALL Recycle Bins were emptied local-host-names is:

###################################
#
# ISPConfig local-host-names Configuration File
# Version 1.0
#
###################################
localhost
maindomain.com
localhost.maindomain.com
localhost.com
localhost.localdomain
#### MAKE MANUAL ENTRIES BELOW THIS LINE! ####
Reply With Quote
  #3  
Old 12th November 2011, 19:03
_X_ _X_ is offline
Senior Member
 
Join Date: Oct 2008
Posts: 247
Thanks: 8
Thanked 37 Times in 35 Posts
Default

7) Found that I need to add to DNS Manager/MyDomain.com/Records
CNAME:
Hostname: mail
Target: ghs.google.com

but that did not change much. still getting

Diagnostic-Code: smtp;554 5.7.1 <user@mydomain.com>: Relay access denied
Reply With Quote
  #4  
Old 12th November 2011, 22:44
_X_ _X_ is offline
Senior Member
 
Join Date: Oct 2008
Posts: 247
Thanks: 8
Thanked 37 Times in 35 Posts
Default

Tried to get all back to Local MailServer but still get same error?

Deleted google MX records and set all to Internal MailServer.

EDIT: Found error in DNS. Now local mail delivery works.

Last edited by _X_; 12th November 2011 at 22:47.
Reply With Quote
  #5  
Old 12th November 2011, 23:01
_X_ _X_ is offline
Senior Member
 
Join Date: Oct 2008
Posts: 247
Thanks: 8
Thanked 37 Times in 35 Posts
Default

After I got local mail delivery working again here is what I have done to make it work with Google Mail/Apps

- Added MX records as needed for mydomain.com
- switched to External MailServer for domain and co-domain.

Is there something else that needs to be done?
Reply With Quote
  #6  
Old 12th November 2011, 23:32
_X_ _X_ is offline
Senior Member
 
Join Date: Oct 2008
Posts: 247
Thanks: 8
Thanked 37 Times in 35 Posts
Default

So, with MX records for google added and local MX record with priority 90, changing to local mailserver everything works, and changing to external mailserver on both places does not work?

postfix does not relay according to MX records?
Reply With Quote
  #7  
Old 13th November 2011, 00:47
_X_ _X_ is offline
Senior Member
 
Join Date: Oct 2008
Posts: 247
Thanks: 8
Thanked 37 Times in 35 Posts
Default

even with mail.mydomain.com defined (without DNS and MX records, just for mydomain.com) it does not work. Mail is not relayed to MX records with lower priority (<90) which are google.com urls.

pri.mydomain.com looks like

MX 90 mail.mydomain.com.
MX 40 ASPMX3.GOOGLEMAIL.COM.
MX 40 ASPMX2.GOOGLEMAIL.COM.
MX 20 ALT2.ASPMX.L.GOOGLE.COM.
MX 20 ALT1.ASPMX.L.GOOGLE.COM.
MX 10 ASPMX.L.GOOGLE.COM.

mydomain.com. A 111.222.333.444
www A 111.222.333.444

mydomain.com. TXT "v=spf1 a mx ptr ~all"

do I need A record for mail.mydomain.com?
Reply With Quote
  #8  
Old 13th November 2011, 11:51
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Yes, you need an A record for mail.mydomain.com.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 13th November 2011, 14:54
_X_ _X_ is offline
Senior Member
 
Join Date: Oct 2008
Posts: 247
Thanks: 8
Thanked 37 Times in 35 Posts
Unhappy

Thanks for reply, but with or without A record for mail.mydomain.com and MX records set, I cannot change MX records for domain as it looks like there are some errors in DNS records at my provider DNS server. No matter what and how I set A, MX and CNAME records there is always only one MX record pointing to mail.mydomain.com with priority 10.
Reply With Quote
  #10  
Old 14th November 2011, 10:06
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
 
Default

Did you check your domain at www.intodns.com ?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Tags
gmail, google, isp config 2, mail, mx records

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
ISP Config 3 Postfix won't receive external mail pchelp2u Server Operation 18 19th August 2011 15:31
ISPConfig3 Mail Warn Errors reason8 General 3 25th November 2009 13:58
Spamsnake - Problem with spamassassin, FuzzyOcr and MySQL debuguser HOWTO-Related Questions 6 16th September 2008 18:37
ISPConfig 2.2.14 released till General 48 19th July 2007 23:46
spamassasin/clamAV not working Daisy Installation/Configuration 32 15th February 2007 00:09


All times are GMT +2. The time now is 23:25.


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