最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【整理】sendmail的参数

参数 crifan 1300浏览 0评论
折腾:
【未解决】继续调试主页中php发送邮件的功能
期间,看到php中的配置中有:
sendmail_path = /usr/sbin/sendmail -t -i
需要搞懂-t和-i是啥意思
并且,更需要去搞清楚:
此处接下来,如果端口从25换成SMTPS的465
是否需要加额外参数或更换参数,比如https的意思?
sendmail 参数
sendmail 参数 smtps
sendmail parameters smtps
sendmail -t -i para
php  sendmail 参数
详细解析PHP mail()函数漏洞利用技巧 – 有思想的安全新媒体
“-t和-i参数由PHP自动添加。参数-t使sendmail从标准输入中提取头,-i阻止sendmail将‘.‘作为输入的结尾。-f来自于mail()函数调用的第5个参数。”
man sendmail
sendmail.sendmail(8) – Linux man page
-i
Ignore dots alone on lines by themselves in incoming messages. This should be set if you are reading data from a file.
-t
Read message for recipients. To:, Cc:, and Bcc: lines will be scanned for recipient addresses. The Bcc: line will be deleted before transmission.
搜不到:smtps
只能找到和25相关端口的参数有:
-bd
Run as a daemon. Sendmail will fork and run in background listening on socket 25 for incoming SMTP connections. This is normally run from /etc/rc.
Postfix manual – sendmail(1)
-f sender
              Set  the  envelope  sender  address.  This  is the address where
              delivery problems are sent to. With Postfix versions before 2.1,
              the   Errors-To:  message  header  overrides  the  error  return
              address.
-i     When reading a message from standard input, don’t treat  a  line
              with only a . character as the end of input.
-t     Extract  recipients from message headers. These are added to any
              recipients specified on the command line.
              With Postfix versions prior to 2.1, this option requires that no
              recipient addresses are specified on the command line.
【总结】
sendmail中的参数含义:
  • -i=ignore=忽略=忽略掉行末?的点
  • -t=to=接受人?
    • 从消息头中提取接受人
  • -f=from=发件人

转载请注明:在路上 » 【整理】sendmail的参数

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
80 queries in 0.235 seconds, using 22.11MB memory