Re: Send E-mail as Different Hostname

2007-07-17 Thread Henning Brauer
* Chris Tankersley [EMAIL PROTECTED] [2007-07-16 22:29]:
 We're running a web server with PHP 5 and OpenBSD's Apache 1.3.29.
 Whenever a mail is sent from our site using mini_sendmail it is using
 the hostname that we gave it, which doesn't exist to the outside world.
 How can I have it send as another hostname, so that it sends from
 [EMAIL PROTECTED] instead of [EMAIL PROTECTED]

just switch from mini_sendmail (you should do that in any case, it is a 
piece of shit) to femail and set myname in femail.conf.
of course, this assumes that php is not explicitely setting the sender 
- if so, it has to be fixed there.

-- 
Henning Brauer, [EMAIL PROTECTED], [EMAIL PROTECTED]
BS Web Services, http://bsws.de
Full-Service ISP - Secure Hosting, Mail and DNS Services
Dedicated Servers, Rootservers, Application Hosting - Hamburg  Amsterdam



Re: Send E-mail as Different Hostname

2007-07-17 Thread Chris Tankersley

Gordon Stratton wrote:

On 7/16/07, Chris Tankersley [EMAIL PROTECTED] wrote:

We're running a web server with PHP 5 and OpenBSD's Apache 1.3.29.
Whenever a mail is sent from our site using mini_sendmail it is using
the hostname that we gave it, which doesn't exist to the outside world.
How can I have it send as another hostname, so that it sends from
[EMAIL PROTECTED] instead of [EMAIL PROTECTED]

Chris


Are you using PHP's built-in mail() function?  Look at example 1099 in
the PHP documentation for mail()[1].

Gordon

[1] http://us.php.net/manual/en/function.mail.php


Extra headers are being set. Depending on the form, it goes to a main 
e-mail address, and then to a backup stored at the ISP. Since we moved 
our website from their servers, they started rejecting them quoting 
'[EMAIL PROTECTED]' as the sender, even though the mail reaches our 
servers with the correct sender.


As a quick work-around I just changed the hostname of the machine to 
'www' and that seems to have cleared it up. Not the ideal solution, but 
at least the mails are being backed up off-site.


Chris

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



Re: Send E-mail as Different Hostname

2007-07-17 Thread Chris Tankersley

Henning Brauer wrote:

* Chris Tankersley [EMAIL PROTECTED] [2007-07-16 22:29]:
  

We're running a web server with PHP 5 and OpenBSD's Apache 1.3.29.
Whenever a mail is sent from our site using mini_sendmail it is using
the hostname that we gave it, which doesn't exist to the outside world.
How can I have it send as another hostname, so that it sends from
[EMAIL PROTECTED] instead of [EMAIL PROTECTED]



just switch from mini_sendmail (you should do that in any case, it is a 
piece of shit) to femail and set myname in femail.conf.
of course, this assumes that php is not explicitely setting the sender 
- if so, it has to be fixed there.


  
I'll look into femail. I settled on mini_sendmail just because it was 
the most oft-suggested mailer to use in a chroot'd environment.


As for the sender, it is being set in the headers. Depending on the 
form, it goes to a main e-mail address, and then to a backup stored at 
the ISP. Since we moved our website from their servers, they started 
rejecting them quoting '[EMAIL PROTECTED]' as the sender, even though 
the mail reaches our servers with the correct sender.


s a quick work-around I just changed the hostname of the machine to 
'www' and that seems to have cleared it up. Not the ideal solution, but 
at least the mails are being backed up off-site, but with femail I'll 
try it and see if it clears it up as well.


Chris

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



Send E-mail as Different Hostname

2007-07-16 Thread Chris Tankersley

We're running a web server with PHP 5 and OpenBSD's Apache 1.3.29.
Whenever a mail is sent from our site using mini_sendmail it is using
the hostname that we gave it, which doesn't exist to the outside world.
How can I have it send as another hostname, so that it sends from
[EMAIL PROTECTED] instead of [EMAIL PROTECTED]

Chris


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



Re: Send E-mail as Different Hostname

2007-07-16 Thread Gordon Stratton

On 7/16/07, Chris Tankersley [EMAIL PROTECTED] wrote:

We're running a web server with PHP 5 and OpenBSD's Apache 1.3.29.
Whenever a mail is sent from our site using mini_sendmail it is using
the hostname that we gave it, which doesn't exist to the outside world.
How can I have it send as another hostname, so that it sends from
[EMAIL PROTECTED] instead of [EMAIL PROTECTED]

Chris


Are you using PHP's built-in mail() function?  Look at example 1099 in
the PHP documentation for mail()[1].

Gordon

[1] http://us.php.net/manual/en/function.mail.php