php mail() problem
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