Re: [Postfixadmin-devel] Create folder when adding new domain
Brought to you by:
christian_boltz,
gingerdog
From: Christian B. <pos...@cb...> - 2008-03-15 23:07:48
|
Hello, Am Freitag, 14. März 2008 schrieb li...@ma...: > > Matt Rude wrote : > >> ... when I tried to add the first mailbox > >> Postfixadmin told me that the email address was invalided. This might also happen if the nameserver can't resolve the domain. Unfortunately we miss a better error message in this case. You can disable this lookup by setting $CONF['emailcheck_resolve_domain']='NO'; in config.inc.php > >> ... PostfixAdmin did not create a folder for the new domain during > >> the "Add Domain" process or when I tried to add the mailbox. Once > >> i created the folder PostfixAdmin was happy and added all the > >> mailboxes with no problems and they are now receiving email. If you use postfix (without maildrop etc.) to deliver the mail to the mailbox, postfix should create all needed directories. If it doesn't, check if it has write permissions and/or complains in the logfile. If you use maildrop, you'll need some lines in maildroprc to create the directories. (Available on request.) > I was hoping that I could use something like the > "postfix-domain-postdelete" script but I can't figure out how to add > that to PA. > > Is there someplace to put a script that would add the folders for me > as Im creating the domain? You can use $CONF['mailbox_postcreation_script']. Yes, it runs too often (on every mailbox creation instead of domain creation), but this shouldn't be a problem. ADDITIONS/postfixadmin-mailbox-postcreation.sh is an example script. Regards, Christian Boltz -- > David, bitte wegschauen... Nein David, das hast Du nicht gesehen. Es > ist alles OK, David... Ganz ruhig... :-) *augen wieder aufmach* *haende von den ohren nehm* Haeh? Was? Hab ich was verpasst? [> Thomas Hertweck und David Haller in suse-linux] |