Couldn't chdir to "//Maildir" - Postfix, Dovecot, Procmail, Spamassassin

This is a discussion on Couldn't chdir to "//Maildir" - Postfix, Dovecot, Procmail, Spamassassin within the alt.comp.mail.postfix forums, part of the Mail Servers and Related category; Recently, I installed a web/mail/dns server with mail setups; Postfix, Dovecot, and Procmail. The OS is CentOS (RHEL4). ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.postfix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-14-2005
php4u@pacbell.net
 
Posts: n/a
Default Couldn't chdir to "//Maildir" - Postfix, Dovecot, Procmail, Spamassassin

Recently, I installed a web/mail/dns server with mail setups; Postfix,
Dovecot, and Procmail. The OS is CentOS (RHEL4). The mail seems to
working fine, except the following error message I get with Logwatch.
All of the users recieve their email. I have tried to chase down the
error with no avail. I was thinking a pathing issue becasue of
"//procmail_log" and such, but I don't have a trailing slash in the
/etc/procmailrc file, or in the Postfix main.cf file. I have included
some config file info for help.


Any suggestions greatly appreciated!
Ralph
--------------------------

1CE88664C38: to=<root@mail.userdomain.net>,
orig_to=<info@userdomain.net>, relay=local, delay=8, status=bounced
(can't create user output file. Command output: procmail: Couldn't
create "/var/mail/nobody" procmail: Couldn't chdir to "//Maildir"
procmail: Error while writing to "//procmail_log" procmail: [25645] Thu
May 12 21:55:20 2005 procmail: Assigning "ASSASSINLOCK=//assassin.lock"
procmail: Assigning "LOCKFILE=//lockfile.lock" procmail: Locking
"//lockfile.lock" procmail: Error while writing to
"//_tQG+4MDhCB.www.userdomain.net" procmail: Lock failure on
"//lockfile.lock" procmail: Assigning "LOCKFILE" procmail: Executing
"/usr/bin/spamassassin" Cannot write to //.spamassassin/user_prefs: No
such file or directory Failed to create default user preference file
//.spamassassin/user_prefs procmail: [25645] Thu May 12 21:55:26 2005
procmail: Match on "^X-Spam-Status: Yes" procmail: Assigning
"LASTFOLDER=SPAM-Maybe" procmail: Opening "SPAM-Maybe" procmail: Error
while wri

----------------------------

Here is my /etc/procmailrc file;

DROPPRIVS=yes
MAILDIR=$HOME/Maildir
LOGFILE=$HOME/procmail_log
VERBOSE=on
ASSASSINLOCK=$HOME/assassin.lock
LOCKFILE=$HOME/lockfile.lock

:0fw
| /usr/bin/spamassassin
:0
* ^X-Spam-Status: Yes
SPAM-Maybe
-----------------------------

Postconf -n;

[rbrown@www ~]$ sudo /usr/sbin/postconf -n
Password:
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
home_mailbox = Maildir
html_directory = no
inet_interfaces = all
mail_owner = postfix
mailbox_command = /usr/bin/procmail
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
message_size_limit = 2048000
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
mail.$mydomain, www.$mydomain, ftp.$mydomain
mydomain = policing.net
myhostname = mail.policing.net
myorigin = $myhostname
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.1.5/README_FILES
sample_directory = /usr/share/doc/postfix-2.1.5/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
unknown_local_recipient_reject_code = 550
------------------------------
Dovecot.conf mail dir path;

default_mail_env = mbox:~/Maildir/:INBOX=/var/spool/mail/%u

Reply With Quote
  #2 (permalink)  
Old 05-16-2005
Bioperler
 
Posts: n/a
Default Re: Couldn't chdir to "//Maildir" - Postfix, Dovecot, Procmail,Spamassassin


php4u@pacbell.net wrote:
> Recently, I installed a web/mail/dns server with mail setups; Postfix,
> Dovecot, and Procmail. The OS is CentOS (RHEL4). The mail seems to
> working fine, except the following error message I get with Logwatch.
> All of the users recieve their email. I have tried to chase down the
> error with no avail. I was thinking a pathing issue becasue of
> "//procmail_log" and such, but I don't have a trailing slash in the
> /etc/procmailrc file, or in the Postfix main.cf file. I have included
> some config file info for help.

[...]
change MAILDIR=$HOME/Maildir to MAILDIR=$HOME/Maildir/ and
home_mailbox = Maildir to home_mailbox = Maildir/

I think that should solve your problem.
Have a closer look at your main.cf - there is especially mentioned,
that the trailing slash is required!
Reply With Quote
  #3 (permalink)  
Old 05-17-2005
php4u@pacbell.net
 
Posts: n/a
Default Re: Couldn't chdir to "//Maildir" - Postfix, Dovecot, Procmail, Spamassassin


Bioperler wrote:
> php4u@pacbell.net wrote:
> > Recently, I installed a web/mail/dns server with mail setups;

Postfix,
> > Dovecot, and Procmail. The OS is CentOS (RHEL4). The mail seems to
> > working fine, except the following error message I get with

Logwatch.
> > All of the users recieve their email. I have tried to chase down

the
> > error with no avail. I was thinking a pathing issue becasue of
> > "//procmail_log" and such, but I don't have a trailing slash in the
> > /etc/procmailrc file, or in the Postfix main.cf file. I have

included
> > some config file info for help.

> [...]
> change MAILDIR=$HOME/Maildir to MAILDIR=$HOME/Maildir/ and
> home_mailbox = Maildir to home_mailbox = Maildir/
>
> I think that should solve your problem.
> Have a closer look at your main.cf - there is especially mentioned,
> that the trailing slash is required!


------------------
Well, it seemed to be a Dovecot issue. When I commented out the main.cf
aspects of home_mailbox, and reloaded Postfix, I was ok. Seemes Dovecot
wants to step over the Postfix settings.

Problem solved.
Ralph

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:49 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0