2015-06-20 73 views
0

我已经安装了Sqirrelmail,Postfix和Dovecot。 Sqirrelmail不会传递任何错误。没有传入或发送邮件。Sqirrelmail,Postfix和Dovecot

其中“user1”是登录到Sqirrelmail的用户。

任何人都可以看到我的问题?

在无功/日志/ mail.log

6月20日18点四十零分37秒的ip-172-31-25-194的dovecot:IMAP登录: 登录:用户=,方法= PLAIN,翻录= 127.0.0.1,lip = 127.0.0.1,mpid = 13181,安全,会话=

Jun 20 18:40:37 ip-172-31-25-194 dovecot:imap(user1): 断开连接:退出in = 44 out = 831

Jun 20 18:40:37 ip-172-31-25-194 dovecot:imap-login: Login:user =,method = PLAIN,rip = 127.0.0.1,lip = 127.0.0.1,mpid = 13183,安全,会话=

6月20日十八时40分37秒的ip-172-31-25-194 dovecot的:IMAP(用户1):未连接:在= 285出来= 1659

六月已记录了20次十八时40分44秒的ip- 172-31-25-194 postfix/smtpd [13184]:从本地连接[127.0.0.1]

Jun 20 18:40:44 ip-172-31-25-194 postfix/smtpd [13184]:6090B41CF0 :客户端本地主机= [127.0.0.1]

6月20日18点40分44秒的ip-172-31-25-194后缀/清理[13187]:6090B41CF0:消息ID = < [email protected] >

Jun 20 18:40:44 ip-172-31-25-194 postfix/qmgr [29043]:6090B41CF0:from =,size = 699,nrcpt = 1(队列激活)

Jun 20 18:40 :44 ip-172-31-25-194 postfix/smtpd [13184]:从本地主机断开[127.0.0.1]

Jun 20 18:40:44 ip-172-31-25-194 dovecot:imap-登录: 登录名:user =,method = PLAIN,rip = 127.0.0.1,lip = 127.0.0.1,mpid = 13189,secured,session =

Jun 20 18:40:44 ip-172-31-25 -194 dovecot:imap(user1):断开连接:退出= 600 out = 524

Jun 20 18:40: 44 ip-172-31-25-194 dovecot:imap-login: Login:user =,method = PLAIN,rip = 127.0.0.1,lip = 127.0.0.1,mpid = 13191,secured,session =

6月20日18时40分44秒的IP-172-31-25-194达夫科特:IMAP(用户1):断开:在登录= 117个OUT = 1535

+0

你有没有检查如果邮件服务器工作不使用Sqirrelmail ? 'doveconf -n'和'postconf'的输出是什么? – Nianliang

回答

0
Update, I can now send mail to external domains, but not receive from external domains. 
But [email protected] & [email protected] can send and receive emails to each other. 

MX record exists: 
10 @ mail.mydomain.com 1 Hour 
0 @ smtp.mydomain.com 1 Hour 

doveconf -n 

auth_mechanisms = plain login 
mail_location = maildir:~/Maildir 
namespace inbox { 
    inbox = yes 
    location = 
    mailbox Drafts { 
    special_use = \Drafts 
    } 
    mailbox Junk { 
    special_use = \Junk 
    } 
    mailbox Sent { 
    special_use = \Sent 
    } 
    mailbox "Sent Messages" { 
    special_use = \Sent 
    } 
    mailbox Trash { 
    special_use = \Trash 
    } 
    prefix = 
} 
passdb { 
    driver = pam 
} 
protocols = pop3 imap 
service auth { 
    unix_listener /var/spool/postfix/private/auth { 
    group = postfix 
    mode = 0660 
    user = postfix 
    } 
} 
ssl = no 
userdb { 
    driver = passwd 
} 

postconf -n 

alias_database = hash:/etc/aliases 
alias_maps = hash:/etc/aliases 
append_dot_mydomain = no 
biff = no 
config_directory = /etc/postfix 
home_mailbox = Maildir/ 
inet_interfaces = all 
inet_protocols = ipv4 
mailbox_size_limit = 0 
mydestination = mydomain.com, ip-172-31-25-194.us-west-2.compute.internal, localhost.us-west-2.compute.internal, localhost 
myhostname = mydomain.com 
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 
myorigin = /etc/mailname 
queue_directory = /var/spool/postfix 
readme_directory = no 
recipient_delimiter = + 
relayhost = 
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache 
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) 
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination 
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem 
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key 
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache 
smtpd_use_tls = yes