Austin Einter
2013-Mar-13 15:03 UTC
[CentOS] Postfix (Roundcube client) sends mail, but not able to receive
Dear All Recently I just setup postfix, dovecot, roundcube etc in a dedicated server.>From roundcuble, I am able to send mail to my gmail account.But from my gmail account, when sent mail to my mail id, that I setup recently, I do not see that email in roundcuble inbox. Neither that mail bounced back in gmail. Not sure, how do I debug this. Kindly let me know how should I proceed to fix this issue. Thanks Austin
Les Mikesell
2013-Mar-13 16:22 UTC
[CentOS] Postfix (Roundcube client) sends mail, but not able to receive
On Wed, Mar 13, 2013 at 10:03 AM, Austin Einter <austin.einter at gmail.com> wrote:> Dear All > Recently I just setup postfix, dovecot, roundcube etc in a dedicated server. > > >From roundcuble, I am able to send mail to my gmail account. > > But from my gmail account, when sent mail to my mail id, that I setup > recently, I do not see that email in roundcuble inbox. Neither that mail > bounced back in gmail. Not sure, how do I debug this. > > Kindly let me know how should I proceed to fix this issue.First look in your posftix log to see if there has been an attempt to deliver it. If it hasn't gotten that far, make sure that your DNS MX record is visible to the rest of the world and also the A record for the name in the MX. Then check that there are no firewalls blocking port 25 either from the internet service provider or your router, or your host. These are easiest if you have some outside account where you can: dig -t MX your_domain.com then dig name_of_MX_host then telnet IP_address 25 and you should get an SMTP ready prompt from your postfix. If your domain name did not resolve in DNS at all, gmail should have rejected it immediately, but it may resolve to the wrong address or the connection may be blocked somewhere and it would retry for a while. -- Les Mikesell lesmikesell at gmail.com
Austin Einter
2013-Mar-14 02:47 UTC
[CentOS] Postfix (Roundcube client) sends mail, but not able to receive
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 at 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 at gmail.com>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 at netcloudjobs.com>, 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 at netcloudjobs.com>, 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 at gmail.com>, 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 at htt-consult.com>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 at netcloudjobs.com>, 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. >> >> >> >
Austin Einter
2013-Mar-14 04:33 UTC
[CentOS] Postfix (Roundcube client) sends mail, but not able to receive
Hi Les Mikesell The rpm installed in my m/c is *amavisd-new-2.6.4-2.el6.noarch*. I believe it is from epel (I have epel repo enabled). Is it incompatible? Regards Austin On Thu, Mar 14, 2013 at 9:38 AM, Les Mikesell <lesmikesell at gmail.com> wrote:> On Wed, Mar 13, 2013 at 10:11 PM, Austin Einter <austin.einter at gmail.com> > wrote: > > I hope this comes from perl-mailtools package. > > It was installed using yum. > > > > I just searched MIME/Header.pm is there but in a different path. > > > > In my system, MIME/Header.pm is present in path > > /usr/lib/perl5/vendor_perl/5.8.5/Mail/Header.pm > > > > Looks amivsd is searching at below paths > > > > */usr/local/lib64/perl5 > > /usr/local/share/perl5 > > /usr/lib64/perl5/vendor_perl > > /usr/share/perl5/vendor_perl > > /usr/lib64/perl5 /usr/share/perl5 > > > > * > > How can I instruct amivsd to look at path > /usr/lib/perl5/vendor_perl/5.8.5 > > It should already know where to look if you installed it via yum and > let it pull in the dependencies. Is this the amavisd-new package from > EPEL? > > -- > Les Mikesell > lesmikesell at gmail.com > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >
Les Mikesell
2013-Mar-14 05:15 UTC
[CentOS] Postfix (Roundcube client) sends mail, but not able to receive
On Wed, Mar 13, 2013 at 11:33 PM, Austin Einter <austin.einter at gmail.com> wrote:> Hi Les Mikesell > The rpm installed in my m/c is *amavisd-new-2.6.4-2.el6.noarch*. > > I believe it is from epel (I have epel repo enabled). > > > Is it incompatible?An unmodified version seems to start OK. Are you sure you have the 64-bit versions of perl and related packages installed? rpm -q --qf "%{n}-%{version}.%{arch}\n" perl -- Les Mikesell lesmikesell at gmail.com
Austin Einter
2013-Mar-14 05:19 UTC
[CentOS] Postfix (Roundcube client) sends mail, but not able to receive
perl-5.10.1.x86_64 This is the output of command "rpm -q --qf "%{n}-%{version}.%{arch}\n" perl". So must be 64 bit compatible one. should I uninstall this rpm and reinstall again regards austin On Thu, Mar 14, 2013 at 10:45 AM, Les Mikesell <lesmikesell at gmail.com>wrote:> On Wed, Mar 13, 2013 at 11:33 PM, Austin Einter <austin.einter at gmail.com> > wrote: > > Hi Les Mikesell > > The rpm installed in my m/c is *amavisd-new-2.6.4-2.el6.noarch*. > > > > I believe it is from epel (I have epel repo enabled). > > > > > > Is it incompatible? > > An unmodified version seems to start OK. Are you sure you have the > 64-bit versions of perl and related packages installed? > rpm -q --qf "%{n}-%{version}.%{arch}\n" perl > > -- > Les Mikesell > lesmikesell at gmail.com > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >
Les Mikesell
2013-Mar-14 05:36 UTC
[CentOS] Postfix (Roundcube client) sends mail, but not able to receive
On Thu, Mar 14, 2013 at 12:19 AM, Austin Einter <austin.einter at gmail.com> wrote:> perl-5.10.1.x86_64 > > This is the output of command "rpm -q --qf "%{n}-%{version}.%{arch}\n" > perl". > > So must be 64 bit compatible one. > > should I uninstall this rpm and reinstall againSo how did something get installed at: /usr/lib/perl5/vendor_perl/5.8.5/Mail/Header.pm? If it is from a package, rpm -q --whatprovides /usr/lib/perl5/vendor_perl/5.8.5/Mail/Header.pm should tell you. Try to install the right version of that. -- Les Mikesell lesmikesell at gmail.com