View previous topic :: View next topic |
Author |
Message |
schpanky n00b


Joined: 12 Jan 2005 Posts: 58
|
Posted: Tue Feb 15, 2005 6:27 pm Post subject: postfix / Courier-IMAP .maildir problem |
|
|
Ok, I am assuming I am overlooking something stupid here... (at least I hope)
I have postfix and Courier-IMAP installed. I can send users mail, and I see it show up in their $HOME/.maildir/new folder.
This is great, but I see no mail when I connect to IMAP, and if I do
Code: |
$ mail
No mail for schpanky
|
....well, you see what happens.
Why is it telling me there is no mail when I can see it in the directory?
Thanks for the help.
~schpanky |
|
Back to top |
|
 |
Ateo Advocate

Joined: 02 Jun 2003 Posts: 2022 Location: Vegas Baby!
|
Posted: Tue Feb 15, 2005 9:11 pm Post subject: |
|
|
To better assist you, post the last handful of text in /var/log/maill. You shouldn't need to post the entire log. |
|
Back to top |
|
 |
schpanky n00b


Joined: 12 Jan 2005 Posts: 58
|
Posted: Tue Feb 15, 2005 9:18 pm Post subject: |
|
|
hadn't noticed this before......
from /var/log/mail:
Code: |
Feb 15 16:12:01 [authdaemond] failed to connect to mysql server (server=mysql.example.com, userid=admin): Unknown MySQL Server Host 'mysql.example.com' (1)
Feb 15 16:12:01 [imapd-ssl] LOGIN FAILED, method=PLAIN, ip=[::ffff:128.237.227.250]
Feb 15 16:12:01 [imapd-ssl] authentication error: Input/output error
|
so I'm guessing I have to do some more config......
I was following this HOW-TO
and was just about to start the Cyrus-sasl section. |
|
Back to top |
|
 |
langthang Retired Dev

Joined: 27 Nov 2003 Posts: 620
|
Posted: Tue Feb 15, 2005 11:00 pm Post subject: |
|
|
in your authdaemonrc limit the authentication method you use, ie: authmodulelist="authpam" or authmodulelist="authmysql" , from your log, it looks like you dont have authmysqlrc setup. _________________ Gentoo users' map |
|
Back to top |
|
 |
schpanky n00b


Joined: 12 Jan 2005 Posts: 58
|
Posted: Wed Feb 16, 2005 3:19 am Post subject: |
|
|
that seems to have gotten me in....
thanks! |
|
Back to top |
|
 |
schpanky n00b


Joined: 12 Jan 2005 Posts: 58
|
Posted: Wed Feb 16, 2005 7:22 pm Post subject: |
|
|
k... still having problem where "mail" command says "No mail for <user>" even though there is mail in ~/.maildir/new
any suggestions for this problem? |
|
Back to top |
|
 |
langthang Retired Dev

Joined: 27 Nov 2003 Posts: 620
|
Posted: Wed Feb 16, 2005 8:10 pm Post subject: |
|
|
try `mail --file ~/.maildir` _________________ Gentoo users' map |
|
Back to top |
|
 |
schpanky n00b


Joined: 12 Jan 2005 Posts: 58
|
Posted: Wed Feb 16, 2005 8:21 pm Post subject: |
|
|
results:
Code: | # mail --file ~/.maildir
mail: invalid option -- -
usage: mail [-eIinv] [-a header] [-b bcc-addr] [-c cc-addr] [-s subject]
to-addr [...] [-- sendmail-options [...]]
mail [-eIiNnv] -f [name]
mail [-eIiNnv] [-u user]
|
so, logically I tried
Code: | # mail -f ~/.maildir
mail: /root/.maildir: Is a directory
|
|
|
Back to top |
|
 |
langthang Retired Dev

Joined: 27 Nov 2003 Posts: 620
|
Posted: Wed Feb 16, 2005 8:27 pm Post subject: |
|
|
look like your mail is different than my mail, so you need to man mail.
Code: | # equery b $(which mail)
[ Searching for file(s) /usr/bin/mail in *... ]
net-mail/mailutils-0.6 (/usr/bin/mail)
$ mail --file ~/.maildir
"/home/langthang/.maildir": 4 messages 4 new
>N 1 root 13/512 test
N 2 root 13/512 test
N 3 root 13/512 test
N 4 tvan@mar.localhost 13/509 test
? |
_________________ Gentoo users' map |
|
Back to top |
|
 |
schpanky n00b


Joined: 12 Jan 2005 Posts: 58
|
Posted: Wed Feb 16, 2005 8:44 pm Post subject: |
|
|
hmmmm...
Code: |
# equery b $(which mail)
[ Searching for file(s) /bin/mail in *... ]
mail-client/mailx-8.1.2.20040524-r1 (/bin/mail)
|
definately using a different mail....
does yours also do command-line mailing? |
|
Back to top |
|
 |
langthang Retired Dev

Joined: 27 Nov 2003 Posts: 620
|
Posted: Wed Feb 16, 2005 9:34 pm Post subject: |
|
|
> does yours also do command-line mailing?
Yes, you can use it for cron jobs too.
Code: | # crontab -e
8 10 * * * /usr/local/bin/pflogsumm.pl -d yesterday /var/log/mail.log 2>&1 | /usr/bin/mail -s "`uname -n` daily mail stats" postmaster
langthang@localhost ~ $ mail langthang@gentoo.org
Cc:
Subject: test
test
.
langthang@localhost ~ $
Feb 16 10:44:29 localhost postfix/smtpd[4060]: connect from localhost[127.0.0.1]
Feb 16 10:49:15 localhost postfix/smtpd[4060]: timeout after EHLO from localhost[127.0.0.1]
Feb 16 10:49:15 localhost postfix/smtpd[4060]: disconnect from localhost[127.0.0.1]
Feb 16 10:52:35 localhost postfix/anvil[4062]: statistics: max connection rate 1/60s for (smtp:127.0.0.1) at Feb 16 10:44:29
Feb 16 10:52:35 localhost postfix/anvil[4062]: statistics: max connection count 1 for(smtp:127.0.0.1) at Feb 16 10:44:29
Feb 16 10:52:35 localhost postfix/anvil[4062]: statistics: max cache size 1 at Feb 1610:44:29
Feb 16 13:26:44 localhost postfix/pickup[5642]: C19CA394494: uid=1000 from=<langthang>
Feb 16 13:26:44 localhost postfix/cleanup[5748]: C19CA394494: message-id=<20050216212644.C19CA394494@localhost.localdomain>
Feb 16 13:26:44 localhost postfix/qmgr[27363]: C19CA394494: from=<langthang@localhost.localdomain>, size=335, nrcpt=1 (queue active)
Feb 16 13:26:45 localhost postfix/smtp[5750]: C19CA394494: to=<langthang@gentoo.org>,relay=mail.gentoo.org[156.56.111.197], delay=1, status=sent (250 OK id=1D1Wf8-0004vq-38) |
_________________ Gentoo users' map |
|
Back to top |
|
 |
|