> > 1. Please find attached the strace log file. > As I suspected, you just _dump message body_ to sendmail and expect it to work. No. sendmail is dumb, and should be fed with the whole message, i.e. _headers_ and message body.
You see: ---- log ---- 3113 write(1, "MAIL FROM:<saisam...@cvsserver>\r\n", 33) = 33 3113 read(0, "250 2.1.0 <saisam...@cvsserver>... Sender ok\r\n", 1024) = 46 3113 read(3, "my message\n", 1024) = 11 3113 read(3, "", 1024) = 0 3113 write(1, ".\r\n", 3) = 3 3113 read(0, "500 5.5.1 Command unrecognized: \".\"\r\n", 1024) = 37 3113 write(2, "sendmail: . failed\n", 19) = 19 3113 exit_group(1) = ? --- //log --- the remote server gets no RCPT TO command? Compare with what you do manually: rcpt to:suj...@cvsserver 250 2.1.5 suj...@cvsserver... Recipient ok > 2. The following log shows how I used telnet to send email. > > [sujithsan...@teagate2 RG]$ telnet cvsserver 25 > Trying 10.47.1.6... > Connected to cvsserver. > Escape character is '^]'. > 220 cvsserver.tvm.telxsi.com ESMTP Sendmail 8.12.8/8.12.8; Thu, 15 Oct > 2009 16:14:01 +0530 > helo none > 250 cvsserver.tvm.telxsi.com Hello agate2 [10.47.4.133], pleased to meet you > mail from:saisam...@cvsserver > 250 2.1.0 saisam...@cvsserver... Sender ok > rcpt to:suj...@cvsserver > 250 2.1.5 suj...@cvsserver... Recipient ok > data > 354 Enter mail, end with "." on a line by itself > my message > . > 250 2.0.0 n9FAi1mU012304 Message accepted for delivery > quit > 221 2.0.0 cvsserver.tvm.telxsi.com closing connection > Connection closed by foreign host. > [sujithsan...@teagate2 RG]$ > > Use something like: echo "From: saisam...@cvsserver\nto: suj...@cvsserver\n\nmy message" | strace -f -v -s1024 -olog sendmail -S abcserver -f sen...@abcserver uj...@cvsserver If it doesn't work, post the log here. -- Vladimir _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
