My first time with this. I got postfix, mysql, and postfixadmin setup, generally following http://www.campworld.net/thewiki/pmwiki.php/LinuxServersCentOS/Cent6VirtMailServer I used postfixadmin to create my domain then added my first user and got an error: Send Welcome mail: yes Unable to send email! The mailbox has been added to the mailbox table, but none (or only some) of the predefined sub-folders could be created (faxit at test.htt-consult.com) There is nothing under /home/vmail (in postfix/main.cf: virtual_mailbox_base = /home/vmail) Advise on where to start troubleshooting? Perhaps a password or permissions not right?
On Wed, 26 Dec 2012, Robert Moskowitz wrote:> My first time with this. I got postfix, mysql, and postfixadmin setup, > generally following > > http://www.campworld.net/thewiki/pmwiki.php/LinuxServersCentOS/Cent6VirtMailServer > > I used postfixadmin to create my domain then added my first user and got > an error: > > Send Welcome mail: yes > > Unable to send email! > The mailbox has been added to the mailbox table, but none (or only some) > of the predefined sub-folders could be created (faxit at test.htt-consult.com) > > > There is nothing under /home/vmail (in postfix/main.cf: > virtual_mailbox_base = /home/vmail) > > Advise on where to start troubleshooting?The logs, clues if not the actual solution will most likely be found there.> Perhaps a password or permissions not right?Maybe maybe not. There is no way to tell from the information you provide. You have to help yourself before anyone here can help you. Regards, -- Tom me at tdiehl.org Spamtrap address me123 at tdiehl.org
On 12/26/2012 10:41 AM, me at tdiehl.org wrote:> On Wed, 26 Dec 2012, Robert Moskowitz wrote: > >> My first time with this. I got postfix, mysql, and postfixadmin setup, >> generally following >> >> http://www.campworld.net/thewiki/pmwiki.php/LinuxServersCentOS/Cent6VirtMailServer >> >> I used postfixadmin to create my domain then added my first user and got >> an error: >> >> Send Welcome mail: yes >> >> Unable to send email! >> The mailbox has been added to the mailbox table, but none (or only some) >> of the predefined sub-folders could be created (faxit at test.htt-consult.com) >> >> >> There is nothing under /home/vmail (in postfix/main.cf: >> virtual_mailbox_base = /home/vmail) >> >> Advise on where to start troubleshooting? > The logs, clues if not the actual solution will most likely be found there.nothing in /var/log/messages. Nothing in that directory updated at the time of the attempted add. Where else do I look for logs used by postfixadmin and the other related apps?> >> Perhaps a password or permissions not right? > Maybe maybe not. There is no way to tell from the information you provide. > You have to help yourself before anyone here can help you.I did not find anything informative. No logs that I saw being updated. Thus the ask for help where to troubleshoot. I suspect that some common log that is not where I would think to look for was what I need to see.
2012/12/26 Robert Moskowitz <rgm at htt-consult.com>:> My first time with this. I got postfix, mysql, and postfixadmin setup, > generally following > > http://www.campworld.net/thewiki/pmwiki.php/LinuxServersCentOS/Cent6VirtMailServer > > I used postfixadmin to create my domain then added my first user and got > an error: > > Send Welcome mail: yes > > Unable to send email! > The mailbox has been added to the mailbox table, but none (or only some) > of the predefined sub-folders could be created (faxit at test.htt-consult.com) > > > There is nothing under /home/vmail (in postfix/main.cf: > virtual_mailbox_base = /home/vmail) > > Advise on where to start troubleshooting? Perhaps a password or > permissions not right?Maybe permissions of /home/vmail is not correct, so postfix cannot create maildir? -- Eero
On 12/26/2012 11:25 AM, Eero Volotinen wrote:> 2012/12/26 Robert Moskowitz <rgm at htt-consult.com>: >> My first time with this. I got postfix, mysql, and postfixadmin setup, >> generally following >> >> http://www.campworld.net/thewiki/pmwiki.php/LinuxServersCentOS/Cent6VirtMailServer >> >> I used postfixadmin to create my domain then added my first user and got >> an error: >> >> Send Welcome mail: yes >> >> Unable to send email! >> The mailbox has been added to the mailbox table, but none (or only some) >> of the predefined sub-folders could be created (faxit at test.htt-consult.com) >> >> >> There is nothing under /home/vmail (in postfix/main.cf: >> virtual_mailbox_base = /home/vmail) >> >> Advise on where to start troubleshooting? Perhaps a password or >> permissions not right? > Maybe permissions of /home/vmail is not correct, so postfix cannot > create maildir?Here are the commands I used to create vmail account: mkdir /home/vmail chmod 770 /home/vmail useradd -r -u 101 -g mail -d /home/vmail -s /sbin/nologin -c "Virtual mailbox" vmail chown vmail:mail /home/vmail Looking around a bit, there are some log files under /var/lib/mysql/postfix, one timed to the add user attempt. It does not display with cat. Some binary format.
On Wed, 26 Dec 2012, Robert Moskowitz wrote:> > On 12/26/2012 10:41 AM, me at tdiehl.org wrote: >> On Wed, 26 Dec 2012, Robert Moskowitz wrote: >> >>> My first time with this. I got postfix, mysql, and postfixadmin setup, >>> generally following >>> >>> http://www.campworld.net/thewiki/pmwiki.php/LinuxServersCentOS/Cent6VirtMailServer >>> >>> I used postfixadmin to create my domain then added my first user and got >>> an error: >>> >>> Send Welcome mail: yes >>> >>> Unable to send email! >>> The mailbox has been added to the mailbox table, but none (or only some) >>> of the predefined sub-folders could be created >>> (faxit at test.htt-consult.com) >>> >>> >>> There is nothing under /home/vmail (in postfix/main.cf: >>> virtual_mailbox_base = /home/vmail) >>> >>> Advise on where to start troubleshooting? >> The logs, clues if not the actual solution will most likely be found there. > > nothing in /var/log/messages. Nothing in that directory updated at the time > of the attempted add. Where else do I look for logs used by postfixadmin and > the other related apps? > >> >>> Perhaps a password or permissions not right? >> Maybe maybe not. There is no way to tell from the information you provide. >> You have to help yourself before anyone here can help you. > > I did not find anything informative. No logs that I saw being updated. Thus > the ask for help where to troubleshoot. > > I suspect that some common log that is not where I would think to look for > was what I need to see.Nope, no common log!! Just mysql, postfix, http. dovecot and amavis-new logs. Turn up logging. Most likely the answer is there. (hint none of what I suggested logs to /var/log/messages). Keep in mind all pfa is, is a web app. When configured correctly, it knows how to talk to all of the associated components but logging is still to the native logs of each of the respective components. When I am setting up a new instance of pfa I generally turn mysql, dovecot and amavisd-new logging up so that I can see any errors. Running something like tail -F /var/log{messages,maillog,mysqld.log,httpd/*,maillog} should get you enough information for you to be able to see what is going on. Regards, -- Tom me at tdiehl.org Spamtrap address me123 at tdiehl.org
On 12/26/2012 01:21 PM, Eero Volotinen wrote:>>> In fact I either turn everything off, or go through all the prt policy >>> stuff now. >> I added iptable rules for ports 25, 110, 143, 587, 993, 995, & 4190. I >> believe those are all the ports I am using for this (SMTP, IMAP, POP3, & >> SEIVE). Restarted and got the same errors. Were do I find selinux >> messages? >> >> It might simply be password problems, with all the files that have >> passwords buried in them... > you can set selinux to permissive (setenforce 0) mode to test, if this > problem is related to selinux.Permissive allowed me to add a user, but boy did it take a long time! Looks like I have some postfix things to sort out.> if it is related to selinux, you might need something like this: > > setsebool -P httpd_can_network_connect onI will look into this. At the end of the day (when I go production) I want selinux enforcing.> see urls for references: > http://wiki.centos.org/TipsAndTricks/SelinuxBooleans > http://wiki.centos.org/HowTos/SELinuxMore reading.
On 12/26/2012 01:21 PM, Eero Volotinen wrote:>>> In fact I either turn everything off, or go through all the prt policy >>> stuff now. >> I added iptable rules for ports 25, 110, 143, 587, 993, 995, & 4190. I >> believe those are all the ports I am using for this (SMTP, IMAP, POP3, & >> SEIVE). Restarted and got the same errors. Were do I find selinux >> messages? >> >> It might simply be password problems, with all the files that have >> passwords buried in them... > you can set selinux to permissive (setenforce 0) mode to test, if this > problem is related to selinux. > > if it is related to selinux, you might need something like this: > > setsebool -P httpd_can_network_connect onThis did not help. pfa cannot create the file structure for a new user in enforcing mode with this boolean set. Had to go back to permissive.> > see urls for references: > http://wiki.centos.org/TipsAndTricks/SelinuxBooleans > http://wiki.centos.org/HowTos/SELinuxSo far these are not helping. :( But then I am a total lost in the woods with selinux.
2012/12/27 Robert Moskowitz <rgm at htt-consult.com>:> > On 12/26/2012 01:21 PM, Eero Volotinen wrote: >>>> >>>> In fact I either turn everything off, or go through all the prt policy >>>> stuff now. >>> >>> I added iptable rules for ports 25, 110, 143, 587, 993, 995, & 4190. I >>> believe those are all the ports I am using for this (SMTP, IMAP, POP3, & >>> SEIVE). Restarted and got the same errors. Were do I find selinux >>> messages? >>> >>> It might simply be password problems, with all the files that have >>> passwords buried in them... >> >> you can set selinux to permissive (setenforce 0) mode to test, if this >> problem is related to selinux. >> >> if it is related to selinux, you might need something like this: >> >> setsebool -P httpd_can_network_connect on > > > This did not help. pfa cannot create the file structure for a new user in > enforcing mode with this boolean set. Had to go back to permissive.well, you should read this article about debugging selinux issues: http://prefetch.net/blog/index.php/2010/10/30/how-to-debug-selinux-service-issues/ -- Eero