Tim Philips <[EMAIL PROTECTED]> wrote:
>
> Please excuse if this is an easy one to do but, we run a few Large QMAIL
> 1.03 servers and would like to try and control the Mail-From address our
> clients are using.
I personally don't think this is a great idea; your users may like being able
to set the envelope sender address for certain messages to something outside
of your control (like a Hotmail account) if they're mailing a company they
don't trust not to spam them.
> We have qmail configured using tcpserver and our clients IP addresses are
> listed in the tcp.smtp (tcpserver allowed RELAYCLIENTS file) there for
> they are allowed to relay. What I wish to do is to control the relaying
> beyond that to the level of the MAIL-FROM address, I wish to make sure
> this is listed as a domain I'm an MX for or a domain listed in rcpthosts.
... however, Bruce Guenter's QMAILQUEUE patch and qmail-qfilter add-on could
be used to implement this. You write a simple filter that simply checks that
the envelope sender is in one of your domains (something in rcpthosts,
presumably), and then use the tcpserver .cdb file to set the QMAILQUEUE
variable only for the IP addresses of your clients. You can find Bruce's
software at untroubled.org.
Charles
--
-----------------------------------------------------------------------
Charles Cazabon <[EMAIL PROTECTED]>
GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/
-----------------------------------------------------------------------