Hi,

I set up ssmtp so far successfully, but one thing is fairly annyoing:

i always have to give the ssmtp command the "TO: xyz@domanin.com" field in the message body, otherwise ssmtp is only giving "RCTP TO: xyz@domanin.com" to the mail server, which leads to mails not being sent all.

Has anyone else observed this behaviour? And did you fix it?

Thanks,
max

Here some log output to illustrate the problem

Here the working version:

root@Zapp:~# ssmtp -vvv -F "John Smith"  abc@abc.de               
SUBJECT: MAIL TEST
TO: abc@abc.de

[<-] 220 mx.google.com ESMTP y34sm1815260iky
[->] EHLO john.smith@gmail.com
[<-] 250 ENHANCEDSTATUSCODES
[->] AUTH LOGIN XXXXXXXXXXXX
[<-] 334 XXXXXXXXXX
[->] XXXXXXXXXXXX
fin [<-] 235 2.7.0 Accepted
[->] MAIL FROM:<maximilian.michel@gmail.com>
test[<-] 250 2.1.0 OK
[->] RCPT TO:<abc@abc.de>
[<-] 250 2.1.5 OK
[->] DATA
[<-] 354 Go ahead
[->] Received: by john.smith@gmail.com (sSMTP sendmail emulation); Wed, 23 May 2007 12:12:53 +0200
[->] From: "John Smith" <john.smith@gmail.com>
[->] Date: Wed, 23 May 2007 12:12:53 +0200
[->] SUBJECT: MAIL TEST
[->] TO: abc@abc.de 
[->] 

[->] fin test
fin2 test
[->] fin2 test

[->] 
[->] .
[<-] 250 2.0.0 OK 1179915207 y34sm1815260iky
[->] QUIT
[<-]

Here, if i don't give it the TO  field in the message:

root@Zapp:~# ssmtp -vvv -F "John Smith"  abc@abc.de 
test
test
[<-] 220 mx.google.com ESMTP 50sm2867309ugb
[->] EHLO john.smith@gmail.com
[<-] 250 ENHANCEDSTATUSCODES
[->] AUTH LOGIN bWF4aW1pbGlhbi5taWNoZWw=
[<-] 334 UGFzc3dvcmQ6
[->] cm9zZSpidWQ=
[<-] 235 2.7.0 Accepted
[->] MAIL FROM:<john.smith@gmail.com>
[<-] 250 2.1.0 OK
[->] RCPT TO:<abc@abc.de>
[<-] 250 2.1.5 OK
[->] DATA
[<-] 354 Go ahead
[->] Received: by john.smith@gmail.com (sSMTP sendmail emulation); Wed, 23 May 2007 13:28:38 +0200
[->] From: "John Smith" <john.smith@gmail.com>
[->] Date: Wed, 23 May 2007 13:28:38 +0200
[->] test
[->] 
[->] .
[<-] 250 2.0.0 OK 1179919725 50sm2867309ugb
[->] QUIT
[<-]