Re: [AMaViS-user] amavisd-release error

This is a discussion on Re: [AMaViS-user] amavisd-release error within the Amavis User forums, part of the Anti-Spam and Anti-Virus Related Forums category; Joe Demeny wrote: > On Saturday 26 January 2008 12:55:34 pm you wrote: >> Joe Demeny wrote: &...


Go Back   Usenet Forums > Anti-Spam and Anti-Virus Related Forums > Amavis User

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-26-2008
MrC
 
Posts: n/a
Default Re: [AMaViS-user] amavisd-release error

Joe Demeny wrote:
> On Saturday 26 January 2008 12:55:34 pm you wrote:
>> Joe Demeny wrote:
>>> I'm trying to release a piece of banned mail, and I get this error:
>>>
>>> Can't connect to UNIX socket /var/amavis/home/amavisd.sock: No such file
>>> or directory at /usr/local/sbin/amavisd-release line 202.

>> What is the value of socketname in /usr/local/sbin/amavisd-release?
>>
>> MrC

>
> Oh, I see...
>
> It is:
>
> $socketname = '/var/amavis/home/amavisd.sock';
>
> I have changed it - works perfectly!
>
> Thank you...
>
> Just wondering: why was it set to /var/amavis/home/amavisd.sock by default? I
> don't think I ever edited /usr/local/sbin/amavisd-release before.
>


The FreeBSD port of amavisd-new changes the socket in the port Makefile:

post-patch:
..for f in amavisd.conf amavisd.conf-sample amavisd amavisd-agent
amavisd-nanny amavisd-release
@${REINPLACE_CMD} "s@'zoo'\]@['zoo','unzoo'] ]@" ${WRKSRC}/${f}
..endfor
..for i in amavisd.conf amavisd.conf-sample
@${REINPLACE_CMD} -e "s|$daemon_user = \'vscan\';|$daemon_user =
\'${AMAVISUSER}\';|" \
-e "s|$daemon_group = \'vscan\';|$daemon_group = \'${AMAVISGROUP}\';|" \
-e "s|/var/amavis|${AMAVISDIR}|" \
-e "s|/var/lib/amavis|${AMAVISDIR}|" \
-e 's|$$log_level = 2;|$$log_level = 0;|' \
-e "s|/var/virusmails|${AMAVISQUARANTINE}|" \
${WRKSRC}/${i}
..endfor
@${REINPLACE_CMD} "s|/var/amavis/db|${AMAVISDIR}/db|"
${WRKSRC}/amavisd-agent
@${REINPLACE_CMD} "s|/var/amavis/db|${AMAVISDIR}/db|"
${WRKSRC}/amavisd-nanny
@${REINPLACE_CMD} "s|/var/amavis/amavisd.sock|${AMAVISDIR}/amavisd.sock|" \
${WRKSRC}/amavisd-release

MrC

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/...fo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 02:59 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0