Hello Geeks, I resolved it by adding www-data to vchkpw group and changed owner and group of the apache files to vpopmail:vchkpw earlier it was www-data was owner and group. Now i am facing new error "could not update file".
@Thibs I ran this script "/downloads/scripts/qmr_inst_check" and below is the output. ! Couldn't find /var/qmail/supervise! ! /var/qmail/supervise/qmail-send/run is missing ...try: cp /downloads/scripts/service-qmail-send-run /var/qmail/supervise/qmail-send/run ! /service directory is missing ! Couldn't find /var/qmail/control/defaultdelivery ! DatabaseOwner is incorrect in /etc/clamav/freshclam.conf ! LocalSocketGroup is incorrect in /etc/clamav/clamd.conf ! User is incorrect in /etc/clamav/clamd.conf ! /var/qmail/bin/qmailctl is missing ! /usr/bin/qmailctl is missing ...try: ln -s /var/qmail/bin/qmailctl /usr/bin ! /var/qmail/supervise/qmail-send/run file is missing ! /var/qmail/supervise/qmail-send/log/run file is missing ! /var/qmail/supervise/qmail-smtpd/run file is missing ! /var/qmail/supervise/qmail-smtpd/log/run file is missing ! /var/qmail/control/concurrencyincoming is missing ...try: echo 30 >/var/qmail/control/concurrencyincoming ! /var/log/clamav has wrong owner, should be qscand ...try: chown -R qscand:clamav /var/log/clamav ! /var/lib/clamav has wrong owner, should be qscand ...try: chown -R qscand:clamav /var/lib/clamav ! /var/run/clamav has wrong owner, should be qscand ...try: chown -R qscand:clamav /var/run/clamav ! /service/qmail-send is missing ...try: ln -s /var/qmail/service/qmail-send /service/qmail-send ! /service/qmail-smtpd is missing ...try: ln -s /var/qmail/service/qmail-smtpd /service/qmail-smtpd ! /etc/tcp.smtp is missing ...try: echo '127.:allow,RELAYCLIENT=""' >>/etc/tcp.smtp ! /etc/tcp.smtp.cdb is missing ...try: /var/qmail/bin/qmailctl cdb ! Alias for root is missing ...try: echo me >/var/qmail/alias/.qmail-root root@mail:~# /downloads/scripts/qmr_inst_check ! Couldn't find /var/qmail/supervise! ! /var/qmail/supervise/qmail-send/run is missing ...try: cp /downloads/scripts/service-qmail-send-run /var/qmail/supervise/qmail-send/run ! /service directory is missing ! Couldn't find /var/qmail/control/defaultdelivery ! DatabaseOwner is incorrect in /etc/clamav/freshclam.conf ! LocalSocketGroup is incorrect in /etc/clamav/clamd.conf ! User is incorrect in /etc/clamav/clamd.conf ! /var/qmail/bin/qmailctl is missing ! /usr/bin/qmailctl is missing ...try: ln -s /var/qmail/bin/qmailctl /usr/bin ! /var/qmail/supervise/qmail-send/run file is missing ! /var/qmail/supervise/qmail-send/log/run file is missing ! /var/qmail/supervise/qmail-smtpd/run file is missing ! /var/qmail/supervise/qmail-smtpd/log/run file is missing ! /var/qmail/control/concurrencyincoming is missing ...try: echo 30 >/var/qmail/control/concurrencyincoming ! /var/log/clamav has wrong owner, should be qscand ...try: chown -R qscand:clamav /var/log/clamav ! /var/lib/clamav has wrong owner, should be qscand ...try: chown -R qscand:clamav /var/lib/clamav ! /var/run/clamav has wrong owner, should be qscand ...try: chown -R qscand:clamav /var/run/clamav ! /service/qmail-send is missing ...try: ln -s /var/qmail/service/qmail-send /service/qmail-send ! /service/qmail-smtpd is missing ...try: ln -s /var/qmail/service/qmail-smtpd /service/qmail-smtpd ! /etc/tcp.smtp is missing ...try: echo '127.:allow,RELAYCLIENT=""' >>/etc/tcp.smtp ! /etc/tcp.smtp.cdb is missing ...try: /var/qmail/bin/qmailctl cdb ! Alias for root is missing ...try: echo me >/var/qmail/alias/.qmail-root ! Alias for postmaster is missing ...try: echo me >/var/qmail/alias/.qmail-postmaster ! Alias for mailer-daemon is missing ...try: echo me >/var/qmail/alias/.qmail-mailer-daemon ! Sendmail is still running ...try: /init.d/sendmail stop Regards, Swaroop Kundeti. On Thu, May 16, 2013 at 7:01 PM, Thibault Richard <th...@thibs.com> wrote: > Hello,**** > > ** ** > > I’ve checked on my own install … it’s indeed the right permissions**** > > ** ** > > drwxrwx--- 9 vpopmail vchkpw 4.0K Feb 21 2012 vpopmail**** > > ** ** > > With the command “*ls -lah /home/vpopmail/*” you should have**** > > ** ** > > drwx------ 150 vpopmail vchkpw 4.0K Apr 10 16:29 domains**** > > ** ** > > If you have at least one working domain it should be **** > > ** ** > > *ls -lah /home/vpopmail/domains* > > ** ** > > drwx------ 7 vpopmail vchkpw 4.0K Jul 29 2012 thibs.com**** > > ** ** > > ** ** > > Normally the vpopmail user should look like this**** > > ** ** > > *grep vpopmail /etc/passwd* > > vpopmail:x:89:89:Vpopmail (virtual domains) > user:/home/vpopmail:/usr/sbin/nologin**** > > ** ** > > How do you try to create the domain ? **** > > ** ** > > By command line you should use**** > > ** ** > > */home/vpopmail/bin/vadddomain test.com username* > > ** ** > > As it seems you are using my guide, could you please do :**** > > ** ** > > *chmod +x /downloads/scripts/qmr_inst_check > /downloads/scripts/qmr_inst_check* > > ** ** > > and tell me the result**** > > ** ** > > ** ** > > Best Regards**** > > ** ** > > ** ** > > Thibault a.k.a Thibs**** > > ** ** > > *From:* swaroop kumar [mailto:swaroopk...@gmail.com] > *Sent:* jeudi 16 mai 2013 14:23 > *To:* vchkpw@inter7.com > *Subject:* Re: [vchkpw] [SPAM] Re: [vchkpw] [SPAM] Error: Unable to chdir > to vpopmail/domains/domain directory**** > > ** ** > > Hi,**** > > Permissions seems to be ok. > > drwxrwx--- 8 vpopmail vchkpw 4096 May 16 13:56 vpopmail**** > > Regards, > Swaroop.**** > > ** ** > > On Thu, May 16, 2013 at 5:50 PM, Todor Petkov <z...@online.bg> wrote:**** > > On 16/05/2013 03:14 PM, swaroop kumar wrote:**** > > Hi All, > > I am switching my mail server from sendmail to qmail, currently > installing qmail in debian and i am following this link**** > > http://qmailrocks.thibs.com/ [1]**** > > > > I Have a problem in creating domains using vpopmail, below is the > error thrown when i am trying to create a domain. > > "Unable to chdir to vpopmail/domains/domain directory" > > Can any one suggest me to overcome this, quick response is highly > appreciated. > > Thanks in Advance. > > > Regards, > Swaroop Kundeti > **** > > Links: > ------ > [1] http://qmailrocks.thibs.com/**** > > > > Hi, > > check the directory permissions. ~vpopmail and below must be owned by the > vpopmail user. > > > Regards, > > > > > **** > > > > > -- **** > > Sincerely, > -- > Swaroop Kundeti. > Project Engineer. > Virtual-Labs. > IIIT - Gachibowli. > Hyderabad. > +91-9866221131.**** > > **** > > !DSPAM:5194bb8934125324512510!