

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
9 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Postfix/maildrop driv...| From | Sent On | Attachments |
|---|---|---|
| Rob Brandt | Jul 2, 2005 11:28 pm | |
| Tony Earnshaw | Jul 3, 2005 2:30 am | |
| Jasper Slits | Jul 3, 2005 5:55 am | |
| Tony Earnshaw | Jul 3, 2005 7:11 am | |
| Rob Brandt | Jul 3, 2005 3:42 pm | |
| Rob Brandt | Jul 3, 2005 10:50 pm | |
| Rob Brandt | Jul 3, 2005 11:33 pm | |
| Tony Earnshaw | Jul 4, 2005 2:35 am | |
| Tony Earnshaw | Jul 4, 2005 2:35 am |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | Re: [maildropl] Postfix/maildrop driving me nuts - so close! | Actions... |
|---|---|---|
| From: | Tony Earnshaw (ton...@billy.demon.nl) | |
| Date: | Jul 4, 2005 2:35:08 am | |
| List: | net.sourceforge.lists.courier-maildrop | |
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 rbra...@amd64.csd-bes.net:
/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: ton...@billy.demon.nl http://www.billy.demon.nl







