On Sun, Aug 20, 2000 at 08:24:15PM +0000, J!M wrote:
> Hello all,
> 
> I'm setting up qmail as my smtp server to use with PHP. When I 
> create an email using PHP, even when I specify a From header as 
> [EMAIL PROTECTED], the message is sent with the From 
> header reading [EMAIL PROTECTED], with 
> server.bar.com being the FQDN of my server. I have foo.com listed 
> in my rcpthosts file and have restarted qmail. Apparently, I need to 
> do something else as well. How do I get qmail to use the address I 
> specify, rather than replacing it with the FQDN?

What are you using to inject messages with, SMTP, the sendmail
wrapper, or qmail-inject? And what exactly is being rewritten, the
message from header or the envelope sender?

If you are using SMTP or the sendmail wrapper, consider calling
/var/qmail/bin/qmail-inject directly. As discussed in man
qmail-inject, it will normally preserve the message from header and
set the envelope sender to what is in the return-path header.

PGP signature

Reply via email to