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 5th July 2011, 18:48
Fairbanks Fairbanks is offline
Junior Member
 
Join Date: Jul 2011
Posts: 18
Thanks: 1
Thanked 0 Times in 0 Posts
Question Relay access denied error -- ISPConfig v2.2.39 / CentOS 5.6 / postfix / dovecot

Hi Gang,

(Forgive my English as my native language is French from Canada / Quebec, and I’m no Linux guru either).

I have an old version of ISPConfig running on an old box from which I plan to migrate all sites/domains (± 35) to a newer box. This setup as been running for ±4 years on OpenSUSE.

In preparation of all this, I’ve installed the new box using the installation instruction from ISPConfig.org (“CentOS 5.6 (x86_64): http://www.howtoforge.com/perfect-se...64-ispconfig-2). This box is running with domain “khameleo.ca” on a public IP (69.70.100.146) which forward to the ISPConfig console (under port 81) for which an SSL certificate was bought with GoDaddy.

Having the 2 environments operating side-by-side, I’m writing a “cookbook” for my resellers that will give them instructions to move their sites from one box to the other. The idea is to create a site on the new box along with its web code, mySQL database, users, etc (with re-config of few elements) and then switch the “name servers” at the registrar over the weekend to get the domain serviced by the new box.

I’ve tested the approach with one domain (“club-ventes.com”, 2 users) and everything looks perfect with the exception of mail e.g. the web site is fine (www.club-ventes.com), FTP ok, myPHPAdmin for the db user, … but here’s the issue with mail… (for admin@club-ventes.com for example).

From Outlook, this user can send mail to anyone using “mail.khameleo.ca” as in-out POP3/SMTP servers using “outgoing server (SMTP) authentication”. The same user can send mail using Roundcube webmail which has been installed.

When trying to send mail to this user, I get the error below:
Original-recipient: rfc822;admin@club-ventes.com
Final-recipient: rfc822;admin@club-ventes.com
Action: failed
Status: 5.7.1 (Remote SMTP server has rejected address)
Remote-MTA: dns;mail.club-ventes.com
(TCP|10.23.32.19|45392|69.70.100.146|25)
(NS1.KHAMELEO.CA ESMTP Postfix)
Diagnostic-code: smtp;554 5.7.1
<admin@club-ventes.com>: Relay access denied

If I remove the “mydestination” param in main.cf, the email just get lost “on the net” (I never get any mail nor any error message).

At this point, I tried trillions of changes reading forums without any success and I now rely on the wisdom of one of you guys… Attaches are config files I think would help starting the exchange, but please ask if you need something else (be clear with commands if required since I’m no expert like à said).

I thank you in advance.

G

Attached (all renamed *.txt)
- /etc/postfix/local-host-names
- /etc/postfix/main.cf (stripped to keep important info)
- /etc/postfix/master.cf
- /etc/postfix/virtusertable
Attached Files
File Type: txt local-host-names.txt (423 Bytes, 122 views)
File Type: txt main.cf.txt (1.8 KB, 132 views)
File Type: txt master.cf.txt (4.1 KB, 85 views)
File Type: txt virtusertable.txt (533 Bytes, 95 views)
Reply With Quote
Sponsored Links
  #2  
Old 7th July 2011, 11:52
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,414
Thanks: 812
Thanked 5,204 Times in 4,080 Posts
Default

Please reconfigure the websites in ISPConfig and ensure that all domain names are typed lowercase. The mail delivery will fail if a domain is typed in uppercase lettters as the Linux filesystem is case sensitive.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 8th July 2011, 17:22
Fairbanks Fairbanks is offline
Junior Member
 
Join Date: Jul 2011
Posts: 18
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hi Till (Thanks for the reply).

I did reconfig ISPConfig, CentOS network and everything else where I suspected some Upcase, but I end up with the same result e.g. web52_sale can send message (either from Outlook or WebMail) but I get the same error message when I send eMail to 4sale@club-ventes.com (showing lowercase thought) - see below (some french in the message but I'm sure you will figure the message). Attached are newer versions of my files...

Adresse du destinataire : 4sale@club-ventes.com
Raison : Remote SMTP server has rejected address
Code de diagnostic : smtp;554 5.7.1 <4sale@club-ventes.com>: Relay access denied
Système distant : dns;mail.khameleo.ca (TCP|10.23.32.77|52990|69.70.100.146|25) (ns1.khameleo.ca ESMTP Postfix)

Guy

P.S. I really appreciate your help...
Attached Files
File Type: txt local-host-names.txt (423 Bytes, 209 views)
File Type: txt main.cf.txt (1.8 KB, 189 views)
File Type: txt master.cf.txt (4.1 KB, 81 views)
File Type: txt virtusertable.txt (533 Bytes, 80 views)

Last edited by Fairbanks; 8th July 2011 at 17:44.
Reply With Quote
  #4  
Old 9th July 2011, 10:31
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
Default

The mydestination line in your main.cf is the problem. Please run

Code:
postconf -e 'mydestination = /etc/postfix/local-host-names'
/etc/init.d/postfix restart
__________________
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
The Following User Says Thank You to falko For This Useful Post:
Fairbanks (10th July 2011)
  #5  
Old 10th July 2011, 19:24
Fairbanks Fairbanks is offline
Junior Member
 
Join Date: Jul 2011
Posts: 18
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default

Bingo Falko - BIG THANKS...
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
Postfix Timeout after DATA from some emails treeman Server Operation 13 25th September 2013 12:51
ERROR: Connection dropped by IMAP server. [Centos 5.4, courier imap,squirrel, etc] darevil HOWTO-Related Questions 7 9th June 2010 14:49
Forbidden 403; Samba access; config of maildeamon fawkes Installation/Configuration 4 14th January 2010 18:16
Postfix can't received email from exterior astra2000 Server Operation 5 17th October 2009 23:26
ISP Config hesitation when opening web pages frankb Installation/Configuration 7 15th December 2008 13:06


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


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