Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-08-2008, 01:53 AM   #1
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 ( 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 but sender was rejected.
Remote host said: 553 Mail from not allowed - 5.7.1 [BL21]
Connections not accepted from IP addresses on Spamhaus PBL; see [550]

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

Return-Path: <>
Received: (qmail 3293 invoked by uid 89); 8 Feb 2008 06:53:28 -0000
Received: from unknown (HELO (
by mailserver with SMTP; 8 Feb 2008 06:53:28 -0000
Received: from
(SquirrelMail authenticated user
by with HTTP;
Fri, 8 Feb 2008 14:53:28 +0800 (PHT)
Message-ID: <4334.>
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 ( 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 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, 08:55 PM   #2
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.


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

All times are GMT -5. The time now is 03:11 PM.

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