I try to get PA to work, but there is a problem with the mailbox paths :
$CONF = 'NO';
$CONF = 'YES';
should result in directories like /var/vmail/user@domain.tld, that´s what I want.
But reality : domain.tld/user
Already restarted Psotfix, MySQL, Apache, Dovecot and rebooted the system, but PA does not recognise any changes in
config.inc.php (identical in /etc/postfixadmin and /usr/share/postfixadmin)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The changed values in $CONF and $CONF are only used for new mailboxes that you create after the $CONF change.
The maildir of existing mailboxes won't be changed when you change $CONF - otherwise those mailboxes would get broken (because PostfixAdmin can't rename the on-disk directories).
If your problem also applies to newly created mailboxes, please show the database row of this mailbox from the mailbox table (except the password of course).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Just tries again, but it still does not work.
Section of config.inc.php :
// Mailboxes
// If you want to store the mailboxes per domain set this to 'YES'.
// Examples:
// YES: /usr/local/virtual/domain.tld/username@domain.tld
// NO: /usr/local/virtual/username@domain.tld
$CONF['domain_path'] = 'NO';
// If you don't want to have the domain in your mailbox set this to 'NO'.
// Examples:
// YES: /usr/local/virtual/domain.tld/username@domain.tld
// NO: /usr/local/virtual/domain.tld/username
// Note: If $CONF['domain_path'] is set to NO, this setting will be forced to YES.
$CONF['domain_in_mailbox'] = 'YES';
// If you want to define your own function to generate a maildir path set this to the name of the function.
// Notes:
// - this configuration directive will override both domain_path and domain_in_mailbox
// - the maildir_name_hook() function example is present below, commented out
// - if the function does not exist the program will default to the above domain_path and domain_in_mailbox settings
$CONF['maildir_name_hook'] = 'NO';
Indeed, having the domain in the maildir twice (in your example "wayne10@test.padmin.<mydomain>.de@test.padmin.<mydomain>.de") looks really strange.
It's good to know that you can workaround with a hook function, but that doesn't solve the problem ;-)
Unfortunately I'm unable to reproduce the bug (with both 2.3.5 and SVN trunk). Reading the code also didn't bring up something that could cause this issue. In other words: I have no idea what happens in your case, which makes it quite difficult to reproduce and fix this bug :-(
Which version do you use exactly?
Did you install from the tarball, deb, rpm?
Which $CONF settings did you change? (a diff against the original config.inc.php will answer this, and BTW, if you move your settings to config.local.php, updates will be easier)
Just to be sure you aren't doing something strange - can you please describe step by step what you enter/select in the create-mailbox form?
If nothing else helps, the good old way of adding some debug output (or error_log()ing) in create-mailbox.php might bring some insights. You should especially have a look at $maildir.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hello world !!!
I try to get PA to work, but there is a problem with the mailbox paths :
$CONF = 'NO';
$CONF = 'YES';
should result in directories like /var/vmail/user@domain.tld, that´s what I want.
But reality : domain.tld/user
Already restarted Psotfix, MySQL, Apache, Dovecot and rebooted the system, but PA does not recognise any changes in
config.inc.php (identical in /etc/postfixadmin and /usr/share/postfixadmin)
The changed values in $CONF and $CONF are only used for new mailboxes that you create after the $CONF change.
The maildir of existing mailboxes won't be changed when you change $CONF - otherwise those mailboxes would get broken (because PostfixAdmin can't rename the on-disk directories).
If your problem also applies to newly created mailboxes, please show the database row of this mailbox from the mailbox table (except the password of course).
Just tries again, but it still does not work.
Section of config.inc.php :
Row in DB :
Path to generated Mailbox :
For <mydomain> I have the real entry, of course.
The 'maildir' in the DB looks a bit weird and does not fit the real value.
Solution is a bit closer now:
Changed config.inc.php to use maildir_name_hook function.
Now I get the correct maildir in the DB.
The directories are created in the same form as mentioned above.
Still need help on that.
Indeed, having the domain in the maildir twice (in your example "wayne10@test.padmin.<mydomain>.de@test.padmin.<mydomain>.de") looks really strange.
It's good to know that you can workaround with a hook function, but that doesn't solve the problem ;-)
Unfortunately I'm unable to reproduce the bug (with both 2.3.5 and SVN trunk). Reading the code also didn't bring up something that could cause this issue. In other words: I have no idea what happens in your case, which makes it quite difficult to reproduce and fix this bug :-(
Which version do you use exactly?
Did you install from the tarball, deb, rpm?
Which $CONF settings did you change? (a diff against the original config.inc.php will answer this, and BTW, if you move your settings to config.local.php, updates will be easier)
Just to be sure you aren't doing something strange - can you please describe step by step what you enter/select in the create-mailbox form?
If nothing else helps, the good old way of adding some debug output (or error_log()ing) in create-mailbox.php might bring some insights. You should especially have a look at $maildir.
Step by step :
Benutzername: wayne26
Passwort: wayne
Passwort (nochmal): wayne
Name: Voller Name wayne
Quota: 1000
Aktiv: check
Mailbox anlegen: check
Version is now 2.3.5 (latest version) was 2.3.1 from deb-package.
this minor changes should not confuse PA.