John Steniger <[EMAIL PROTECTED]> wrote:

>My situation is this: I have a web server, and I want to set up a box which
>will basically relay mail for it.  It currently sends out and recieves its
>own external mail.  I have set up qmail on an OpenBSD 2.6 box and am able to
>send messages and receive them locally.  However, I'm unfamiliar with mail
>relaying in general and am trying to establish proof of concept by simply
>relaying a message to an external ISP through this qmail box from another
>linux box.  I've read through numerous FAQ's and searched this discussion
>list, and I'm still a bit in the dark.  Can anyone point me in the right
>direction regarding how to get this done?  Please forgive me if I'm being
>vague, its not done on purpose.  

OK, so you want your qmail system to relay for the web server (and
maybe other systems in your domain) but not for everyone on the
net. By default, qmail doesn't relay: it delivers mail from or to
local addresses, but rejects attempts by remote hosts to submit mail
for other remote hosts.

Using tcpserver to set the RELAYCLIENT environment variable for
qmail-smtpd *only* for connections from hosts designated as relay
clients (like your web server) will cause qmail-smtpd to ignore the
control/rcphosts file and, therefore, act as a relay.

For more details, see:

  http://Web.InfoAve.Net/~dsill/lwq.html#relaying

-Dave

Reply via email to