现在,sendmail应该已经可以使用TLS和465端口与SMTP服务器通讯了。 代码示例: 这里提供一个完整的sendmail.mc文件的示例: divert(-1) Configuration options OSTYPE(`debian')dnl define(SMART_HOST',[smtp.gmail.com]')dnl define(RELAY_MAILER_ARGS',TCP $h 465')dnl define(ESMTP_MAILER_ARGS',TCP $h 465'...
请参见设置SMTP 以使用 TLS。请注意,此过程包括定义新的配置文件选项和重新生成 sendmail.cf 文件。 用于在运行 SMTP 时使用 TLS 的配置文件选项 下表介绍了用于在运行 SMTP 时使用 TLS 的配置文件选项。如果要声明其中的任何选项,请使用以下语法之一: O OptionName= argument # for the configuration file -O ...
[root@mail certs]# openssl ca -in sendmail.csr -out sendmail.cert Using configuration from /etc/pki/tls/openssl.cnf Check that the request matches the signature Signature ok Certificate Details: Serial Number: 1 (0x1) Validity Not Before: Sep 10 02:07:00 2012 GMT Not After : Sep 10 02...
dnl # dnl # Rudimentary information on creating certificates for sendmail TLS: dnl # cd /usr/share/ssl/certs; make sendmail.pem dnl # Complete usage: dnl # make -C /usr/share/ssl/certs usage dnl # dnl define(`confCACERT_PATH',`/usr/share/ssl/certs') dnl define(`confCACERT',`/usr/...
有关更多信息,请参见用于在运行 SMTP 时使用 TLS 的配置文件选项。在/etc/mail 目录中重新生成并安装 sendmail.cf 文件。 有关详细说明,请参见更改sendmail 配置。创建从使用 openssl 创建的文件到 .mc 文件中定义的文件的符号链接。 # cd /etc/mail/certs # ln -s CA/cacert.pem CAcert.pem # ln -s ...
; /manual/en/mail.configuration.php#ini.sendmail-path sendmail_path = /usr/sbin/sendmail -t -i ; to the sendmail binary. These parameters will always replace the value of 启动apache之后,即可通过Sendmail命令直接发送邮件到特定的账户。Nagios和cacti配置中会用到这个功能。 使用mailx发送邮件 在Shell中...
; http://www./manual/en/mail.configuration.php#ini.sendmail-path sendmail_path = /usr/sbin/sendmail -t -i ; to the sendmail binary. These parameters will always replace the value of 启动apache之后,即可通过Sendmail命令直接发送邮件到特定的账户。Nagios和cacti配置中会用到这个功能。
Subsequently, regenerate the ‘/etc/mail/sendmail.cf’ file and perform a Sendmail service restart post any configuration modifications. Lock it down SSL/TLS encryption, strong authentication, firewall rules, and software updates help secure mail servers. ...
Using configuration from /etc/pki/tls/openssl.cnf Check that the request matches the signature Signature ok Certificate Details: Serial Number: 2 (0x2) Validity Not Before: Mar 4 20:39:09 2012 GMT Not After : Mar 4 20:39:09 2013 GMT ...
dnl define(`confSERVER_KEY', `/etc/pki/tls/certs/sendmail.pem')dnl dnl # This allows sendmail to use a keyfile that is shared with OpenLDAP's dnl # slapd, which requires the file to be readble by group ldap dnl define(`confDONT_BLAME_SENDMAIL', `groupreadablekeyfile')dnl ...