Gideon, Whist I agree with Shiloh, you would be better off not using mail(). I have compared your config options with mine - they are similar in concept, so I'd say your config should work. I would however suggest setting the mask for 127.0.0.1 to "255.255.255.255"
Please check you have TAB chars between each field and a CRLF at the end of each line, including the last line. Re smtprelay.tab: This is an odd range 218.189.194.245/255.255.255.0 I would expect it to read "218.189.194.0" "255.255.255.0" or "218.189.194.245" "255.255.255.255" You could try "0.0.0.0" "0.0.0.0" ***** Note this makes your server an open relay *****, then try your PHP. If it works, then you know you have to work on your smtprelay.tab definition. If it still does not work, you know the problem is not in the smtprelay.tab file. Please remember to remove the above line soon, so that you don't become a spammers haven. Now that you know if you problem is in smtprelay.tab or not, then you can continue to isolate the source of the problem. Please repost if you need more help. Rob :-) _________________________________________________ Note To Self: Remember to put something witty here later... -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Shiloh Jennings Sent: Tuesday, 13 June 2006 11:29 PM To: [email protected] Subject: [xmail] Re: php mail() function and smtp relay settings If you are writing the PHP application, I strongly suggest using the class from http://phpmailer.sourceforge.net/ instead of the native mail() function. The native mail() is a simple and insecure mail sending function. With the PHPMailer class, you can use SMTP AUTH to securely connect to your mail server. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of So Sent: Tuesday, June 13, 2006 2:14 AM To: [email protected] Subject: [xmail] php mail() function and smtp relay settings Hi, I have set up my smtp server to be a secure smtp server. Only users have pop3 accounts are allowed to send mail thru the server. On the other hand, I need to use php's mail() function for my website. It seems that I no longer can use the mail() function after I change the setting. Can anyone help. My settings: server.tab "EnableAuthSMTP-POP3" "0" smtprelay.tab "127.0.0.1" "255.255.0.0" "218.189.194.245" "255.255.255.0" smtp.ipmap.tab "0.0.0.0" "0.0.0.0" "ALLOW" "1" Gideon -- ||||::MigDal-Gad CrossNet Ltd::|||| ==We do the Best for Christ== Tel: 2671-7015 Fax: 3005-4526 Web: http://www.mcnet.com.hk - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]
