On Sun, Jan 14, 2001 at 10:28:51AM -0600, Tim Cropper wrote:
> Hi all,
> 
> If  log  in as root and  send mail to a remote host using qmail-inject,
> the mail I receive is not from root but from my tcropper account.
> I been trying to figure this our for hours ... Any help would be
> appreciated.


Do you mean login literally, or do you mean su?

Login as root as you do when you have this problem and show us the
output of:

# env
# qmail-inject -n anyone </dev/null


Regards.


> 
> Below are the steps I go through to send the mail
> 
> I ssh to the host and the su to root
> 
> check my id:  uid=0(root) gid=0(root)
> groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
> 
> echo to: [EMAIL PROTECTED] | /var/qmail/bin/qmail-inject
> 
> Retrieve mail from hotmail:
>    From:  [EMAIL PROTECTED]
>    Date: 4 Jan 2001 05:49:08 -0000
> 
> From qmail-header man page:  If there is no From field, qmail-inject
> adds a new From field with the name of the user invoking qmail-inject.
> 
> How can this happen when  I was logged in as root when sending to
> qmail-inject???
> 
> Thanks
> -Tim
> 
> 
> 

Reply via email to