On Tue, Sep 07, 1999 at 02:35:58PM -0500, Aijaz A. Ansari wrote:
> Hello, all.
> 
> I'm running qmail 1.03 on Red Hat 5.2 with a slightly modified (for use with
> cucipop) version of smtp-poplock to allow for relaying after a successful POP
> authentication.  All users are using Mailbox and not Maildir.
> 
> There is one user who insists that checking for email before sending it would
> be too much trouble and would like to have relaying set unconditionally for
> him.
> 
> I don't know if he has a static IP address, so I don't know if I can allow
> relaying for a certain IP address (if I can, I know how to do that).
> 
> So my question is: Is there any way to allow relaying for a certain user?  In
> other words, is there any way to enable relaying based upon the SMTP envelope
> From header?
> 
> I don't know much about all this, but it seems to me that this is not a
> trivial thing (not to mention prudent).  Can I insert a custom-built program
> in the smtp 'chain of programs' that looks for the SMTP header?

It's not a prudent thing since it's trivial to forge the envelope sender. But
if you want to do it, here's a patch:
http://www.palomine.net/qmail/relaymailfrom.patch

Chris

Reply via email to