caidanfeng 发表于 2009-5-27 11:27:16

postfix 无法发送到外面 webmail却可以

本地可以投递 但不能投递到外面
用webmail却可以投到外面 本域也可以投递

main.cf:
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
myhostname = redhat.wincs.vicp.net
mydomain = wincs.vicp.net
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname localhost.$mydomain localhost $mydomain
unknown_local_recipient_reject_code = 550
mynetworks = 127.0.0.0/8
############################CYRUS-SASL########################
broken_sasl_auth_clients = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $mydomain
smtpd_sasl_security_options = noanonymous
smtpd_sasl_application_name = smtpd
smtpd_banner = Welcome to our $myhostname ESMTP,Warning: Version not Available!
alias_maps = hash:/etc/aliases
unknown_local_recipient_reject_code = 450
#############################SASL-END##############################

#############################Virtual Mailbox Settings################
virtual_mailbox_base=/var/mailbox
virtual_mailbox_maps=mysql:/etc/postfix/mysql/mysql_virtual_mailbox_maps.cf
virtual_mailbox_domains=mysql:/etc/postfix/mysql/mysql_virtual_domains_maps.cf
virtual_alias_domains=mysql:/etc/postfix/mysql/mysql_virtual_domains_maps.cf
virtual_alias_maps=mysql:/etc/postfix/mysql/mysql_virtual_alias_maps.cf
virtual_uid_maps=static:1001
virtual_gid_maps=static:1001
virtual_transport=maildrop
maildrop_destination_recipient_limit=1
maildrop_destination_concurrency_limit=1
alias_maps = hash:/etc/aliases
#################################Mailbox END###########################

#################################Quota Settings########################
message_size_limit=10485760
virtual_mailbox_limit=20791520
virtual_create_maildirsize=yes
virtual_mailbox_extended=yes
virtual_mailbox_limit_maps=mysql:/etc/postfix/mysql/virtual_mailbox_limit_override=yes
virtual_maildir_limit_message=User's maildir has overdrawn his diskspace quota,try again later.
virtual_overquota_bounce=yes
################################Quota END############################

################################Amavis Start##########################
content_filter=amavisfeed::10024
max_use=10
################################Amavis END###########################
debug_peer_level = 2
debugger_command =
         PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
         xxgdb $daemon_directory/$process_name $process_id & sleep 5

sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = postdrop
html_directory = /var/www/postfix_html
manpage_directory = /usr/local/postfix/man
sample_directory = /etc/postfix


无法投递到外面时候的maillog:

May 27 11:09:01 redhat pop3d: Connection, ip=[::ffff:222.72.22.152]
May 27 11:09:02 redhat authdaemond: received auth request, service=pop3, authtype=login
May 27 11:09:02 redhat authdaemond: authmysql: trying this module
May 27 11:09:02 redhat authdaemond: SQL query: SELECT username, password, "", '1001', '1001', concat('/var/mailbox/',maildir), concat('/var/mailbox/',maildir), "", name, "" FROM mailbox WHERE username = "caidanfeng@wincs.vicp.net"
May 27 11:09:02 redhat authdaemond: password matches successfully
May 27 11:09:02 redhat authdaemond: authmysql: sysusername=<null>, sysuserid=1001, sysgroupid=1001, homedir=/var/mailbox/wincs.vicp.net/caidanfeng/Maildir/, address=caidanfeng@wincs.vicp.net, fullname=caidf, maildir=/var/mailbox/wincs.vicp.net/caidanfeng/Maildir/, quota=<null>, options=<null>
May 27 11:09:02 redhat authdaemond: authmysql: clearpasswd=<null>, passwd=$1$asLHmymQ$KcUtLnKWHu2zBLcr8nRx.0
May 27 11:09:02 redhat authdaemond: Authenticated: sysusername=<null>, sysuserid=1001, sysgroupid=1001, homedir=/var/mailbox/wincs.vicp.net/caidanfeng/Maildir/, address=caidanfeng@wincs.vicp.net, fullname=caidf, maildir=/var/mailbox/wincs.vicp.net/caidanfeng/Maildir/, quota=<null>, options=<null>
May 27 11:09:02 redhat authdaemond: Authenticated: clearpasswd=88888888, passwd=$1$asLHmymQ$KcUtLnKWHu2zBLcr8nRx.0
May 27 11:09:02 redhat pop3d: LOGIN, user=caidanfeng@wincs.vicp.net, ip=[::ffff:222.72.22.152], port=
May 27 11:09:03 redhat pop3d: LOGOUT, user=caidanfeng@wincs.vicp.net, ip=[::ffff:222.72.22.152], port=, top=0, retr=0, rcvd=12, sent=39, time=1
May 27 11:09:39 redhat postfix/smtpd: connect from unknown
May 27 11:09:40 redhat authdaemond: received auth request, service=smtp, authtype=login
May 27 11:09:40 redhat authdaemond: authmysql: trying this module
May 27 11:09:40 redhat authdaemond: SQL query: SELECT username, password, "", '1001', '1001', concat('/var/mailbox/',maildir), concat('/var/mailbox/',maildir), "", name, "" FROM mailbox WHERE username = "caidanfeng@wincs.vicp.net"
May 27 11:09:40 redhat authdaemond: password matches successfully
May 27 11:09:40 redhat authdaemond: authmysql: sysusername=<null>, sysuserid=1001, sysgroupid=1001, homedir=/var/mailbox/wincs.vicp.net/caidanfeng/Maildir/, address=caidanfeng@wincs.vicp.net, fullname=caidf, maildir=/var/mailbox/wincs.vicp.net/caidanfeng/Maildir/, quota=<null>, options=<null>
May 27 11:09:40 redhat authdaemond: authmysql: clearpasswd=<null>, passwd=$1$asLHmymQ$KcUtLnKWHu2zBLcr8nRx.0
May 27 11:09:40 redhat authdaemond: Authenticated: sysusername=<null>, sysuserid=1001, sysgroupid=1001, homedir=/var/mailbox/wincs.vicp.net/caidanfeng/Maildir/, address=caidanfeng@wincs.vicp.net, fullname=caidf, maildir=/var/mailbox/wincs.vicp.net/caidanfeng/Maildir/, quota=<null>, options=<null>
May 27 11:09:40 redhat authdaemond: Authenticated: clearpasswd=88888888, passwd=$1$asLHmymQ$KcUtLnKWHu2zBLcr8nRx.0
May 27 11:09:40 redhat postfix/trivial-rewrite: warning: do not list domain wincs.vicp.net in BOTH mydestination and virtual_alias_domains
May 27 11:09:40 redhat postfix/trivial-rewrite: warning: do not list domain wincs.vicp.net in BOTH mydestination and virtual_mailbox_domains
May 27 11:09:41 redhat postfix/smtpd: NOQUEUE: reject: RCPT from unknown: 554 5.7.1 <cai_danfeng@sohu.com>: Relay access denied; from=<caidanfeng@wincs.vicp.net> to=<cai_danfeng@sohu.com> proto=ESMTP helo=<cdf>
May 27 11:09:41 redhat postfix/smtpd: disconnect from unknown
页: [1]
查看完整版本: postfix 无法发送到外面 webmail却可以