John McCoy, Jr <[EMAIL PROTECTED]> wrote:
> Could this be applied to a single user on a machine. Our web reporting
> software sends the wrong linefeeds, but we have cgi scripts that work
> correctly?

Yes -- use tcpserver to start either qmail-smtpd or the straight-through-
fixcrio-to-ISP-smarthost setup.  Then use tcpserver's conditional setting
of environment variables based on IP address.  If you set up the simple
qmail relay, it would be something like:

192.168.11.54:allow,RELAYCLIENT="@fixme"
192.168.:allow,RELAYCLIENT=""
:deny

This would allow all your internal 192.168.x.x nets to relay through this
machine if necessary, and only the one at 192.168.11.54 would go through
the @fixme/fixup step which pushes the messages through fixcrio.  See
Dan's documentation for details on how to configure @fixme/fixup (it's in
his FAQ if I remember correctly).

There's a ton of other ways to do this as well.  Of course, the "correct"
solution is to fix the broken web reporting software.  If you can't touch
that, you may be able to work around it at the source -- how does it send
mail?  Through SMTP, or by calling /usr/lib/sendmail?  If the latter,
you could just put a wrapper around it.

Charles
-- 
-----------------------------------------------------------------------
Charles Cazabon                            <[EMAIL PROTECTED]>
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
-----------------------------------------------------------------------

Reply via email to