折腾:
期间,看到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 参数
“-t和-i参数由PHP自动添加。参数-t使sendmail从标准输入中提取头,-i阻止sendmail将‘.‘作为输入的结尾。-f来自于mail()函数调用的第5个参数。”
man sendmail
“
-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.
“
-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的参数