Bind stops and cannot be restarted after a slave domain is added

Discussion in 'Installation/Configuration' started by jason, Aug 14, 2005.

  1. jason

    jason New Member

    Good afternoon

    Bit of a problem... When I add a slave domain via ISPConfig bind stops and won't start again. The only solution is to reinstall bind9 and work through the debian setup howto.

    On a different note. I can only login to webmail using the ISPConfig user name (eg wed4_test) - not the email address I assign. Locally generated mail is received fine and sending mail is not a problem but my test user can't receive any externally generated mail. Any pointers?

    Ta

    j
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Any messages in the logs (/var/log/messages or /var/log/syslog)?

    Did you install the webmail package from www.ispconfig.org or another one?
     
  3. jason

    jason New Member


    /var/log/messages

    lots of the below but not much else

    Aug 14 15:40:24 jasons -- MARK --


    /var/log/syslog (grepped for bind)

    Aug 14 13:48:25 jasons named[31060]: starting BIND 9.2.4 -u bind -t /var/lib/named
    Aug 14 13:48:25 jasons named[31060]: loading configuration from '/etc/bind/named.conf'
    Aug 14 13:48:25 jasons named[31060]: /etc/bind/named.conf:30: unknown option '<'
    Aug 14 13:48:25 jasons named[31060]: /etc/bind/named.conf:35: unknown option '<'
    Aug 14 13:49:21 jasons named[31189]: starting BIND 9.2.4 -u bind -t /var/lib/named
    Aug 14 13:49:21 jasons named[31189]: loading configuration from '/etc/bind/named.conf'
    Aug 14 13:49:21 jasons named[31189]: /etc/bind/named.conf:30: unknown option '<'
    Aug 14 13:49:21 jasons named[31189]: /etc/bind/named.conf:35: unknown option '<'

    Yes. I had the same problem as quite a few people who follow the Debian setup tutorial and then install webmail. It been mainly fixed by reading the posts here but not being able to receive mail is quite a big flaw. I suspect the answer may be to add a domain in a config file somewher but I'm not sure where to start. I can give someone a login if need be.

    The tutorial is fantastic by the way. I'm new to this and I've learnt a lot from working through it.
     
  4. falko

    falko Super Moderator ISPConfig Developer

    There must be syntax errors in /etc/bind/named.conf in line 30 and 35 (look out for "<"). Remove the error and restart named. If you don't know what to do you can post /etc/bind/named.conf here.

    Any messages in /var/log/mail.log? Did you choose the correct format of your mailbox in ISPConfig (mbox vs. Maildir)?
    http://www.howtoforge.com/forums/showthread.php?t=200
    http://www.howtoforge.com/forums/showthread.php?t=175
     
  5. jason

    jason New Member

    <!-- BEGIN DYNAMIC BLOCK: named_reverse -->
    zone "{ZONE}.in-addr.arpa" {
    type master;
    file "pri.{ZONE}.in-addr.arpa";
    };
    <!-- END DYNAMIC BLOCK: named_reverse -->

    I think these are the offending lines - the top is 30 and the bottom 35. They look ok though so....


    These are the last interesting ones.

    Aug 14 17:32:48 jasons postfix/smtpd[2217]: connect from 219-81-152-12.dynamic.tfn.net.tw[219.81.152.12]
    Aug 14 17:32:50 jasons postfix/smtpd[2217]: NOQUEUE: reject: RCPT from 219-81-152-12.dynamic.tfn.net.tw[219.81.152.12]: 554 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=SMTP helo=<80.87.131.60>
    Aug 14 17:32:50 jasons postfix/smtpd[2217]: lost connection after RCPT from 219-81-152-12.dynamic.tfn.net.tw[219.81.152.12]
    Aug 14 17:32:50 jasons postfix/smtpd[2217]: disconnect from 219-81-152-12.dynamic.tfn.net.tw[219.81.152.12]
    Aug 14 17:36:10 jasons postfix/anvil[2219]: statistics: max connection rate 1/60s for (smtp:219.81.152.12) at Aug 14 17:32:48
    Aug 14 17:36:10 jasons postfix/anvil[2219]: statistics: max connection count 1 for (smtp:219.81.152.12) at Aug 14 17:32:48
    Aug 14 17:36:10 jasons postfix/anvil[2219]: statistics: max cache size 1 at Aug 14 17:32:48

    Otherwise I just get...

    Aug 14 20:13:17 jasons courierpop3login: LOGIN, user=web4_test, ip=[::ffff:127.0.0.1]
    Aug 14 20:13:17 jasons courierpop3login: LOGOUT, user=web4_test, ip=[::ffff:127.0.0.1], top=2604, retr=0, time=0
    Aug 14 20:23:18 jasons courierpop3login: Connection, ip=[::ffff:127.0.0.1]
    Aug 14 20:23:18 jasons courierpop3login: LOGIN, user=web4_test, ip=[::ffff:127.0.0.1]
    Aug 14 20:23:18 jasons courierpop3login: LOGOUT, user=web4_test, ip=[::ffff:127.0.0.1], top=2604, retr=0, time=0
    Aug 14 20:33:19 jasons courierpop3login: Connection, ip=[::ffff:127.0.0.1]
    Aug 14 20:33:19 jasons courierpop3login: LOGIN, user=web4_test, ip=[::ffff:127.0.0.1]
    Aug 14 20:33:19 jasons courierpop3login: LOGOUT, user=web4_test, ip=[::ffff:127.0.0.1], top=2604, retr=0, time=0

    I'm using Maildir. I followed the directions in the tutorial for Maildir and selected it in ISP Config. Emails are delivered to the mailboxes though so.......
     
  6. falko

    falko Super Moderator ISPConfig Developer

    Did you copy the named.conf template file from /root/ispconfig/isp/conf to /etc/bind??? You cannot do that, it's as template, and all the important content is parsed into it by ISPConfig! :rolleyes:

    You mean, mails arrive in Maildir or in mbox?
     
  7. jason

    jason New Member

    You're right! I did :eek: What do I need to do to rectify this?

    Yeah. The mailbox are all called Maildir. Could it be that postfix tried to deliver mail sent externally to mbox mailboxes that don't exist?
     
  8. falko

    falko Super Moderator ISPConfig Developer

    You can simply create a zone in the DNS Manager, and then /etc/bind/named.conf will be overwritten with a correct file (as long as you've left the original template file in /root/ispconfig/isp/conf.

    Don't think so. Are there mails in /var/spool mail?
     
  9. jason

    jason New Member

    Where can I get/How do I generate a template file?

    Only one from the system.

    'Subject: Debconf: Configuring ssh -- NOTE: Forwarding of X11 and Authorization disabled by default.'
     
  10. falko

    falko Super Moderator ISPConfig Developer

    You don't have to generate template files - they come with ISPConfig and are used to write the configuration files. You don't have to deal with them at all. You only need to work with the web interface, nothing else. :)
     
  11. jason

    jason New Member

    I'm still having the same problem. I suspect it may be a fault in the master template. I've pasted it below:

    <!-- BEGIN DYNAMIC BLOCK: named_reverse -->
    zone "{ZONE}.in-addr.arpa" {
    type master;
    file "pri.{ZONE}.in-addr.arpa";
    };
    <!-- END DYNAMIC BLOCK: named_reverse -->

    <!-- BEGIN DYNAMIC BLOCK: named -->
    zone "{DOMAIN}" {
    type master;
    file "pri.{DOMAIN}";
    };
    <!-- END DYNAMIC BLOCK: named -->

    <!-- BEGIN DYNAMIC BLOCK: named_slave -->
    zone "{DOMAIN}" {
    type slave;
    file "sec.{DOMAIN}";
    masters { {MASTERS}; };
    };
    <!-- END DYNAMIC BLOCK: named_slave -->

    Does this contain any flaws? When I add a slave domain ISPConfig inserts the first block into /etc/bind/name.conf:

    <!-- BEGIN DYNAMIC BLOCK: named_reverse -->
    zone "{ZONE}.in-addr.arpa" {
    type master;
    file "pri.{ZONE}.in-addr.arpa";
    };
    <!-- END DYNAMIC BLOCK: named_reverse -->

    Which crashes bind. When I manually delete it bind can be restarted.

    Also.... :eek: have you got any idea why I can't receive email? There aren't any mails in /var/log/spool. I'm at a bit of a loss to be honest.

    Ta

    j
     
  12. falko

    falko Super Moderator ISPConfig Developer

    No, looks fine.

    So you're using Maildir, and you set Maildir under Management -> Server -> Settings -> Email. And you use Courier which also uses Maildir. Looks fine so far. Can you describe exactly what you did that no mails arrive?
     
  13. till

    till Super Moderator Staff Member ISPConfig Developer

    Does ISPConfig adds exactly this or are the placeholders like {ZONE} replaced?
     
  14. jason

    jason New Member

    Ahhhhhh it adds exactly that! Is ISPConfig meant to replace {ZONE} with the domain name? If so then how can I make this happn?

    Moving on to email - I'm using postfix and Courier and I've selected the Maildir oprion in ISPConfig but 'I can only login to webmail using the ISPConfig user name (eg wed4_test) - not the email address I assign. Locally generated mail is received fine and sending mail is not a problem but my test user can't receive any externally generated mail'
     
  15. falko

    falko Super Moderator ISPConfig Developer

    Are you sure that the externally generated mail actually arrived on your computer? Anything in the mail logs? Maybe those mails arrive on a totally different machine... (DNS?)
     
  16. jason

    jason New Member

    I'm not certain that the mail is arriving on the server but I set up DNS personally so I'm sure it should be ;) Just tried sending another test mail but no luck. To avoid the possibilty of caching I've even sent test mails from machines on the same network as my server but no joy.

    Nothing that looks interesting in the logs either - although I'm not sure what I should be looking for. Which particular log should I be looking in?

    Also... assuming that ISPConfig is meant to replace {ZONE} with the hostname when writing to /etc/bind/named.conf, why is this not happening on my setup?
     
  17. falko

    falko Super Moderator ISPConfig Developer

    /var/log/mail.log
    /var/log/mail.warn
    /var/log/mail.err

    Is there anything that looks strange in /var/log/ispconfig_install.log and /home/admispconfig/ispconfig/ispconfig.log?
     
  18. jason

    jason New Member

    /var/log/ispconfig_install.log hasn't been writtne too in the past few days but I've pasted the last two days of /home/admispconfig/ispconfig/ispconfig.log logs below:

    15.08.2005 - 23:59:02 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 696: /etc/init.d/postfix stop &> /dev/null
    15.08.2005 - 23:59:02 => INFO - /root/ispconfig/scripts/shell/mail_logs.php, Line 53: cp -f /var/log/mail.log /var/log/mail.log.15-08-05_23-59-01
    15.08.2005 - 23:59:02 => INFO - /root/ispconfig/scripts/shell/mail_logs.php, Line 55: touch /var/log/mail.log.ispconfigsave
    15.08.2005 - 23:59:02 => INFO - /root/ispconfig/scripts/shell/mail_logs.php, Line 56: cat /var/log/mail.log >> /var/log/mail.log.ispconfigsave
    15.08.2005 - 23:59:03 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 696: /etc/init.d/postfix start &> /dev/null
    15.08.2005 - 23:59:04 => INFO - /root/ispconfig/scripts/shell/mail_logs.php, Line 132: rm -f /var/log/mail.log.www.wikiporn.org
    15.08.2005 - 23:59:04 => INFO - /root/ispconfig/scripts/shell/mail_logs.php, Line 134: rm -f /var/log/mail.log.15-08-05_23-59-01
    16.08.2005 - 02:13:39 => INFO - Signalfile Set: insert
    16.08.2005 - 02:13:47 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 136: cp -fr /etc/postfix/local-host-names /etc/postfix/local-host-names~
    16.08.2005 - 02:13:47 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 283: cp -fr /etc/postfix/virtusertable /etc/postfix/virtusertable~
    16.08.2005 - 02:13:47 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 288: postmap hash:/etc/postfix/virtusertable
    16.08.2005 - 02:13:47 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1181: cp -fr /etc/apache2/vhosts/Vhosts_ispconfig.conf /etc/apache2/vhosts/Vhosts_ispconfig.conf~
    16.08.2005 - 02:13:47 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 696: /etc/init.d/postfix stop &> /dev/null
    16.08.2005 - 02:13:49 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 696: /etc/init.d/postfix start &> /dev/null
    16.08.2005 - 02:13:49 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_bind.lib.php, Line 120: cp -fr /etc/bind/named.conf /etc/bind/named.conf~
    16.08.2005 - 02:13:52 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 696: /etc/init.d/bind9 restart &> /dev/null
    16.08.2005 - 02:13:52 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1811: cp -fr /etc/proftpd_ispconfig.conf /etc/proftpd_ispconfig.conf~
    16.08.2005 - 02:13:52 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 1846: WARNING: could not groupadd -g 12004 web4_anonftp &> /dev/null
    16.08.2005 - 02:13:52 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 1847: WARNING: could not useradd -d /home/www/web4/ftp -g web4_anonftp -M -s /bin/false -u 12004 web4_anonftp &> /dev/null
    16.08.2005 - 02:13:52 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1856: setquota -u web4_anonftp 0 0 0 0 -a &> /dev/null
    16.08.2005 - 02:13:52 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1857: setquota -g web4_anonftp 0 0 0 0 -a &> /dev/null
    16.08.2005 - 02:19:09 => INFO - Signalfile Set: insert
    16.08.2005 - 02:19:15 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 136: cp -fr /etc/postfix/local-host-names /etc/postfix/local-host-names~
    16.08.2005 - 02:19:15 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 283: cp -fr /etc/postfix/virtusertable /etc/postfix/virtusertable~
    16.08.2005 - 02:19:15 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 288: postmap hash:/etc/postfix/virtusertable
    16.08.2005 - 02:19:15 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1181: cp -fr /etc/apache2/vhosts/Vhosts_ispconfig.conf /etc/apache2/vhosts/Vhosts_ispconfig.conf~
    16.08.2005 - 02:19:15 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_bind.lib.php, Line 120: cp -fr /etc/bind/named.conf /etc/bind/named.conf~
    16.08.2005 - 02:19:17 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 696: /etc/init.d/bind9 restart &> /dev/null
    16.08.2005 - 02:19:17 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1811: cp -fr /etc/proftpd_ispconfig.conf /etc/proftpd_ispconfig.conf~
    16.08.2005 - 02:19:18 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 1846: WARNING: could not groupadd -g 12004 web4_anonftp &> /dev/null
    16.08.2005 - 02:19:18 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 1847: WARNING: could not useradd -d /home/www/web4/ftp -g web4_anonftp -M -s /bin/false -u 12004 web4_anonftp &> /dev/null
    16.08.2005 - 02:19:18 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1856: setquota -u web4_anonftp 0 0 0 0 -a &> /dev/null
    16.08.2005 - 02:19:18 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1857: setquota -g web4_anonftp 0 0 0 0 -a &> /dev/null

    Thought so.... I've tailed them and put them below:

    /var/log/mail.log

    Aug 16 19:29:50 jasons courierpop3login: LOGOUT, user=web4_test, ip=[::ffff:127.0.0.1], top=2604, retr=0, time=1
    Aug 16 19:40:44 jasons courierpop3login: Connection, ip=[::ffff:127.0.0.1]
    Aug 16 19:40:44 jasons courierpop3login: LOGIN, user=web4_test, ip=[::ffff:127.0.0.1]
    Aug 16 19:40:45 jasons courierpop3login: LOGOUT, user=web4_test, ip=[::ffff:127.0.0.1], top=2604, retr=0, time=1
    Aug 16 19:50:46 jasons courierpop3login: Connection, ip=[::ffff:127.0.0.1]
    Aug 16 19:50:46 jasons courierpop3login: LOGIN, user=web4_test, ip=[::ffff:127.0.0.1]
    Aug 16 19:50:46 jasons courierpop3login: LOGOUT, user=web4_test, ip=[::ffff:127.0.0.1], top=2604, retr=0, time=0
    Aug 16 20:00:47 jasons courierpop3login: Connection, ip=[::ffff:127.0.0.1]
    Aug 16 20:00:47 jasons courierpop3login: LOGIN, user=web4_test, ip=[::ffff:127.0.0.1]
    Aug 16 20:00:47 jasons courierpop3login: LOGOUT, user=web4_test, ip=[::ffff:127.0.0.1], top=2604, retr=0, time=0

    /var/log/mail.warn

    Aug 14 09:25:44 WikiPorn courierpop3login: LOGIN FAILED, ip=[::ffff:127.0.0.1]
    Aug 14 09:26:10 WikiPorn courierpop3login: LOGIN FAILED, ip=[::ffff:127.0.0.1]
    Aug 14 09:27:01 WikiPorn last message repeated 2 times
    Aug 14 09:27:47 WikiPorn courierpop3login: LOGIN FAILED, ip=[::ffff:127.0.0.1]
    Aug 14 09:40:16 WikiPorn courierpop3login: DISCONNECTED, user=web4_test, ip=[::ffff:127.0.0.1], top=0, retr=0, time=205
    Aug 14 11:49:59 jasons courierpop3login: DISCONNECTED, user=web4_test, ip=[::ffff:127.0.0.1], top=0, retr=0, time=0
    Aug 14 11:50:34 jasons courierpop3login: LOGIN FAILED, ip=[::ffff:168.144.108.27]
    Aug 14 11:50:46 jasons last message repeated 2 times
    Aug 14 11:52:16 jasons courierpop3login: LOGIN FAILED, ip=[::ffff:127.0.0.1]
    Aug 15 05:35:19 jasons postfix/smtpd[12575]: warning: 200.64.221.118: hostname dup-200-64-221-118.prodigy.net.mx verification failed: Name or service not known

    /var/log/mail.err

    Aug 14 09:24:04 WikiPorn courierpop3login: TIMEOUT, user=web4_test, ip=[::ffff:127.0.0.1], top=0, retr=0, time=380
    Aug 14 09:25:44 WikiPorn courierpop3login: LOGIN FAILED, ip=[::ffff:127.0.0.1]
    Aug 14 09:26:10 WikiPorn courierpop3login: LOGIN FAILED, ip=[::ffff:127.0.0.1]
    Aug 14 09:27:01 WikiPorn last message repeated 2 times
    Aug 14 09:27:47 WikiPorn courierpop3login: LOGIN FAILED, ip=[::ffff:127.0.0.1]
    Aug 14 09:40:16 WikiPorn courierpop3login: DISCONNECTED, user=web4_test, ip=[::ffff:127.0.0.1], top=0, retr=0, time=205
    Aug 14 11:49:59 jasons courierpop3login: DISCONNECTED, user=web4_test, ip=[::ffff:127.0.0.1], top=0, retr=0, time=0
    Aug 14 11:50:34 jasons courierpop3login: LOGIN FAILED, ip=[::ffff:168.144.108.27]
    Aug 14 11:50:46 jasons last message repeated 2 times
    Aug 14 11:52:16 jasons courierpop3login: LOGIN FAILED, ip=[::ffff:127.0.0.1]

    Apologies for the vast number of logs that I've pasted into this one. It can't be very interesting for other users :eek:
     
  19. jason

    jason New Member

    Any ideas?
     
  20. falko

    falko Super Moderator ISPConfig Developer

    Not really. :(
    Did you follow one of the "Perfect Setup" guides and read the installation instructions for ISPConfig?
     

Share This Page