LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 05-31-2010, 10:12 PM   #1
phillinux
LQ Newbie
 
Registered: Mar 2009
Posts: 13

Rep: Reputation: 0
Can't get Postfix mail boxes from /var/mail to ~/Maildir


I'm running a Debian LAMP server and I am adding postfix. The initial config is working and I can send and receive mail both locally and over the WAN. The problem is that I cannot get mail delivered to the user's home directory using Maildir/.

I have set the:

home_mailbox = Maildir/

parameter in main.cf but mail still goes to /var/mail after Postfix reload. The system is now using Maildir/ instead of mbox but in /var/mail. I really want to get mail into the user's home directory.

Any suggestions?
 
Old 06-01-2010, 01:24 AM   #2
spampig
Member
 
Registered: Feb 2010
Location: /Earth/UK/England/Hampshire
Distribution: Debian, Ubuntu, CentOS, Slackware
Posts: 262
Blog Entries: 2

Rep: Reputation: 56
Without seeing your main.cf or the output of postconf it's difficult to say.

The documentation (http://www.postfix.org/postconf.5.html#home_mailbox) suggests that the mailbox_command takes precedence over home_mailbox, so it would be worth looking to see if it's set to something:
Quote:
postconf | grep mailbox_command
I'd also look at these directives just in case they are influencing matters:
home_mailbox
require_home_directory
virtual_mailbox_base

HTH
 
Old 06-01-2010, 08:47 AM   #3
phillinux
LQ Newbie
 
Registered: Mar 2009
Posts: 13

Original Poster
Rep: Reputation: 0
It seems that my mailbox_command is set to

“procmail -a “$EXTENSION”

but I don't think procmail is running on the machine. I have looked in the users home directory and not found a “.procmailrc” file and

“ps -A | grep procmail”

yields nothing. Is there another way to check if procmail is running?
Should I install it?
 
Old 06-01-2010, 08:57 AM   #4
spampig
Member
 
Registered: Feb 2010
Location: /Earth/UK/England/Hampshire
Distribution: Debian, Ubuntu, CentOS, Slackware
Posts: 262
Blog Entries: 2

Rep: Reputation: 56
My advice, comment it out in main.cf:
Quote:
# procmail -a “$EXTENSION
bounce postfix
Quote:
/etc/init.d/postfix restart
and retest
 
Old 06-01-2010, 09:26 AM   #5
phillinux
LQ Newbie
 
Registered: Mar 2009
Posts: 13

Original Poster
Rep: Reputation: 0
Bingo, it works!
Postfix setup cur, new, and tmp, just like it should and even deposited an email in new.
I tried to install procmail to find it is installed on the machine.
Should I get procmail running?
I was under the impression that postfix was supposed to invoke procmail, but it didn't.
I've heard procmail a handy tool.

BTW:
Is there a difference between
postfix reload
and
/etc/init.d/postfix restart
 
Old 06-01-2010, 09:42 AM   #6
spampig
Member
 
Registered: Feb 2010
Location: /Earth/UK/England/Hampshire
Distribution: Debian, Ubuntu, CentOS, Slackware
Posts: 262
Blog Entries: 2

Rep: Reputation: 56
Phil, personally I don't 'do' procmail because I don't need it, so my understanding of it is limited. Therefore I'm not the best guy to ask.

As for reload -v- restart. Reload is *usually* ok, but a major change in the configs I like to restart. Not for any other reason than I once had an issue with reload not picking up changes, many many moons ago ;-)
 
1 members found this post helpful.
Old 06-01-2010, 09:48 AM   #7
phillinux
LQ Newbie
 
Registered: Mar 2009
Posts: 13

Original Poster
Rep: Reputation: 0
I've been fighting with this problem since Sunday night. Thanks for putting it to rest. Now onto Dovecot, Squirrelmail and SASL,
Thanks again
phil
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing /var/spool/mail/$USER to ~/Maildir Aardvark Linux - Server 2 06-30-2009 10:32 AM
Postfix won't move mail from /var/spool/mail to /home/vmail jmoschetti45 Linux - Server 13 03-07-2007 06:03 AM
Import Mail from /var/spool/mail (sendmail) to a MailDir Format in Postfix shawnbishop Linux - Software 0 04-06-2006 10:44 AM
Postfix failing to send mail to Maildir subaruwrx Linux - Software 0 03-15-2005 05:47 AM
Postfix $HOME/mail/inbox instead of /var/spool/mail ramram29 Linux - Software 3 08-08-2004 01:28 AM


All times are GMT -5. The time now is 01:15 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration