You are not logged in.

#1 2010-10-23 14:19:46

augie
Member
Registered: 2010-08-27
Posts: 12

Local mail delivery with Postfix

I'm trying to get postfix working using the wiki at:

http://wiki.archlinux.org/index.php/Loc … th_Postfix

The problem I'm having is that mail gets delivered to ~/Maildir/new but doesn't get moved to ~/Maildir/cur.

/var/log/mail.log:

Oct 23 09:38:50 localhost postfix/postfix-script[2963]: starting the Postfix mail system
Oct 23 09:38:50 localhost postfix/master[2964]: daemon started -- version 2.7.1, configuration /etc/postfix
Oct 23 09:39:07 localhost postfix/pickup[2966]: 9CCA122396: uid=1000 from=<a1234>
Oct 23 09:39:07 localhost postfix/cleanup[2977]: 9CCA122396: message-id=<20101023133907.9CCA122396@glenda.localdomain>
Oct 23 09:39:07 localhost postfix/qmgr[2967]: 9CCA122396: from=<a1234@glenda.localdomain>, size=315, nrcpt=1 (queue active)
Oct 23 09:39:07 localhost postfix/local[2979]: 9CCA122396: to=<a1234@glenda.localdomain>, orig_to=<a1234>, relay=local, delay=0.15, delays=0.07/0.01/0/0.07, dsn=2.0.0, status=sent (delivered to maildir)
Oct 23 09:39:07 localhost postfix/qmgr[2967]: 9CCA122396: removed

The only things I've changed in /etc/postfix/main.cf are in accordance withe the wiki:

inet_interfaces = loopback-only
mynetworks_style = host
append_dot_mydomain = no
default_transport = error: Local delivery only!

and to uncomment:

home_mailbox = Maildir/

/etc/passwd and /etc/group show the proper entries and postalias has been run.
Also, postfix check returns no errors.

I don't know what other details to provide or where to go from here. Any advice would be appreciated.

Thanks

Offline

#2 2010-10-23 15:41:36

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: Local mail delivery with Postfix

I believe that is the correct behavior. I could be totally wrong here, but I believe it is up a client or imap/pop server to move the mail to cur.


Website - Blog - arch-home
Arch User since March 2005

Offline

#3 2010-10-23 18:26:49

csm
Member
From: Germany
Registered: 2010-04-03
Posts: 3
Website

Re: Local mail delivery with Postfix

That's the intended behaviour. If you open the Maildir with an MUA like mutt and mark a couple of messages as old (by simply reading them) they'll get moved to the cur directory.

Offline

#4 2010-10-24 02:45:33

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,217
Website

Re: Local mail delivery with Postfix

Just reinforcing what the others have said -- Postfix is doing the right thing. Your MUA (possibly via POP3/IMAP) moves from new to cur

Offline

#5 2010-10-24 04:23:18

augie
Member
Registered: 2010-08-27
Posts: 12

Re: Local mail delivery with Postfix

I'm sorry, but I don't understand what everyone is telling me.

After installing and configuring postfix according to the wiki, you are supposed to test it:

Step 5: Test

Try sending an email. Even from yourself to yourself should be a good test.

mail -s test user
this is a test email.
.

Now check your mail using whatever client you desire.

Doing that and then running mail (which I assume should do what everyone is saying and move
test message from ~/Maildir/new to ~/Maildir/cur) just gets me a "no mail" message.

Offline

#6 2010-10-24 07:43:57

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,217
Website

Re: Local mail delivery with Postfix

augie wrote:

Doing that and then running mail (which I assume should do what everyone is saying and move
test message from ~/Maildir/new to ~/Maildir/cur) just gets me a "no mail" message.

Your client daemon (dovecot, courier etc) does that. If you haven't installed them, then don't expect the message to move. I don't recall if 'mail' will do it or not.

Offline

Board footer

Powered by FluxBB