Looks I did not start amavisd service. Thats why probably connection to 127.0.0.1:10024 is being refused. I tried starting amavisd service. Gets bunch of erropr as below. *[root@ip-173-201-189-43 postfix]# service amavisd restart Shutting down amavisd: fetch_modules: error loading required module MIME/Head.pm: Can't locate Mail/Header.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /usr/share/perl5/MIME/Head.pm line 120. BEGIN failed--compilation aborted at /usr/share/perl5/MIME/Head.pm line 120. Compilation failed in require at /usr/sbin/amavisd line 197. fetch_modules: error loading required module MIME/Entity.pm: Can't locate Mail/Internet.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /usr/share/perl5/MIME/Entity.pm line 229. BEGIN failed--compilation aborted at /usr/share/perl5/MIME/Entity.pm line 229. Compilation failed in require at /usr/sbin/amavisd line 197. fetch_modules: error loading required module MIME/Parser.pm: Attempt to reload MIME/Head.pm aborted. Compilation failed in require at /usr/share/perl5/MIME/Parser.pm line 143. BEGIN failed--compilation aborted at /usr/share/perl5/MIME/Parser.pm line 143. Compilation failed in require at /usr/sbin/amavisd line 197. ERROR: MISSING REQUIRED BASIC MODULES: MIME::Head MIME::Entity MIME::Parser BEGIN failed--compilation aborted at /usr/sbin/amavisd line 237. [FAILED] Starting amavisd: fetch_modules: error loading required module MIME/Head.pm: Can't locate Mail/Header.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /usr/share/perl5/MIME/Head.pm line 120. BEGIN failed--compilation aborted at /usr/share/perl5/MIME/Head.pm line 120. Compilation failed in require at /usr/sbin/amavisd line 197. fetch_modules: error loading required module MIME/Entity.pm: Can't locate Mail/Internet.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /usr/share/perl5/MIME/Entity.pm line 229. BEGIN failed--compilation aborted at /usr/share/perl5/MIME/Entity.pm line 229. Compilation failed in require at /usr/sbin/amavisd line 197. fetch_modules: error loading required module MIME/Parser.pm: Attempt to reload MIME/Head.pm aborted. Compilation failed in require at /usr/share/perl5/MIME/Parser.pm line 143. BEGIN failed--compilation aborted at /usr/share/perl5/MIME/Parser.pm line 143. Compilation failed in require at /usr/sbin/amavisd line 197. ERROR: MISSING REQUIRED BASIC MODULES: MIME::Head MIME::Entity MIME::ParserBEGIN failed--compilation aborted at /usr/sbin/amavisd line 237. [FAILED] * On Thu, Mar 14, 2013 at 8:11 AM, Austin Einter <austin.einter@xxxxxxxxx>wrote: > DearAll > > I was able to resolve error with your kind help, specially Robert's > pointers helped a lot. > > > *Mar 13 16:35:36 ip-173-201-189-43 dovecot: dict: Error: mysql: Connect > failed to localhost (postfix): Access denied for user 'postfix'@'localhost' > (using password: YES) - waiting for 1 seconds before retry > Mar 13 16:35:36 ip-173-201-189-43 dovecot: dict: Error: dict sql lookup > failed: Not connected to database > > * > By modifying password in file dovecot-dict-quota.conf. > > Then when I send mail, roundcube says message sent, but message is not > recvd at gmail. > > From mail log, I see > > Mar 13 19:32:52 ip-173-201-189-43 postfix/qmgr[3170]: 9CCE838A0C4A: from=< > bhanu@xxxxxxxxxxxxxxxx>, size=593, nrcpt=1 (queue active) > Mar 13 19:32:52 ip-173-201-189-43 postfix/smtp[3196]: connect to > 127.0.0.1[127.0.0.1]:10024: Connection refused > Mar 13 19:32:52 ip-173-201-189-43 dovecot: imap-login: Login: user=< > bhanu@xxxxxxxxxxxxxxxx>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, > mpid=3199, secured > Mar 13 19:32:52 ip-173-201-189-43 postfix/smtp[3196]: 9CCE838A0C4A: to=< > austin.einter@xxxxxxxxx>, relay=none, delay=0.08, delays=0.08/0.01/0/0, > dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: > Connection refused) > > Looks connection to 127.0.0.1:10024 is being refused. > > Any idea, what needs to be done here... > > -Austin > > > > > > > > > On Thu, Mar 14, 2013 at 6:32 AM, Robert Moskowitz <rgm@xxxxxxxxxxxxxxx>wrote: > >> >> On 03/13/2013 08:31 PM, Austin Einter wrote: >> >> Dear Robert >> It looks dovecot could not connect to mysql. The error log in maillog >> says >> >> >> Have you done the testing as shown in: >> http://wiki.dovecot.org/TestInstallation >> ? >> >> One of the tests is to log in as a user, and that should require dovecot >> to access mysql. >> >> >> >> *Mar 13 16:35:36 ip-173-201-189-43 dovecot: imap-login: Login: user=< >> bhanu@xxxxxxxxxxxxxxxx>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, >> mpid=3069, secured >> Mar 13 16:35:36 ip-173-201-189-43 dovecot: dict: Error: mysql: Connect >> failed to localhost (postfix): Access denied for user 'postfix'@'localhost' >> (using password: YES) - waiting for 1 seconds before retry >> Mar 13 16:35:36 ip-173-201-189-43 dovecot: dict: Error: dict sql lookup >> failed: Not connected to database >> * >> >> >> At this point, you should join the dovecot list and get help there. but... >> >> >> >> I checked dovecot-mysql config file. The name of db, user and password >> are correct. Using those user/password I can connect to mysql. >> >> >> Where you careful that the 2 queries are a single long line? The howto, >> does warn about this, but your editor may have wrapped these lines. >> >> >> Not sure why dovecot is not able to connect... , can there be any >> permission issue. >> >> >> Not likely. But as Harald indicates, I am just a little more experienced >> than you. There are specific product lists that you really should join. >> >> >> > _______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos