LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-08-2008, 02:53 AM   #1
rptan2000
LQ Newbie
 
Registered: Apr 2007
Posts: 2

Rep: Reputation: 0
Help trying to set up Qmailtoaster on a Centos 5 box


Hi! As a relative newbie in both linux and networking, I'm trying to set up an email server in CentOS 5 using QmailToaster to make installation simple. The guide I followed is located here. Unfortunately, I ran into some problems due to my setup differing from the "normal" setup.

Currently, we have a DSL connection connected to a router (asusRX3041) that acts as our dhcp server/dns/firewall as well. This email server is then connected to the router, and has a local address (192.168.1.83) specifically set in the router (sortof making it static). So one step I took was different from the guide was that I enabled DHCP and didn't mind the network settings. I also setup the hostname as "mailserver".

I was able to reach the end of the installation, except I disregarded djbdns and domainkeys and did some testing... internal email works but when it came to external email I tried sending to a yahoo account and got this message:

Connected to 209.191.118.103 but sender was rejected.
Remote host said: 553 Mail from test@mydomain.com not allowed - 5.7.1 [BL21]
Connections not accepted from IP addresses on Spamhaus PBL; see
http://postmaster.yahoo.com/550-bl21.html [550]

--- Below this line is a copy of the message.

Return-Path: <test@mydomain.com>
Received: (qmail 3293 invoked by uid 89); 8 Feb 2008 06:53:28 -0000
Received: from unknown (HELO 192.168.1.83) (127.0.0.1)
by mailserver with SMTP; 8 Feb 2008 06:53:28 -0000
Received: from 192.168.1.3
(SquirrelMail authenticated user test@mydomain.com)
by 192.168.1.83 with HTTP;
Fri, 8 Feb 2008 14:53:28 +0800 (PHT)
Message-ID: <4334.192.168.1.3.1202453608.squirrel@192.168.1.83>
Date: Fri, 8 Feb 2008 14:53:28 +0800 (PHT)

SMTP was working but it is registering the local IP address instead of the WAN IP address, therefore getting it rejected by yahoo mail. So is it possible for qmail to use the WAN IP instead?

I haven't tried testing the incoming mail but I believe it's going to be a pain as well. We are currently using an external host (bluehost.com) to host our web and email content, but we now want to move email hosting to our own server. Therefore I'm thinking of pointing the MX entry to a DynDNS.com name pointing to our WAN IP, and then doing a NAT to the local mail server. Therefore Web content stays with bluehost but email goes to our server. Is this possible or not?

I'm sorry if the problems I posted seem stupid but I'm just new to all this linux and networking stuff... Thanks!
 
Old 02-08-2008, 09:55 PM   #2
frndrfoe
Member
 
Registered: Jan 2008
Distribution: RHEL, CentOS, Ubuntu
Posts: 379

Rep: Reputation: 38
You will probably have to set up your mail server to use your ISP's mail server as a smarthost. Most of the big email servers will not accept mail from a server that does not have a legitimate MX record.
 
  


Reply


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
Question about QmailToaster vs QmailRocks tomdkat Linux - Server 11 02-24-2008 08:14 AM
trying to install qmailtoaster but xantica Linux - Software 2 02-23-2008 05:41 AM
How does my CentOS box determine its name servers? Will they change? sneakyimp Linux - Newbie 2 10-23-2007 03:14 AM
White Box Linux and CentOS yellowtime Linux - Distributions 2 12-24-2006 01:06 AM
crond freezes centos 4.3 box qipman Linux - Software 4 07-12-2006 11:25 AM


All times are GMT -5. The time now is 09:01 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration