|
|
Subject: Re: Postfix/maildrop driving me nuts - msg#00020
List: mail.maildrop
man, 04.07.2005 kl. 07.48 skrev Rob Brandt:
[...]
> rbrandt@linux:~ # maildrop -V[3-5] -d rbrandt@xxxxxxxxxxxxxxxxx <
> /home/rbrandt/message.eml
This is wrong. 'man maildrop', search for "-V". Can be any value from 0
to 9, but only 3 to 5 are generally useful, try with "-V3".
[...]
--Tonni
--
mail: tonye@xxxxxxxxxxxxxx
http://www.billy.demon.nl
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
Was this page helpful?
Thread at a glance:
Previous Message by Date:
click to view message preview
Re: Postfix/maildrop driving me nuts - so close!
Much progress made.
I've found several references to this issue by googling my error below, and have
moved through the related files/dirs and set all users to my designated user,
plus setuid and gid on maildrop, and the errors stopped. However, the filter
still wasn't being used.
I am using a virtual system, and have the directories arranged as follows, using
my test account rbrandt@xxxxxxxxxxxxxxxxx:
/var/spool/postfix/virtual/amd64.csd-bes/rbrandt
with the usual /cur, /new, /tmp, /.Trash, /.Drafts directories therein. Also in
that folder I had the .mailfilter file, set up to deliver mail with a specified
Subject header "[test]" into the /.test directory. As I said above, that
doesn't work. Assuming that maildrop was working but not finding a mailfilter,
I moved that file up the directory tree; lo, and behold, it works at
/var/spool/postfix/virtual/.mailfilter!
This is great news, obviously, since I know that it is essentially working at
this point. But the whole point here is to have a .mailfilter for each virtual
user. I think I understand why it's looking there: the maildrop docs say that
it looks for .mailfilter at $HOME/.mailfilter, and in the MySQL database I have
home set to /var/spool/postfix/virtual, so that's where maildrop is looking for
.mailfilter. The maildir value is "amd64.csd-bes.net/rbrandt/. I suppose I
could set home to be the complete path
/var/spool/postfix/virtual/amd64.csd-bes/rbrandt/, leaving the maildir value
empty, but that doesn't seem "right" to me. What would be the purpose of the
maildir value then? And it prevents me from setting a default value for home
that will be the same for each user record I add.
So are there any better ways?
Thanks for all your help you guys. Gotta love the Dutch. :)
Rob
Quoting Rob Brandt <bronto@xxxxxxxxxxx>:
> For some reason, the last portion of the message below was chopped off. Here
> it
> is:
>
> I did run your test as below, although I am unsure of the permission context
> I
> should be in:
>
> As myself ('rbrandt')
>
> rbrandt@linux:~ # maildrop -V[3-5] -d rbrandt@xxxxxxxxxxxxxxxxx <
> /home/rbrandt/message.eml
> ERR: authdaemon: s_connect() failed: permission denied
> maildrop: Temporary authentication failure.
> rbrandt@linux:~ #
>
>
> As root:
>
> linux:~ # maildrop -V[3-5] -d rbrandt@xxxxxxxxxxxxxxxxx <
> /home/rbrandt/message.eml
> linux:~ #
> (no response, but nothing was done with the message)
>
> Thanks
>
> Rob
>
>
>
>
> Quoting Rob Brandt <bronto@xxxxxxxxxxx>:
>
> > Courier-imap, courier-authlib and maildrop are all new installations using
> > new
> > versions from courier-mta.org, compiled and rpm'ed over the last week or so
> > for
> > a new server to be deployed this week. I see that Sam released new
> versions
> > of
> > -imap and -authlib yesterday; my versions are the ones just prior to that.
> > Presumably they work together :). It is my understanding that once authlib
> > is
> > installed and working, all the other components now use that for
> > authentication; therefore if courier-imap is authenticating OK, then
> maildrop
> > should too. If that understanding is wrong, then that's probably my
> trouble
> >
> > -------------------------------------------------------
> > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> > from IBM. Find simple to follow Roadmaps, straightforward articles,
> > informative Webcasts and more! Get everything you need to get up to
> > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op¿ick
> > _______________________________________________
> > Courier-maildrop mailing list
> > Courier-maildrop@xxxxxxxxxxxxxxxxxxxxx
> > https://lists.sourceforge.net/lists/listinfo/courier-maildrop
> >
>
>
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op¿ick
> _______________________________________________
> Courier-maildrop mailing list
> Courier-maildrop@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/courier-maildrop
>
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
Next Message by Date:
click to view message preview
Re: Postfix/maildrop driving me nuts - so close!
man, 04.07.2005 kl. 08.31 skrev Rob Brandt:
> Much progress made.
[...]
> I am using a virtual system, and have the directories arranged as follows,
> using
> my test account rbrandt@xxxxxxxxxxxxxxxxx:
>
> /var/spool/postfix/virtual/amd64.csd-bes/rbrandt
>
> with the usual /cur, /new, /tmp, /.Trash, /.Drafts directories therein. Also
> in
> that folder I had the .mailfilter file, set up to deliver mail with a
> specified
> Subject header "[test]" into the /.test directory. As I said above, that
> doesn't work. Assuming that maildrop was working but not finding a
> mailfilter,
> I moved that file up the directory tree; lo, and behold, it works at
> /var/spool/postfix/virtual/.mailfilter!
>
> This is great news, obviously, since I know that it is essentially working at
> this point. But the whole point here is to have a .mailfilter for each
> virtual
> user. I think I understand why it's looking there: the maildrop docs say that
> it looks for .mailfilter at $HOME/.mailfilter, and in the MySQL database I
> have
> home set to /var/spool/postfix/virtual, so that's where maildrop is looking
> for
> .mailfilter.
This won't work, $HOME is the full path to the user's directory
immediately above Maildir.
> The maildir value is "amd64.csd-bes.net/rbrandt/.
You don't have to have a value for maildir, since it's implied -
$HOME/Maildir.
> I suppose I
> could set home to be the complete path
> /var/spool/postfix/virtual/amd64.csd-bes/rbrandt/, leaving the maildir value
> empty, but that doesn't seem "right" to me. What would be the purpose of the
> maildir value then?
Indeed. You do need to give the whole path to the home dir, though, if
you're using a semi-virtual hierarchy as you are - and not the
traditional Unix home dir.
> And it prevents me from setting a default value for home
> that will be the same for each user record I add.
I'm afraid you'll have to set an absolute path to each user in MySQL.
That's where maildrop gets its $HOME variable from (at least it does in
my LDAP setup). If you run maildrop with "-V3" from the command line,
you'll see that it changes to the userid's home directory before it does
anything else. The docs say that it does this under the uid of the user.
AFAICS there's now way of importing the userid or the UID from the
environment variables, so you can't set it in .mailfilter or maildroprc.
FWIW I create new users from a list of first, middle and last names with
an awk script that automatically adds the absolute "home directory"
path.
> So are there any better ways?
I don't think so.
> Thanks for all your help you guys. Gotta love the Dutch. :)
Most of them have their good sides, some don't ;)
--Tonni
--
mail: tonye@xxxxxxxxxxxxxx
http://www.billy.demon.nl
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
Previous Message by Thread:
click to view message preview
Re: Postfix/maildrop driving me nuts - so close!
man, 04.07.2005 kl. 08.31 skrev Rob Brandt:
> Much progress made.
[...]
> I am using a virtual system, and have the directories arranged as follows,
> using
> my test account rbrandt@xxxxxxxxxxxxxxxxx:
>
> /var/spool/postfix/virtual/amd64.csd-bes/rbrandt
>
> with the usual /cur, /new, /tmp, /.Trash, /.Drafts directories therein. Also
> in
> that folder I had the .mailfilter file, set up to deliver mail with a
> specified
> Subject header "[test]" into the /.test directory. As I said above, that
> doesn't work. Assuming that maildrop was working but not finding a
> mailfilter,
> I moved that file up the directory tree; lo, and behold, it works at
> /var/spool/postfix/virtual/.mailfilter!
>
> This is great news, obviously, since I know that it is essentially working at
> this point. But the whole point here is to have a .mailfilter for each
> virtual
> user. I think I understand why it's looking there: the maildrop docs say that
> it looks for .mailfilter at $HOME/.mailfilter, and in the MySQL database I
> have
> home set to /var/spool/postfix/virtual, so that's where maildrop is looking
> for
> .mailfilter.
This won't work, $HOME is the full path to the user's directory
immediately above Maildir.
> The maildir value is "amd64.csd-bes.net/rbrandt/.
You don't have to have a value for maildir, since it's implied -
$HOME/Maildir.
> I suppose I
> could set home to be the complete path
> /var/spool/postfix/virtual/amd64.csd-bes/rbrandt/, leaving the maildir value
> empty, but that doesn't seem "right" to me. What would be the purpose of the
> maildir value then?
Indeed. You do need to give the whole path to the home dir, though, if
you're using a semi-virtual hierarchy as you are - and not the
traditional Unix home dir.
> And it prevents me from setting a default value for home
> that will be the same for each user record I add.
I'm afraid you'll have to set an absolute path to each user in MySQL.
That's where maildrop gets its $HOME variable from (at least it does in
my LDAP setup). If you run maildrop with "-V3" from the command line,
you'll see that it changes to the userid's home directory before it does
anything else. The docs say that it does this under the uid of the user.
AFAICS there's now way of importing the userid or the UID from the
environment variables, so you can't set it in .mailfilter or maildroprc.
FWIW I create new users from a list of first, middle and last names with
an awk script that automatically adds the absolute "home directory"
path.
> So are there any better ways?
I don't think so.
> Thanks for all your help you guys. Gotta love the Dutch. :)
Most of them have their good sides, some don't ;)
--Tonni
--
mail: tonye@xxxxxxxxxxxxxx
http://www.billy.demon.nl
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
Next Message by Thread:
click to view message preview
Re: Maildrop + Mysql
Hello Sergio & guys,
Do you ave solved your problem?
I am also interested in the way that you have done this. Becasue I had the same experienced as you do.
So somebody has a better advise for us to achieve the courier-maildrop with mysql support package?
Thanks in advance.
Regards,
htjioe
|
|