如何配置Sendmail服务器,确保邮件发送成功(sendmail服务器配置)

配置sendmail服务器,确保邮件发送成功,需要编辑主配置文件/etc/mail/sendmail.mc,然后运行m4命令生成新的配置文件。

如何配置Sendmail服务器,确保邮件发送成功

让客户满意是我们工作的目标,不断超越客户的期望值来自于我们对这个行业的热爱。我们立志把好的技术通过有效、简单的方式提供给客户,将通过不懈努力成为客户在信息化领域值得信任、有价值的长期合作伙伴,公司提供的服务项目有:域名申请网站空间、营销软件、网站建设、元宝山网站维护、网站推广。

1、安装Sendmail服务器软件

- 在Linux系统中,使用以下命令安装Sendmail服务器软件:

```

sudo apt-get update

sudo apt-get install sendmail

```

2、配置Sendmail服务器

- 编辑Sendmail配置文件/etc/mail/sendmail.mc

```

sudo nano /etc/mail/sendmail.mc

```

- 在文件中找到以下行并进行相应的修改:

```

dnl # Uncomment the next line to generate "delayed mail" warnings

define(confCON_EXPENSIVE', True')

dnl # Set default value for max message size (in bytes)

define(SMTP_MAILER_QUOTA', 5000000')

dnl # Set default value for max number of messages per connection

define(confMAX_DAEMON_CHILDREN', 16')

dnl # Set default value for max number of connections per IP address

define(confMAX_RCPTS_PER_MESSAGE', 100')

dnl # Set default value for max number of recipients per message

define(confMAX_RCPTS', 100')

dnl # Set default value for max number of recipients in a To: header field

define(confTO_LINES', 50')

dnl # Set default value for max number of recipients in a Cc: header field

define(confCC_LINES', 50')

dnl # Set default value for max number of recipients in a Bcc: header field

define(confBCC_LINES', 50')

dnl # Set default value for max number of recipients in a Reply-To: header field

define(confREPLYTO_LINES', 50')

dnl # Set default value for max number of recipients in a Subject: header field

define(`confSUBJECT_PREFIX', '[<>] ')

dnl # Set default value for max number of recipients in a Message-Id: header field

define(`confMESSAGE_ID_PREFIX', '<>')

dnl # Set default value for max number of recipients in an In-Reply-To: header field

define(`confINREPLYTO_PREFIX', '<>')

dnl # Set default value for max number of recipients in an X-Confirm-Reading-To: header field

define(`confXCONFIRMREADINGTO_PREFIX', '<>')

dnl # Set default value for max number of recipients in an X-Mailer: header field

define(`confXMAILER_PREFIX', 'Sendmail')

dnl # Set default value for max number of recipients in an X-Originating-IP: header field

define(`confXORIGINATINGIP_PREFIX', '<>')

dnl # Set default value for max number of recipients in an X-Spam-Flag: header field

define(`confXSPAMFLAG_PREFIX', '<>')

dnl # Set default value for max number of recipients in an X-AntiAbuse: header field

define(`confXANTIABUSE_PREFIX', '<>')

dnl # Set default value for max number of recipients in an X-AntiAbuse: header field

define(`confXCLIENTRANDOM_PREFIX', '<>')

dnl # Set default value for max number of recipients in an X-Loop: header field

define(`confXLOOP_PREFIX', '<>')

dnl # Set default value for max number of recipients in an X-Received: header field

define(`confXRECEIVED_PREFIX', '<>')

dnl # Set default value for max number of recipients in an X-Sender: header field

define(`confXSENDER_PREFIX', '<>')

dnl # Set default value for max number of recipients in an X-Authentication-Warning: header field

define(`confXAUTHENTICATION_WARNING_PREFIX', '<>')

dnl # Set default value for max number of recipients in an X-Remote-IP: header field

define(`confXREMOTEIP_PREFIX', '<>')

dnl # Set default value for max number of recipients in an X-Remote-Host: header field

define(`confXREMOTEHOST_PREFIX', '<>')

dnl # Set default value for max number of recipients in an X-Forwarded-For: header field

define(`confXFORWARDEDFOR_PREFIX', '<>')

dnl # Set default value for max number of recipients in an X-Route: header field

define(`confXROUTE_PREFIX', '<>')

dnl # Set default value for max number of recipients in an X-Received: header field with count information (used by spam filters)

define(`confXSHORTMSGID_PREFIX', '

网页标题:如何配置Sendmail服务器,确保邮件发送成功(sendmail服务器配置)
浏览路径:http://www.shufengxianlan.com/qtweb/news10/48760.html

网站建设、网络推广公司-创新互联,是专注品牌与效果的网站制作,网络营销seo公司;服务项目有等

广告

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联