> Joseff Indradjaja wrote:
>
> Hi,
>
> I have a coldfusion server running on the same machine as the mail
> server. I'd like to be able to send mail from coldfusion (which it
> did previously with sendmail).
>
> Now, if I start my smtpd from inetd (smtp line as follows)
>
> smtp stream tcp nowait qmaild /var/qmail/bin/tcp-env tcp-env
> /usr/local/bin/rblsmtpd /var/qmail/bin/qmail-smtpd
>
> and the following line in hosts.allow
>
> tcp-env: 127.0.0.1: setenv = RELAYCLIENT
>
> It should relay mail from localhost, right? But (ahem) no :P. Did I
> miss anything here?
>
> Thanks,
>
> JI
Don't use inetd. It can not outperform tcpserver and has fewer
options needed by email administrators. The top of which is
controlling the maximum number of smtp connections. Next would
be the ability to log connection attempts followed by control
of dns queries.
Use the sample from the vpopmail FAQ file:
4. How do I allow roaming users to use our smtp server without opening
the machine up to everyone on the internet?
Your startup script for the qmail smtp server must use the
tcpserver -x file command similar to this startup line.
env - PATH="/var/qmail/bin:/usr/local/bin" \
tcpserver -H -R -x /path/to/vpopmail/etc/tcp.smtp.cdb \
-c20 -u504 -g503 0 smtp \
/var/qmail/bin/qmail-smtpd 2>&1 > /dev/null &
Then in your /path/to/vpopmail/etc/tcp.smtp file place
the 127 address and the other static IP's you wish to
provide smtp relay for. Example:
127.:allow,RELAYCLIENT=""
1.2.3.:allow,RELAYCLIENT=""
4.5.6.7-10:allow,RELAYCLIENT=""
The first line allows the loop back IP
The second allows 256 IPs in the 1.2.3
C class block
The third line allows 4 IP's
4.5.6.7
4.5.6.8
4.5.6.9
4.5.6.10
Ken Jones
inter7