今天我想制作一个邮件服务器,但是没有成功。 你可以帮我吗 ? 我遵循这个教程: https : //www.linode.com/docs/email/email-with-postfix–dovecot-and-mysql
获得的错误:
Sep 19 19:40:15 ungarscool1-1 dovecot: lmtp (2273, [email protected]): Error: user [email protected]: Initialization failed: namespace configuration error: inbox = yes Sep 19 19:40:15 ungarscool1-1 dovecot: lmtp (2273): Disconnect from local: Successful quit [Private / dovecot-lmtp], delay = 0.08, delays = alpha.domain.tdl [private / dovecot-lmtp], delay = 0.08, (Private / dovecot-lmtp) said: 451 4.3.0 <[email protected]> Temporary internal error (in reply to end of DATA command))
当然,我把我的域名更改为domain.tdl。
我的鸽舍configuration:
! include_try /usr/share/dovecot/protocols.d/*.protocol protocols = imap pop3 lmtp dict { #quota = mysql: /etc/dovecot/dovecot-dict-sql.conf.ext #expire = sqlite: /etc/dovecot/dovecot-dict-sql.conf.ext } ! include conf.d / *. conf ! include_try local.conf [email protected]
后缀configuration:
smtpd_banner = $myhostname ESMTP $mail_name (UngarscoolOS) biff = no append_dot_mydomain = no readme_directory = no # TLS parameters smtpd_tls_cert_file=/etc/dovecot/dovecot.pem smtpd_tls_key_file=/etc/dovecot/private/dovecot.pem smtpd_use_tls=yes smtpd_tls_auth_only = yes #Enabling SMTP for authenticated users, and handing off authentication to Dovecot smtpd_sasl_type = dovecot smtpd_sasl_path = private/auth smtpd_sasl_auth_enable = yes smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination myhostname = alpha.domain.tdl alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = /etc/mailname #mydestination = domain.tdl, alpha.domain.tdl, localhost.domain.tdl, localhost mydestination = localhost relayhost = mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all virtual_transport = lmtp:unix:private/dovecot-lmtp #Virtual domains, users, and aliases virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf, mysql:/etc/postfix/mysql-virtual-email2email.cf
在doveconf -n
root@ungarscool1-1:~# doveconf -n # 2.2.13: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-042stab123.1 x86_64 Debian 8.9 simfs auth_mechanisms = plain login mail_location = maildir:/var/mail/vhosts/%d/%n mail_privileged_group = mail namespace inbox { 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 { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } postmaster_address = [email protected] protocols = imap pop3 lmtp service auth-worker { user = vmail } service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0666 user = postfix } unix_listener auth-userdb { mode = 0600 user = vmail } user = dovecot } service imap-login { inet_listener imap { port = 0 } } service lmtp { unix_listener /var/spool/postfix/private/dovecot-lmtp { group = postfix mode = 0600 user = postfix } } service pop3-login { inet_listener pop3 { port = 0 } } ssl = required ssl_cert = </etc/ssl/certs/dovecot.pem ssl_key = </etc/ssl/private/dovecot.pem userdb { args = uid=vmail gid=vmail home=/var/mail/vhosts/%d/%n driver = static }
谢谢你的帮助