Koozali.org: home of the SME Server

sendmail -v not working ?

Offline dadou

  • ***
  • 47
  • +0/-0
sendmail -v not working ?
« 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

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: sendmail -v not working ?
« Reply #1 on: October 27, 2010, 04:13:46 PM »
please explain your problem/need, not your solution, thank you

Offline dadou

  • ***
  • 47
  • +0/-0
Re: sendmail -v not working ?
« Reply #2 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

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: sendmail -v not working ?
« Reply #3 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

Offline dadou

  • ***
  • 47
  • +0/-0
Re: sendmail -v not working ?
« Reply #4 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
 

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: sendmail -v not working ?
« Reply #5 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 ~]#

Offline chris burnat

  • *****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Re: sendmail -v not working ?
« Reply #6 on: October 29, 2010, 04:39:54 AM »
Moving to general discussion, this has nothing to do with Asterisk.
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.