no amavis.conf

Discussion in 'Installation/Configuration' started by carpman, Jan 26, 2012.

  1. carpman

    carpman Member

    Hi, is there supposed to be an amavis.conf in ispconfig3?

    Just can't see one?

    Code:
    find /etc -name 'amavis*'
    /etc/cron.d/amavisd-new
    /etc/init.d/amavis
    /etc/spamassassin/sa-update-hooks.d/amavisd-new
    /etc/ldap/schema/amavis.schema
    /etc/cron.daily/amavisd-new
    /etc/amavis
    
    Code:
    ls -l /etc/amavis/
    total 16
    -rw-r--r-- 1 root root 2358 Jan 25 15:38 50-user~
    drwxr-xr-x 2 root root 4096 Dec 12 13:01 conf.d
    drwxr-xr-x 2 root root 4096 Dec 12 13:01 en_US
    -rw-r--r-- 1 root root  978 Dec 16  2010 README.l10n
    
    Code:
    ls -l /etc/amavis/conf.d/
    total 64
    -rw-r--r-- 1 root root  1653 Dec 16  2010 01-debian
    -rw-r--r-- 1 root root   692 Dec 16  2010 05-domain_id
    -rw-r--r-- 1 root root   432 Jan 26 11:05 05-node_id
    -rw-r--r-- 1 root root 20693 Dec 16  2010 15-av_scanners
    -rw-r--r-- 1 root root   717 Dec 16  2010 15-content_filter_mode
    -rw-r--r-- 1 root root  9538 Dec 16  2010 20-debian_defaults
    -rw-r--r-- 1 root root   573 Dec 16  2010 25-amavis_helpers
    -rw-r--r-- 1 root root  2130 Dec 16  2010 30-template_localization
    -rw-r--r-- 1 root root  2358 Jan 25 15:38 50-user
    
    Do these files in /etc/amavis/conf.d/ replace amavis.conf?

    cheers
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    That depends on the Linux distribution that you use and not ISPConfig.

    If you use Debian or Ubuntu, then yes.
     
  3. carpman

    carpman Member

    You would not know off hand know which file it is to set the IP address for smtp in amavis?

    Just i have looked though them all and cannot find it?

    cheers
     
  4. carpman

    carpman Member

    Sorry i meant amavis listen on setting @inet_acl=
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    The intention of the different files in debian is that you can add manaul changes without the risk that they get overwritten on amavis updates. The files are get included by amavis in alphabetical order, so the recommended way to do manual settings is to create a new file that gets included as last file, e.g. with the name "99-custom" and insert your custom config settings there.

    But amavis should normally listen only on localhost, if you let it listen on other IP addresses, then you might expose it to outside connections which can be misused to send emails over your server.

    So maybe you can describe why you want to change that, so that we can see if there is no different way.
     
  6. carpman

    carpman Member

    Thanks for info.

    The problem i have is i keep getting amavis error in logs

    Code:
    amavis[1318]: (01318-04) (!)DENIED ACCESS from IP 109.235.145.21, policy bank ''
    
    This ip is the server mail ip and hence mail.carpconnect.net address.

    The other issue which i think is related is that a second server IP only used for ns2 is be set as mail server

    Code:
    Received: from mail.carpconnect.net (unknown [109.235.145.247])
    
    This i find odd as dns records use correct IP?

    This is causing rDNS errors in mail logs.

    If i bind smtp in main.cf then i can no longer send email?

    cheers
     

Share This Page