Re: [Exim] Forcing Sender

Top Page
Delete this message
Reply to this message
Author: Jeremy C. Reed
Date:  
To: Gordon McKee
CC: exim-users
Subject: Re: [Exim] Forcing Sender
On Thu, 21 Dec 2000, Gordon McKee wrote:

> When running CGI programs in Perl to exim - mail comes from
> nobody@???. How can I force the senders Address?


In the message body have the "From:" header have the email address you
want it to be from or set the envelope sender using the -f option.

And this user (nobody) should be a trusted user as defined in the
Exim configuration:

trusted_users = nobody

(On a side note, I believe running CGIs as nobody is wrong. For example,
if multiple separate websites run CGIs they may be able to modify each
others' nobody-owned data -- as you can see "nobody" in some cases really
means "everybody". You may want to consider running the CGI as a normal
user with suEXEC or some type of CGI wrapper.)

  Jeremy C. Reed
  http://www.reedmedia.net/
  http://bsd.reedmedia.net/  -- BSD news and resources
  http://www.isp-faq.com/    -- find answers to your questions