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@gmail.comwrote:
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@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@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@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@htt-consult.comwrote:
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@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.
On Wed, Mar 13, 2013 at 9:47 PM, Austin Einter austin.einter@gmail.com wrote:
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:
That sounds like you installed something that wasn't rpm-packaged (why?) and you are missing dependencies.
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
Many thanks for great support.
-Austin
On Thu, Mar 14, 2013 at 8:28 AM, Les Mikesell lesmikesell@gmail.com wrote:
On Wed, Mar 13, 2013 at 9:47 PM, Austin Einter austin.einter@gmail.com wrote:
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:
That sounds like you installed something that wasn't rpm-packaged (why?) and you are missing dependencies.
-- Les Mikesell lesmikesell@gmail.com _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Wed, Mar 13, 2013 at 10:11 PM, Austin Einter austin.einter@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?
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@gmail.com wrote:
On Wed, Mar 13, 2013 at 10:11 PM, Austin Einter austin.einter@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@gmail.com _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Wed, Mar 13, 2013 at 11:33 PM, Austin Einter austin.einter@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
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@gmail.comwrote:
On Wed, Mar 13, 2013 at 11:33 PM, Austin Einter austin.einter@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@gmail.com _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Thu, Mar 14, 2013 at 12:19 AM, Austin Einter austin.einter@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 again
So 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.
On 03/14/2013 12:33 AM, Austin Einter 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?
If you ARE using the amavisd from epel, you should follow the instructions from:
http://wiki.centos.org/HowTos/Amavisd
not
http://campworld.net/thewiki/pmwiki.php/LinuxServersCentOS/Cent6VirtMailServ...
as it uses rpmfusion, if I recall right. But definitely not epel. Part of the reason I did not follow its anti-spam portion.
The install should have been:
yum install amavisd-new clamav clamav-devel clamd spamassassin
Then there are group permission problems. I have entered a bug report for epel on this: 906396
You need to:
gpasswd -a clam amavis chkconfig clamd on chkconfig amavisd on
Then there are some specific run directories that have to match. I am in the Orlando airport and they are blocking my SSH back to my server to get the correct changes but my old notes with me say something to the effect:
in /etc/amavisd/amavisd.conf change .pid to match in /etc/clamd.conf But I can't get to the exact info until I get home this afternoon.
Then the var directory is not created by the rpm. You need to:
cd /var/spool/amavisd mkdir var chown amavis:amavis var chmod 700 var
Though one follow soujourner said 750 for the whole tree.
Finally:
sa-update service amavisd start service clamd start chkconfig amavisd on
Then test with:
telnet localhost 10024 ehlo localhost quit
telnet localhost 10025 ehlo localhost quit
postconf -e 'content_filter=amavisfeed:[127.0.0.1]:10024'
cd /usr/share/doc/amavisd-new-2.6.4/test-messages perl -pe 's/./chr(ord($&)^255)/sge' <sample.tar.gz.compl | zcat | tar xvf -
And test with:
sendmail -i user@domain.com < sample-virus-simple.txt sendmail -i user@domain.com < sample-spam-GTUBE-junk.txt
Check maillog to see what is happening. Depending on your amavisd.conf you may be dropping these or tagging them, but letting them go through.
I really need to publish MY howto. But only after I go live in about a month...