Hi  Suresh,

I feels you are a bit confused. What all things you have explained me , I've
already come accross. Really thanks for taking effort in replying. Sorry for
replying to your personal mail-id previously, b'coz I'm a newbie to this mailing
list. I'll surely take care of that and won't repeat it.

As you have metioned I'm attaching the entries of maillog file when I send mails
locally and outside using the mail() function in PHP.

It is clear from  the maillog file that for the localmails it is not going thru
SMTP.

As far as sendmail -bs switch is concerned I've already experimented and it is
working when I'm using sendmail at command prompt.

# /usr/sbin/sendmail -bs -t < data.txt

########## Content of data.txt ###############

helo localhost
mail from: [EMAIL PROTECTED]
rcpt to: [EMAIL PROTECTED]
data

Subject : Test Mail
 This is a test mail using -bs switch
....................
...................
.
quit

############# End of data.txt  #############

Some errors are being displayed , but the mails get delivered
The above procedure I've used in PHP (opening a file writing all the data to a
file , using 'exec' finally I'm sending); This is really a tidious job for aeach
and every mail.

I'm looking for an alternate solution so that I can use PHP's mail() function as
it is and all mails(no matter whether it's an outgoing or local) should be
routed through port smtp/esmtp. This is my final aim.

Hope you have understood the problem, If not let me know .............

Expecting your early reply.

 regards

Vinu Chandran

################### MAILLOG entry when I send mail to a local user of the same machine 
##############################

Dec  8 15:05:21 myhost sendmail[25095]: eB89ZK325095: from=nobody, size=250, class=0, 
nrcpts=1, msgid=<[EMAIL PROTECTED]>, relay=nobody@localhost
Dec  8 15:05:21 myhost sendmail[25097]: eB89ZK325095: [EMAIL PROTECTED], 
ctladdr=nobody (99/99), delay=00:00:01, xdelay=00:00:00, mailer=local, pri=30250, 
dsn=2.0.0, stat=Sent


################### MAILLOG entry when I send an outgoing mail 
##############################

Dec  8 15:08:24 myhost sendmail[25146]: eB89cO425146: from=nobody, size=242, class=0, 
nrcpts=1, msgid=<[EMAIL PROTECTED]>, relay=nobody@localhost

Dec  8 15:08:36 myhost sendmail[25148]: eB89cO425146: [EMAIL PROTECTED], 
ctladdr=nobody (99/99), delay=00:00:12, xdelay=00:00:12, mailer=esmtp, pri=30242, 
relay=mxpool01.netaddress.usa.net. [204.68.24.19], dsn=2.0.0, stat=Sent (Mail accepted 
(114eLHJp30809M04))
----------------------------------------------
The mailing list archives are available at
http://lists.linux-india.org/cgi-bin/wilma/LIH

Reply via email to