On Mon, May 12, 2003 at 10:09:37AM +0100, Andrew Ingram wrote:
> I need to make a change to SqWebmail to put the IP address of the user
> into the outgoing wemail header somewhere. Can someone who has looked
> around the code maybe suggest the easiest way to implement this? it
> would really help save me some time.

>From the sqwebmail documentation [sqwebmail-3.5.1/sqwebmail/SECURITY]

Sending Mail

   SqWebMail   includes  the  ability  to  send  mail.  Issues  regarding
   transmitting  E-mail  from  the HTTP client to the server are obvious.
   SqWebMail  runs  a  wrapper  shell  script in order to send the E-mail
   message. 
...
   The  IP  address  of the HTTP client is not inserted into the headers,
   however  the  wrapper and the mail server are invoked under the userid
   of  an authenticated user. The wrapper shell script can be modified to
   insert  the  IP  address,  if so desired. The wrapper shell script has
   access to the CGI REMOTE_ADDR environment variable.

So that's it - just modify sendit.sh to add the header you want, inserting
$REMOTE_ADDR where necessary.

Regards,

Brian.

Reply via email to