List Info

Thread: Re: Problem releasing mail




Re: Problem releasing mail
user name
2007-06-21 07:51:11
This can be fixed in amavisd.conf and you do not need to
open all the ports.

You have to enable amavis to listen on the 9998 port, since
this the
way it allows connections from outside.

I have the following lines in /usr/local/etc/amavid.conf

$inet_socket_port = [10024,9998];   # listen on this local
TCP port(s) (see $pro
inet_acl = qw ( 127.0.0.1 [::1] *LOCAL_IP* );
$inet_socket_bind = undef;

$unix_socketname = "$MYHOME/amavisd.sock";  #
amavisd-release or amavis-milter

Just replace *LOCAL_IP* with you machine's ip address.

Also be sure to have the host name in your /etc/hosts file.

The change you made works good if you only have one machine
with
amavis, but will break for multiple domains/machines

Cheers!

On 6/20/07, John Beaver <junkleaveittobeaver.net>
wrote:
>
> Kupski, John M. wrote:
> >> My setup only allows a connection to 9998 from
127.0.0.1.  I tried to
> >> find where the host gets set but haven't found
this yet.  How can I
> >> change this setting so that I can use
127.0.0.1 when releasing mail?  In
> >> my case, amavisd/mailzu are on the same
machine.
> >
> > I had the same problem you did, and I got the same
answer ("this will never be a config option.")  My
solution was to add a line to lib/Quarantine.lib.php at
around line 142 to overwrite the host from the SQL
database.
> >
> > OLD:                   // Create new TCP/IP socket
and try to connect to $host using this socket
> >                         $am = new
AmavisdEngine($host);
> >
> > NEW:                   // Create new TCP/IP socket
and try to connect to $host using this socket
> >                         $host = '127.0.0.1';
> >                         $am = new
AmavisdEngine($host);
> >
> > This solved my problem.  YMMV.
>
> I understand their answer and worked within it.  I just
had to enable
> amavisd to listen on all ports, and add some
restrictions on who could
> reach that port within the firewall and acl's within
amavisd.
>
> Thanks for this though.  I'll be trying this a bit
later because I
> really don't want to open the ports on the public
interfaces if I don't
> have to.
> I love open source!
>
> john
>
>
------------------------------------------------------------
-------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2
express and take
> control of your XML. No limits. Just data. Click to get
it now.
> http://sourcefor
ge.net/powerbar/db2/
> _______________________________________________
> Mailzu-users mailing list
> Mailzu-userslists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mailzu-use
rs
>


-- 
Attos Janus

------------------------------------------------------------
-------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
take
control of your XML. No limits. Just data. Click to get it
now.
http://sourcefor
ge.net/powerbar/db2/
_______________________________________________
Mailzu-users mailing list
Mailzu-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mailzu-use
rs

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )