我想设置一个可以用sendmail发送邮件的邮件服务器。 这是我所做的
service postfix start sendmail < mymail
mymail包含的地方
to:[email protected] from:[email protected] subject: None None
用数据包捕获,我看到没有发送。 postfix在端口25上运行,在安装postfix后我没有碰到configuration。
为什么邮件没有发送,我怎样才能用sendmail发送邮件?
1)指示sendmail在邮件标题( -t )中查找收件人,忽略单点线作为电子邮件的结尾( -i )。 没有-t sendmail希望通过命令行获得收件人列表。
sendmail -i -t < mymail
2)在消息( mymail文件)的标题和正文之间插入空行
to:[email protected] from:[email protected] subject: None None
Postfix手动sendmail(1)