Thread: [Postfixadmin-devel] Create folder when adding new domain
Brought to you by:
christian_boltz,
gingerdog
From: Matt R. <li...@ma...> - 2008-03-13 23:56:08
|
Hello, I am using PostfixAdmin (SVN#311 trunk), and today I added my first new domain to my setup using PostfixAdmin. The adding of the domain went fine but when I tried to add the first mailbox Postfixadmin told me that the email address was invalided. knowing that the address was fine I started looking around. My folder structure is such that each domain is located in it's own folder, ie. /var/spool/mail/example1.com/ /var/spool/mail/example2.com/ /var/spool/mail/example3.com/ But 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. Is there a flag I need to flip somewhere or should I be looking at postfix? Thanks -Matt |
From: David G. <da...@co...> - 2008-03-14 08:55:42
|
Matt Rude wrote : > Hello, > I am using PostfixAdmin (SVN#311 trunk), and today I added my first new > domain to my setup using PostfixAdmin. The adding of the domain went > fine but when I tried to add the first mailbox Postfixadmin told me that > the email address was invalided. knowing that the address was fine I > started looking around. My folder structure is such that each domain is > located in it's own folder, ie. > > /var/spool/mail/example1.com/ > /var/spool/mail/example2.com/ > /var/spool/mail/example3.com/ > > But 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. > > Is there a flag I need to flip somewhere or should I be looking at postfix? > I suspect the problem would be that Postfixadmin wouldn't/couldn't have permission on it's own to create the domain folder (just like it can't/doesn't create mailboxes) Is there a script to run via sudo or anything to accomplish creation of the domain folder? David. -- David Goodwin [ david at codepoets dot co dot uk ] [ http://www.codepoets.co.uk ] |
From: <li...@ma...> - 2008-03-14 16:33:01
|
> Matt Rude wrote : >> Hello, >> I am using PostfixAdmin (SVN#311 trunk), and today I added my first new >> domain to my setup using PostfixAdmin. The adding of the domain went >> fine but when I tried to add the first mailbox Postfixadmin told me that >> the email address was invalided. knowing that the address was fine I >> started looking around. My folder structure is such that each domain is >> located in it's own folder, ie. >> >> /var/spool/mail/example1.com/ >> /var/spool/mail/example2.com/ >> /var/spool/mail/example3.com/ >> >> But 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. >> >> Is there a flag I need to flip somewhere or should I be looking at >> postfix? >> > > I suspect the problem would be that Postfixadmin wouldn't/couldn't have > permission on it's own to create the domain folder (just like it > can't/doesn't create mailboxes) > > Is there a script to run via sudo or anything to accomplish creation of > the domain folder? > > David. > 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? -Matt |
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] |