2015-06-20 56 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