running own nameserver & ispconfig 3

Discussion in 'Installation/Configuration' started by killerwake, Mar 2, 2010.

  1. killerwake

    killerwake New Member

    hi first of all congratz for ispconfig, it's awsome!

    i had some domains registered at fxdomains and i was using ispconfig 2, i followed the tutorial and on my registrar i setup the hosts to the domain example.com

    registrar:
    ns1.example.com -> xxx.xxx.xxx
    ns2.example.com -> xxx.xxx.xxx

    domain: philadelphia.com
    nameserver1:ns1.example.com
    nameserver2:ns2.example.com

    and on ispconfig 2 i setup on dns check with intodns.com and everything works like a charm, last week i upgrade to ispconfig 3 but i can't make it working :( can you explain what changes do i have to do?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Go to the ispconfig 3 dns module, and add the domain by using the dns wizard.
     
  3. killerwake

    killerwake New Member

    thanks till, it's more easy to use the wizard.

    another problem is i found this error on mail logs:
    Mar 3 16:18:54 ns310931 amavis[3993]: (03993-14) (!!)WARN: all primary virus scanners failed, considering backups
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Please check if the clamav daemon is running.
     
  5. killerwake

    killerwake New Member

    clamd (pid 3776) is running...
     
  6. falko

    falko Super Moderator Howtoforge Staff

    Can you post the clamd section of your amavisd.conf? I guess the paths are not correct.
     
  7. killerwake

    killerwake New Member

    i have several conf files, wich one amavis use? centos 5.4 x64

    [root@ns310931 amavisd]# locate amavisd.conf
    /etc/amavisd.conf
    /etc/amavisd/amavisd.conf
    /etc/authlib/amavisd.conf~
    /usr/share/doc/amavisd-new-2.6.4/amavisd.conf
    /usr/share/doc/amavisd-new-2.6.4/amavisd.conf-default
    /usr/share/doc/amavisd-new-2.6.4/amavisd.conf-sample
    /usr/share/doc/amavisd-new-2.6.4/amavisd.conf.orig


    @av_scanners = (

    # ### http://www.clanfield.info/sophie/ (http://www.vanja.com/tools/sophie/)
    # ['Sophie',
    # \&ask_daemon, ["{}/\n", '/var/run/sophie'],
    # qr/(?x)^ 0+ ( : | [\000\r\n]* $)/, qr/(?x)^ 1 ( : | [\000\r\n]* $)/,
    # qr/(?x)^ [-+]? \d+ : (.*?) [\000\r\n]* $/ ],

    # ### http://www.csupomona.edu/~henson/www/projects/SAVI-Perl/
    # ['Sophos SAVI', \&sophos_savi ],

    # ### http://www.clamav.net/
    ['ClamAV-clamd',
    \&ask_daemon, ["CONTSCAN {}\n", "/var/spool/amavisd/clamd.sock"],
    qr/\bOK$/, qr/\bFOUND$/,
    qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
    # # NOTE: run clamd under the same user as amavisd, or run it under its own
    # # uid such as clamav, add user clamav to the amavis group, and then add
    # # AllowSupplementaryGroups to clamd.conf;
    # # NOTE: match socket name (LocalSocket) in clamav.conf to the socket name in
    # # this entry; when running chrooted one may prefer socket "$MYHOME/clamd".

    # ### http://www.clamav.net/ and CPAN (memory-hungry! clamd is preferred)
    # # note that Mail::ClamAV requires perl to be build with threading!
    # ['Mail::ClamAV', \&ask_clamav, "*", [0], [1], qr/^INFECTED: (.+)/],
     
  8. falko

    falko Super Moderator Howtoforge Staff

    Should be /etc/amavisd/amavisd.conf. Does /var/spool/amavisd/clamd.sock exist?
     
  9. killerwake

    killerwake New Member

    thanks for you help falko, i found the problem. i made the ispconfig perfect setup for centos 5.4 x64 but by default amavisd reads the /etc/amavisd.conf on the /etc/init.d/amavisd i changed to /etc/amavisd/amavisd.conf and have to do:
    ln -s /var/run/clamav/clamd.sock /var/spool/amavisd/clamd.sock

    because in centos /var/spool/amavisd/clamd.sock doesn't exist!

    Problem solved!
     
    Last edited: Mar 7, 2010

Share This Page