Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 29th June 2012, 13:19
CDesign CDesign is offline
Junior Member
Join Date: Jun 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Virtual Users & Domains, Mail Server CentOS 6.2

Hello there HowToForge Forum Dwellers!, and specifically Falko, thanks for referring me to here for some help on your tutorial.

Im just going to go ahead and copy and paste most of the message I first sent, to here on the forum.

I have been following the tutorial of "Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (CentOS 6.2 x86_64)".
Located here: click me

Everything has been going pretty well, but when I reached the the Fifth Page, I ran into a problem.

The first thing I had issues with was step 13.
I went to:
 yum install perl-Razor-Agent pyzor
and it turns out, there is no pyzor package available for CentOS 64bit..
It seems that many people have asked about this online, but without any answer as to why, or if there is a workaround..
So I just found an RPM for it and installed the RPM with "rpm -ivh". Which seemed to work, it seemed everything was fine and all in the correct directories.

So I continued, chmod'ed fine, but when I came to the next commands:
 su -m amavis -c 'pyzor --homedir /var/spool/amavisd discover'
 su -m amavis -c 'razor-admin -home=/var/spool/amavisd -create'
 su -m amavis -c 'razor-admin -home=/var/spool/amavisd -register
It gave me a couple errors:
 Traceback (most recent call last):
   File "/usr/bin/pyzor", line 8, in <module>
   File "/usr/lib/python2.6/site-packages/pyzor/client.py", line 1022, in run
   File "/usr/lib/python2.6/site-packages/pyzor/client.py", line 180, in run
 OSError: [Errno 13] Permission denied: '/var/spool/amavisd'
So I started to try to debug. I checked out the Python Script on the lines specified and they weren't even the correct lines, nor did it give anything relevant to work off of.

So then I checked out /var/spool/amavisd
It turned out, that it didn't even exist.. Which is strange because I know amavisd is running and installed perfectly fine.

Any thoughts on why this may not exist?

I asked this question on Superuser.com from stack exchange, and unfortunately didn't get a reply.

So since that didn't work, I tried to move on just to get the emailing functionality at least, without the spam/antivirus.
Mainly because, I didn't get any answers, and I am running on a VPS server, and I have quite a limited amount of Memory for me to use, and when the antivirus is running it shoots my RAM usage up nearly 50%. Which is just way too much.. I can really live without the Anti-Virus, as all the Email Clients I have, all have Anti-Viruses on the recieving end, so that shouldn't really matter at the moment. But Spam on the other hand. I really need to prevent spam at least.
I really just want to prevent Spam, and send, recieve email. Simple as that, and preferably as lightweight as possible with the smallest Memory footprint. Plus, the tutorial really appealed to me because of the fact we are able to make Virtual users and domains. Which is GREAT!

So moving on to the next part I had trouble.
At Step 15.

I installed the cyrus-sasl as suggested in the comments at the bottom of the page for that step as well.
But even though everything was running correctly, when I went to run:
 telnet localhost 25
I got:
Trying ::1...
 Connected to localhost.
 Escape character is '^]'.
 220 server1.example.com ESMTP Postfix
as normal,
so I continued:
 ehlo localhost
and I received:
 250-server1.example.com Hello localhost [], pleased to meet you
 250 HELP
As stated in the tutorial, if it shows :
then it is ready for SMTP-AUTH and TLS.
But, unfortunately as shown above, it isn't showing on mine..

For some reason though, in the tutorial it only explains that this "should" work, and not what to do if it doesn't work.
Is there anyway someone wouldn't mind helping me with this please? I would really greatly appreciate it very much.
I also posted this question on Unix & Linux Stack Exchange, but unfortunately there was no answers either... So my only chance really, is the great folks here.

I just don't even know where to start right now. Not sure what I should be looking at, whether I should check certain package installations, error logs, configurations, etc.

I have a pretty good knowledge of Linux, but like I mentioned I just don't know where I should start out to fix this.

Thank you very much everyone.
Please do let me know if this is enough information, or if I should provide anymore or something in particular or something.
Hope we can work this out! Would love to have this working today.

Take Care everyone.

Reply With Quote
Sponsored Links
Old 29th June 2012, 17:31
TiTex TiTex is offline
Senior Member
Join Date: Aug 2011
Location: Cluj-Napoca,Romania
Posts: 125
Thanks: 0
Thanked 18 Times in 17 Posts
Send a message via Skype™ to TiTex

OSError: [Errno 13] Permission denied: '/var/spool/amavisd'
post the output of
ls -l /var/spool/ | grep amavisd

Last edited by TiTex; 29th June 2012 at 17:33.
Reply With Quote
Old 30th June 2012, 01:06
CDesign CDesign is offline
Junior Member
Join Date: Jun 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts


Idk what happened..
There is no output for that at all.

What could that mean?

I can start|stop|restart|etc the amavisd service using:
/etc/init.d/amavisd start

Reply With Quote


centos 6.2, courier, mysql, postfix, squirrelmail

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix/courier/Centos 6 cant send email to external email servers maxtorzito Installation/Configuration 14 7th October 2011 11:56
Virtual Users+Postfix+Courier+CentOS problem telnet localhost 25 stinson HOWTO-Related Questions 11 5th February 2011 14:57
ISPConfig3 mail doesn't work Marr General 6 1st September 2010 10:32
Centos 5.2 + ISPConfig 3 tutorial - Problem with email tanakskool Server Operation 1 3rd June 2009 17:22

All times are GMT +2. The time now is 13:11.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.