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 18th November 2010, 16:48
BoloMarkIII BoloMarkIII is offline
Member
 
Join Date: Nov 2008
Posts: 31
Thanks: 2
Thanked 0 Times in 0 Posts
Default Email receive problem /w 2nd site

I have a web server setup on OpenSUSE 11.3 /w IspConfig 2

First web site added works as expected.

The second web site added however CAN NOT receive Email, it can send mail.

I sent an email from another server to my server, to emails for both site #1 admin@medlinkmobility.com and site #2 j.shelton@jtslawoffice.com site 1 delivers site 2 does NOT.

Here is an excerpt from the mail log file:
Code:
Nov 18 09:26:12 vserver2 postfix/smtpd[7413]: connect from omr16.networksolutionsemail.com[205.178.146.66]
Nov 18 09:26:13 vserver2 postfix/smtpd[7413]: warning: support for restriction "check_relay_domains" will be removed from Postfix; use "reject_unauth_destination" instead
Nov 18 09:26:13 vserver2 postfix/smtpd[7413]: 0BF0E45383: client=omr16.networksolutionsemail.com[205.178.146.66]
Nov 18 09:26:13 vserver2 postfix/cleanup[7422]: 0BF0E45383: message-id=<W9378010827179851290093972@webmail9>
Nov 18 09:26:13 vserver2 postfix/qmgr[2407]: 0BF0E45383: from=<sh.tech@dtgoftexas.com>, size=1858, nrcpt=1 (queue active)
Nov 18 09:26:13 vserver2 postfix/local[7423]: 0BF0E45383: to=<web1_admin@vserver2.dtgoftexas.com>, orig_to=<admin@medlinkmobility.com>, relay=local, delay=0.72, delays=0.66/0.01/0/0.05, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail -f-)
Nov 18 09:26:13 vserver2 postfix/qmgr[2407]: 0BF0E45383: removed
Nov 18 09:26:13 vserver2 postfix/pickup[7432]: AD63945383: uid=10001 from=<web1_admin>
Nov 18 09:26:13 vserver2 postfix/cleanup[7422]: AD63945383: message-id=<20101118152613.AD63945383@vserver2.dtgoftexas.com>
Nov 18 09:26:13 vserver2 postfix/qmgr[2407]: AD63945383: from=<web1_admin@vserver2.dtgoftexas.com>, size=400, nrcpt=1 (queue active)
Nov 18 09:26:13 vserver2 postfix/local[7423]: AD63945383: to=<admispconfig@localhost.localdomain>, relay=local, delay=0.06, delays=0.05/0/0/0.01, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail -f-)
Nov 18 09:26:13 vserver2 postfix/qmgr[2407]: AD63945383: removed
Nov 18 09:26:13 vserver2 postfix/smtpd[7413]: disconnect from omr16.networksolutionsemail.com[205.178.146.66]
Nov 18 09:26:15 vserver2 postfix/smtpd[7413]: connect from omr10.networksolutionsemail.com[205.178.146.60]
Nov 18 09:26:15 vserver2 postfix/smtpd[7413]: NOQUEUE: reject: RCPT from omr10.networksolutionsemail.com[205.178.146.60]: 554 5.7.1 <j.shelton@jtslawoffice.com>: Recipient address rejected: Relay access denied; from=<sh.tech@dtgoftexas.com> to=<j.shelton@jtslawoffice.com> proto=ESMTP helo=<omr10.networksolutionsemail.com>
Nov 18 09:26:19 vserver2 postfix/smtpd[7413]: disconnect from omr10.networksolutionsemail.com[205.178.146.60]
Reply With Quote
Sponsored Links
  #2  
Old 18th November 2010, 16:55
dcy dcy is offline
Junior Member
 
Join Date: Jul 2010
Posts: 24
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Do make sure that in your settings you are accepting e-mail for the 'jtslawoffice.com' domain.

From the looks of this log it does seem your server does not think it should receive e-mail for this domain (and since it does not find deem itself authoritative to receive e-mail for this domain then presumes the user must be trying to relay - which in turn correctly causes the e-mail to be rejected, since you are not relaying).

D.
Reply With Quote
  #3  
Old 18th November 2010, 17:26
BoloMarkIII BoloMarkIII is offline
Member
 
Join Date: Nov 2008
Posts: 31
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Thx for quick reply.
I have 2nd site setup same as 1st and I am not sure what setting you are referring to.
I have MailDir checked in Management>Server>settings>EMail

ISP Manager>sites>jtslaw>basis>both create dns and create dns mx checked.

DNS Manager records tab same for both sites,

I am still stumped.
Reply With Quote
  #4  
Old 18th November 2010, 19:34
dcy dcy is offline
Junior Member
 
Join Date: Jul 2010
Posts: 24
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Can you check under the settings for the specific site:

- in the options tab the 'mailserver' option (it should be local)

And from while logged on:

cat /etc/postfix/main.cf|grep ^mydestination

This while show you the file where postfix reads it's local destination from. Next check the contents of the file (in my case, probably also the same for you, this would be the /etc/postfix/local-host-names file).

So:

cat /etc/postfix/local-host-names

And check this file contains the domain name that you wish to receive the e-mail from. If it does not please do not edit it manually (let ISPConfig handle that) - but this will give us an indication of what is going on.

D.
Reply With Quote
  #5  
Old 18th November 2010, 20:31
BoloMarkIII BoloMarkIII is offline
Member
 
Join Date: Nov 2008
Posts: 31
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by dcy View Post
Can you check under the settings for the specific site:

- in the options tab the 'mailserver' option (it should be local)

And from while logged on:

cat /etc/postfix/main.cf|grep ^mydestination

This while show you the file where postfix reads it's local destination from. Next check the contents of the file (in my case, probably also the same for you, this would be the /etc/postfix/local-host-names file).

So:

cat /etc/postfix/local-host-names

And check this file contains the domain name that you wish to receive the e-mail from. If it does not please do not edit it manually (let ISPConfig handle that) - but this will give us an indication of what is going on.

D.
Under site options "Local Mailserver" is selected
and the site is listed in the /etc/postfix/local-host-names file.
Reply With Quote
  #6  
Old 18th November 2010, 20:35
dcy dcy is offline
Junior Member
 
Join Date: Jul 2010
Posts: 24
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Providing that the domain name is correct in the logs I think you have a DNS server issue:

dig MX jtslawoffice.com does not report any valid mail exchangers for the domain. Are you sure you did enter the correct MX record on your DNS servers for this domain? According to the DNS this would be the ns23.worldnic.com and ns24.worldnic.com domain name server.

D.
Reply With Quote
  #7  
Old 18th November 2010, 22:13
BoloMarkIII BoloMarkIII is offline
Member
 
Join Date: Nov 2008
Posts: 31
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Thx again for the help.

I have gone over everything several times and I am still stumped.

I have all domain names registered with network solutions.

I have 2 web servers both run OpenSUSE 11.3 /w IspConfig 2.
Server 1 hosts 2 sites and both work perfectly they can send and receive email no problem.

Server 2 host 3 sites the first site added works perfectly the other 2 can send mail but CAN NOT receive mail.

I have gone over all settings for all the sites and I CAN NOT find anything out of place all are setup the same way.

Any other suggestions as to where to look for clues to the problem.
Reply With Quote
  #8  
Old 18th November 2010, 22:59
dcy dcy is offline
Junior Member
 
Join Date: Jul 2010
Posts: 24
Thanks: 0
Thanked 2 Times in 2 Posts
Default

The problem is in your DNS settings. You need to log on to the administrative interfaces to the DNS servers at worldnic.com and add a MX record to point to your hostname.

You have www.jtslawoffice.com properly entered (that being an A record):

dig A www.jtslawoffice.com +trace
www.jtslawoffice.com. 7200 IN A 173.185.183.157

And you have an A record for mail.jtslawoffice.com:

dig A mail.jtslawoffice.com +trace
mail.jtslawoffice.com. 7200 IN A 173.185.183.157

You are however missing the MX record to this domain (the MX records tells mail servers to what server you wish them to deliver the e-mail):

dig MX jtslawoffice.com +trace

And that doesn't give me any MX record for your domain. Your MX record should look like this:

jtslawoffice.com. 86400 IN MX 10 mail.jtslawoffice.com.

and then your e-mail will be delivered normally

D.
Reply With Quote
  #9  
Old 18th November 2010, 23:59
BoloMarkIII BoloMarkIII is offline
Member
 
Join Date: Nov 2008
Posts: 31
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Can you tell me why the first site I added the Email works and the second site does not?

First site medlinkmobility.com dig output
Code:
; <<>> DiG 9.7.1 <<>> www.medlinkmobility.com
;; global options: +cmd                                                                                       
;; Got answer:                                                                                                
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 59790                                                     
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2                                          
                                                                                                              
;; QUESTION SECTION:
;www.medlinkmobility.com.       IN      A                                                                

;; ANSWER SECTION:                                                                                          
www.medlinkmobility.com. 7200   IN      A       173.185.183.157
                                                                                                                 
;; AUTHORITY SECTION:                                                                                            
medlinkmobility.com.    172800  IN      NS      ns64.worldnic.com.
medlinkmobility.com.    172800  IN      NS      ns63.worldnic.com.

;; ADDITIONAL SECTION:
ns63.worldnic.com.      4681    IN      A       205.178.190.32
ns64.worldnic.com.      3364    IN      A       206.188.198.32

;; Query time: 191 msec
;; SERVER: 10.165.234.100#53(10.165.234.100)
;; WHEN: Thu Nov 18 16:55:06 2010
;; MSG SIZE  rcvd: 136
Second site jtslawoffice.com dig output
Code:
; <<>> DiG 9.7.1 <<>> www.jtslawoffice.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6306
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 1

;; QUESTION SECTION:
;www.jtslawoffice.com.          IN      A

;; ANSWER SECTION:
www.jtslawoffice.com.   7200    IN      A       173.185.183.157

;; AUTHORITY SECTION:
jtslawoffice.com.       61283   IN      NS      ns23.worldnic.com.
jtslawoffice.com.       61283   IN      NS      ns24.worldnic.com.

;; ADDITIONAL SECTION:
ns24.worldnic.com.      3304    IN      A       206.188.198.12

;; Query time: 114 msec
;; SERVER: 10.165.234.100#53(10.165.234.100)
;; WHEN: Thu Nov 18 16:55:31 2010
;; MSG SIZE  rcvd: 117
Reply With Quote
  #10  
Old 19th November 2010, 00:12
dcy dcy is offline
Junior Member
 
Join Date: Jul 2010
Posts: 24
Thanks: 0
Thanked 2 Times in 2 Posts
 
Default

Quite honestly .... the first one shouldn't be working either.

There is no MX record for it ...

dig MX medlinkmobility.com +trace

Doesn't return any MX record for the domain.

D.
Reply With Quote
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
Email problem 'Cannot set my user or group id.' (using ISPConfig 3 + OpenSuSE 11.2) urosm Installation/Configuration 5 19th June 2010 22:41
Email delivery problem - Ubuntu Karmic Koala (Ubuntu 9.10) [ISPConfig 2] qiubosu General 58 16th April 2010 12:24
Email delivery problem - Ubuntu Karmic Koala (Ubuntu 9.10) [ISPConfig 2] qiubosu Installation/Configuration 1 18th January 2010 09:21
Problem with the addition site and domain name Titeuf Installation/Configuration 2 25th November 2009 17:38
Email problem. Can't receive mail. spnova Installation/Configuration 2 25th December 2008 16:05


All times are GMT +2. The time now is 12:03.


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