PDA

View Full Version : Qmail - Allow relay for a specific IP address


Justec
06-04-2004, 10:41 PM
I found a couple web pages, but I still can't get it to relay.
http://www.qmail.org/qmail-manual-html/misc/FAQ.html#5.4
http://www.roamer1.org/computing/qmail.html


The second link is closer to the setup of the RH9 Iworx box because it has the config for using xinetd vs inetd in the first post.

I tried what it said, but I still get the:
"553 sorry, that domain isn't allowed to be relayed thru this MTA (#5.7.1)"

Any other ideas on how to set this up?

Thanks

[edit]
Another Link: http://www.barriebremner.com/qmailxinetd.html

IWorx-Paul
06-04-2004, 11:41 PM
Hi Justec,

Sure, just do the following:

Edit the /etc/tcprules.d/tcp.smtp file
If the IP address you wanted to allow relaying for was 22.22.22.22, add the following line to this file:
22.22.22.22:allow,RELAYCLIENT=""
Then,
cd /etc/tcprules.d/
tcprules tcp.smtp.cdb tcp.smtp.temp < tcp.smtp
That should do it,

Paul

Justec
06-05-2004, 12:28 AM
Hi Paul,

So the interworx setup already has the tcpserver installed.

Wasn't sure how that worked if you have TCPserver and xinetd installed and running simultaneously.

Going to try it now, I'll let you know if it still doesn't work.

Thanks,
Justin

EDIT - Works Great, Thanks again