| Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-31-2010, 10:12 PM
|
#1
|
|
LQ Newbie
Registered: Mar 2009
Posts: 12
Rep:
|
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?
|
|
|
|
06-01-2010, 01:24 AM
|
#2
|
|
Member
Registered: Feb 2010
Location: /Earth/UK/England/Hampshire
Distribution: Debian, Ubuntu, CentOS, Slackware
Posts: 262
Rep:
|
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
|
|
|
|
06-01-2010, 08:47 AM
|
#3
|
|
LQ Newbie
Registered: Mar 2009
Posts: 12
Original Poster
Rep:
|
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?
|
|
|
|
06-01-2010, 08:57 AM
|
#4
|
|
Member
Registered: Feb 2010
Location: /Earth/UK/England/Hampshire
Distribution: Debian, Ubuntu, CentOS, Slackware
Posts: 262
Rep:
|
My advice, comment it out in main.cf:
Quote:
|
# procmail -a “$EXTENSION
|
bounce postfix
Quote:
|
/etc/init.d/postfix restart
|
and retest
|
|
|
|
06-01-2010, 09:26 AM
|
#5
|
|
LQ Newbie
Registered: Mar 2009
Posts: 12
Original Poster
Rep:
|
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
|
|
|
|
06-01-2010, 09:42 AM
|
#6
|
|
Member
Registered: Feb 2010
Location: /Earth/UK/England/Hampshire
Distribution: Debian, Ubuntu, CentOS, Slackware
Posts: 262
Rep:
|
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.
|
06-01-2010, 09:48 AM
|
#7
|
|
LQ Newbie
Registered: Mar 2009
Posts: 12
Original Poster
Rep:
|
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
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:37 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|