[CentOS] How to add ClamAV to Postfix?
I sent this email to the Rehdat list, but I thought the Centos users might be more inclined to have the command-line solution I am looking for, so I thought I would post it here too: I would like to add anti-virus to my email server. Currently I have Postfix, Dovecot, PHP, and Squirrelmail installed. The users only use Squirrelmail to access mail. I am looking for command-line instructions, since I have limited access to the server itself (I am using SSH). ClamAV seems to be most common linux AV package, so I assume I should be using that. I'm not sure if I should be using Amavisd or MailScanner, or neither. I believe I need one of them to act as the glue that connects Postfix to ClamAV. Apparently none of these packages (Amavisd/MailScanner/ClamAV) are part of RHEL5, so I have to get the RPMS from somewhere else. Is there some standard way of adding AV to Postfix? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] How to add ClamAV to Postfix?
On Sat, Mar 21, 2009 at 1:40 PM, Bill Campbell wrote: > On Sat, Mar 21, 2009, Xn Nooby wrote: >>I sent this email to the Rehdat list, but I thought the Centos users >>might be more inclined to have the command-line solution I am looking >>for, so I thought I would post it here too: >> >>I would like to add anti-virus to my email server. Currently I have >>Postfix, Dovecot, PHP, and Squirrelmail installed. The users only use >>Squirrelmail to access mail. I am looking for command-line >>instructions, since I have limited access to the server itself (I am >>using SSH). ClamAV seems to be most common linux AV package, so I >>assume I should be using that. >> >>I'm not sure if I should be using Amavisd or MailScanner, or neither. >>I believe I need one of them to act as the glue that connects Postfix >>to ClamAV. Apparently none of these packages >>(Amavisd/MailScanner/ClamAV) are part of RHEL5, so I have to get the >>RPMS from somewhere else. > > We use amavisd-new with clamav. > >>Is there some standard way of adding AV to Postfix? > > This is well documented at http://www.postfix.org/ > > Bill > -- > INTERNET: b...@celestial.com Bill Campbell; Celestial Software LLC > URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way > Voice: (206) 236-1676 Mercer Island, WA 98040-0820 > Fax: (206) 232-9186 > > "The most foolish mistake we could possibly make would be to allow the > subject races to possess arms. History shows that all conquerors who have > allowed the subject races to carry arms have prepared their own downfall by > so doing. Indeed, I would go so far as to say that the supply of arms to > the underdogs is a sine qua non for the overthrow of any sovereignty." -- > Adolf Hitler (H.R. Trevor-Roper, Hitler's Table Talks 1941-1944) > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > Hi Bill, I think the only ClamAV link on the Postfix site ultimately resolves to here: http://www.postfixvirtual.net Are these instructions you are referring to? I can try those instrutions, but I had been scared off by the authors initial disclaimer: "Dear Reader, this howto hasn't been updated since 2006 and has some parts which are missing. You may end up installing a non-working postfix but I believe it can help you to guide through the installation steps if you know what you are doing:)" Or perhaps there was another link from postfix.org? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] How to add ClamAV to Postfix?
On Sat, Mar 21, 2009 at 2:06 PM, Craig White wrote: > On Sat, 2009-03-21 at 13:37 -0400, Xn Nooby wrote: >> I sent this email to the Rehdat list, but I thought the Centos users >> might be more inclined to have the command-line solution I am looking >> for, so I thought I would post it here too: >> >> I would like to add anti-virus to my email server. Currently I have >> Postfix, Dovecot, PHP, and Squirrelmail installed. The users only use >> Squirrelmail to access mail. I am looking for command-line >> instructions, since I have limited access to the server itself (I am >> using SSH). ClamAV seems to be most common linux AV package, so I >> assume I should be using that. >> >> I'm not sure if I should be using Amavisd or MailScanner, or neither. >> I believe I need one of them to act as the glue that connects Postfix >> to ClamAV. Apparently none of these packages >> (Amavisd/MailScanner/ClamAV) are part of RHEL5, so I have to get the >> RPMS from somewhere else. >> >> Is there some standard way of adding AV to Postfix? > > clearly the best way is to add a wrapper program like amavisd-new or > MailScanner which handles spamassassin and which ever combination of > anti-virus programs you use. > > The postfix list and primary author, Wietse will tell you flat out not > to use MailScanner (there's something personal between Wietse and > Julian, the author of MailScanner) but I found amavisd-new to be a PITA > and just love MailScanner myself and have never had issues with > integrating MailScanner into Postfix mail queue. > > rpmforge has clamav/clamdb packages. MailScanner is available from > http://www.mailscanner.info > > Craig > > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > Hi Craig, In one of my failed attempts before I posted, I had gotten those RPMs from rpmforge, perhaps I was on the right track. I was following these instructions: http://www.linuxmail.info/how-to-install-clam-antivirus-centos-5 I will install install ClamAV from those RPM's, make a backup using CloneZilla, then I will only have to get either MailScanner or Amavis to work. thanks! ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] How to add ClamAV to Postfix?
On Sat, Mar 21, 2009 at 2:06 PM, Craig White wrote: > On Sat, 2009-03-21 at 13:37 -0400, Xn Nooby wrote: >> I sent this email to the Rehdat list, but I thought the Centos users >> might be more inclined to have the command-line solution I am looking >> for, so I thought I would post it here too: >> >> I would like to add anti-virus to my email server. Currently I have >> Postfix, Dovecot, PHP, and Squirrelmail installed. The users only use >> Squirrelmail to access mail. I am looking for command-line >> instructions, since I have limited access to the server itself (I am >> using SSH). ClamAV seems to be most common linux AV package, so I >> assume I should be using that. >> >> I'm not sure if I should be using Amavisd or MailScanner, or neither. >> I believe I need one of them to act as the glue that connects Postfix >> to ClamAV. Apparently none of these packages >> (Amavisd/MailScanner/ClamAV) are part of RHEL5, so I have to get the >> RPMS from somewhere else. >> >> Is there some standard way of adding AV to Postfix? > > clearly the best way is to add a wrapper program like amavisd-new or > MailScanner which handles spamassassin and which ever combination of > anti-virus programs you use. > > The postfix list and primary author, Wietse will tell you flat out not > to use MailScanner (there's something personal between Wietse and > Julian, the author of MailScanner) but I found amavisd-new to be a PITA > and just love MailScanner myself and have never had issues with > integrating MailScanner into Postfix mail queue. > > rpmforge has clamav/clamdb packages. MailScanner is available from > http://www.mailscanner.info > > Craig > > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > Now rpmforge.net is now redirecting me to rpmrepo.org, which has an invalid security certificate. Something I should be concerned about? I don't think it did that yesterday. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] How to add ClamAV to Postfix?
I was able to get everything working after getting the appropriate RPM's from "EPEL". I'm new to RH/Centos, so I did not know about that site. I tweaked the config based on what I found here: http://fedorasolved.org/server-solutions/postfix-mail-server I know this was not really a Centos question, but thanks for you guys helping me anyway. thanks! ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Is there a web-based server status package?
I have a small squirrelmail server using Postfix & Dovecot, and I would like to add a web-based "status" screen to remotely check its health. Is there a preferred packaged for doing this? I mostly want to monitor disk space usage, and CPU utilization. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Is there a web-based server status package?
I'll get it from EPEL, since it is Fedora-sponsored. On Tue, Mar 24, 2009 at 2:53 PM, Florin Andrei wrote: > Marko A. Jennings wrote: >> >> You might want to try munin: http://munin.projects.linpro.no/ >> It is available through the rpmforge repo and is easy to set up. > > It's also on EPEL, and that's a repository that tends to create fewer > issues. > > http://fedoraproject.org/wiki/EPEL/FAQ#howtouse > > -- > Florin Andrei > > http://florin.myip.org/ > > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Limiting maildir sizes with Postfix?
I have a small Squirrelmail server, using Postfix & Dovecot. I am trying to limit the amount of mail a user can get. The "mailbox_size_limit" value does not seem to be being honored. I am using the Maildir directory format. >From googling, it appears that "mailbox_size_limit" applies to a single file (mbox format?), and that it does not work with Maildirs. Is this correct? How should I limit the Mailbox size of the users? I'm not very familiar with Linux "quotas", but I think that is my only other choice. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Cannot set user quotas
Hello, I am having some trouble getting quota's to work. When I try to set the quota for a user, it does not show up when I run repquota. I am doing this on a Redhat (RHEL5) machine (I assume it is the same on Centos). I think I am missing a step, but this is what I am doing: (1) I add usrquota to the /etc/fstab file, then reboot LABEL=/home /home ext3 defaults,usrquota 1 2 (2) Verify /home is /dev/hda3 /sbin/tune2fs -l /dev/hda3 | grep volume Filesystem volume name: /home (3) Create the user quota file quotacheck -cmu /home ls –l /home/aquota.user repquota /home [r...@mail ~]# repquota /home *** Report for user quotas on device /dev/hda3 Block grace time: 7days; Inode grace time: 7days Block limitsFile limits Userusedsofthard graceused soft hard grace -- root -- 184224 0 0 4 0 0 12345 -- 208 0 0 49 0 0 54321 -- 172 0 0 40 0 0 (4) Turn on quotas quoataon /home (5) Add a user quota setquota -u 12345 1 11000 0 0 -a /dev/hda3 (6) Recalculate the quotas quotaoff /home quotacheck -amu quotaon /home (7) Check if the quotas are active ls –l /home/aquota.user repquota /home [r...@mail ~]# repquota /home *** Report for user quotas on device /dev/hda3 Block grace time: 7days; Inode grace time: 7days Block limitsFile limits Userusedsofthard graceused soft hard grace -- root -- 184224 0 0 4 0 0 12345 -- 208 0 0 49 0 0 54321 -- 172 0 0 40 0 0 (8) Shouldn't the limits look like this: ??? Userusedsofthard graceused soft hard grace -- root -- 184224 0 0 4 0 0 12345 -- 208 1 11000 49 0 0 54321 -- 172 0 0 40 0 0 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Cannot set user quotas
edquota show's the quota, but the quota command does not: [r...@mail ~]# setquota -u 12345 1 11000 0 0 -a /dev/hda3 [r...@mail ~]# edquota -u 12345 Disk quotas for user 12345 (uid 12345): Filesystem blocks soft hard inodes soft hard /dev/hda3 0 1 11000 0 00 ~ ~ [r...@mail ~]# quota -u 12345 Disk quotas for user #12345 (uid 12345): none On Wed, Apr 22, 2009 at 9:38 AM, Xn Nooby wrote: > Hello, I am having some trouble getting quota's to work. When I try to > set the quota for a user, it does not show up when I run repquota. I > am doing this on a Redhat (RHEL5) machine (I assume it is the same on > Centos). I think I am missing a step, but this is what I am doing: > > > (1) I add usrquota to the /etc/fstab file, then reboot > > LABEL=/home /home ext3 defaults,usrquota 1 2 > > (2) Verify /home is /dev/hda3 > > /sbin/tune2fs -l /dev/hda3 | grep volume > Filesystem volume name: /home > > > (3) Create the user quota file > > quotacheck -cmu /home > ls –l /home/aquota.user > repquota /home > > > [r...@mail ~]# repquota /home > *** Report for user quotas on device /dev/hda3 > Block grace time: 7days; Inode grace time: 7days > Block limits File limits > User used soft hard grace used soft hard grace > -- > root -- 184224 0 0 4 0 0 > 12345 -- 208 0 0 49 0 0 > 54321 -- 172 0 0 40 0 0 > > > (4) Turn on quotas > > quoataon /home > > (5) Add a user quota > > setquota -u 12345 1 11000 0 0 -a /dev/hda3 > > (6) Recalculate the quotas > > quotaoff /home > quotacheck -amu > quotaon /home > > (7) Check if the quotas are active > > ls –l /home/aquota.user > repquota /home > > > [r...@mail ~]# repquota /home > *** Report for user quotas on device /dev/hda3 > Block grace time: 7days; Inode grace time: 7days > Block limits File limits > User used soft hard grace used soft hard grace > -- > root -- 184224 0 0 4 0 0 > 12345 -- 208 0 0 49 0 0 > 54321 -- 172 0 0 40 0 0 > > > (8) Shouldn't the limits look like this: ??? > > > User used soft hard grace used soft hard grace > -- > root -- 184224 0 0 4 0 0 > 12345 -- 208 1 11000 49 0 0 > 54321 -- 172 0 0 40 0 0 > ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Cannot set user quotas
I think my problem was that because I am using all-numeric usernames, setquota was assuming I was giving it a UID. So I used the "-x" option and now it is working: setquota -x 12345 1 11000 0 0 -a /dev/hda3 On Wed, Apr 22, 2009 at 9:52 AM, Xn Nooby wrote: > edquota show's the quota, but the quota command does not: > > [r...@mail ~]# setquota -u 12345 1 11000 0 0 -a /dev/hda3 > > [r...@mail ~]# edquota -u 12345 > Disk quotas for user 12345 (uid 12345): > Filesystem blocks soft hard inodes > soft hard > /dev/hda3 0 1 11000 0 > 0 0 > ~ > ~ > > [r...@mail ~]# quota -u 12345 > Disk quotas for user #12345 (uid 12345): none > > > On Wed, Apr 22, 2009 at 9:38 AM, Xn Nooby wrote: >> Hello, I am having some trouble getting quota's to work. When I try to >> set the quota for a user, it does not show up when I run repquota. I >> am doing this on a Redhat (RHEL5) machine (I assume it is the same on >> Centos). I think I am missing a step, but this is what I am doing: >> >> >> (1) I add usrquota to the /etc/fstab file, then reboot >> >> LABEL=/home /home ext3 defaults,usrquota 1 2 >> >> (2) Verify /home is /dev/hda3 >> >> /sbin/tune2fs -l /dev/hda3 | grep volume >> Filesystem volume name: /home >> >> >> (3) Create the user quota file >> >> quotacheck -cmu /home >> ls –l /home/aquota.user >> repquota /home >> >> >> [r...@mail ~]# repquota /home >> *** Report for user quotas on device /dev/hda3 >> Block grace time: 7days; Inode grace time: 7days >> Block limits File limits >> User used soft hard grace used soft hard grace >> -- >> root -- 184224 0 0 4 0 0 >> 12345 -- 208 0 0 49 0 0 >> 54321 -- 172 0 0 40 0 0 >> >> >> (4) Turn on quotas >> >> quoataon /home >> >> (5) Add a user quota >> >> setquota -u 12345 1 11000 0 0 -a /dev/hda3 >> >> (6) Recalculate the quotas >> >> quotaoff /home >> quotacheck -amu >> quotaon /home >> >> (7) Check if the quotas are active >> >> ls –l /home/aquota.user >> repquota /home >> >> >> [r...@mail ~]# repquota /home >> *** Report for user quotas on device /dev/hda3 >> Block grace time: 7days; Inode grace time: 7days >> Block limits File limits >> User used soft hard grace used soft hard grace >> -- >> root -- 184224 0 0 4 0 0 >> 12345 -- 208 0 0 49 0 0 >> 54321 -- 172 0 0 40 0 0 >> >> >> (8) Shouldn't the limits look like this: ??? >> >> >> User used soft hard grace used soft hard grace >> -- >> root -- 184224 0 0 4 0 0 >> 12345 -- 208 1 11000 49 0 0 >> 54321 -- 172 0 0 40 0 0 >> > ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos