我必须在文件夹中创建一个具有特定邮件目录的新系统用户,例如/var/wwww/user/maildir
我已尝试使用chown
命令将邮件目录分配给用户,但我的邮件被退回给新创建的系统用户。
其中一个用户工作正常,因为他是在 sendmail 上创建的,后来我将其转移到了 postfix。
root@veezphone:~# 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
message_size_limit = 20480000
mydestination = myhostname localhost.$mydomain $mydomain
myhostname = myhostname
mynetworks = 127.0.0.1, x.x.x.x
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
relayhost =
smtp_host_lookup = native
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot
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
virtual_transport = dovecot