事情是这样的,小弟这几天学着大家POSTFiX因为公司想跟新下公司的MD。结果搞到现在服务还没起来Google、baidu都无果只好求助于各位了。
下面是配置文件,
main.cf
#postconf -n
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
enable_original_recipient = no
html_directory = no
inet_interfaces = all
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/man
message_size_limit = 14336000
mydestination =
mydomain = mail2.com
myhostname = mail.mail2.com
mynetworks = 192.168.4.0/24
myorigin = $mydomain
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
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 = /var/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
dovecot.conf
protocols = pop3
listen = *
disable_plaintext_auth = no
ssl_disable = yes
default_mail_env = maildir:/var/mailbox/%d/%n
first_valid_uid = 12345
protocol pop3 {
pop3_uidl_format = %v.%/u
}
protocol lda {
postmaster_address = postmaster@example.com
}
auth default {
mechanisms = plain login digest-md5 cram-md5
passdb sql {
args = /usr/local/dovecot/etc/dovecot-sql.conf
}
userdb sql {
args = /usr/local/dovecot/etc/dovecot-sql.conf
}
userdb prefetch {
}
user = root
}
dict {
}
plugin {
}
新建了虚拟域mail2.com
用户jose@mail2.com
使用outlook express 发送邮件给自己,在/var/mailbox/jose@mail2.com/new/****.mail-----下有新的邮件出现
/var/log/maillog日志显示如下
Jun 25 04:17:32 mail postfix/postfix-script: starting the Postfix mail system
Jun 25 04:17:32 mail postfix/master[16253]: daemon started -- version 2.3.3, configuration /etc/postfix
Jun 25 04:17:45 mail postfix/smtpd[16256]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Jun 25 04:17:45 mail postfix/smtpd[16256]: connect from unknown[192.168.4.3]
Jun 25 04:17:45 mail postfix/smtpd[16256]: F15021AD223: client=unknown[192.168.4.3]
Jun 25 04:17:46 mail postfix/cleanup[16262]: F15021AD223: message-id=<8FA9BDC5DFD84322ADD4720ABB5A298A@postfixtest>
Jun 25 04:17:46 mail postfix/qmgr[16255]: F15021AD223: from=<jose2@mail2.com>, size=3781, nrcpt=1 (queue active)
Jun 25 04:17:46 mail postfix/smtpd[16256]: disconnect from unknown[192.168.4.3]
Jun 25 04:17:46 mail postfix/virtual[16264]: F15021AD223: to=<jose@mail2.com>, relay=virtual, delay=0.18, delays=0.1/0.05/0/0.03, dsn=2.0.0, status=sent (delivered to maildir)
Jun 25 04:17:46 mail postfix/qmgr[16255]: F15021AD223: removed
看日志内容应该是已经发送成功,但是客户端并没有收到邮件!请大神赐教啊(5ty(
jeffrey_lee 于 2013-07-21 17:47:37发表:
求方法。我也遇到同样的问题
zhwyeah 于 2013-07-01 16:32:58发表:
已?解?。:0w5ty(1
zhwyeah 于 2013-06-27 09:16:17发表:
(5ty(没有人么