- 论坛徽章:
- 0
|
30可用积分
本人是这方面的新手,近日在公司里搭了个邮局
MTA用的是postfix ,pop3用的是dovecot,并安装了cyrus-sasl2
- [root@mail PHPMailer_v5.1]# postconf -m
- btree
- cidr
- environ
- hash
- mysql
- nis
- proxy
- regexp
- static
- unix
复制代码
- [root@mail PHPMailer_v5.1]# postconf -a
- cyrus
- dovecot
复制代码
postfix配置,mail.abc.com为我的DNS域名
- [root@mail PHPMailer_v5.1]# postconf -n
- alias_database = $alias_maps
- alias_maps = hash:/etc/aliases
- broken_sasl_auth_clients = yes
- command_directory = /usr/sbin
- config_directory = /etc/postfix
- daemon_directory = /usr/libexec/postfix
- data_directory = /var/lib/postfix
- debug_peer_level = 2
- html_directory = no
- inet_interfaces = all
- mail_owner = postfix
- mailq_path = /usr/bin/mailq
- manpage_directory = /usr/local/man
- message_size_limit = 14336000
- mydestination = $myhostname, localhost.$mydomain, localhost
- mydomain = abc.com
- myhostname = mail
- mynetworks = 127.0.0.1/8
- mynetworks_style = subnet
- myorigin = $myhostname
- newaliases_path = /usr/bin/newaliases
- queue_directory = /var/spool/postfix
- readme_directory = no
- sample_directory = /etc/postfix
- sendmail_path = /usr/sbin/sendmail
- setgid_group = postdrop
- smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination
- smtpd_sasl_auth_enable = yes
- smtpd_sasl_local_domain = $myhostname
- smtpd_sasl_security_options = noanonymous
- unknown_local_recipient_reject_code = 550
- virtual_alias_maps = mysql:/etc/postfix/mysql/mysql_virtual_alias_maps.cf
- virtual_gid_maps = static:12345
- virtual_mailbox_base = /data/mailbox
- virtual_mailbox_domains = mysql:/etc/postfix/mysql/mysql_virtual_domains_maps.cf
- virtual_mailbox_maps = mysql:/etc/postfix/mysql/mysql_virtual_mailbox_maps.cf
- virtual_transport = virtual
- virtual_uid_maps = static:12345
复制代码
在outlook中测试收发均正常,但是用PHPMailer_v5.1的smtp方式发却会报
- SMTP Error: Could not authenticate.
- Message could not be sent. <p>Mailer Error: SMTP Error: Could not authenticate.
复制代码
查看/var/log/maillog,发现有下列错误提示
- Dec 31 13:56:24 localhost postfix/master[26230]: warning: process /usr/libexec/postfix/smtpd pid 11389 killed by signal 11
- Dec 31 13:56:24 localhost postfix/master[26230]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
复制代码
这个问题我已经搞了两三天了,在网上看了很多教程也不行,请高手帮帮忙
自己已经解决了
换成用用dovecot的sql认证smtp就可以了
不过还是感谢众位的热心回复,因为BZ最先回复,这分就给他了
[ 本帖最后由 00306 于 2010-1-4 14:11 编辑 ] |
最佳答案
查看完整内容
在/etc/hosts中加入你的机器的iptelnet postfix 25号端口没有反映,110正确的密码却提示错误!(页 1) - Mail服务器 - 51CTO技术论坛_中国领先的IT技术社区 (31 December 2009) http://bbs.51cto.com/archiver/tid-454549.html
|