Mail & pop problem

3 posts / 0 new
Last post
#1 Fri, 06/01/2007 - 07:18
Joe
Joe's picture

Mail & pop problem

Hello

I just created a mydomain.net with virtualmin 3.41 gpl

I can connect with thunderbird on my new mailbox "nils" but replies to me: "no new messages on the server"

but when I check it with Putty mail -u nils all my mails are there...

In 'Edit mailbox' the 'Inbox mail file' is /var/www/domain/homes/user/Maildir/ but it's empty ?

All mails are in /var/mail/user

In wich directory is pop3 looking ? How and where can I change the path ?

thanks

/nils

Fri, 06/01/2007 - 12:18
Joe
Joe's picture

A sort of solution...()

I removed this line in "local delivery" in
"External command to use instead of mailbox delivery":
procmail -a "$EXTENSION"

and now my mails goes to:
/var/www/domain/homes/user/Maildir/
and I can retrieve them with thunderbird.
Good

BUT
It seems that procmail is not installed.?
can't find any procmailrc file on the server
and there is no procmail module in webmin,

So it's a bit strange that the directive:
procmail -a "$EXTENSION" is there by default
in postfix configuration "local delivery"
why ?

How can I transert/convert my 300 mails
from mbox to Maildir format ? !!!

thanks in advanced

/nils

--

Check out the forum guidelines!

Fri, 06/01/2007 - 12:37 (Reply to #2)
Joe
Joe's picture

Hey nils,

You're presenting an awful lot of little issues as though they're the same. I'm gonna try and pick them apart and get you to a solution to all of your problems. ;-)

<i>I removed this line in &quot;local delivery&quot; in
&quot;External command to use instead of mailbox delivery&quot;:
procmail -a &quot;$EXTENSION&quot;

and now my mails goes to:
/var/www/domain/homes/user/Maildir/
and I can retrieve them with thunderbird.
Good</i>

Ok, so this sets Postfix to deliver the mail directly. Virtualmin can't manage any of your spam and anti-virus configuration in this case, but that's OK if you have setup a filter like amavisd-new or whatever using the content filter features in Postfix (it's not individually configurable, but many folks don't care about that...in fact, I think we get more pushback on having it individually configurable than we get kudos, so you probably just want to do it system-wide...).

<i>It seems that procmail is not installed.?</i>

Why are you asking us? We don't know! ;-)

Ask your package manager if it is installed. If you're using and RPM-based distro:

rpm -q procmail

Or a Debian based system:

dpkg -s procmail

If it isn't, use your package manager to install it...if you want to use procmail for your delivery agent. I think it's a great choice, but using postfix as delivery agent also works fine. None of the Usermin forwarding, auto-responding, filtering, etc. stuff will work, since it all configures procmail, but it does remove some complexity.

<i>So it's a bit strange that the directive:
procmail -a &quot;$EXTENSION&quot; is there by default
in postfix configuration &quot;local delivery&quot;
why ?</i>

Again, why ask us? We have no control over how your distribution configures Postfix, by default. I don't think this is the default on Red Hat based systems, but it might be on other distros.

Anyway, procmail is a great choice for delivery agent...no reason why it shouldn't be the default delivery agent, though it probably ought to depend on procmail if that's the way it is configured, by default.

<i>How can I transert/convert my 300 mails
from mbox to Maildir format ? !!!</i>

There's a great perl script that does a very nice conversion:

http://batleth.sapienti-sat.org/projects/mb2md/

I've used it on mboxes with thousands of messages with good results--300 messages will be a snap. You'll probably want to make sure you aren't receiving new mails in the mbox while it runs...could get ugly.

--

Check out the forum guidelines!

Topic locked