Internal Network Configuration Sendmail Server

xiaoxiao2021-03-06  91

1, modify / etc / hosts

192.168.0.248 mail.highway.com mail

2, start POP3 and IMAP

/etc/xinetd.d/ipop3 disable = yes change to disable = no /etc/xinetd.d/iMap disable = yes change to disable = no

3, modify / etc / mail / local-host-names

# sendmail -bt> $ = w // Ctrl D End // Edit / etc / mail / local-host-names mail.highway.com // Reliece service

4, use the Access database

// Edit / etc / mail / access // Add below Mail.hightway.com Relay

192.168.0 relay // Generate /etc/mail/access.db # makemap hash access.db

5. Point DNS to 192.168.0. DNS server of the network segment

# vi /etc/resolv.conf // Add Nameserver 192.168.0.248

6, configure the authenticated mail server

// Edit /etc/mail/sendmail.mc Remove the DNL Trust_Auth_mech before the following two lines (`External Digest-MD5 CRAM-MD5 Login Plain" DNL

DEFINE (`confauth_mechanism", `external gssapi digest-md5 cram-md5 login plain ') DNL // Modify AddR = Native IP daemon_Options (` port = SMTP, Addr = 192.168.0.248, name = mta') DNL

转载请注明原文地址:https://www.9cbs.com/read-96016.html

New Post(0)