Koozali.org: home of the SME Server
Contribs.org Forums => General Discussion => Topic started 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
-
please explain your problem/need, not your solution, thank you
-
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
-
open two shells and log in as root
in the first type:
tail -f /var/log/qpsmtpd/current | tai64nlocal
in the second, create a fake file with
echo "ok, that's a test" > ./test.txt
then send a mail using
mail -s "your_subject" recipient_email < ./test.txt
look in the first console the smtp dialog
-
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 :
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
-
maybe this is the answer:
[root@srvsrv ~]# which sendmail
/usr/sbin/sendmail
[root@srvsrv ~]# file `which sendmail`
/usr/sbin/sendmail: symbolic link to `/var/qmail/bin/sendmail'
[root@srvsrv ~]#
-
Moving to general discussion, this has nothing to do with Asterisk.