This week I upgraded postfix from a RHEL 3 box to a new install with
CentOS 6.2 and Postfix 2.6.6 and Dovecot 2.0.9
Most things are working (logging in, sending mail, etc).
But I'm having some issues receiving mail. But not all accounts are
having this trouble.
My setup is that I have /home mounted NFS4 to my postfix server's /home.
And I have /var/spool/mail mounted NFS4 to /var/spool/mail.
/var/spool/postfix would be a local mount.
What seems odd is that I've been getting some files like
1370016781.P17278.hostname
under /home/user/mail/tmp and /home/user/mail/new
I don't think these directories were there previously.
And in some instances mail is bounced back when sending to a user:
[email protected]
#< #5.2.0 X-Postfix; maildir delivery failed: create maildir
file /home/guenther/mail/tmp/1369982045.P9259.hostname:
Permission denied> #SMTP#
I tried temporarily setting permission to 777 under mail/tmp but that
didn't help so I set it back to 755
I suspect I'm just missing something when converting from the earlier
postfix to the newer postfix (and dovecot). Why am I getting these tmp
and new files under /home/user/mail?
Its probably not related, but I noticed with my NFS4 mount that I can't
use dot locking. I had to use fcntl instead.
Here is what I've configured:
# postconf -n
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 1
default_destination_concurrency_limit = 10
header_checks = regexp:/etc/postfix/header_checks
home_mailbox = mail/
html_directory = no
inet_interfaces = all
local_destination_concurrency_limit = 2
local_recipient_maps =
mail_owner = postfix
mail_spool_directory = /var/spool/mail
mailbox_delivery_lock = fcntl
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
message_size_limit = 10480000
mydestination = $myhostname, localhost.$mydomain, $mydomain, localhost
mydomain = palousecom.com
myhostname = mail.palousecom.com
mynetworks = 216.98.238.0/24, 127.0.0.0/8, 10.2.8.0/24, 64.183.143.0/24
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
recipient_delimiter = +
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_recipient_restrictions = permit_mynetworks,
permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/postfix/ssl/mail.palousecom.com.crt
smtpd_tls_key_file = /etc/postfix/ssl/mail.palousecom.com.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550
virtual_alias_domains = ...list of domains....
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_mailbox_lock = fcntl
# dovecot -n
# 2.0.9: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-220.el6.i686 i686 CentOS release 6.2 (Final)
auth_debug = yes
auth_debug_passwords = yes
auth_verbose = yes
disable_plaintext_auth = no
mail_debug = yes
mail_location = mbox:~/mail:INBOX=/var/spool/mail/%u
mbox_write_locks = fcntl
passdb {
driver = pam
}
service auth {
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
}
}
ssl_cert = </etc/postfix/ssl/mail.palousecom.com.crt
ssl_key = </etc/postfix/ssl/mail.palousecom.com.key
userdb {
driver = passwd
}
--
Dean Guenther Internet: [email protected]
Washington State University Phone: 509 335-0433
Pullman, WA. 99164-1222 fax: 509 335-0540
Identity and Access Management & UNIX System Admin