Codice: Seleziona tutto
Trying ::1...
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
Codice: Seleziona tutto
Trying ::1...
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
mi è venuto in mente che devi aggiungere la seguente riga al file /etc/s-nail.rcsmtp-server: 530 authentication required for mail submission
quindi in sostanzasmtp-auth=login
set smtp=mail.tin.it:587
smtp-auth=login
set smtp-auth-user=tuoindirizzo@tin.it
set smtp-auth-password=latua password
Codice: Seleziona tutto
Resolving host "mail.tin.it:587" ... done
Connecting to "62.211.72.20:587" ...connected.
smtp-server: 530 authentication required for mail submission
"/home/naslinux/dead.letter" 8/191
... message not sent
e se non và anche quest'altraset smtp-use-starttls
set ssl-verify=ignore
Codice: Seleziona tutto
Stopped loading "/etc/s-nail.rc" due to errors (enable *debug* for trace)
Resolving host "mail.tin.it:587" ... done
Connecting to "62.211.72.20:587" ...connected.
smtp-server: 530 authentication required for mail submission
"/home/naslinux/dead.letter" 8/191
... message not sent
Codice: Seleziona tutto
set smtp=mail.tin.it:587
smtp-auth=login
set smtp-auth-user=*******s@tin.it
set smtp-auth-password=**********bg2
set smtp-use-starttls
set ssl-verify=ignore
quella configurazione sembra funzionare con gmail ma evidentemente tin.it cè qualcosa che non vàset smtp=mail.tin.it:587
smtp-auth=login
set smtp-use-starttls
set ssl-verify=ignore
set smtp-auth-user=*******s@tin.it
set smtp-auth-password=**********bg2
io ho provato con il mio provider (che usa la 465 ) e conset smtp=submission://mail.tin.it
smtp-auth=login
set smtp-use-starttls
set ssl-verify=ignore
set smtp-auth-user=*******s@tin.it
set smtp-auth-password=**********bg2
Codice: Seleziona tutto
sudo echo "Messaggio di Prova" | s-nail -v -r ******@tin.it -s "Prova" ******@tin.it
Codice: Seleziona tutto
Unknown command: `smtp'
Stopped loading "/etc/s-nail.rc" due to errors (enable *debug* for trace)
Resolving host "mail.tin.it:submission" ... done
Connecting to "62.211.72.20:submission" ...connected.
smtp-server: 530 authentication required for mail submission
"/home/naslinux/dead.letter" 8/191
... message not sent
Codice: Seleziona tutto
naslinux@naslinux:~$ sudo echo "Messaggio di Prova" | s-nail -v -r *******s@tin.it -s "Prova" ******s@tin.it
Resolving host "mail.tin.it:submission" ... done
Connecting to "62.211.72.20:submission" ...connected.
smtp-server: 500 STAR command unrecognized
"/home/naslinux/dead.letter" 8/191
... message not sent
Codice: Seleziona tutto
sudo echo "Messaggio di Prova" | s-nail -vv -r ******@tin.it -s "Prova" ******@tin.it
Codice: Seleziona tutto
naslinux@naslinux:~$ sudo echo "Messaggio di Prova" | s-nail -vv -r ********@tin.it -s "Prova" *******@tin.it
LOAD 12 bytes <#@ s-nail.rc>
LOAD 43 bytes <#@ Configuration file for S-nail(1) v14.8.9>
LOAD 33 bytes <# S-nail(1): v14.8.9 / 2016-06-21>
LOAD 0 bytes <>
LOAD 78 bytes <## The standard POSIX 2008/Cor 1-2013 mandates the following initial settings:>
LOAD 78 bytes <# (Keep in sync: ./main.c:_startup(), ./nail.rc, ./nail.1:"Initial settings"!)>
LOAD 67 bytes <# [a] noallnet, noappend, asksub, noaskbcc, noaskcc, noautoprint,>
LOAD 57 bytes <# [b-e] nobang, nocmd, nocrt, nodebug, nodot, escape="~",>
LOAD 65 bytes <# [f-i] noflipr, nofolder, header, nohold, noignore, noignoreeof,>
LOAD 49 bytes <# [j-o] nokeep, nokeepsave, nometoo, nooutfolder,>
LOAD 47 bytes <# [p-r] nopage, prompt="? ", noquiet, norecord,>
LOAD 51 bytes <# [s] save, nosendwait, noshowto, nosign, noSign,>
LOAD 20 bytes <# [t-z] toplines="5">
LOAD 8 bytes <# Notes:>
LOAD 52 bytes <# - no*onehop* doesn't exist in this implementation.>
LOAD 78 bytes <# (To pass options through to an MTA, either add them after a "--" separator>
LOAD 73 bytes <# on the command line or by setting the *sendmail-arguments* variable.)>
LOAD 65 bytes <# - *prompt* is "\\& " by default, which will act POSIX-compliant>
LOAD 41 bytes <# unless the user would set *bsdcompat*>
LOAD 0 bytes <>
LOAD 71 bytes <## The remaining content adjusts the standard-imposed default settings.>
LOAD 78 bytes <# Note that some of the following flags are specific to S-nail(1) and may thus>
LOAD 50 bytes <# not work with other Mail(1) / mailx(1) programs.>
LOAD 77 bytes <# Entries are marked [OPTION] if their availability is compile-time dependent>
LOAD 0 bytes <>
LOAD 12 bytes <## Variables>
LOAD 0 bytes <>
LOAD 62 bytes <# If threaded mode is activated, automatically collapse thread>
LOAD 16 bytes <set autocollapse>
LOAD 0 bytes <>
LOAD 35 bytes <# Enter threaded mode automatically>
LOAD 20 bytes <#set autosort=thread>
LOAD 0 bytes <>
LOAD 64 bytes <# Append rather than prepend when writing to mbox automatically.>
LOAD 61 bytes <# This has no effect unless *hold* is unset (it is set below)>
LOAD 10 bytes <set append>
LOAD 0 bytes <>
LOAD 28 bytes <# Ask for a message subject.>
LOAD 7 bytes <set ask>
LOAD 0 bytes <>
LOAD 77 bytes <# *bsdannounce* prints a header summary on folder change and thus complements>
LOAD 75 bytes <# *header* on a per-folder basis (it is meaningless unless *header* is set)>
LOAD 15 bytes <set bsdannounce>
LOAD 0 bytes <>
LOAD 59 bytes <# Uncomment this in order to get coloured output in $PAGER.>
LOAD 74 bytes <# (Coloured output is only used if $TERM is either found in *colour-terms*>
LOAD 33 bytes <# or includes the string "color")>
LOAD 17 bytes <#set colour-pager>
LOAD 0 bytes <>
LOAD 48 bytes <# Assume a CRT-like terminal and invoke a $PAGER>
LOAD 7 bytes <set crt>
LOAD 0 bytes <>
LOAD 39 bytes <# Define date display in header summary>
LOAD 63 bytes <#set datefield="%R %m-%d" datefield-markout-older=" %g-%m-%d">
LOAD 0 bytes <>
LOAD 70 bytes <# When composing messages a line consisting of `.' finalizes a message>
LOAD 7 bytes <set dot>
LOAD 0 bytes <>
LOAD 65 bytes <# Immediately start $EDITOR (or $VISUAL) when composing a message>
LOAD 14 bytes <#set editalong>
LOAD 0 bytes <>
LOAD 68 bytes <# Startup into interactive mode even if the (given) mailbox is empty>
LOAD 15 bytes <#set emptystart>
LOAD 0 bytes <>
LOAD 78 bytes <# When replying to or forwarding a message the comment and name parts of email>
LOAD 52 bytes <# addresses are removed unless this variable is set.>
LOAD 14 bytes <#set fullnames>
LOAD 0 bytes <>
LOAD 64 bytes <# [OPTION] Add more entries to the history as is done by default>
LOAD 17 bytes <set history-gabby>
LOAD 0 bytes <>
LOAD 62 bytes <# Do not forward to mbox by default since this is likely to be>
LOAD 54 bytes <# irritating for most users today; also see *keepsave*>
LOAD 8 bytes <set hold>
LOAD 0 bytes <>
LOAD 72 bytes <# Quote the original message in replies by "> " as usual on the Internet>
LOAD 21 bytes <set indentprefix="> ">
LOAD 0 bytes <>
LOAD 39 bytes <# Mark messages that have been answered>
LOAD 16 bytes <set markanswered>
LOAD 0 bytes <>
LOAD 67 bytes <# Try to circumvent false or missing MIME Content-Type descriptions>
LOAD 71 bytes <# (Can be set to values for extended behaviour, please see the manual.)>
LOAD 25 bytes <set mime-counter-evidence>
LOAD 0 bytes <>
LOAD 78 bytes <# Control loading of mime.types(5) file: the value may be a combination of the>
LOAD 79 bytes <# letters "s" and "u": if "u" is seen ~/.mime.types will be loaded if possible;>
LOAD 77 bytes <# "s" adds /etc/mime.types, if available; setting this without any value uses>
LOAD 69 bytes <# only a set of builtin mimetypes; the default behaviour equals "us".>
LOAD 79 bytes <# An extended syntax that allows loading of other, specified files is available>
LOAD 66 bytes <# if the value contains an equal sign "=", see the manual for more>
LOAD 27 bytes <#set mimetypes-load-control>
LOAD 0 bytes <>
LOAD 35 bytes <# Do not remove empty mail folders.>
LOAD 75 bytes <# This may be relevant for privacy since other users could otherwise create>
LOAD 33 bytes <# them with different permissions>
LOAD 8 bytes <set keep>
LOAD 0 bytes <>
LOAD 74 bytes <# Do not move `save'd or `write'n message to mbox by default since this is>
LOAD 63 bytes <# likely to be irritating for most users today; also see *hold*>
LOAD 12 bytes <set keepsave>
LOAD 0 bytes <>
LOAD 78 bytes <# When writing mailbox files we strip Content-Length: and Lines: header fields>
LOAD 72 bytes <# from edited / changed messages, because S-nail doesn't deal with these>
LOAD 77 bytes <# (non-standard) fields -- and since other MUAs may rely on their content, if>
LOAD 78 bytes <# present, it seems more useful to strip them than to keep them, now that they>
LOAD 54 bytes <# became invalid; set this to include them nonetheless>
LOAD 24 bytes <#set keep-content-length>
LOAD 0 bytes <>
LOAD 46 bytes <# A nice prompt for ISO 6429/ECMA-48 terminals>
LOAD 42 bytes <#set prompt="\033[31m?\?[\$ \@]\& \033[0m">
LOAD 0 bytes <>
LOAD 66 bytes <# Automatically quote the text of the message that is responded to>
LOAD 9 bytes <set quote>
LOAD 0 bytes <>
LOAD 76 bytes <# On group replies, specify only the sender of the original mail in To: and>
LOAD 76 bytes <# mention it's other recipients in the secondary Cc: instead of placing them>
LOAD 21 bytes <# all together in To:>
LOAD 20 bytes <set recipients-in-cc>
LOAD 0 bytes <>
LOAD 71 bytes <# When responding to a message, try to answer in the same character set>
LOAD 26 bytes <#set reply-in-same-charset>
LOAD 0 bytes <>
LOAD 77 bytes <# [OPTION] Outgoing messages are sent in UTF-8 if possible, otherwise LATIN1.>
LOAD 74 bytes <# Note: it is highly advisable to read the section "Character sets" of the>
LOAD 77 bytes <# manual in order to understand all the possibilities that exist to fine-tune>
LOAD 74 bytes <# charset usage (variables also of interest: *ttycharset*, *charset-8bit*,>
LOAD 74 bytes <# *sendcharsets-else-ttycharset*; and of course we inherit the $LC_CTYPE />
LOAD 60 bytes <# $LC_ALL / $LANG environment variables and react upon them)>
LOAD 33 bytes <set sendcharsets=utf-8,iso-8859-1>
LOAD 0 bytes <>
LOAD 76 bytes <# When sending a message wait until the MTA (including the builtin SMTP one)>
LOAD 78 bytes <# exits before accepting further commands. Only with this variable set errors>
LOAD 43 bytes <# reported by the MTA will be recognizable!>
LOAD 13 bytes <#set sendwait>
LOAD 0 bytes <>
LOAD 73 bytes <# Display real sender names in header summaries instead of only addresses>
LOAD 12 bytes <set showname>
LOAD 0 bytes <>
LOAD 74 bytes <# Show recipients of messages sent by the user himself in header summaries>
LOAD 10 bytes <set showto>
LOAD 0 bytes <>
LOAD 11 bytes <## Commands>
LOAD 0 bytes <>
LOAD 68 bytes <# Only include these selected header fields when forwarding messages>
LOAD 30 bytes <fwdretain subject date from to>
LOAD 0 bytes <>
LOAD 64 bytes <# Only include the selected header fields when printing messages>
LOAD 67 bytes <retain date from to cc subject message-id mail-followup-to reply-to>
LOAD 0 bytes <>
LOAD 33 bytes <## Some pipe-TYPE/SUBTYPE entries>
LOAD 0 bytes <>
LOAD 42 bytes <# HTML as text, inline display via lynx(1)>
LOAD 28 bytes <#if $features !@ HTML-FILTER>
LOAD 54 bytes <# set pipe-text/html="lynx -stdin -dump -force_html">
LOAD 6 bytes <#endif>
LOAD 0 bytes <>
LOAD 47 bytes <# PDF display, asynchronous display via xpdf(1)>
LOAD 292 bytes <#set pipe-application/pdf="@&set -C;# : > \"${TMPDIR}/${NAIL_FILENAME_GENERATED}\";# trap \"rm -f \\\"${TMPDIR}/${NAIL_FILENAME_GENERATED}\\\"\" # EXIT INT QUIT PIPE TERM;# set +C;# cat > \"${TMPDIR}/${NAIL_FILENAME_GENERATED}\";# xpdf \"${TMPDIR}/${NAIL_FILENAME_GENERATED}\"">
LOAD 0 bytes <>
LOAD 11 bytes <# s-it-mode>
LOAD 0 bytes <>
LOAD 33 bytes <set smtp=submission://mail.tin.it>
LOAD 19 bytes <set smtp-auth=login>
LOAD 21 bytes <set smtp-use-starttls>
LOAD 21 bytes <set ssl-verify=ignore>
LOAD 32 bytes <set smtp-auth-user=*******@tin.it>
LOAD 34 bytes <set smtp-auth-password=******************>
Credentials: host "*********@tin.it", user "********@tin.it", pass "****************"
Resolving host "mail.tin.it:submission" ... done
Connecting to "62.211.72.20:submission" ...connected.
220 vsmtpvtin3.tin.it ESMTP Service ready
>>> EHLO naslinux.dev.local
250-vsmtpvtin3.tin.it
250-DSN
250-8BITMIME
250-PIPELINING
250-HELP
250-AUTH=LOGIN
250-AUTH LOGIN CRAM-MD5 DIGEST-MD5 PLAIN
250-DELIVERBY 300
250 SIZE 31457280
>>> STARTTLS
500 STAR command unrecognized
smtp-server: 500 STAR command unrecognized
"/home/naslinux/dead.letter" 8/191
... message not sent
Codice: Seleziona tutto
set smtp=submission://mail.tin.it
smtp-auth=login
#set smtp-use-starttls
set ssl-verify=ignore
set smtp-auth-user=*******s@tin.it
set smtp-auth-password=**********bg2
Codice: Seleziona tutto
250 <59C12245023008A4> Mail accepted
>>> QUIT
Codice: Seleziona tutto
#!/bin/sh
##
## User-configurable Variables
##
NAIL=/usr/bin/s-nail
TO_ADDR=tuaposta@tin.it
###
### Send the mail...
###
SUBJECT="Torrent Done!"
FROM_ADDR="tuaposta@tin.it"
TMPFILE=`mktemp -t transmission.XXXXXXXXXX`
echo "Transmission finished downloading \"$TR_TORRENT_NAME\" on $TR_TIME_LOCALTIME" >$TMPFILE
$NAIL -v -S from="$FROM_ADDR" -s "$SUBJECT" "$TO_ADDR" < $TMPFILE
rm $TMPFILE
Codice: Seleziona tutto
sudo chmod +x tuoscript.sh
Codice: Seleziona tutto
./tuoscript.sh
Codice: Seleziona tutto
"script-torrent-done-filename": "torrentdone.sh",
"script-torrent-done-filename": "/torrentdone.sh",
Edit:"script-torrent-done-filename": "~/torrentdone.sh",
"script-torrent-done-filename": "/home/tuouser/torrentdone.sh",
Visualizzano questa sezione: 0 utenti iscritti e 5 ospiti