amavis-users Digest, Vol 17, Issue 22

Feel Zhou feelzhou at gmail.com
Wed Jul 25 16:02:41 CEST 2012


Thank you for  the answer
I try many times to fix the permission, but still problem

[root at mail ~]# groups amavis
amavis : amavis clamav vscan
[root at mail ~]# groups vscan
vscan : vscan clamav amavis
[root at email ~]# setfacl -m u:vscan:rw /var/amavis/var/amavisd.pid
[root at email ~]# setfacl -m g:vscan:rw /var/amavis/var/amavisd.pid
http://wiki.centos.org/HowTos/Amavisd#head-083903238fabadeded25e0eda4f870bafa770940
and use this to fix the selinux. then the same debug message with last time.

So I try to another debug, then change the message
[root at email ~]# /usr/local/sbin/amavisd -u vscan debug
Error reading config file "/etc/amavisd.conf": Permission denied at
/usr/local/sbin/amavisd line 2096.

[root at email ~]# vim /usr/local/sbin/amavisd
2094    if (defined(do $config_file)) {}
2095    elsif ($@ ne '') { die "Error in config file \"$config_file\": $@" }
2096    elsif ($! != 0)  { die "Error reading config file \"$config_file\":
$!" }
2097    $read_config_files_depth--  if $read_config_files_depth > 0;

Maybe this line is the real reason for ermission denied. I have no idea to
read that message. How to fix it?
I want to postfix+amavis+clamav+spam in the centos6.2/64bit.How can I
configure these working together?
Thanks for your time
TOM

2012/7/24 <amavis-users-request at amavis.org>

> Send amavis-users mailing list submissions to
>         amavis-users at amavis.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.amavis.org/cgi-bin/mailman/listinfo/amavis-users
> or, via email, send a message with subject or body 'help' to
>         amavis-users-request at amavis.org
>
> You can reach the person managing the list at
>         amavis-users-owner at amavis.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of amavis-users digest..."
>
> Today's Topics:
>
>    1. RE: skip virus scan for a specific sender. (Mosemann, Russell)
>    2. /usr/local/sbin/amavisd debug, permission denied (Feel Zhou)
>    3. Re: /usr/local/sbin/amavisd debug, permission denied
>       (Patrick Ben Koetter)
>    4. Silent crash on reload with insufficient permissions
>       (Michael Orlitzky)
>
>
> ---------- 已转发邮件 ----------
> From: "Mosemann, Russell" <Russell.Mosemann at cune.edu>
> To: <amavis-users at amavis.org>
> Cc:
> Date: Mon, 23 Jul 2012 05:53:00 -0500
> Subject: RE: skip virus scan for a specific sender.
> A "modern" PDF contains JavaScript, which is interpreted as PUA by
> ClamAV. The alternative is clear. Add one or both of the following lines
> to the clamd.conf file.
>
> ExcludePUA Packed
> ExcludePUA Script
>
> --
> Russell Mosemann, Ph.D.
> Professor of Computer Science
>
> Computing Services will NEVER ask you
> A. for your password in email, on the phone or in person
> B. to enter your Concordia login information at a non-Concordia site
> C. to "validate", "confirm", "upgrade" or "renew" your email
>
>
> > -----Original Message-----
> > From: amavis-users-bounces+russell.mosemann=cune.edu at amavis.org
> > [mailto:amavis-users-bounces+russell.mosemann=cune.edu at amavis.org] On
> > Behalf Of ANANT S ATHAVALE
> > Sent: Sunday, July 22, 2012 11:11 PM
> > To: amavis-users at amavis.org
> > Subject: Re: skip virus scan for a specific sender.
> >
> > Dear Michel,
> >
> > The file is zipped and contains an PDF file.  The PDF file is
> protected
> > with password.  But, zip file is not protected with password.
> >
> > So, please guide me an alternative.
> >
> > Regards,
> > Anant.
> > ----- Message from Michael Scheidell <michael.scheidell at secnap.com>
> ------
> > ---
> >    Date: Sun, 22 Jul 2012 13:20:37 -0400
> >    From: Michael Scheidell <michael.scheidell at secnap.com>
> > Subject: Re: skip virus scan for a specific sender.
> >      To: amavis-users at amavis.org
> >
> >       On 7/22/12 1:02 AM, ANANT S ATHAVALE wrote:
> >
> >               Dear List,
> >
> >               I am having an immediate requirement of skipping virus
> scan
> > for a specific user 'donotreply at incometaxindiaefiling.gov.in'.  The
> mail
> > sent by this user having income tax return file is getting detected as
> > 'PUA'.  I want to continue with blocking PUA except for this email id
> (for
> > the time being).
> >
> >               Please let me know, how can I achieve this.
> >
> >
> >       zip it with a password.
> >       Sounds like 'incomtaxindiafiling' should be encrypted anyway.
> >
> >
> >
> >       --
> >       Michael Scheidell, CTO
> >       o: 561-999-5000
> >       d: 561-948-2259
> >       > | SECNAP Network Security Corporation
> >
> >       *       Best Mobile Solutions Product of 2011
> >       *       Best Intrusion Prevention Product
> >       *       Hot Company Finalist 2011
> >       *       Best Email Security Product
> >       *       Certified SNORT Integrator
> >
> >
> >
> > ________________________________
> >
> >       This email has been scanned and certified safe by
> SpammerTrap(r).
> >       For Information please see http://www.spammertrap.com/
> > ________________________________
> >
> >
> >
> >
> >
> >
> >
> > ----- End message from Michael Scheidell
> <michael.scheidell at secnap.com> --
> > ---
> >
> >
> >
> >
> >
> > Regards,
> >
> > Anant Athavale.
> >
> >
> >
> ------------------------------------------------------------------------
> --
> > ----
> > Confidentiality Notice: This e-mail message, including any
> attachments, is
> > for
> > the sole use of the intended recipient(s) and may contain confidential
> and
> > privileged information. Any unauthorized review, use, disclosure or
> > distribution is prohibited. If you are not the intended recipient,
> please
> > contact the sender by reply e-mail and destroy all copies of the
> original
> > message.
> >
> ------------------------------------------------------------------------
> --
> > ----
> >
>
>
>
>
> ---------- 已转发邮件 ----------
> From: Feel Zhou <feelzhou at gmail.com>
> To: amavis-users at amavis.org
> Cc:
> Date: Mon, 23 Jul 2012 21:30:11 +0800
> Subject: /usr/local/sbin/amavisd debug, permission denied
> Hello, my friend
>
> This is the first time to install amavis.I got some problem. and need your
> help, thank you for your time.
> My system is Centos6.2/64bit. use postfix-2.9.3,
> just download amavis-2.8.0 and when I use debug command ,gotsome wrong
> messanges
>
> [root at mail ~]# /usr/local/sbin/amavisd debug
> Jul 23 21:27:26.968 mail.yienter.com /usr/local/sbin/amavisd[1342]:
> logging initialized, log level 0, syslog: amavis.mail
> Jul 23 21:27:26.969 mail.yienter.com /usr/local/sbin/amavisd[1342]: PID
> file /var/amavis/amavisd.pid is inaccessible: Permission denied
> PID file /var/amavis/amavisd.pid is inaccessible: Permission denied
>
> So I do not know how to fix it, Can you help me. Thanks again
> TOM
>
>
>
> ---------- 已转发邮件 ----------
> From: Patrick Ben Koetter <p at state-of-mind.de>
> To: amavis-users at amavis.org
> Cc:
> Date: Mon, 23 Jul 2012 16:51:20 +0200
> Subject: Re: /usr/local/sbin/amavisd debug, permission denied
> * Feel Zhou <feelzhou at gmail.com>:
> > Hello, my friend
> >
> > This is the first time to install amavis.I got some problem. and need
> your
> > help, thank you for your time.
> > My system is Centos6.2/64bit. use postfix-2.9.3,
> > just download amavis-2.8.0 and when I use debug command ,gotsome wrong
> > messanges
> >
> > [root at mail ~]# /usr/local/sbin/amavisd debug
> > Jul 23 21:27:26.968 mail.yienter.com /usr/local/sbin/amavisd[1342]:
> logging
> > initialized, log level 0, syslog: amavis.mail
> > Jul 23 21:27:26.969 mail.yienter.com /usr/local/sbin/amavisd[1342]: PID
> > file /var/amavis/amavisd.pid is inaccessible: Permission denied
> > PID file /var/amavis/amavisd.pid is inaccessible: Permission denied
> >
> > So I do not know how to fix it, Can you help me. Thanks again
>
> Make sure user and group who run amavisd have apropriate permissions to
> read/write to the directories they need access to.
>
> p at rick
>
> --
> All technical questions asked privately will be automatically answered on
> the
> list and archived for public access unless privacy is explicitely required
> and
> justified.
>
> saslfinger (debugging SMTP AUTH):
> <http://postfix.state-of-mind.de/patrick.koetter/saslfinger/>
>
>
>
> ---------- 已转发邮件 ----------
> From: Michael Orlitzky <michael at orlitzky.com>
> To: amavis-users at amavis.org
> Cc:
> Date: Mon, 23 Jul 2012 13:50:00 -0400
> Subject: Silent crash on reload with insufficient permissions
> (This is really a feature request, not a bug report.)
>
> I messed up our permissions last night, and prevented amavis from
> reading /etc/postfix/maps/rfc_addresses.
>
> In the amavis config, I have,
>
>   @virus_lovers_maps = ( read_hash("/etc/postfix/maps/rfc_addresses") );
>   @spam_lovers_maps = ( read_hash("/etc/postfix/maps/rfc_addresses") );
>
> to allow postmaster/abuse mail through.
>
> I did a full stop and restart of amavis -- it starts and runs fine --
> but at 3am, our sa-update script issued a reload. With the reload,
> amavis silently crashes:
>
>   Jul 23 10:24:38 mx1 amavis[1242]: logging initialized, log level 2,
>   syslog: amavis.mail
>
>   Jul 23 10:24:38 mx1 amavis[1242]: Valid PID file (younger than sys
>   uptime 11 20:24:00)
>
>   Jul 23 10:24:38 mx1 amavis[1242]: Signalling a SIGHUP to a running
>   daemon [1177]
>
>   Jul 23 10:24:38 mx1 amavis[1177]: Net::Server: 2012/07/23-10:24:38
>   Server closing!
>
>   Jul 23 10:24:38 mx1 amavis[1177]: Net::Server: Sending children hup
>   signal during HUP on prefork server
>
>   Jul 23 10:24:38 mx1 amavis[1177]: (!)Net::Server: 2012/07/23-10:24:38
>   HUP'ing server
>
>   <silence, amavis is dead>
>
> I know something similar happens when /etc/amavisd.conf is unreadable by
> the amavis user, and I knew I was messing with the postfix permissions
> last night, so it wasn't /too/ hard to figure this out.
>
> But, is it possible/easy to write something to the log when this happens?
>
>
> _______________________________________________
> amavis-users mailing list
> amavis-users at amavis.org
> http://lists.amavis.org/cgi-bin/mailman/listinfo/amavis-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.amavis.org/pipermail/amavis-users/attachments/20120725/6bf9b664/attachment.html>


More information about the amavis-users mailing list