maildir delivery failed - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Support Area (/forum-30.html) +--- Forum: System Setup & Installation (/forum-32.html) +--- Thread: maildir delivery failed (/thread-3712.html) |
maildir delivery failed - Cercetasu - 07-09-2008 02:50 AM Hello I just installed ispcp Omega RC5 on a fedora 7 box. I have some problems. First major problem is about mail. Iscp config files for postfix didn't work so i had to change them with some basic ones. That fixed outgoing mails but all incoming mail is still not delivered. i get the error: maildir delivery failed: create file /var/mail/virtual/zaunimpex.ro/office/tmp/.... : Permission denied i've even tried setting chmod 777 to folders. this is my main.cf command_directory = /usr/sbin daemon_directory = /usr/libexec/postfix program_directory = /etc/postfix # Some common configuration parameters inet_interfaces = all mynetworks_style = host myhostname = ns1.dialsoft.ro mydomain = ns1.dialsoft.ro.local myorigin = $myhostname smtpd_banner = $myhostname ESMTP ispCP 1.0.0 RC5 OMEGA Managed setgid_group = postdrop # Receiving messages parameters mydestination = $myhostname, $mydomain append_dot_mydomain = no append_at_myorigin = yes local_transport = local virtual_transport = virtual transport_maps = hash:/etc/postfix/ispcp/transport alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases # Delivering local messages parameters mail_spool_directory = /var/mail # Mailboxquota # => 0 for unlimited # => 104857600 for 100 MB mailbox_size_limit = 0 mailbox_command = procmail -a "$EXTENSION" biff = no recipient_delimiter = + local_destination_recipient_limit = 1 local_recipient_maps = unix:passwd.byname $alias_database # ispCP Autoresponder parameters ispcp-arpl_destination_recipient_limit = 1 # Delivering virtual messages parameters virtual_mailbox_base = /var/spool/mail/virtual virtual_mailbox_limit = 0 virtual_mailbox_domains = hash:/etc/postfix/ispcp/domains virtual_mailbox_maps = hash:/etc/postfix/ispcp/mailboxes virtual_alias_maps = hash:/etc/postfix/ispcp/aliases virtual_minimum_uid = 502 virtual_uid_maps = static:502 virtual_gid_maps = static:12 # SASL paramters smtpd_sasl_auth_enable = yes #smtpd_sasl2_auth_enable = yes smtpd_sasl_security_options = noanonymous smtpd_sasl_local_domain = dialsoft.ro broken_sasl_auth_clients = yes smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, permit this is master.cf smtp inet n - n - - smtpd #submission inet n - n - - smtpd # -o smtpd_enforce_tls=yes # -o smtpd_sasl_auth_enable=yes # -o smtpd_client_restrictions=permit_sasl_authenticated,reject #smtps inet n - n - - smtpd # -o smtpd_tls_wrappermode=yes # -o smtpd_sasl_auth_enable=yes # -o smtpd_client_restrictions=permit_sasl_authenticated,reject #628 inet n - n - - qmqpd pickup fifo n - n 60 1 pickup cleanup unix n - n - 0 cleanup qmgr fifo n - n 300 1 qmgr #qmgr fifo n - n 300 1 oqmgr tlsmgr unix - - n 1000? 1 tlsmgr rewrite unix - - n - - trivial-rewrite bounce unix - - n - 0 bounce defer unix - - n - 0 bounce trace unix - - n - 0 bounce verify unix - - n - 1 verify flush unix n - n 1000? 0 flush proxymap unix - - n - - proxymap smtp unix - - n - - smtp # When relaying mail as backup MX, disable fallback_relay to avoid MX loops relay unix - - n - - smtp -o fallback_relay= # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5 showq unix n - n - - showq error unix - - n - - error retry unix - - n - - error discard unix - - n - - discard local unix - n n - - local virtual unix - n n - - virtual lmtp unix - - n - - lmtp anvil unix - - n - 1 anvil scache unix - - n - 1 scache please help! Thanks RE: maildir delivery failed - kilburn - 07-09-2008 07:37 PM Try changing virtual_mailbox_base = /var/spool/mail/virtual to virtual_mailbox_base = /var/mail/virtual RE: maildir delivery failed - Cercetasu - 07-09-2008 09:02 PM that doesn't work. /var/mail is just a link to /var/spool/mail. RE: maildir delivery failed - _lunix_ - 09-11-2008 02:43 PM I am getting the same problem on CentOS 5.2 It is a procmail problem. If I change postfix to use its own local delivery agent instead of procmail then the mail is delivered fine. I will now try to work this out. Any one already solved this issue ? RE: maildir delivery failed - _lunix_ - 09-11-2008 03:37 PM _lunix_ Wrote:I am getting the same problem on CentOS 5.2 Just one thing first. I am using local delivery for local mail. ie: mail for an actual system user and not a virtual domain. When the first ever email arrives for a local (/etc/passwd) user it tries to deliver it to Code: /var/mail/$user When I change postfix to use its own delivery agent instead of procmail it works fine as postfix is delivering to Code: /var/spool/mail/$user How can I get procmail to use Code: /var/spool/mail/$user ?? Code: # .procmailrc cat /var/log/procmail.log Code: From test@xxxxx.xxx Thu Sep 11 15:04:28 2008 Is procmail actually a dependency of ispCP or can I just use postfix local delivery agent ? Mick RE: maildir delivery failed - gagi2 - 09-11-2008 11:06 PM plz check if your users and groups for the mail service are set right Code: virtual_uid_maps = static:502 RE: maildir delivery failed - joximu - 09-12-2008 04:36 PM Cercetasu Wrote:maildir delivery failed: create file /var/mail/virtual/zaunimpex.ro/office/tmp/.... : Permission denied what is the ownership and permissions of all theese folders? /var /var/mail /var/mail/virtual /var/mail/virtual/zaunimpex.ro /var/mail/virtual/zaunimpex.ro/office /var/mail/virtual/zaunimpex.ro/office/tmp ? I got: Code: # ls -lad /var and user vmail has the same uid as the virtual_minimum_uid = 1001 and virtual_uid_maps = static:1001 and group mail has the gid of virtual_gid_maps = static:8 in main.cf... /J |