View previous topic :: View next topic |
Author |
Message |
msb21 n00b
Joined: 24 Aug 2002 Posts: 47
|
Posted: Sat Oct 11, 2003 10:05 pm Post subject: Postfix, Courier-imap not sending.delivering mail |
|
|
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 |
|
|
kashani Advocate
Joined: 02 Sep 2002 Posts: 2032 Location: San Francisco
|
Posted: Sun Oct 12, 2003 1:56 am Post subject: |
|
|
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 |
|
|
msb21 n00b
Joined: 24 Aug 2002 Posts: 47
|
Posted: Sun Oct 12, 2003 3:07 am Post subject: |
|
|
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 |
|
|
kashani Advocate
Joined: 02 Sep 2002 Posts: 2032 Location: San Francisco
|
Posted: Mon Oct 13, 2003 1:50 am Post subject: Re: Postfix, Courier-imap not sending.delivering mail |
|
|
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 |
|
|
Chris W l33t
Joined: 25 Jun 2002 Posts: 972 Location: Brisbane, Australia
|
Posted: Mon Oct 13, 2003 10:36 am Post subject: |
|
|
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 |
|
|
|