查看/var/log/maillog发现
Dec 23 20:56:50 localhost sendmail[14217]: My unqualified host name (gc1) unknown; sleeping for retry
解决方法
查看/etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost
192.168.10.152 gc1
192.168.10.152 gc2
修改成
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost
192.168.10.152 gc1 gc1.com
192.168.10.152 gc2