Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Postfix 2.3.6 maildir structure
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
fusel
n00b
n00b


Joined: 24 Apr 2006
Posts: 15

PostPosted: Wed Jun 13, 2007 8:03 am    Post subject: [SOLVED] Postfix 2.3.6 maildir structure Reply with quote

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

Thanks for any tips


Last edited by fusel on Wed Jun 13, 2007 2:59 pm; edited 1 time in total
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Wed Jun 13, 2007 1:06 pm    Post subject: Reply with quote

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:
Code:
postconf -n



// SteveB
Back to top
View user's profile Send private message
nativemad
Developer
Developer


Joined: 30 Aug 2004
Posts: 918
Location: Switzerland

PostPosted: Wed Jun 13, 2007 1:10 pm    Post subject: Reply with quote

Hi

I also recently switched over to dovecot! :wink:
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! :wink:
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! :D -hopefully
Back to top
View user's profile Send private message
fusel
n00b
n00b


Joined: 24 Apr 2006
Posts: 15

PostPosted: Wed Jun 13, 2007 2:59 pm    Post subject: Reply with quote

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


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Wed Jun 13, 2007 7:33 pm    Post subject: Reply with quote

nativemad wrote:
...
Na, na... was sehe ich da? Ein Landsmann von mir :)
Back to top
View user's profile Send private message
nativemad
Developer
Developer


Joined: 30 Aug 2004
Posts: 918
Location: Switzerland

PostPosted: Wed Jun 13, 2007 8:23 pm    Post subject: Reply with quote

:D
Jaja, auch hier in luzern stehen ein paar Gentoo Server! :wink:
Habe mich schon paarmal über dein bildchen gewundert...
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Wed Jun 13, 2007 8:31 pm    Post subject: Reply with quote

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 :)
Back to top
View user's profile Send private message
nativemad
Developer
Developer


Joined: 30 Aug 2004
Posts: 918
Location: Switzerland

PostPosted: Wed Jun 13, 2007 8:50 pm    Post subject: Reply with quote

Man weiss ja nie, vielleicht hatte ein Mexikaner oder so ein gutes Erlebnis in Zürich, und deshalb das Bild? :lol:

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! :wink:
Deinen Posts vonwegen developer usw. (anderer thread hier irgendwo) kann ich aber auch nur zustimmen!
Back to top
View user's profile Send private message
fusel
n00b
n00b


Joined: 24 Apr 2006
Posts: 15

PostPosted: Thu Jun 14, 2007 6:55 am    Post subject: Reply with quote

Mh, wozu schreibe ich euch beiden Schweizern eigentlich auf englisch? :wink:

Gruß aus Hamburg
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Thu Jun 14, 2007 7:57 pm    Post subject: Reply with quote

fusel wrote:
Mh, wozu schreibe ich euch beiden Schweizern eigentlich auf englisch? :wink:

Gruß aus Hamburg
Du bist der GEILSTE!

Grüsse aus der verregneten Schweiz :D
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