LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 12-02-2007, 11:36 PM   #1
Paulsuk
Member
 
Registered: Jan 2004
Distribution: LFS
Posts: 91

Rep: Reputation: 15
Unhappy Postfix won't deliver to Maildir :-(


Hi,

I've just finished rebuilding my LFS server after a major crash (power outage took out complete system!)

Anyway, I have it mostly back up and running, but I don't seem to be able to get Postfix to deliver into the Maildirs for the users. Instead, mail is ending up in /var/mail.

postconf -n gives:
Quote:
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
home_mailbox = Maildir/
html_directory = /usr/share/doc/postfix-2.3.3/html
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
mydestination = $myhostname, maggiandpaul.co.uk, maggiandpaul.dnsalias.org
myhostname = smithers1.maggiandpaul.co.uk
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
unknown_local_recipient_reject_code = 550
if I look at mail.log, the following appears when a mail comes in:-
Quote:
Dec 3 05:17:14 smithers postfix/smtpd[17456]: connect from 51.18.stillsave.com[216.153.51.18]
Dec 3 05:17:15 smithers postfix/smtpd[17456]: 447D2278071: client=51.18.stillsave.com[216.153.51.18]
Dec 3 05:17:15 smithers postfix/cleanup[17460]: 447D2278071: message-id=<ULfbjbgeamcacJQ@stillsave.com>
Dec 3 05:17:15 smithers postfix/qmgr[17312]: 447D2278071: from=<28899494.5191640@stillsave.com>, size=3684, nrcpt=1 (queue active)
Dec 3 05:17:15 smithers postfix/local[17462]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Dec 3 05:17:15 smithers postfix/local[17462]: 447D2278071: to=<paul@maggiandpaul.co.uk>, relay=local, delay=0.32, delays=0.26/0.01/0/0.05, dsn=2.0.0, status=sent (delivered to command: IFS=' ' && exec /usr/bin/procmail -f- || exit 75 #paul)
Dec 3 05:17:15 smithers postfix/qmgr[17312]: 447D2278071: removed
Dec 3 05:17:15 smithers postfix/smtpd[17456]: disconnect from 51.18.stillsave.com[216.153.51.18]
I can't see where procmail is being configured (I actually do want it, but I'm not sure if the "delivered to command" is correct or not.) I thought the home_mailbox setting in main.cf would get Maildirs to work, but...

Can anyone help?

TIA

Paul

P.S. once I get it working, is there any way I can get the system to re-process the /var/mail/<user> files into the various Maildirs?
 
Old 12-03-2007, 12:35 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Do you have anything in transport (probably /etc/postfix/transport)? What is in master.cf? Do you have a .forward for the user?

Last edited by billymayday; 12-03-2007 at 12:42 AM.
 
Old 12-03-2007, 10:37 AM   #3
Paulsuk
Member
 
Registered: Jan 2004
Distribution: LFS
Posts: 91

Original Poster
Rep: Reputation: 15
Thanks BMD :-)

Ok, I checked my .forward and that was what was firing procmail off. Renamed it and mail started arriving properly! :-)

Now, how do I get procmail to behave? Before the crash, it was working fine (which is why the .forward file is there).

Simple setup - I want to tell procmail to use Maildir rather than /var/mail/<user>

Thanks

Paul

Last edited by Paulsuk; 12-03-2007 at 11:08 AM.
 
Old 12-03-2007, 11:10 AM   #4
Paulsuk
Member
 
Registered: Jan 2004
Distribution: LFS
Posts: 91

Original Poster
Rep: Reputation: 15
Also, (I forgot to ask) is there an easy way I can get the /var/mail/<user> file(s) that have been created whilst the problem has existed to be re-processed through the system so they go to the correct place(s) (i.e. into the Maildirs)

Cheers,

Paul
 
Old 12-03-2007, 03:15 PM   #5
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Have a quick look at the results of a search of www.google.com/linus for "mailbox maildir conversion" - you'll be swamped for choice.

Here's one

http://www.linuxquestions.org/questi...format-381568/

edit - sorry - don't use procmail or know the answer topost 4 short of renaming the files or similar

Last edited by billymayday; 12-03-2007 at 03:16 PM.
 
  


Reply



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
how to create Maildir postfix alexxxis Debian 5 08-20-2012 08:49 PM
New to Postfix and Maildir kevlarmcc Linux - Server 5 03-17-2007 09:35 PM
Postfix + Maildir + Courier. wachaca Linux - Server 4 12-06-2006 02:39 PM
postfix dovecot Maildir Danny Regan Debian 3 11-15-2005 04:08 PM
postfix and maildir format forand Linux - Software 4 05-05-2003 12:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:02 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration