SendMail installation, you first have to ensure that the domain name provider for your host to do the MX record of the domain name resolution. The MX record I made is as follows.
Name: abc.com
Type: MX (10)
Host Name: mx1.abc.com
At the same time to host a mx1.abc.com of a record.
Test if the MX record is in effect, you can use the Nslookup
#nslookup
> Set Q=MX
> abc.com
You will see whether your MX record is in effect from the information displayed in the system.
REDHAT7.0 installation is complete, the system has installed the SENDMAIL-CF-8.11.0-8.I386.RPM package by default, please check/etc/ Is there a sendmail.cf file, if not, install the SENDMAIL-CF-8.11.0-8.I386.RPM package in the Linux CD.
Configuration:
/etc/sendmail.cf
Cwlocalhost ABC mx1.abc.com
/etc/mail/access
Add to:
1.2.3.4 RELAY (1.2.3.4 is my IP)
/etc/mail/local-host-names
ABC.com (add an alias, in order to receive
[Url=mailto:user@abc.com]user@abc.com[/url]
Letter of the format)
In order to users can use software such as Foxmail,outlook to receive letters. You need to install IMAP. Open the system's POP3 port.
Please check to see if the/usr/sbin/contains ipop2d, ipop3d files, if not, install the imap-4.7c2-12.i386.rpm package.
Configuration:
/etc/xinetd.d/ipop2
Default: Disable=yes instead: Disable=no
/etc/xinetd.d/ipop3
Default: Disable=yes instead: Disable=no
/etc/xinetd.d/ipop3
Default: Disable=yes instead: Disable=no
/etc/xinetd.d/pops
Default: Disable=yes instead: Disable=no
At last:
/etc/rc.d/init.d/xinetd restart
Add and remove users from the mail system:
Add to:
#/user/sbin/useradd Username Mail
#passwd username
#chsh username
/bin/true (update user's shells)
Delete:
#//usr/sbin/userdel username
At this point, if your MX record resolves successfully and works correctly, you can send and receive mail via Foxmail,outlook on Windows client, setting: Email Address:
[Url=mailto:username@abc.com]username@abc.com[/url]
, account: Username, password: Network administrator will tell you, pop3:mx1.abc.com smtp:mx1.abc.com