Koozali.org: home of the SME Server

Contribs.org Forums => General Discussion => Topic started by: dadou on October 27, 2010, 04:10:43 PM

Title: sendmail -v not working ?
Post by: dadou on October 27, 2010, 04:10:43 PM
Hello,

I'm trying to use sendmail -v command on shell. The command is working I receive the emails but I don't see the dialog on my terminal with the SMTP server. I think -v command is made for this, and I don't understand why it's not working.

I'm on SME 7.5.1

Thanks,

David
Title: Re: sendmail -v not working ?
Post by: Stefano on October 27, 2010, 04:13:46 PM
please explain your problem/need, not your solution, thank you
Title: Re: sendmail -v not working ?
Post by: dadou on October 27, 2010, 04:46:49 PM
Hello,

Thanks for your answer. I want to send an email at shell through the sendmail command and see the dialog with SMTP server on my terminal (use Sendmail verbose mode).

David
Title: Re: sendmail -v not working ?
Post by: Stefano on October 27, 2010, 05:11:27 PM
open two shells and log in as root

in the first type:
Code: [Select]
tail -f /var/log/qpsmtpd/current | tai64nlocal

in the second, create a fake file with
Code: [Select]
echo "ok, that's a test" > ./test.txt

then send a mail using
Code: [Select]
mail -s "your_subject" recipient_email < ./test.txt

look in the first console the smtp dialog
Title: Re: sendmail -v not working ?
Post by: dadou on October 27, 2010, 05:21:40 PM
Thanks. My need is to see at shell just after running the command (not into logs).

On an other system i do this for exemple :

Quote
bash# echo test | /usr/lib/sendmail -v test@free.fr
test@free.fr... Connecting to smtp.free.fr. via relay...
220 smtp3-g21.free.fr ESMTP Postfix
>>> EHLO sco.magelec.com
250-smtp3-g21.free.fr
250-PIPELINING
250-SIZE 35000000
250-VRFY
250-ETRN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
>>> MAIL From:<user@xxx.com> SIZE=5
250 2.1.0 Ok
>>> RCPT To:<test@free.fr>
250 2.1.5 Ok
>>> DATA
354 End data with <CR><LF>.<CR><LF>
>>> .
user... Connecting to local...
user... Sent
Closing connection to smtp.free.fr.
>>> QUIT
221 2.0.0 Bye

On the SME it's not working and I don't understand why. The -v add nothing more. When you look on sendmail manuel it says it should do what it does on my other system.

Thanks,

David
 
Title: Re: sendmail -v not working ?
Post by: Stefano on October 27, 2010, 05:35:59 PM
maybe this is the answer:

Code: [Select]
[root@srvsrv ~]# which sendmail
/usr/sbin/sendmail
[root@srvsrv ~]# file `which sendmail`
/usr/sbin/sendmail: symbolic link to `/var/qmail/bin/sendmail'
[root@srvsrv ~]#
Title: Re: sendmail -v not working ?
Post by: chris burnat on October 29, 2010, 04:39:54 AM
Moving to general discussion, this has nothing to do with Asterisk.