我创建了一个Shell脚本,以通过sbmclient将Linux上的文件发送到Windows。
smbclient //HOST_WINDOWS/D$ -U USER --pass PASSWORD -c "put /tmp/test.txt FOLDER_WINDOWS/test.txt"
Run Code Online (Sandbox Code Playgroud)
那很好。
smbclient //HOST_WINDOWS/D$ -U USER --pass PASSWORD -c "put /tmp/* FOLDER_WINDOWS"
Run Code Online (Sandbox Code Playgroud)
我想一次发送所有文件,可以吗?
我试图通过postfix通过gmail发送电子邮件,但它显示以下错误:
必须首先发出STARTTLS命令.
Sep 6 01:11:34 NovusTec postfix/smtp[10889]: 1284460D68: to=<cassa@gmail.co>, relay=smtp.gmail.com[64.233.190.108]:587, delay=2882, delays=2881/0.02/0.83/0.19, dsn=5.7.0, status=bounced (host smtp.gmail.com[64.233.190.108] said: 530 5.7.0 Must issue a STARTTLS command first. k65sm16819558qkf.7 - gsmtp (in reply to MAIL FROM command))
Run Code Online (Sandbox Code Playgroud)
/etc/postfix/main.cf中
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name …Run Code Online (Sandbox Code Playgroud)