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.

Reply via email to