markdown Postfix FROM电子邮件

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown Postfix FROM电子邮件相关的知识,希望对你有一定的参考价值。

1. Add the following line in /etc/postfix/main.cf . All outgoing emails will have this address in the FROM field, but the name of the sender will not be modified. Replace <FQDN> with your fully qualified domain name.

```
sender_canonical_maps = static:no-reply@<FQDN>
```

2. To modify the name as well, you need to create a file in /etc/postfix/header_checks which contains this line:

```
/^From:[[:space:]]+(.*)/ REPLACE From: "Your Name" <email@company.com>
```

3. Then run the following commands:

```
cd /etc/postfix
postmap header_checks
postconf -e 'smtp_header_checks = regexp:/etc/postfix/header_checks'
service postfix reload
```

以上是关于markdown Postfix FROM电子邮件的主要内容,如果未能解决你的问题,请参考以下文章

Postfix 已安装,但我该如何测试呢? [关闭]

Postfix 不发送邮件

Postfix邮件

postfix邮件服务

postfix python发送邮件脚本配置

邮件报警(postfix)