Penning email from a user "other" than tfilePro
Fairlight
fairlite at fairlite.com
Wed Aug 25 03:40:45 PDT 2004
With neither thought nor caution, John Esak blurted:
> root"... and some other factors which govern this... So, in light of all
> this, how should I run my process to ensure that it is mailed from something
> more like "info at nexusplastics.com" or "quotes at nexusplastics.com". Of
[snip]
> I get the data in from a process that runs based on incoming email, this
> sends the data into a filepro process which sends out the auto response. At
> what point should I be trying to change the user-id and how? Wasn't there a
> PFEUID or something??
Lightmail will let you arbitrarily set the sending address (and any other
headers you want, like Reply-to: and the like) as you wish, regardless of
the "facts", as it were. There is no need to actually worry about EUID,
UID, or anything other than what you -want- it to look like.
Assuming you know exactly what address you want to send it out as being
from, whether or not your process is actually running as that user is
rendered wholly and utterly irrelevant. In effect, you "forge" it. So
long as your SMTP outbound server (be it the sendmail-compliant MTA as
an executable, or port 25 somewhere as a relay--it can utilise either
transport method) allows outbound mail from the address specified,
you're good to go. IOW, you might not be able to send outbound as
john at fairlite.com from your mail server, but that's a function of the MTA
not being configured as an open relay, not of Lightmail--allow it at the
MTA level (or use an open relay somewhere, I know they exist! *chuckle*)
and it would work fine.
Bottom line is that if you can decide somewhere in processing what address
you actually want to use (I don't seem to read deciding as being your
problem--your problem seems to revolve around circumventing the usual
mechanisms to achieve the end result, at least in the way you present how
you're looking at it), this will do the trick.
Given the following argument:
-f "quotes at nexusplastics.com Nexus Plastics"
Lightmail would assemble the following header:
From: "Nexus Plastics" <quotes at nexusplastics.com>
Not a problem at all.
You can even do: -x "Reply-to: quote-responses at nexusplastics.com"
And it would include that header as well. Extra headers can be standard or
such arbitrary things as X-Borkborkbork. :) You can supply as many as
needed.
It handles plaintext message bodies, HTML message bodies, unlimited numbers
of attachments, as well as multiple To, Cc, and Bcc recipients. Full
documentation and free demos are available at:
http://lightmail.fairlite.com/
For SCO OSR5, you need the UDK package installed in order for it to
execute, but that's the only requirement.
mark->
--
Bring the web-enabling power of OneGate to -your- filePro applications today!
Try the live filePro-based, OneGate-enabled demo at the following URL:
http://www2.onnik.com/~fairlite/flfssindex.html
More information about the Filepro-list
mailing list