さくらのクラウドにてメールサーバーを構築しております。
「Postfix」と「Dovecot」を利用しての構築をしており、下記のサイトを参考にしています。
http://www.unix-power.net/linux/centos_postfix.html
メールソフト(Becky)にて作成したユーザーの設定をおこない、メールのテストをおこなっているのですが下記エラーにて躓いております。
[smtp]
- clj10965 postfix/local[11750]: warning: maildir access problem for UID/GID=500/501: create maildir file /var/www/Maildir/tmp/: Permission denied
- clj10965 postfix/local[11750]: warning: perhaps you need to create the maildirs in advance
[pop3]
Error: stat(/var/www/Maildir/tmp) failed: Permission denied (euid=500(user) egid=501(usergroup) missing +x perm: /var/www/Maildir, euid is not dir owner)
- clj10965 dovecot: pop3(user): Error: Couldn't open INBOX: Internal error occurred. Refer to server log for more information.
と両方ともPermission関連でエラーがでており、そもそも「/var/www/Maildir/」に設定したつもりはないのですがこちらはデフォルトでこのパスになるのでしょうか?
それとも変更が可能なのでしょうか?
また、/home/user/Maildirとは別なのでしょうか?
初めての構築のため、いたらないところもありますがご教示お願いします。
【追記】
該当ユーザーのホームディレクトリーを /var/www/ に変更したのではないですか?
の変更により受信はできるようになりました。
有難う御座います。
送信の方がうまくいかず困っております。
ログをみたところ
- clj10965 postfix/postfix-script[12988]: stopping the Postfix mail system
- clj10965 postfix/master[12965]: terminating on signal 15
- clj10965 postfix/postfix-script[13060]: starting the Postfix mail system
- clj10965 postfix/master[13061]: daemon started -- version 2.6.6, configuration /etc/postfix
とでており、解決方法がわからず大変困っております。。
postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = no
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
home_mailbox = $HOME/Maildir/
html_directory = no
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mail_spool_directory = /var/spool/mail
mailbox_size_limit = 102400000
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
message_size_limit = 102400000
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = example.com
myhostname = mail.example.com
mynetworks = 127.0.0.0/8, クラウドのIP
mynetworks_style = host
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
relayhost = [mail.example.com]
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_sasl_mechanism_filter = plain
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtpd_banner = $myhostname ESMTP unknown
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
unknown_local_recipient_reject_code = 550
となります。
また、mynetworksにはクラウドの「ネットワーク」を掲載しています。
ここに自信がないのですが、あっておりますでしょうか?