Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #21  
Old 15th October 2012, 17:31
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,446
Thanks: 813
Thanked 5,213 Times in 4,088 Posts
Default

Ensure that you used the correct username incl. prefix (e.g. web1_nenad) and the correct password of the mail account.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Sponsored Links
  #22  
Old 15th October 2012, 17:44
nenad nenad is offline
Senior Member
 
Join Date: Nov 2005
Location: Novi Sad, Serbia
Posts: 415
Thanks: 13
Thanked 5 Times in 5 Posts
Default

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 Images
 
__________________
Nenad Bulatovic
---------------
Debian Lenny & ISPConfig 3

Last edited by nenad; 15th October 2012 at 17:54.
Reply With Quote
  #23  
Old 15th October 2012, 18:09
nenad nenad is offline
Senior Member
 
Join Date: Nov 2005
Location: Novi Sad, Serbia
Posts: 415
Thanks: 13
Thanked 5 Times in 5 Posts
Default

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.web mail.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
__________________
Nenad Bulatovic
---------------
Debian Lenny & ISPConfig 3

Last edited by nenad; 15th October 2012 at 18:16.
Reply With Quote
  #24  
Old 15th October 2012, 18:56
nenad nenad is offline
Senior Member
 
Join Date: Nov 2005
Location: Novi Sad, Serbia
Posts: 415
Thanks: 13
Thanked 5 Times in 5 Posts
Default

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:

Quote:
piks:~# dig mx mail.google.com

; <<>> DiG 9.6-ESV-R4 <<>> mx mail.google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 33002
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;mail.google.com. IN MX

;; ANSWER SECTION:
mail.google.com. 35151 IN CNAME googlemail.l.google.com.

;; AUTHORITY SECTION:
l.google.com. 51 IN SOA ns4.google.com. dns-admin.google.com. 1500355 900 900 1800 60

;; Query time: 45 msec
;; SERVER: 145.253.2.75#53(145.253.2.75)
;; WHEN: Mon Oct 15 18:52:31 2012
;; MSG SIZE rcvd: 110

piks:~#
Could it be that some of these settings are wrong?

I also found that:

Quote:
piks:~# postconf relayhost
relayhost =
piks:~# host -t a mail
Host mail not found: 3(NXDOMAIN)
Attached Images
  
__________________
Nenad Bulatovic
---------------
Debian Lenny & ISPConfig 3

Last edited by nenad; 15th October 2012 at 20:28.
Reply With Quote
  #25  
Old 15th October 2012, 21:02
nenad nenad is offline
Senior Member
 
Join Date: Nov 2005
Location: Novi Sad, Serbia
Posts: 415
Thanks: 13
Thanked 5 Times in 5 Posts
Smile [solved]

OK, finally I got it

Quote:
tail -f /var/log/mail.log
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?
__________________
Nenad Bulatovic
---------------
Debian Lenny & ISPConfig 3

Last edited by nenad; 15th October 2012 at 21:14.
Reply With Quote
  #26  
Old 16th October 2012, 08:15
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,446
Thanks: 813
Thanked 5,213 Times in 4,088 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
nenad (16th October 2012)
  #27  
Old 16th October 2012, 18:53
nenad nenad is offline
Senior Member
 
Join Date: Nov 2005
Location: Novi Sad, Serbia
Posts: 415
Thanks: 13
Thanked 5 Times in 5 Posts
Default

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

Anyway, it's obviously pure name server problem, not postfix problem, and I am glad that it is resolved - thank you
__________________
Nenad Bulatovic
---------------
Debian Lenny & ISPConfig 3

Last edited by nenad; 17th October 2012 at 15:56.
Reply With Quote
  #28  
Old 16th October 2012, 20:58
nenad nenad is offline
Senior Member
 
Join Date: Nov 2005
Location: Novi Sad, Serbia
Posts: 415
Thanks: 13
Thanked 5 Times in 5 Posts
Default 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?

Quote:
http://ftniim.org/moodle/
shows
Not Found

The requested URL /moodle/ was not found on this server.
Apache/2.2.9 (Debian) DAV/2 PHP/5.2.6-1+lenny16 with Suhosin-Patch mod_ruby/1.2.6 Ruby/1.8.7(2008-08-11) mod_ssl/2.2.9 OpenSSL/0.9.8g Server at ftniim.org Port 80
and

What should I do?

UPDATE:

I found what is it:

Here it says: http://www.howtoforge.com/perfect-se...ispconfig-3-p5

Quote:
If you'd like to define a vhost like webmail.example.com where your users can access SquirrelMail, you'd have to add the following vhost configuration to /etc/apache2/conf.d/squirrelmail.conf:

vi /etc/apache2/conf.d/squirrelmail.conf

[...]
<VirtualHost 1.2.3.4:80>
DocumentRoot /usr/share/squirrelmail
ServerName webmail.example.com
</VirtualHost>
So I did it as

Quote:
If you'd like to define a vhost like webmail.example.com where your users can access SquirrelMail, you'd have to add the following vhost configuration to /etc/apache2/conf.d/squirrelmail.conf:

vi /etc/apache2/conf.d/squirrelmail.conf

[...]
<VirtualHost 1.2.3.4:80>
DocumentRoot /usr/share/squirrelmail
ServerName webmail.example.com
</VirtualHost>
So I did it as
Quote:

# users will prefer a simple URL like http://webmail.example.com
<VirtualHost 147.91.175.211:80>
DocumentRoot /usr/share/squirrelmail
ServerName webmail.ftniim.org
</VirtualHost>
And it caused problems...

When I commented it out such as
Quote:
# users will prefer a simple URL like http://webmail.example.com
#<VirtualHost 147.91.175.211:80>
# DocumentRoot /usr/share/squirrelmail
# ServerName webmail.ftniim.org
#</VirtualHost>

It become normal - my website MOODLE is visible again.

I don't know why this happened?
__________________
Nenad Bulatovic
---------------
Debian Lenny & ISPConfig 3

Last edited by nenad; 16th October 2012 at 21:07.
Reply With Quote
  #29  
Old 17th October 2012, 08:49
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,446
Thanks: 813
Thanked 5,213 Times in 4,088 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #30  
Old 26th January 2013, 19:25
nenad nenad is offline
Senior Member
 
Join Date: Nov 2005
Location: Novi Sad, Serbia
Posts: 415
Thanks: 13
Thanked 5 Times in 5 Posts
 
Default

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
Quote:
Forbidden

You don't have permission to access /webmail/src/login.php on this server.
http://ftniim.org/webmail
Quote:
ERROR 403 - Forbidden!


The following error occurred:

You are not permitted to access the requested URL.

Please contact the webmaster with any queries.

Powered by ISPConfig
Any ideas what it might be?

Is it possible that I somehow removed squirlemail?

Quote:
piks:~# cd /usr/share/squirrelmail
-bash: cd: /usr/share/squirrelmail: No such file or directory
piks:~#
__________________
Nenad Bulatovic
---------------
Debian Lenny & ISPConfig 3

Last edited by nenad; 26th January 2013 at 19:49.
Reply With Quote
Reply

Bookmarks

Tags
ispconfig, moodle

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
php Apps email not going through palkat General 8 21st September 2011 05:35
Help installing ISPConfig on Ubuntu 7.10 Server Peasant Dave Installation/Configuration 7 25th October 2007 00:27
subdomain and mail relay configuration aranthorn Installation/Configuration 24 3rd September 2007 22:53
Problems with installation on openSUSE 10.2 douglaslopezt Installation/Configuration 3 24th August 2007 22:04
Need help installing ISPConfig on Ubuntu Server via VMware dfwgreg Installation/Configuration 3 8th November 2006 10:52


All times are GMT +2. The time now is 21:59.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.