Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
postfix / Courier-IMAP .maildir problem
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
schpanky
n00b
n00b


Joined: 12 Jan 2005
Posts: 58

PostPosted: Tue Feb 15, 2005 6:27 pm    Post subject: postfix / Courier-IMAP .maildir problem Reply with quote

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
View user's profile Send private message
Ateo
Advocate
Advocate


Joined: 02 Jun 2003
Posts: 2022
Location: Vegas Baby!

PostPosted: Tue Feb 15, 2005 9:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
schpanky
n00b
n00b


Joined: 12 Jan 2005
Posts: 58

PostPosted: Tue Feb 15, 2005 9:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
langthang
Retired Dev
Retired Dev


Joined: 27 Nov 2003
Posts: 620

PostPosted: Tue Feb 15, 2005 11:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
schpanky
n00b
n00b


Joined: 12 Jan 2005
Posts: 58

PostPosted: Wed Feb 16, 2005 3:19 am    Post subject: Reply with quote

that seems to have gotten me in....

thanks!
Back to top
View user's profile Send private message
schpanky
n00b
n00b


Joined: 12 Jan 2005
Posts: 58

PostPosted: Wed Feb 16, 2005 7:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
langthang
Retired Dev
Retired Dev


Joined: 27 Nov 2003
Posts: 620

PostPosted: Wed Feb 16, 2005 8:10 pm    Post subject: Reply with quote

try `mail --file ~/.maildir`
_________________
Gentoo users' map
Back to top
View user's profile Send private message
schpanky
n00b
n00b


Joined: 12 Jan 2005
Posts: 58

PostPosted: Wed Feb 16, 2005 8:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
langthang
Retired Dev
Retired Dev


Joined: 27 Nov 2003
Posts: 620

PostPosted: Wed Feb 16, 2005 8:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
schpanky
n00b
n00b


Joined: 12 Jan 2005
Posts: 58

PostPosted: Wed Feb 16, 2005 8:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
langthang
Retired Dev
Retired Dev


Joined: 27 Nov 2003
Posts: 620

PostPosted: Wed Feb 16, 2005 9:34 pm    Post subject: Reply with quote

> 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
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