View previous topic :: View next topic |
Author |
Message |
fusel n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 24 Apr 2006 Posts: 15
|
Posted: Wed Jun 13, 2007 8:03 am Post subject: [SOLVED] Postfix 2.3.6 maildir structure |
|
|
Hi,
I'm currently moving my mailserver from one dedicated root server to another one at a different provider. I have had installed postfix on that old machine for 2 years without any problems, currently, there is version 2.3.6 installed and running just fine.
After searching the web and gentoo forums for days, I cant find a solution for my problem.
The new machine got a complete different behavior. I've installed the following package:
mail-mta/postfix-2.3.6 USE="dovecot-sasl mysql pam ssl vda -cdb -hardened -ipv6 -ldap -mailwrapper -mbox -nis -postgres -sasl (-selinux)"
Dovecot because i want to move from courier-imap (and *-pop3) to dovecot for some reason, but this shouldn't matter in this case.
Now, i'm trying to create a mailbox out of PostfixAdmin, which works, but not as I like
Mailboxes are created as
Code: | loki ~ # cd /data/mail/ |
Code: | loki mail # ls -lsa
4 drwxr-xr-x 3 vmail vmail 4096 2007-06-13 09:54 .
4 drwxr-xr-x 6 root root 4096 2007-05-31 15:33 ..
4 drwx------ 5 vmail vmail 4096 2007-06-12 11:58 user@some.domain.tld
4 drwx------ 5 vmail vmail 4096 2007-06-12 11:58 anotheruser@another.domain.tld |
but I want it like before, so it should be like this:
Code: | loki mail # ls -lsa
4 drwxr-xr-x 3 vmail vmail 4096 2007-06-13 09:54 .
4 drwxr-xr-x 6 root root 4096 2007-05-31 15:33 ..
4 drwx------ 5 vmail vmail 4096 2007-06-12 11:58 some.domain.tld
4 drwx------ 5 vmail vmail 4096 2007-06-12 11:58 another.domain.tld
loki mail # ls -lsa some.domain.tld/
4 drwxr-xr-x 3 vmail vmail 4096 2007-06-13 09:54 .
4 drwxr-xr-x 6 vmail vmail 4096 2007-05-31 15:33 ..
4 drwx------ 5 vmail vmail 4096 2007-06-12 11:58 user1
4 drwx------ 5 vmail vmail 4096 2007-06-12 11:58 user2 |
So my problem is, that mailaccounts out of postfixadmin 2.1 are created as /data/mail/user@domain.tld instead of /data/mail/domain.tld/user. I don't have any clue where that comes from. PostfixAdmin just sends an mail to Postfix that tells postfix to create a new account, so I think that Postfix is the Problem, not PostfixAdmin. Logs are clear, sure, because mailboxes are created, but not the way I want.
I've checked every config more than twice, but i can't find any difference between the old and the new server.
Any idea? This feature is relative important to me because I am hosting around 20 sites for friends and I really dont want to administrate the mail accounts
Thanks for any tips
Last edited by fusel on Wed Jun 13, 2007 2:59 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
steveb Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1198140199438f3db8ee800.gif)
Joined: 18 Sep 2002 Posts: 4564
|
Posted: Wed Jun 13, 2007 1:06 pm Post subject: |
|
|
check Postfix.Admin config.inc.php: Code: | // Mailboxes
// If you want to store the mailboxes per domain set this to 'YES'.
// Example: /usr/local/virtual/domain.tld/username@domain.tld
$CONF['domain_path'] = 'YES';
// If you don't want to have the domain in your mailbox set this to 'NO'.
// Example: /usr/local/virtual/domain.tld/username
$CONF['domain_in_mailbox'] = 'NO'; |
In Postfix main.cf check: Code: | virtual_mailbox_base = /data/mail |
If this does not help, then could you please post the output of:
// SteveB |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nativemad Developer
![Developer Developer](/images/ranks/rank-dev.gif)
![](images/avatars/gallery/Simpsons/Simpsons_-_Krusty.jpg)
Joined: 30 Aug 2004 Posts: 918 Location: Switzerland
|
Posted: Wed Jun 13, 2007 1:10 pm Post subject: |
|
|
Hi
I also recently switched over to dovecot!
I don't know PostfixAdmin at all, but if it just sends a mail, then you have to have a look at the delivery agent!
Another thing is that courier won't let you login, when the Maildir isn't there. On the other Hand Dovecot just creates the Maildir at the first login, even without a mail.... So probably you should configure dovecot first!
I have it like this:
Code: | mail_location = maildir:/home/vmail/%d/%n/Maildir |
If you use the dovecot-delivery-agent, then this should fix your problem! -hopefully |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fusel n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 24 Apr 2006 Posts: 15
|
Posted: Wed Jun 13, 2007 2:59 pm Post subject: |
|
|
steveb wrote: | check Postfix.Admin config.inc.php: Code: | // Mailboxes
// If you want to store the mailboxes per domain set this to 'YES'.
// Example: /usr/local/virtual/domain.tld/username@domain.tld
$CONF['domain_path'] = 'YES';
// If you don't want to have the domain in your mailbox set this to 'NO'.
// Example: /usr/local/virtual/domain.tld/username
$CONF['domain_in_mailbox'] = 'NO'; |
// SteveB |
@Steve: Many thanks, great tip that did the job. Sometimes it is as simpel as this one. To bad PostfixAdmin is mostly undocumented.
@nativemad: Thx too, but this problem was more in the direction of postfix and postfixadmin, the second one in this case. But i keep your hint in mind
SOLVED |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
steveb Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1198140199438f3db8ee800.gif)
Joined: 18 Sep 2002 Posts: 4564
|
Posted: Wed Jun 13, 2007 7:33 pm Post subject: |
|
|
Na, na... was sehe ich da? Ein Landsmann von mir ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nativemad Developer
![Developer Developer](/images/ranks/rank-dev.gif)
![](images/avatars/gallery/Simpsons/Simpsons_-_Krusty.jpg)
Joined: 30 Aug 2004 Posts: 918 Location: Switzerland
|
Posted: Wed Jun 13, 2007 8:23 pm Post subject: |
|
|
Jaja, auch hier in luzern stehen ein paar Gentoo Server!
Habe mich schon paarmal über dein bildchen gewundert... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
steveb Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1198140199438f3db8ee800.gif)
Joined: 18 Sep 2002 Posts: 4564
|
Posted: Wed Jun 13, 2007 8:31 pm Post subject: |
|
|
nativemad wrote: | Habe mich schon paarmal über dein bildchen gewundert... | Witzbold. Das Wappen von Zürich.
Ich wiess, ich weiss... Zürcher sind +/- fast überall verhasst. Aber egal. Leben und leben lassen ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nativemad Developer
![Developer Developer](/images/ranks/rank-dev.gif)
![](images/avatars/gallery/Simpsons/Simpsons_-_Krusty.jpg)
Joined: 30 Aug 2004 Posts: 918 Location: Switzerland
|
Posted: Wed Jun 13, 2007 8:50 pm Post subject: |
|
|
Man weiss ja nie, vielleicht hatte ein Mexikaner oder so ein gutes Erlebnis in Zürich, und deshalb das Bild?
Man kann ja von den Leuten im grossen und ganzen halten was man will, aber das trifft ja nicht auf jeden zu, wenn überhaupt...
Bin da ziemlich unparteiisch... vorallem wenn jemand (ausserhalb des Bekanntenkreises) Gentoo verwendet!
Deinen Posts vonwegen developer usw. (anderer thread hier irgendwo) kann ich aber auch nur zustimmen! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fusel n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 24 Apr 2006 Posts: 15
|
Posted: Thu Jun 14, 2007 6:55 am Post subject: |
|
|
Mh, wozu schreibe ich euch beiden Schweizern eigentlich auf englisch?
Gruß aus Hamburg |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
steveb Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1198140199438f3db8ee800.gif)
Joined: 18 Sep 2002 Posts: 4564
|
Posted: Thu Jun 14, 2007 7:57 pm Post subject: |
|
|
fusel wrote: | Mh, wozu schreibe ich euch beiden Schweizern eigentlich auf englisch?
Gruß aus Hamburg | Du bist der GEILSTE!
Grüsse aus der verregneten Schweiz ![Very Happy :D](images/smiles/icon_biggrin.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|