Howdy! First post on this thread, I've been "forwarded" to this forum from another forum I frequent (mbclub) - and am having a few issues setting up sendmail on a OsX box. First and foremost, let me be blunt - I've never set up sendmail before, and am really stumbling in the dark. All I need is a way to send messages to a couple of members of the IT team whenever a user posts a request for help or equipment.
I've enabled PHP and mysql on one of the boxes I'm administering. The box runs as an internal-website (i.e. DNS entry on our internal DNS server, but no ip/port forwarding specifically to the box so the outside world can't "see" the box).
The box runs OsX (10.4.8); apache (some version) (neither installed by me) - and now Apache's php and mysql add-ons. I configured php and mysql this afternoon, and both are working quite happily. php I did as such (in httpd.conf)
Uncommented:
Added:
Now, I typed up a quick html page; something on the lines of:
and a quick php script:
(the *** replace my email at work)
Now, if I give the whole thing a blast, it happily replies with "Mail Sent" - which is good... php hasn't crashed, no errors, bla bla...
BUT... nothing ever comes through on the mail client side... I've tried alternative email addresses... nada... My first idea was that as the box is behind a proxy, the proxy might be filtering everything out (the proxy is set up in such a way that EVERYTHING needs to go through a specific IP
ORT to get to the outside world)... But the box is configured to go through that proxy (and can connect to the net). Does apache or *nix's sendmail have their own proxy configs?
My second thought went down the lines of the ISP wanting us to use their SMTP server, double checked - thats not the case. We have a leased line and simply put, have almost no restrictions other than bandwidth...
If not, any ideas? I'm at a total loss...
Thanks in advance,
Michele
p.s. sorry about the typos, its been a long day and I'm quite far from a cup of coffee...
I've enabled PHP and mysql on one of the boxes I'm administering. The box runs as an internal-website (i.e. DNS entry on our internal DNS server, but no ip/port forwarding specifically to the box so the outside world can't "see" the box).
The box runs OsX (10.4.8); apache (some version) (neither installed by me) - and now Apache's php and mysql add-ons. I configured php and mysql this afternoon, and both are working quite happily. php I did as such (in httpd.conf)
Uncommented:
Code:
LoadModule php4_module libexec/httpd/libphp4.so
AddModule mod_php4.c
Added:
Code:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
<IfModule mod_dir.c>
DirectoryIndex index.html index.php index.htm
</IfModule>
Now, I typed up a quick html page; something on the lines of:
Code:
<form method="get" action="sendmail.php"><br />
Email: < input name="email" type="text" /><br/>
Message:<textarea name="message" rows="10" cols="30"></textarea><br />
<input type="submit" /></form>
Code:
<?$email = $_GET['email'] ;
$message = $_GET['message'] ;
mail( "***@***-england.co.uk", "Email Subject", $message, "From: $email" );
print "Mail Sent";
?>
Now, if I give the whole thing a blast, it happily replies with "Mail Sent" - which is good... php hasn't crashed, no errors, bla bla...
BUT... nothing ever comes through on the mail client side... I've tried alternative email addresses... nada... My first idea was that as the box is behind a proxy, the proxy might be filtering everything out (the proxy is set up in such a way that EVERYTHING needs to go through a specific IP
My second thought went down the lines of the ISP wanting us to use their SMTP server, double checked - thats not the case. We have a leased line and simply put, have almost no restrictions other than bandwidth...
If not, any ideas? I'm at a total loss...
Thanks in advance,
Michele
p.s. sorry about the typos, its been a long day and I'm quite far from a cup of coffee...