LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1022|回复: 2

关于mail的一些问题

[复制链接]
发表于 2005-10-19 13:10:15 | 显示全部楼层 |阅读模式
sendmail.mc 改称smtp 监听端口0.0.0.0 然后M4到sendmail.cf

/etc/mail/access
192.168.0.2                                       RELAY

dovecot.conf
protocols= imap pop3

auth_passdb= *

然后配置 /etc/pam.d/pop3 (同IMAP)
auth            required        pam_filelist.so       item=user   sense=deny file=/etc/security/pop3(imap).deny

/etc/security/pop3(imap).deny
bbb

上面就是我配置一个sendmail的做法(USER BAESED包括限制)
问题来了 本机:192.168.0.2
telnet 192.168.0.1 25
mail from:aaa@abc.com
rcpt to:aaa@192.168.0.1
data
123
.
quit

本机还是192.168.0.2
[root@server ~]# fetchmail -p pop3 -u aaa 192.168.0.1
Enter password for aaa@192.168.0.2:
fetchmail: Server CommonName mismatch: localhost.localdomain != 192.168.0.1
fetchmail: Server CommonName mismatch: localhost.localdomain != 192.168.0.1
fetchmail: No mail for aaa at 192.168.0.1
因为是虚拟机 传MAIL应该即时就到的阿。。怎么会NOMAIL 发了好几份都一样没
fetchmail: Server CommonName mismatch: localhost.localdomain != 192.168.0.1
这句应该不影响查找主机吧 我给的IP

不知道出什么问题了??
还有想问一下fetchmail原理是把登录到邮件服务器把自己的mail本地在投马??
还有。。请问IMAP的SSL怎么弄??
在protocols=这行加入imaps
然后用默认的SSL认证文件
ssl_cert_file = /usr/share/ssl/certs/dovecot.pem
ssl_key_file = /usr/share/ssl/private/dovecot.pem
这样就可以了??
 楼主| 发表于 2005-10-19 13:12:28 | 显示全部楼层
补一下 切换到192.168.0.1 用aaa登录 然后MAIL也是没邮件
回复 支持 反对

使用道具 举报

发表于 2005-10-20 01:00:38 | 显示全部楼层
several things you might try:
1. In access file, add your domain name for RELAY
2. In local-host-names, add your fqdn, or any alias names
3.
  1. make -C /etc/mail
复制代码
recompile the settings.
4. restart sendmail, and then
  1. echo "hello" | mail -v user[@hostname]
复制代码
(Look at the mail processing and see if you see any error). Also
  1. sendmail -d0 </dev/null
复制代码
will give you some debug info..
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表