LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 03-02-2008, 02:38 PM   #1
linuxfarmer
LQ Newbie
 
Registered: Mar 2008
Distribution: debian etch
Posts: 7

Rep: Reputation: 0
Question ISPConfig on debian etch mail relay problem


O.K. I'm new to virtual domains and virtual emails so I thought I would
use a "kit" and so I chose ISPConfig(as it makes domain setup/ changes easy). I followed the "perfect debian etch setup" as per ISPConfigs site sudgestions and changed my host and domain names to match my system.
Everything works as it should, but the email. I can login to the users via there clients and send mail from them but I cant receive emails through them. I get an error:

<user@mydomain.com>: host
mydomain.com[www.xxx.yyy.zzz] said: 554 5.7.1
<user@mydomain.com>: Relay access denied (in reply to RCPT TO
command)

This should not be a relay for my local users, but I have some remote users on public ip's(dynamic) that need the relay.
My config files look like the "kit" files save for the host and domain names are mine not the "kits"
I would like to know what causes this in a virtual setup and how I can fix it.
Thanks
 
Old 03-03-2008, 03:41 PM   #2
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Have you specified the network address range(s) in mynetworks option in /etc/postfix/main.cf?
 
Old 03-04-2008, 07:55 AM   #3
linuxfarmer
LQ Newbie
 
Registered: Mar 2008
Distribution: debian etch
Posts: 7

Original Poster
Rep: Reputation: 0
ispconfig mail relay issue

Yes, I have tried to use both the default (127.0.0.1), and the local ranges. As I am behind a firewall that provides a DMZ I would rather not use public ip ranges (I cant have an open relay). This may be a DMZ problem, I'm not 100% sure but all other server functions work remotely.
It's just sending email to the server.
 
Old 03-04-2008, 08:40 AM   #4
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
The error you are reporting is consistent with either or both;

No MX directive as far as external access is concerned and/or no specification of network ip address ranges and/or closed ports.

You would need an MX record to receive mail from the Internet and you would have to specify the address range (in main.cf)that it came from. No MX record and there will be no way for your server to be found on the Internet. If you don't specify an IP range of addresses in Postfix it won't accept connections from them. Specifying a network IP range in the main.cf file means that you will accept connections from that range only and does not make it an open relay. eg. specifying a network range of 192.168.0.0/24 means that it will receive and send mail for any system in that range only. The address 127.0.0.1 is localhost only i.e. the box the server is installed on.

If you make amendments to Postfix main.cf then you need to restart the server again;

from a root consol do: /etc/init.d/postfix restart

To receive mail you need to open port 25. To send mail you need to open port 110.

Last edited by TigerOC; 03-04-2008 at 08:43 AM.
 
Old 03-04-2008, 12:30 PM   #5
linuxfarmer
LQ Newbie
 
Registered: Mar 2008
Distribution: debian etch
Posts: 7

Original Poster
Rep: Reputation: 0
MX records

I hold my own DNS for this server and have two public dns's that also hold my zone info including the mx record incase my dns fails(has happend before), but I will retrace my configs and let you know.
Thanks
 
  


Reply

Tags
ispconfig


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How To Set Up suPHP On A Debian Etch Based ISPConfig Server LXer Syndicated Linux News 0 04-23-2007 11:46 AM
Debian 3.1 + ISPConfig + bBlog permissions problem markjones Debian 0 05-22-2006 06:04 AM
Set mail server on Debian Etch SuSERNuke Linux - Networking 3 11-25-2005 01:54 PM
Postfix as a mail relay (getting relay access denied) hypexr Linux - Software 3 09-13-2005 07:15 PM
mail relay problem.. chuck77 Linux - General 3 07-20-2002 08:03 PM


All times are GMT -5. The time now is 05:28 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration