Installing Moodle on ISPconfig server.

Discussion in 'Installation/Configuration' started by johnsw16, Oct 31, 2008.

  1. till

    till Super Moderator Staff Member ISPConfig Developer

    Ensure that you used the correct username incl. prefix (e.g. web1_nenad) and the correct password of the mail account.
     
  2. nenad

    nenad ISPConfig Developer ISPConfig Developer

    Now I definitelly don't understand you - why should I use web1_nenad ?
    Isn't this teh right way to assign mailbox to user?

    UPDATE:
    I figured out what was problem with login:
    I tried only nenad.bulatovic and it should be nenad.bulatovic@ftniim.org :)
     

    Attached Files:

    Last edited: Oct 15, 2012
  3. nenad

    nenad ISPConfig Developer ISPConfig Developer

    I run a
    piks:~# tail -f /var/log/mail.log

    Oct 15 18:14:26 piks postfix/qmgr[2704]: 1DA312FE84: from=<nenad.bulatovic@ftniim.org>, size=1450, nrcpt=1 (queue active)
    Oct 15 18:14:26 piks amavis[2448]: (02448-11) Passed CLEAN, LOCAL [127.0.0.1] [89.216.116.183] <nenad.bulatovic@ftniim.org> -> <nenad.bulatovic@gmail.com>, Message-ID: <6588ff8dd48d1b1db89fbd3fb2a7f938.squirrel@www.webmail.ftniim.org>, mail_id: SSVYmfH3NJV6, Hits: -0.957, size: 982, queued_as: 1DA312FE84, 12170 ms
    Oct 15 18:14:26 piks postfix/smtp[5559]: DAA7A2FD79: to=<nenad.bulatovic@gmail.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=12, delays=0.16/0.05/0.01/12, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=02448-11, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 1DA312FE84)
    Oct 15 18:14:26 piks postfix/qmgr[2704]: DAA7A2FD79: removed
    Oct 15 18:14:36 piks postfix/smtp[5527]: 1DA312FE84: to=<nenad.bulatovic@gmail.com>, relay=none, delay=10, delays=0.11/0.02/10/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=gmail.com type=MX: Host not found, try again)
    Oct 15 18:15:01 piks postfix/smtpd[5555]: connect from localhost.localdomain[127.0.0.1]
    Oct 15 18:15:01 piks postfix/smtpd[5555]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
    Oct 15 18:15:01 piks postfix/smtpd[5555]: disconnect from localhost.localdomain[127.0.0.1]
    Oct 15 18:15:01 piks dovecot: pop3-login: Disconnected: rip=127.0.0.1, lip=127.0.0.1, secured
    Oct 15 18:15:01 piks dovecot: imap-login: Disconnected: rip=127.0.0.1, lip=127.0.0.1, secured
    Oct 15 18:15:04 piks postfix/pickup[4391]: C001D2FE85: uid=0 from=<root>
    Oct 15 18:15:04 piks postfix/cleanup[5558]: C001D2FE85: message-id=<20121015161504.C001D2FE85@piks.ftniim.org>
    Oct 15 18:15:04 piks postfix/qmgr[2704]: C001D2FE85: from=<root@piks.ftniim.org>, size=1535, nrcpt=1 (queue active)
    Oct 15 18:15:17 piks postfix/smtpd[5567]: connect from localhost.localdomain[127.0.0.1]
    Oct 15 18:15:17 piks postfix/smtpd[5567]: D356B2FD79: client=localhost.localdomain[127.0.0.1]
    Oct 15 18:15:17 piks postfix/cleanup[5558]: D356B2FD79: message-id=<20121015161504.C001D2FE85@piks.ftniim.org>
    Oct 15 18:15:18 piks postfix/smtpd[5567]: disconnect from localhost.localdomain[127.0.0.1]
    Oct 15 18:15:18 piks postfix/qmgr[2704]: D356B2FD79: from=<root@piks.ftniim.org>, size=1993, nrcpt=1 (queue active)
    Oct 15 18:15:18 piks amavis[2447]: (02447-12) Passed CLEAN, <root@piks.ftniim.org> -> <root@piks.ftniim.org>, Message-ID: <20121015161504.C001D2FE85@piks.ftniim.org>, mail_id: pFkUTMR7LVG3, Hits: -0.001, size: 1535, queued_as: D356B2FD79, 13067 ms
    Oct 15 18:15:18 piks postfix/smtp[5559]: C001D2FE85: to=<root@piks.ftniim.org>, orig_to=<root>, relay=127.0.0.1[127.0.0.1]:10024, delay=15, delays=2.2/0/0.01/13, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=02447-12, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as D356B2FD79)
    Oct 15 18:15:18 piks postfix/qmgr[2704]: C001D2FE85: removed
    Oct 15 18:15:18 piks postfix/local[5622]: D356B2FD79: to=<administrator@piks.ftniim.org>, orig_to=<root@piks.ftniim.org>, relay=local, delay=0.3, delays=0.14/0.05/0/0.11, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
    Oct 15 18:15:18 piks postfix/qmgr[2704]: D356B2FD79: removed
     
    Last edited: Oct 15, 2012
  4. nenad

    nenad ISPConfig Developer ISPConfig Developer

    UPDATE:
    I can send email to myself: nenad.bulatovic@ftniim.org ---> nenad.bulatovic@ftniim.org , and I can send from any email account to nenad.bulatovic@ftniim.org, but I can't send from nenad.bulatovic@ftniim.org to any other accout (besides sending it to itself).

    DNS resolve should be fine according to this:

    Could it be that some of these settings are wrong?

    I also found that:

     

    Attached Files:

    Last edited: Oct 15, 2012
  5. nenad

    nenad ISPConfig Developer ISPConfig Developer

    [solved]

    OK, finally I got it

    during postfix stop and postfix start

    showed me that

    Oct 15 20:45:38 piks postfix/postfix-script[8550]: warning: /var/spool/postfix/etc/resolv.conf and /etc/resolv.conf differ

    I was making all changes in /etc/resolv.conf but it seems that what counts is /var/spool/postfix/etc/resolv.conf so when I made changes (updated nameservers) )

    So, finally, when I updated nameservers in /var/spool/postfix/etc/resolv.conf postfix can resolve and it works!!!

    Question: how comes that /var/spool/postfix/etc/resolv.conf is main and that /etc/resolv.conf is shadow?
    I always tought that /etc/resolv.conf is main?
     
    Last edited: Oct 15, 2012
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    The file /etc/resolv.conf is the main one, the copy in /var/spool/postfix/etc/resolv.conf belongs to the postfix jail. Postfix should update it automatically on restart if I remember correctly.
     
  7. nenad

    nenad ISPConfig Developer ISPConfig Developer

    Yes, you are right, /etc/resolv.conf is main and /var/spool/postfix/etc/resolv.conf reflects all chages made in main file after
    Code:
    /etc/init.d/postfix stop
    /etc/init.d/postfix start
    
    I don't know why it didn't work that way yesterday, even after several full server (server as machine not server as mail server) reboots :confused:

    Anyway, it's obviously pure name server problem, not postfix problem, and I am glad that it is resolved - thank you :)
     
    Last edited: Oct 17, 2012
  8. nenad

    nenad ISPConfig Developer ISPConfig Developer

    BIG problem

    Unfortunately my problems aren't over yet! Now I don't have my website?
    When I check it using SSH it's there - it's not deleted, and ISPConfig also shows it's there, but I can't acess it?

    and

    What should I do?

    UPDATE:

    I found what is it:

    Here it says: http://www.howtoforge.com/perfect-s...bian-5.0-with-bind-and-dovecot-ispconfig-3-p5

    So I did it as

    So I did it as
    And it caused problems...

    When I commented it out such as
    It become normal - my website MOODLE is visible again.

    I don't know why this happened?
     
    Last edited: Oct 16, 2012
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    The most likely reason is that you mixed IP based and wildcard based hosts, if you do that, the ip based will always win and gets displaey. The solution si simple, just select the IP address instead of * in the website settings, if the ip is not in the list, then add it first udner System > Server IP.
     
  10. nenad

    nenad ISPConfig Developer ISPConfig Developer

    So, everything was working just fine until recently - after some experiemnts with installing and removing php 5.2 and 5.3 webmail cased to exist?

    If I try to acess it with:
    http://ftniim.org/webmail/src/login.php
    or
    http://ftniim.org/webmail
    Any ideas what it might be?

    Is it possible that I somehow removed squirlemail?

     
    Last edited: Jan 26, 2013
  11. nenad

    nenad ISPConfig Developer ISPConfig Developer

    Anyone?
    Any help would be highly appreciated?

    At least I need soem directions where should I look for problem...
     
  12. falko

    falko Super Moderator ISPConfig Developer

    That seems to be the case. Have you tried to reinstall it with
    Code:
    apt-get install squirrelmail
    ?
     
  13. nenad

    nenad ISPConfig Developer ISPConfig Developer

    @Falko

    Well that was a touch of a genius :)

    Solution was so simple and right in front of my nose but i couldn't see it :)

    It works now - and even all emails are preserved :)

    Thank you falko :)

    Respect,
    Nenad
     
: ispconfig, moodle

Share This Page