DNS not working in ISPconfig3 cluster

Discussion in 'Installation/Configuration' started by archange, Sep 6, 2010.

  1. till

    till Super Moderator Staff Member ISPConfig Developer

    Do what I suggestes to you in #19 of this thread. Install a postfix binary which supports mysql. The binary that you installed is the postfix binary from the centos main repository which does not support mysql and not the one from the centis plus repository.
     
  2. archange

    archange New Member

    OK, please follow me:

    At this point, I can send out mail to external mailboxes, but I can't receive any. Reason is because postfix main.cf only accepts localhost connections on port 25, I guess.

    See?
    Here is the Mail Error Log:
    Code:
    Sep 9 05:45:09 server1 postfix/postfix-script: stopping the Postfix mail system
    Sep 9 05:45:09 server1 postfix/master[32752]: terminating on signal 15
    Sep 9 05:48:33 server1 postfix/postfix-script: fatal: the Postfix mail system is not running
    Sep 9 05:48:34 server1 sendmail[7302]: alias database /etc/aliases rebuilt by root
    Sep 9 05:48:34 server1 sendmail[7302]: /etc/aliases: 77 aliases, longest 10 bytes, 779 bytes total
    Sep 9 05:48:34 server1 postfix/postfix-script: starting the Postfix mail system
    Sep 9 05:48:34 server1 postfix/master[7348]: daemon started -- version 2.3.3, configuration /etc/postfix
    Sep 9 05:50:01 server1 dovecot: pop3-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Sep 9 05:50:01 server1 dovecot: imap-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Sep 9 05:50:01 server1 postfix/smtpd[7442]: connect from localhost.localdomain[127.0.0.1]
    Sep 9 05:50:01 server1 postfix/smtpd[7442]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
    Sep 9 05:50:01 server1 postfix/smtpd[7442]: disconnect from localhost.localdomain[127.0.0.1]
    Sep 9 05:54:17 server1 dovecot: auth-worker(default): mysql: Connected to localhost (dbispconfig)
    Sep 9 05:54:17 server1 dovecot: IMAP(archange@dtxigaming.com): Disconnected: Logged out bytes=44/709
    Sep 9 05:54:17 server1 dovecot: imap-login: Login: user=, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
    Sep 9 05:54:20 server1 dovecot: IMAP(archange@dtxigaming.com): Disconnected: Logged out bytes=261/1896
    Sep 9 05:54:20 server1 dovecot: imap-login: Login: user=, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
    Sep 9 05:54:21 server1 dovecot: imap-login: Login: user=, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
    Sep 9 05:54:21 server1 dovecot: IMAP(archange@dtxigaming.com): Disconnected: Logged out bytes=289/1368
    Sep 9 05:54:26 server1 dovecot: imap-login: Login: user=, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
    Sep 9 05:54:26 server1 dovecot: IMAP(archange@dtxigaming.com): Disconnected: Logged out bytes=79/687
    Sep 9 05:55:02 server1 postfix/smtpd[7688]: connect from localhost.localdomain[127.0.0.1]
    Sep 9 05:55:02 server1 postfix/smtpd[7688]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
    Sep 9 05:55:02 server1 postfix/smtpd[7688]: disconnect from localhost.localdomain[127.0.0.1]
    Sep 9 05:55:02 server1 dovecot: pop3-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Sep 9 05:55:02 server1 dovecot: imap-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Sep 9 05:57:51 server1 dovecot: IMAP(archange@dtxigaming.com): Disconnected: Logged out bytes=306/3093
    Sep 9 05:57:51 server1 dovecot: imap-login: Login: user=, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
    Sep 9 05:57:59 server1 dovecot: IMAP(archange@dtxigaming.com): Disconnected: Logged out bytes=142/1550
    Sep 9 05:57:59 server1 dovecot: imap-login: Login: user=, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
    Sep 9 05:58:02 server1 dovecot: IMAP(archange@dtxigaming.com): Disconnected: Logged out bytes=142/1550
    Sep 9 05:58:02 server1 dovecot: imap-login: Login: user=, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
    Sep 9 05:58:16 server1 sendmail[7860]: o899w5Ta007860: Authentication-Warning: server1.arenahosting.org: apache set sender to archange@dtxigaming.com using -f
    Sep 9 05:58:26 server1 sendmail[7860]: o899w5Ta007860: from=archange@dtxigaming.com, size=565, class=0, nrcpts=1, msgid=<25858.212.93.151.155.1284026285.squirrel@arenahosting.org>, relay=apache@localhost
    Sep 9 05:58:27 server1 postfix/smtpd[7863]: connect from localhost.localdomain[127.0.0.1]
    Sep 9 05:58:27 server1 postfix/smtpd[7863]: 0AAF7BF400BF: client=localhost.localdomain[127.0.0.1]
    Sep 9 05:58:27 server1 postfix/cleanup[7866]: 0AAF7BF400BF: message-id=<25858.212.93.151.155.1284026285.squirrel@arenahosting.org>
    Sep 9 05:58:27 server1 sendmail[7860]: o899w5Ta007860: to=gabriel.stan@megaprofil.ro, ctladdr=archange@dtxigaming.com (48/48), delay=00:00:22, xdelay=00:00:01, mailer=relay, pri=30565, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 0AAF7BF400BF)
    Sep 9 05:58:27 server1 postfix/qmgr[7350]: 0AAF7BF400BF: from=, size=1053, nrcpt=1 (queue active)
    Sep 9 05:58:27 server1 postfix/smtpd[7863]: disconnect from localhost.localdomain[127.0.0.1]
    Sep 9 05:58:28 server1 dovecot: imap-login: Login: user=, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
    Sep 9 05:58:28 server1 dovecot: IMAP(archange@dtxigaming.com): Disconnected: Logged out bytes=656/459
    Sep 9 05:58:30 server1 dovecot: imap-login: Login: user=, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
    Sep 9 05:58:30 server1 dovecot: IMAP(archange@dtxigaming.com): Disconnected: Logged out bytes=306/3498
    Sep 9 05:58:43 server1 postfix/smtp[7867]: 0AAF7BF400BF: to=, relay=mail.megaprofil.ro[212.93.151.155]:25, delay=16, delays=0.06/0.01/16/0.03, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 4F5602FF8003)
    Sep 9 05:58:43 server1 postfix/qmgr[7350]: 0AAF7BF400BF: removed
    Sep 9 05:59:28 server1 dovecot: IMAP(archange@dtxigaming.com): Disconnected: Logged out bytes=79/687
    Sep 9 05:59:28 server1 dovecot: imap-login: Login: user=, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
    Sep 9 06:00:01 server1 postfix/smtpd[7863]: connect from localhost.localdomain[127.0.0.1]
    Sep 9 06:00:01 server1 postfix/smtpd[7863]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
    Sep 9 06:00:01 server1 postfix/smtpd[7863]: disconnect from localhost.localdomain[127.0.0.1]
    Sep 9 06:00:01 server1 dovecot: pop3-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Sep 9 06:00:01 server1 dovecot: imap-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    
    ...
    
    Sep 9 06:05:25 server1 postfix/smtp[8229]: connect to mail.dtxigaming.com[85.121.201.138]: Connection refused (port 25)
    Sep 9 06:05:25 server1 postfix/smtp[8229]: 128D0BF400B0: to=, relay=none, delay=78677, delays=78666/0.02/11/0, dsn=4.4.1, status=deferred (connect to mail.dtxigaming.com[85.121.201.138]: Connection refused)
    Sep 9 06:05:25 server1 postfix/smtp[8230]: connect to mail.arenahosting.org[85.121.201.138]: Connection refused (port 25)
    Sep 9 06:05:25 server1 postfix/smtp[8230]: 7910ABF400BC: to=, relay=none, delay=7470, delays=7459/0.01/11/0, dsn=4.4.1, status=deferred (connect to mail.arenahosting.org[85.121.201.138]: Connection refused)
    Sep 9 06:05:25 server1 postfix/smtp[8231]: connect to mail.dtxigaming.com[85.121.201.138]: Connection refused (port 25)
    Sep 9 06:05:25 server1 postfix/smtp[8231]: 9A143BF400AC: to=, relay=none, delay=81749, delays=81738/0.01/11/0, dsn=4.4.1, status=deferred (connect to mail.dtxigaming.com[85.121.201.138]: Connection refused)
    What am I missing?
     
    Last edited: Sep 9, 2010
  3. archange

    archange New Member

    Please, anyone, help!
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Most likely the reinstall has overwritten some config files. Download ispconfig tar.gz and run the update.php script and choose to reconfigure services.
     
  5. archange

    archange New Member

    I already tried this - remember? Then I get the error about "unsupported dictionary mysql"
     
    Last edited: Sep 10, 2010
  6. falko

    falko Super Moderator ISPConfig Developer

    What's in /etc/yum.repos.d/CentOS-Base.repo? I guess the wrong Postfix package got installed.
     
  7. archange

    archange New Member

    @Falko:

    Code:
    # CentOS-Base.repo
    #
    # The mirror system uses the connecting IP address of the client and the
    # update status of each mirror to pick mirrors that are updated to and
    # geographically close to the client.  You should use this for CentOS updates
    # unless you are manually picking other mirrors.
    #
    # If the mirrorlist= does not work for you, as a fall back you can try the
    # remarked out baseurl= line instead.
    #
    #
    
    [base]
    name=CentOS-$releasever - Base
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
    #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
    
    #released updates
    [updates]
    name=CentOS-$releasever - Updates
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
    #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
    exclude=postfix
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
    
    #packages used/produced in the build but not released
    [addons]
    name=CentOS-$releasever - Addons
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
    #baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
    
    #additional packages that may be useful
    [extras]
    name=CentOS-$releasever - Extras
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
    #baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
    
    #additional packages that extend functionality of existing packages
    [centosplus]
    name=CentOS-$releasever - Plus
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
    #baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
    gpgcheck=1
    enabled=1
    includepkgs=postfix
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
    
    #contrib - packages by Centos Users
    [contrib]
    name=CentOS-$releasever - Contrib
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
    #baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
    gpgcheck=1
    enabled=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
    
    Question: how could it be the wrong postfix package, I mean, right now I can send, but not receive?

    Still, I wish you were right, so i can finally get this over with :D
    *fingers crossed*
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    I know, but the order of actions matters! You have to do this after the postfix binary with mysql support has been installed to reconfigure the newly installed postfix.

    The mysql database is not queried when a email is sent, it is only queried when a email is received.
     
  9. archange

    archange New Member

    @Falko: shere genius. I may have found the glitch: not having included:

    I just reinstalled postfix and already I can see it's a different version: postfix-2.3.3-2.1.centos.mysql_pgsql.x86_64.rpm as opposed to postfix.x86_64 2:2.3.3-2.1.el5_2.
    Also postgresql.x86_64 0:8.1.21-1.el5_5.1 got installed too. ;)

    @Till

    I understand; I reinstalled the correct postfix binary, I will update ISPconfig ASAP.

    Wish me luck!
     
  10. archange

    archange New Member

    Falko, Till, Thank you! I can finally breathe again xD
     
  11. archange

    archange New Member

  12. falko

    falko Super Moderator ISPConfig Developer

    Make sure that you introduced no PHP syntax error when you configured RoundCube.
     
  13. archange

    archange New Member

    I redid the steps 3 times and once more by setting up a RC on a on a subdomain. I must be missing something, but I can't see what... :(

    Database access is ok, tried it in phpmyadmin...
     
  14. archange

    archange New Member

    I have looked for errors in the RoundCube log folder, but there is no log file yet.
    Permissions were set both on logs and temp:

    Code:
    chmod 755 temp logs
    Then I looked in the logs of the apache subdomain that I used for the RC test installation and i found the following messages:

    I checked mod_fcgid installation:

    How do I deal with this?
     
    Last edited: Sep 13, 2010
  15. falko

    falko Super Moderator ISPConfig Developer

    What are the outputs of
    Code:
    ls -la /var/www/clients/client0/web7/web/program/include/
    and
    Code:
    updatedb
    locate iniset.php
    ?
     
  16. archange

    archange New Member

    @ Falko:

    Code:
    # ls -la /var/www/clients/client0/web7/web/program/include/
    total 616
    drwxr-xr-x 2 501 80   4096 Sep 10 16:54 .
    drwxr-xr-x 7 501 80   4096 Sep 10 16:54 ..
    -rw-r--r-- 1 501 80  19918 Jun 23 05:55 html.php
    -rwxr-xr-x 1 501 80   4080 Aug  7 05:44 iniset.php
    -rw-r--r-- 1 501 80  47268 Jul 26 04:54 main.inc
    -rw-r--r-- 1 501 80  35700 Aug  6 10:59 rcmail.php
    -rw-r--r-- 1 501 80   6808 Apr 23 07:25 rcube_addressbook.php
    -rw-r--r-- 1 501 80   3167 Jun 23 05:55 rcube_browser.php
    -rw-r--r-- 1 501 80   8747 Jun  3 04:02 rcube_config.php
    -rw-r--r-- 1 501 80  19234 Jun  2 06:23 rcube_contacts.php
    -rw-r--r-- 1 501 80   8607 Apr 23 07:25 rcube_html_page.php
    -rw-r--r-- 1 501 80  60950 Aug  4 09:49 rcube_imap_generic.php
    -rw-r--r-- 1 501 80 131172 Jul 30 08:46 rcube_imap.php
    -rw-r--r-- 1 501 80   6826 Apr 23 07:25 rcube_json_output.php
    -rw-r--r-- 1 501 80  20210 Jun 23 05:55 rcube_ldap.php
    -rw-r--r-- 1 501 80  20751 Apr 30 10:14 rcube_mdb2.php
    -rw-r--r-- 1 501 80  23485 Aug  6 09:22 rcube_message.php
    -rw-r--r-- 1 501 80   6255 Apr 23 10:25 rcube_mime_struct.php
    -rw-r--r-- 1 501 80  13247 Jul 30 02:34 rcube_plugin_api.php
    -rw-r--r-- 1 501 80   7531 Jun  3 02:40 rcube_plugin.php
    -rw-r--r-- 1 501 80   1832 Apr 23 07:25 rcube_result_set.php
    -rw-r--r-- 1 501 80   8704 Apr 23 10:25 rcube_session.php
    -rw-r--r-- 1 501 80  16449 Jul 28 05:02 rcube_shared.inc
    -rw-r--r-- 1 501 80  12914 Jun  8 09:39 rcube_smtp.php
    -rw-r--r-- 1 501 80   2128 Jun 23 05:55 rcube_sqlite.inc
    -rw-r--r-- 1 501 80   3950 Jan 18  2010 rcube_string_replacer.php
    -rwxr-xr-x 1 501 80  42187 Jun  8 17:13 rcube_template.php
    -rw-r--r-- 1 501 80  15353 Aug  6 10:39 rcube_user.php
    -rw-r--r-- 1 501 80  14598 Aug  4 04:15 rcube_vcard.php
    
    Code:
    # locate iniset.php
    /opt/backup/roundcube-0.4/program/include/iniset.php
    /usr/share/squirrelmail/squirrelmail/program/include/iniset.php
    /usr/share/squirrelmail.bak/squirrelmail/program/include/iniset.php
    /var/www/clients/client0/web7/web/program/include/iniset.php
    
     
  17. falko

    falko Super Moderator ISPConfig Developer

    There seems to be something wrong with the file owner and group. If IDs such as 501 and 80 are listed, this normally means there is no user and group with such an ID in /etc/passwd and /etc/group. Maybe you have to change the ownership with the chown command.
     
  18. archange

    archange New Member

    Can you please show me how to set the correct permissions?
     
    Last edited: Sep 29, 2010
  19. till

    till Super Moderator Staff Member ISPConfig Developer

    Please run this command to fix the permissions:

    Code:
    chown -R web7:client0 /var/www/clients/client0/web7/web/*
     
  20. archange

    archange New Member

    Ok, and if I copy the RC files to /usr/share/squirrelmail, replacing the working squirrelmail installation, so that the login page would be available to all users and domains, the permissions would be:

    chown -R apache:apache /usr/share/squirrelmail/*

    I that correct?
     

Share This Page