FreeBSD 板


LINE

> > 还是我要另外去设定? > > 目前我试过本机使用者的帐密不行,想请问一下 > > 这边的帐密是在哪边设定的? > 如果你走 pop3 的话,建议 > 1. 把 pop3 不走加密打开,用 telnet 去看讯息 > 2. 看 maillog 有没有写什麽东西 > 多看点错误讯息跟 log... 对於解决问题是很有帮助的 我先po一下我的过程 我安装了postfix+TLS+SASL2 postfix: 在/etc/rc.conf下加入 sendmail_enable="NONE" postfix_enable="YES" saslauthd_enable="YES" 在/etc/defaults/periodic.conf下加入 daily_clean_hoststat_enable="NO" daily_status_mail_rejects_enable="NO" daily_status_include_submit_mailq="NO" daily_submit_queuerun="NO" 在/usr/local/etc/postfix/main.cf下加入 myhostname = harry2.dorm9.nctu.edu.tw mydomain = dorm9.nctu.edu.tw myorigin = $myhostname mydestination = /usr/local/etc/postfix/mydestination mynetworks_style = subnet mynetworks = /usr/local/etc/postfix/mynetworks alias_maps = hash:/etc/aliases allow_mail_to_commands = alias,forward allow_mail_to_files = alias,forward tls: 制作CA凭证後,在/usr/local/etc/postfix/main.cf下加入 ##TLS smtp_use_tls = yes smtpd_use_tls = yes smtp_tls_note_starttls_offer = yes smtpd_tls_key_file = /etc/ssl/server.pem smtpd_tls_cert_file = /etc/ssl/server.pem smtpd_tls_CAfile = /etc/ssl/server.pem smtpd_tls_loglevel = 1 smtpd_tls_received_header = yes smtpd_tls_session_cache_timeout = 3600s sasl: 先灌sasl, cd /usr/ports/security/cyrus-sasl-saslauthd make install clean 在/etc/rc.conf下加入 saslauthd_enable="YES" 在/usr/local/etc/postfix/main.cf下加入 smtpd_sasl_auth_enable = yes broken_sasl_auth_clients = yes #smtpd_sasl_local_domain = $myhostname smtpd_sender_restrictions = permit_sasl_authenticated, permit_mynetworks smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks imap-uw: cd /usr/ports/mail/imap-uw make install clean edit /etc/inetd.conf pop3s stream tcp nowait root /usr/local/libexec/ipop3d ipop3d imaps stream tcp nowait root /usr/local/libexec/imapd imapd 最後启动: /usr/local/etc/rc.d/saslauthd start /usr/local/etc/rc.d/postfix start /etc/rc.d/inetd reload 我是用windows的outlook作测试 将内送邮件POP3和SMTP都设成自己的freebsd的hostname 外寄伺服器有勾验证及需要SSL连线的选项 然後我从[email protected]寄到[email protected] 当我要寄信的时候跳出这个画面 http://www.cs.nctu.edu.tw/~wfhsu/outlook.JPG
输入本机的使用者和密码後一直无法通过验证,网域我不知要填啥 接下来我去看maillog,出现以下讯息 Jun 13 03:14:35 harry2 postfix/master[30173]: daemon started -- version 2.4.6, configuration /usr/local/etc/postfix Jun 13 03:15:40 harry2 postfix/smtpd[30188]: connect from jack.Dorm9.NCTU.edu.tw[140.113.95.40] Jun 13 03:15:40 harry2 postfix/smtpd[30188]: setting up TLS connection from jack.Dorm9.NCTU.edu.tw[140.113.95.40] Jun 13 03:15:40 harry2 postfix/smtpd[30188]: TLS connection established from jack.Dorm9.NCTU.edu.tw[140.113.95.40]: TLSv1 with cipher RC4-MD5 (128/128 bits) Jun 13 03:15:40 harry2 postfix/smtpd[30188]: warning: SASL authentication failure: Could not open db Jun 13 03:15:40 harry2 postfix/smtpd[30188]: warning: SASL authentication failure: no secret in database Jun 13 03:15:40 harry2 postfix/smtpd[30188]: warning: jack.Dorm9.NCTU.edu.tw[140.113.95.40]: SASL NTLM authentication failed: authentication failure 我之前也有用 telnet localhost 25 ehlo localhost 出现以下讯息 ehlo localhost 250-harry2.dorm9.nctu.edu.tw 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN 250-STARTTLS 250-AUTH PLAIN NTLM LOGIN GSSAPI DIGEST-MD5 CRAM-MD5 250-AUTH=PLAIN NTLM LOGIN GSSAPI DIGEST-MD5 CRAM-MD5 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN 想请问有没有人有遇过这种问题,感谢大家。 --



※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.113.95.40 ※ 编辑: fxsh70133 来自: 140.113.95.40 (06/13 09:26)







like.gif 您可能会有兴趣的文章
icon.png[问题/行为] 猫晚上进房间会不会有憋尿问题
icon.pngRe: [闲聊] 选了错误的女孩成为魔法少女 XDDDDDDDDDD
icon.png[正妹] 瑞典 一张
icon.png[心得] EMS高领长版毛衣.墨小楼MC1002
icon.png[分享] 丹龙隔热纸GE55+33+22
icon.png[问题] 清洗洗衣机
icon.png[寻物] 窗台下的空间
icon.png[闲聊] 双极の女神1 木魔爵
icon.png[售车] 新竹 1997 march 1297cc 白色 四门
icon.png[讨论] 能从照片感受到摄影者心情吗
icon.png[狂贺] 贺贺贺贺 贺!岛村卯月!总选举NO.1
icon.png[难过] 羡慕白皮肤的女生
icon.png阅读文章
icon.png[黑特]
icon.png[问题] SBK S1安装於安全帽位置
icon.png[分享] 旧woo100绝版开箱!!
icon.pngRe: [无言] 关於小包卫生纸
icon.png[开箱] E5-2683V3 RX480Strix 快睿C1 简单测试
icon.png[心得] 苍の海贼龙 地狱 执行者16PT
icon.png[售车] 1999年Virage iO 1.8EXi
icon.png[心得] 挑战33 LV10 狮子座pt solo
icon.png[闲聊] 手把手教你不被桶之新手主购教学
icon.png[分享] Civic Type R 量产版官方照无预警流出
icon.png[售车] Golf 4 2.0 银色 自排
icon.png[出售] Graco提篮汽座(有底座)2000元诚可议
icon.png[问题] 请问补牙材质掉了还能再补吗?(台中半年内
icon.png[问题] 44th 单曲 生写竟然都给重复的啊啊!
icon.png[心得] 华南红卡/icash 核卡
icon.png[问题] 拔牙矫正这样正常吗
icon.png[赠送] 老莫高业 初业 102年版
icon.png[情报] 三大行动支付 本季掀战火
icon.png[宝宝] 博客来Amos水蜡笔5/1特价五折
icon.pngRe: [心得] 新鲜人一些面试分享
icon.png[心得] 苍の海贼龙 地狱 麒麟25PT
icon.pngRe: [闲聊] (君の名は。雷慎入) 君名二创漫画翻译
icon.pngRe: [闲聊] OGN中场影片:失踪人口局 (英文字幕)
icon.png[问题] 台湾大哥大4G讯号差
icon.png[出售] [全国]全新千寻侘草LED灯, 水草

请输入看板名称,例如:Boy-Girl站内搜寻

TOP