Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Postfix, Courier-imap not sending.delivering mail
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
msb21
n00b
n00b


Joined: 24 Aug 2002
Posts: 47

PostPosted: Sat Oct 11, 2003 10:05 pm    Post subject: Postfix, Courier-imap not sending.delivering mail Reply with quote

After searching the forum I haven't found the solution to my problem with email. I can not send and receive email, I can telnet and login to ports 25 and 143. I get this error in /var/log/mail

Code:

Oct 11 16:05:01 [postfix/local] D366EBDC25: to=<matt@techiesalumni.com>, orig_to=<webmaster@techiesalumni.com>, relay=local, delay=1, status=bounced (cannot access mailbox /home/matt/Maildir for user matt. cannot open file: Is a directory
                                                                 


Any thoughts? I have tried to change Maildir to .maildir and Maildir/ does seem to help. The ironic thing is that this was a functioning mail server... must have been careless with the etc-update after an emerge -u
world.

I know its a config issue as I am having the same issue with the same config on FreeBSD...

Thank you!
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Sun Oct 12, 2003 1:56 am    Post subject: Reply with quote

Check your /etc/postfix/main.cf and make sure you've specified the mailbox style correctly. I think the Gentoo default for maildir is

home_mailbox = .maildir/ or home_mailbox = Mailbox for mbox style. Also make sure the user owns the maildir or files.

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
msb21
n00b
n00b


Joined: 24 Aug 2002
Posts: 47

PostPosted: Sun Oct 12, 2003 3:07 am    Post subject: Reply with quote

Thanks for your help. I have confirmed your suggestions,

in /etc/postfix/main.cf
[code]
home_mailbox=.maildir/
[code]
exactly as typed... looking into user matt, a ls -la
[code]
drwxr-xr-x 7 matt users 4096 Oct 6 10:11 .
drwxr-xr-x 4 root root 4096 Oct 2 22:18 ..
drwx------ 5 matt users 4096 Oct 6 10:11 .Sent
-rw------- 1 matt users 2233 Oct 11 16:35 .bash_history
drwxr-xr-x 2 matt users 4096 Apr 16 18:02 .gentoo
drwx------ 17 matt users 4096 Sep 5 23:19 .maildir
drwx------ 5 matt users 4096 Apr 1 2003 .maildir-sent
-rw-r--r-- 1 matt users 33 Apr 1 2003 .muttrc
[/code]

Any ideas?
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Mon Oct 13, 2003 1:50 am    Post subject: Re: Postfix, Courier-imap not sending.delivering mail Reply with quote

msb21 wrote:

Code:

Oct 11 16:05:01 [postfix/local] D366EBDC25: to=<matt@techiesalumni.com>, orig_to=<webmaster@techiesalumni.com>, relay=local, delay=1, status=bounced (cannot access mailbox /home/matt/Maildir for user matt. cannot open file: Is a directory



According to the log it looks like it's trying to write to Maildir instead or .maildir. I wonder if you've got multiple settings for the mailbox setting. Do a postconf -n and see if anything looks strange in your settings.

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
Chris W
l33t
l33t


Joined: 25 Jun 2002
Posts: 972
Location: Brisbane, Australia

PostPosted: Mon Oct 13, 2003 10:36 am    Post subject: Reply with quote

It looks to be expecting an MBOX but finding your Maildir directory.

Your config looks correct though. I note that you're missing spaces that are present in my main.cf:
Code:
home_mailbox = .maildir/
I can't imagine it's that picky, but it can't hurt to try.
Have you restarted Postfix since changing the config file?
_________________
Cheers,
Chris W
"Common sense: The collection of prejudices acquired by age 18." -- Einstein
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum