I am a newbie to both QMail, and this list, but before anyone flames me
about RTFM, I have.  I bought the Running QMail book, and have been sifting
through that trying to find answers, I've read the QMail FAQ, I've looked at
several of the informational web pages that individuals have listed at
qmail.org.  Described below is my environment, and the steps I've taken to
try to make this work.

I've installed QMail 1.03 on a Redhat 7 box. In addition to manual editing
of configuration files, I'm using Vyacheslav Ignatyuk's Webmin module to
manage QMail.  So far, if I add a domain name to RCPTHOSTS, QMail will send
a message to that domain.  If I delete RCPTHOSTS all together, QMail will
send a test message to any domain.

What I'm trying to accomplish is that QMail relay messages based on the
client's IP address.  Currently I'm trying to get it to work with my
internal network.  Once I have that functioning, I'll know how to allow
trusted others.

I've created a source rule file /etc/tcprules.d/qmail-smtpd

This file contains 192.168.1.0:allow,RELAYCLIENT=" "

I used this file to build my qmail-smtpd.cdb file.

I start tcpserver with an init script

tcpserver -v -p -c 100 -x /etc/tcprules.d/qmail-smtpd.cdb 0 smtp
/var/qmail/bin/qmail-smtpd

Still, after starting tcpserver with this method, any message I attempt to
send to a domain not listed in RCPTHOSTS gets rejected with an error stating
that the domain isn't listed in RCPTHOSTS.

Does anyone have any ideas as to what I may be doing wrong? What might not
be configured correctly?  or What might be broken?  Or maybe an entirely
different method of allowing smtp relay? (Keep in mind that I'll be using
Couier-IMAP)  I would really like to get this functioning soon.

Feel free to reply to me off of the list if you need to.  If there is any
information that I have left out that would be helpful to you, let me know
and I will provide it.

Thank you in advance for your assistance.

Aaron Carr

Reply via email to