ExtMail服务器社区's Archiver

l234112 发表于 2010-2-15 22:27

新手,昨天按照教程安装了postfix,测试发送邮件时卡住了..

用EXTMAIL发邮件..显示正在发送..然后就一动不动了..

用TELNET 测试如下.

telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 mail.vetglen.com ESMTP Postfix - by vetglen.com
ehlo mail.vetglen.com
250-mail.vetglen.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
mail from:root@vetglen.com

到这里就啥都不动了...

TELNET  localhost 110
正常




我的/etc/postfix/main.cf

alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
html_directory = /usr/share/doc/postfix-2.5.4-documentation/html
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.5.4-documentation/readme
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
unknown_local_recipient_reject_code = 550

# hostname
#mynetworks = 127.0.0.1
mynetworks = 192.168.1.0/24, 127.0.0.0/8
myhostname=mail.vetglen.com
myorigin=vetglen.com
mydomain=vetglen.com
mydestination = $myhostname, localhos.$mydomain,localhost,$mydomain
inet_interfaces=all


#myhostname = vetglen.com
#mydestination = $mynetworks $myhostname
maildrop_destination_recipient_limit = 1
# banner
mail_name = Postfix - by vetglen.com
smtpd_banner = $myhostname ESMTP $mail_name

# response immediately
smtpd_error_sleep_time = 0s
unknown_local_recipient_reject_code = 450

# extmail config here
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_transport = maildrop:
# smtpd related config
smtpd_recipient_restrictions =
    permit_mynetworks,
        permit_sasl_authenticated,
        reject_non_fqdn_hostname,
        reject_non_fqdn_sender,
        reject_non_fqdn_recipient,
        reject_unauth_destination,
        reject_unauth_pipelining,
        reject_invalid_hostname,
# SMTP AUTH config here
broken_sasl_auth_clients = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous




====




另外..我的EXMAIL后台管理的图形日志出下边的错:

Can't locate loadable object for module RRDs in @INC (@INC contains: /var/www/extsuite/extman/libs /var/www/extsuite/extman/libs /var/www/extsuite/extman/libs /var/www/extsuite/extmail/libs /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /var/www/extsuite/extman/libs/Ext/GraphLog.pm line 23 Compilation failed in require at /var/www/extsuite/extman/libs/Ext/GraphLog.pm line 23. BEGIN failed--compilation aborted at /var/www/extsuite/extman/libs/Ext/GraphLog.pm line 23. Compilation failed in require at /var/www/extsuite/extman/libs/Ext/MgrApp/ViewLog.pm line 22. BEGIN failed--compilation aborted at /var/www/extsuite/extman/libs/Ext/MgrApp/ViewLog.pm line 22. Compilation failed in require at (eval 352) line 18.

机器环境是CENTOS 5.4 64位   NGINX 8.27+MYSQL 5.1.43+PHP 5.3.0+FASTCGI

因为还要配WEB SERVER 所以用户和组都用了 www:www

我还没移到公网中..只是在内网配置...IP是:192.168.1.102 网关是 192.168.1.1(可以上网)
在/etc/hosts中..把mail.vetglen.com  vetglen.com 指向127.0.0.1


因为是新手啥都不懂..各位多给些建议

liushaobo 发表于 2010-2-17 14:57

贴mail日志
另外一个好像是rrd的问题

l234112 发表于 2010-2-20 14:49

Feb 20 14:43:40 localhost postfix/cleanup[4245]: warning: C51AC6AB8611: virtual_alias_maps map lookup problem for [email]root@vetglen.com[/email]
Feb 20 14:43:40 localhost postfix/pickup[4220]: warning: C54826AB8611: message has been queued for 5 days
Feb 20 14:43:40 localhost postfix/pickup[4220]: C54826AB8611: uid=501 from=<www>
Feb 20 14:43:40 localhost postfix/cleanup[4235]: C54826AB8611: message-id=<[email]20100220064340.C54826AB8611@mail.vetglen.com[/email]>
Feb 20 14:43:40 localhost postfix/cleanup[4235]: warning: C54826AB8611: virtual_alias_maps map lookup problem for [email]307292967@qq.com[/email]
Feb 20 14:43:40 localhost postfix/pickup[4220]: warning: C57FC6AB8611: message has been queued for 8 days
Feb 20 14:43:40 localhost postfix/pickup[4220]: C57FC6AB8611: uid=0 from=<root>
Feb 20 14:43:40 localhost postfix/cleanup[4245]: C57FC6AB8611: message-id=<[email]20100220064340.C57FC6AB8611@mail.vetglen.com[/email]>
Feb 20 14:43:40 localhost postfix/cleanup[4245]: warning: C57FC6AB8611: virtual_alias_maps map lookup problem for [email]root@vetglen.com[/email]
Feb 20 14:43:40 localhost postfix/pickup[4220]: warning: C5C626AB8611: message has been queued for 5 days
Feb 20 14:43:40 localhost postfix/pickup[4220]: C5C626AB8611: uid=501 from=<www>
Feb 20 14:43:40 localhost postfix/cleanup[4235]: C5C626AB8611: message-id=<[email]20100220064340.C5C626AB8611@mail.vetglen.com[/email]>
Feb 20 14:43:40 localhost postfix/cleanup[4235]: warning: C5C626AB8611: virtual_alias_maps map lookup problem for [email]307292967@qq.com[/email]

l234112 发表于 2010-2-20 22:43

Feb 20 22:39:52 localhost postfix/master[7636]: warning: /usr/libexec/postfix/trivial-rewrite: bad command startup -- throttling
Feb 20 22:39:52 localhost postfix/smtpd[7683]: warning: problem talking to service rewrite: Success
Feb 20 22:39:52 localhost postfix/master[7636]: warning: process /usr/libexec/postfix/trivial-rewrite pid 7745 exit status 1
Feb 20 22:39:52 localhost postfix/smtpd[7655]: warning: problem talking to service rewrite: Success
Feb 20 22:39:52 localhost postfix/master[7636]: warning: process /usr/libexec/postfix/trivial-rewrite pid 7746 exit status 1
Feb 20 22:39:52 localhost postfix/smtpd[7698]: warning: problem talking to service rewrite: Success
Feb 20 22:39:52 localhost postfix/master[7636]: warning: process /usr/libexec/postfix/trivial-rewrite pid 7747 exit status 1
Feb 20 22:39:52 localhost postfix/smtpd[7699]: warning: problem talking to service rewrite: Success
Feb 20 22:39:52 localhost postfix/master[7636]: warning: process /usr/libexec/postfix/trivial-rewrite pid 7748 exit status 1
Feb 20 22:39:52 localhost postfix/smtpd[7644]: warning: problem talking to service rewrite: Success
Feb 20 22:39:52 localhost postfix/master[7636]: warning: process /usr/libexec/postfix/trivial-rewrite pid 7749 exit status 1
Feb 20 22:39:52 localhost postfix/smtpd[7716]: warning: problem talking to service rewrite: Success
Feb 20 22:39:52 localhost postfix/master[7636]: warning: process /usr/libexec/postfix/trivial-rewrite pid 7750 exit status 1
Feb 20 22:39:52 localhost postfix/smtpd[7729]: warning: problem talking to service rewrite: Success
Feb 20 22:39:52 localhost postfix/master[7636]: warning: process /usr/libexec/postfix/trivial-rewrite pid 7751 exit status 1
Feb 20 22:39:52 localhost postfix/smtpd[7676]: warning: problem talking to service rewrite: Success
Feb 20 22:39:52 localhost postfix/master[7636]: warning: process /usr/libexec/postfix/trivial-rewrite pid 7752 exit status 1
Feb 20 22:39:53 localhost postfix/trivial-rewrite[7753]: warning: connect to mysql server localhost: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Feb 20 22:39:53 localhost postfix/trivial-rewrite[7753]: fatal: mysql:/etc/postfix/mysql_virtual_alias_maps.cf(0,lock|fold_fix): table lookup problem
Feb 20 22:39:54 localhost postfix/smtpd[7662]: warning: problem talking to service rewrite: Success
Feb 20 22:39:54 localhost postfix/master[7636]: warning: process /usr/libexec/postfix/trivial-rewrite pid 7753 exit status 1


最新的日志

页: [1]

Powered by Discuz! Archiver 7.0.0  © 2001-2009 Comsenz Inc.