> It will accept all the smtp mail in the name of another
> server (which is behind a firewall). I think this is about
> /etc/tcp.smtp and control/smtproutes files. I've set them
> as following;
>
> /etc/tcp.smtp
> ----
> 127.:allow,RELAYCLIENT=""
For those hosts which are allowed to use this machine as an outbound
relay, add them to this file. Based on what you say below, it looks like
you have two internal mail servers, so you add these two lines:
10.21.200.200:allow,RELAYCLIENT=""
10.21.200.201:allow,RELAYCLIENT=""
There is documentation for this format at
http://cr.yp.to/ucspi-tcp/tcprules.html. Once you've modified the file, run
tcprules like this:
tcprules /etc/tcp.smtp.cdb /tmp/tcp.smtp.tmp < /etc/tcp.smtp
And then just make sure your tcpserver invocation of qmail-smtpd has
'-x /etc/tcp.smtp.cdb' in it.
You say tcpwrappers above, and I'm giving instructions for tcpserver
which is part of ucspi. If you meant tcpserver/ucspi, then this is okay; if
not, you'll need to find the right way to do the equivalent with
tcpwrappers. All you're doing is setting the RELAYCLIENT environment
variable for the invocation of each qmail-smtpd process. And if you're
using tcpwrappers, you don't care about tcp.smtp but rather hosts.allow.
> control/smtproutes
> ----
> mycompany.com:10.21.200.200
> my2ndcomp.com:10.21.200.201
> ----
You'll probably want to quote those domain literals, like such:
mycompany.com:[10.21.200.200]
I'm not completely sure that's necessary, but I think it is.
--
gowen -- Greg Owen -- [EMAIL PROTECTED]