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 9th March 2006, 23:14
jazzgillum jazzgillum is offline
Junior Member
 
Join Date: Mar 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can Send Email, But Not Recieve; Relay access denied

Hi,

I'm stuggling to get ISPConfig up and running. I followed the Ubuntu Perfect Setup. When I send test emails to user accounts that I have set up, I quickly get a bounce message back. Here's the complaint in the return mail:

PERM_FAILURE: SMTP Error (state 9): 554 <test@mydomain.dom>: Relay access denied

I've searched this forum and found lots of similar problems, but mostly about SENDING mail rather than RECEIVING it. I've tried some of the solutions suggested in the similar topics, but nothing has worked, so its possible that I've messed things up worse.

Again, I can send emails, but not recieve. Any help would be appriciated!
Reply With Quote
Sponsored Links
  #2  
Old 10th March 2006, 00:14
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,034
Thanks: 264
Thanked 151 Times in 131 Posts
Default

Quote:
Originally Posted by jazzgillum
Hi,

I'm stuggling to get ISPConfig up and running. I followed the Ubuntu Perfect Setup. When I send test emails to user accounts that I have set up, I quickly get a bounce message back. Here's the complaint in the return mail:

PERM_FAILURE: SMTP Error (state 9): 554 <test@mydomain.dom>: Relay access denied

I've searched this forum and found lots of similar problems, but mostly about SENDING mail rather than RECEIVING it. I've tried some of the solutions suggested in the similar topics, but nothing has worked, so its possible that I've messed things up worse.

Again, I can send emails, but not recieve. Any help would be appriciated!
I've had exactly the same problem some days ago.
The strange thing was that it was only with one of the domains.. all other domains did not have the 554 error!

I deleted the account/domain, and remade it.. after this all was fine again!

If you are having the 554 problem with only one domain, try what I did, and it might fix it also
Reply With Quote
  #3  
Old 10th March 2006, 04:26
jazzgillum jazzgillum is offline
Junior Member
 
Join Date: Mar 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
If you are having the 554 problem with only one domain, try what I did, and it might fix it also
Hmmm... I haven't tried adding additional domains yet. I don't think it will matter, though, because I totally removed and reinstalled Postfix and ISPConfig trying to fix the problem, with the same result. But I'll try setting one or two of my other domains up tomorrow to see if the same thing happens.

Thanks for the tip!
Reply With Quote
  #4  
Old 10th March 2006, 08:41
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,703
Thanks: 819
Thanked 5,320 Times in 4,173 Posts
Default

Quote:
Originally Posted by jazzgillum
Hi,

I'm stuggling to get ISPConfig up and running. I followed the Ubuntu Perfect Setup. When I send test emails to user accounts that I have set up, I quickly get a bounce message back. Here's the complaint in the return mail:

PERM_FAILURE: SMTP Error (state 9): 554 <test@mydomain.dom>: Relay access denied

I've searched this forum and found lots of similar problems, but mostly about SENDING mail rather than RECEIVING it. I've tried some of the solutions suggested in the similar topics, but nothing has worked, so its possible that I've messed things up worse.

Again, I can send emails, but not recieve. Any help would be appriciated!
Have you created a website "www.mydomain.dom" in ISPConfig? Has this site a co-domain "mydomain.dom" with empty host field?

If yes:

Is the domain "mydomain.dom" listed in /etc/postfix/local-host-names ?

If "mydomain.dom" is not a local domain on your server, you will have to enable SMTP server authentication in your email client. In outlook the option is named like "Server needs authentication".
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 10th March 2006, 15:27
jazzgillum jazzgillum is offline
Junior Member
 
Join Date: Mar 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till
Have you created a website "www.mydomain.dom" in ISPConfig? Has this site a co-domain "mydomain.dom" with empty host field?
Yes.

Quote:
Originally Posted by till
If yes:

Is the domain "mydomain.dom" listed in /etc/postfix/local-host-names ?
Yes, both mydomain.dom and www.mydomain.dom are listed.

Quote:
Originally Posted by till
If "mydomain.dom" is not a local domain on your server, you will have to enable SMTP server authentication in your email client. In outlook the option is named like "Server needs authentication".
What do you mean by "a local domain on your server? The DNS (I'm using my registrar's DNS service) points to my IP and I've set "mydomain.dom" up through ISPConfig. The website is running just fine. Does that mean "mydomian.dom" is "a local domain" on my server?

Anyway, I don't understand how a setting in an email client could effect wether or not mail gets delivered to an address. Client or no client, the mail never arrives in the users "mailbox"!

Thanks for your help. I'll go ahead and set up another domain (I adjusted the DNS entries last night; they should have propogated by now) to check out edge's theory.
Reply With Quote
  #6  
Old 10th March 2006, 15:54
jazzgillum jazzgillum is offline
Junior Member
 
Join Date: Mar 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Okay, I set up another domain. Same result. Web page works. Sending mail out works (I'm using mail2web.com to get into the account and send mail) but incoming mail is rejected.
Reply With Quote
  #7  
Old 10th March 2006, 18:53
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

What's the domain of the incoming mail?
What's in /etc/postfix/local-host-names?
__________________
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
  #8  
Old 10th March 2006, 19:15
jazzgillum jazzgillum is offline
Junior Member
 
Join Date: Mar 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko
What's the domain of the incoming mail?
You mean the actual domain the mail is addressed to? Sure, what the heck.

My test email address in this case is:
rick@ricklynn.com

Quote:
Originally Posted by falko
What's in /etc/postfix/local-host-names?
Code:
###################################
#
# ISPConfig local-host-names Configuration File
#         Version 1.0
#
###################################
localhost
server.localdomain
localhost.server.localdomain
localhost.localdomain
www.smallmericles.com
www.ricklynn.com
www.nbmap.com
smallmericles.com
ricklynn.com
nbmap.com
#### MAKE MANUAL ENTRIES BELOW THIS LINE! ####
Here's the mail.log entries for a recent attempt to send:

Code:
Mar 10 12:02:18 localhost postfix/smtpd[20146]: connect from wproxy.gmail.com[64.233.184.196]
Mar 10 12:02:19 localhost postfix/smtpd[20146]: NOQUEUE: reject: RCPT from wproxy.gmail.com[64.233.184.196]: 554 <rick@ricklynn.com>: Relay access denied; from=<jazzgillum@gmail.com> to=<rick@ricklynn.com> proto=ESMTP helo=<wproxy.gmail.com>
Mar 10 12:02:19 localhost postfix/smtpd[20146]: disconnect from wproxy.gmail.com[64.233.184.196]
__________________
jazzgillum: server administrator and nice, chummy guy
Ubuntu 5.10 + ISPConfig 2.2 / ISP-Server Setup - Ubuntu 5.10 "Breezy Badger"
Reply With Quote
  #9  
Old 11th March 2006, 11:10
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

I found out that mail.ricklynn.com is the mail server for ricklynn.com. Then I did this:

Code:
dig mail.ricklynn.com

; <<>> DiG 9.2.1 <<>> mail.ricklynn.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30276
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;mail.ricklynn.com.             IN      A

;; ANSWER SECTION:
mail.ricklynn.com.      3336    IN      CNAME   ricklynn.com.
ricklynn.com.           3321    IN      A       216.212.44.217

;; Query time: 2 msec
;; SERVER: 81.169.163.104#53(81.169.163.104)
;; WHEN: Sat Mar 11 11:08:32 2006
;; MSG SIZE  rcvd: 65
mail.ricklynn.com is a CNAME, not an A record.

On http://langfeldt.net/DNS-HOWTO/BIND-9/DNS-HOWTO-5.html, I found this:

Quote:
CNAME (Canonical NAME) is a way to give each machine several names. So www is an alias for ns. CNAME record usage is a bit controversial. But it's safe to follow the rule that a MX, CNAME or SOA record should never refer to a CNAME record, they should only refer to something with an A record
Please change it!
__________________
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
  #10  
Old 13th March 2006, 15:37
jazzgillum jazzgillum is offline
Junior Member
 
Join Date: Mar 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

I've changed the DNS entries:

Code:
; <<>> DiG 9.3.1 <<>> mail.ricklynn.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47115
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;mail.ricklynn.com.             IN      A

;; ANSWER SECTION:
mail.ricklynn.com.      3070    IN      A       216.212.44.217

;; AUTHORITY SECTION:
ricklynn.com.           3070    IN      NS      ns3.secureserver.net.
ricklynn.com.           3070    IN      NS      ns4.secureserver.net.

;; ADDITIONAL SECTION:
ns3.secureserver.net.   170722  IN      A       64.202.165.10
ns4.secureserver.net.   170722  IN      A       68.178.211.105

;; Query time: 111 msec
;; SERVER: 216.212.0.10#53(216.212.0.10)
;; WHEN: Mon Mar 13 08:26:47 2006
;; MSG SIZE  rcvd: 135
...but I still get the same results.

I'm also testing smallmericles.com. I set up the DNS differently, without a "mail" subdomain:

Code:
; <<>> DiG 9.3.1 <<>> smallmericles.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 14950
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;smallmericles.com.             IN      A

;; ANSWER SECTION:
smallmericles.com.      3360    IN      A       216.212.44.217

;; AUTHORITY SECTION:
smallmericles.com.      3360    IN      NS      NS3.SECURESERVER.NET.
smallmericles.com.      3360    IN      NS      NS4.SECURESERVER.NET.

;; ADDITIONAL SECTION:
NS3.SECURESERVER.NET.   170584  IN      A       64.202.165.10
NS4.SECURESERVER.NET.   170584  IN      A       68.178.211.105

;; Query time: 167 msec
;; SERVER: 216.212.0.10#53(216.212.0.10)
;; WHEN: Mon Mar 13 08:29:04 2006
;; MSG SIZE  rcvd: 135
...but it still behaves the same way, too.
__________________
jazzgillum: server administrator and nice, chummy guy
Ubuntu 5.10 + ISPConfig 2.2 / ISP-Server Setup - Ubuntu 5.10 "Breezy Badger"
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
Relay access denied when using SMTP to external recipients Kamran Shah Installation/Configuration 111 14th May 2014 18:10
Relay access denied maxx Installation/Configuration 17 4th April 2011 12:34
relay access denied (i've readen the previous post about this ) jeanjacquesjeanjacques Installation/Configuration 5 21st April 2006 23:34
Relay access denied KamiTsunami Server Operation 6 7th March 2006 10:25
Bug? (postfix refuses mail, relay access denied) st2xo General 2 31st January 2006 16:00


All times are GMT +2. The time now is 20:29.


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