Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/28.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 使用Mutt发送电子邮件,无需验证_Linux_Email_Sendmail_Attachment_Mutt - Fatal编程技术网

Linux 使用Mutt发送电子邮件,无需验证

Linux 使用Mutt发送电子邮件,无需验证,linux,email,sendmail,attachment,mutt,Linux,Email,Sendmail,Attachment,Mutt,我有一个没有身份验证的内部网SMTP服务器 我正在尝试使用Mutt发送电子邮件;我将其配置如下: set from = "" #set use_from = yes #SMTP user auth set smtp_url = "smtp://user@<ip-address-of-my-server>:25" #set smtp_pass = "$imap_pass" 我尝试了不同的配置,有用户ecc和没有用户ecc,但

我有一个没有身份验证的内部网SMTP服务器

我正在尝试使用Mutt发送电子邮件;我将其配置如下:

set from = ""
#set use_from = yes
#SMTP user auth
set smtp_url = "smtp://user@<ip-address-of-my-server>:25"
#set smtp_pass = "$imap_pass"
我尝试了不同的配置,有用户ecc和没有用户ecc,但我只得到错误

我的问题:是否可以在没有身份验证的情况下使用Mutt发送电子邮件


非常感谢。

我想您应该在
smtp\u url
设置中省略
user@

即:

设置smtp\u url=“smtp://:25”

Mutt's表示,除了主机名(或地址)之外,URL右侧的所有内容都是可选的。

尝试使用mailx和/或sendmail(大多数邮件服务器都有sendmail命令)。如果它起作用,那么问题就出在mutt身上。
mutt -s "Test message" my-username@mail.com < /root/testMsg.txt
SMTP server does not support authentication
Could not send the message.
set smtp_url = "smtp://<ip-address-of-my-server>:25"