LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   php mail() problem (https://www.linuxquestions.org/questions/linux-software-2/php-mail-problem-98101/)

sashhoney 09-29-2003 01:16 AM

php mail() problem
 
hi,
i m facing a small prob while attempting to write a mail client.
i m using different machine as web server and mail server.
dns is configured at web server.
now my problem is when i use mail() function to transfer mails, my mails r not delivered at all.
1)in my /var/log/maillog of web server i can see the entry saying DSN:Service not available
2)/var/log/maillog of mail server says: no mail/vrfy is issued by web server.
3) web server root receives a mess from sendmail which says:
helo >>"webserver name"
501: Invalid domain name

i checked my dns, its working properly.
if i use same machine as web server and mail server it runs properly
but my boss asked me to imp it separately.
i m tryin for 3 days but couldnt figure out any prob in configurtion of any server
thnx in advance

daveo 09-29-2003 04:22 AM

Re: php mail() problem
 
Quote:

Originally posted by sashhoney
hi,
i m facing a small prob while attempting to write a mail client.
i m using different machine as web server and mail server.
dns is configured at web server.
now my problem is when i use mail() function to transfer mails, my mails r not delivered at all.
1)in my /var/log/maillog of web server i can see the entry saying DSN:Service not available
2)/var/log/maillog of mail server says: no mail/vrfy is issued by web server.
3) web server root receives a mess from sendmail which says:
helo >>"webserver name"
501: Invalid domain name

i checked my dns, its working properly.
if i use same machine as web server and mail server it runs properly
but my boss asked me to imp it separately.
i m tryin for 3 days but couldnt figure out any prob in configurtion of any server
thnx in advance

What have you done in php.ini ? There's a part to configure, to work with external mail-servers. Have a look at that line. Then restart apache and try again ...

Hope this helps,

sashhoney 09-30-2003 04:59 AM

thnx for the reply daveo
well i will try that but i saw that yesterday.
in php.ini 'smtp' and 'smtp-port' settings can only be configured in Windows env.
anyway i will try that.

there is another prob-
i m using two separate server for authentication-one is NIS and second is LDAP server
i need to write a php script for changing the password.
is there any way to change the password directly from web page?
i will really appreciate if anyone can give me proper idea

daveo 09-30-2003 05:06 AM

Quote:

Originally posted by sashhoney
thnx for the reply daveo
well i will try that but i saw that yesterday.
in php.ini 'smtp' and 'smtp-port' settings can only be configured in Windows env.
anyway i will try that.

there is another prob-
i m using two separate server for authentication-one is NIS and second is LDAP server
i need to write a php script for changing the password.
is there any way to change the password directly from web page?
i will really appreciate if anyone can give me proper idea

Sorry can't help you with this one, try droping your question in www.phpfreaks.com forums ... good luck ...


All times are GMT -5. The time now is 04:29 AM.