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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 5th May 2010, 00:19
stevegjacobs stevegjacobs is offline
Junior Member
 
Join Date: Sep 2008
Posts: 28
Thanks: 1
Thanked 1 Time in 1 Post
Default Postfix start errors

I tried to carefully follow the tutorial for intstalling ispconfig 3 on Centos 5.4/ When I was finished everything worked great, except email. I configured an email domain and an address using ISPConfig, but no luck sending or receiving

I notice that when I start or restart postfix I am first getting this error:
May 4 18:45:55 webserver2 postfix/master[12788]: daemon started -- version 2.3.3, configuration /etc/postfix
May 4 18:46:09 webserver2 imapd: Failed to create cache file: maildirwatch (steve@somedomain.com)
May 4 18:46:09 webserver2 imapd: Error: No such file or directory


Following this, the email system simply doesnt work:

Then while doing 'tail -f /var/log/maillog' I tried to check for mail using a remote imap mail client (thunderbird):
May 4 18:20:16 webserver2 postfix/smtpd[6941]: connect from unknown[xxx.xxx.xxx.xxx]
May 4 18:20:16 webserver2 postfix/smtpd[6941]: disconnect from unknown[xxx.xxx.xxx.xxx]

Then sent a mail to my address on the new server:
May 4 18:22:59 webserver2 postfix/smtpd[11277]: connect from av.dblue.ie[yyy.yyy.yyy.yyy]
May 4 18:22:59 webserver2 postfix/smtpd[11277]: NOQUEUE: reject: RCPT from av.dblue.ie[yyy.yyy.yyy.yyy]: 554 5.7.1 <steve@somedomain.com>: Relay access denied; from=<stevej@dblue.ie> to=<steve@somedomain.com> proto=ESMTP helo=<av-scan.dblue.ie>
May 4 18:22:59 webserver2 postfix/smtpd[11277]: disconnect from av.dblue.ie[yyy.yyy.yyy.yyy]

Here is the current output of postconf -n
[root@webserver2]# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
html_directory = no
inet_interfaces = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = mail.somedomain.com,localhost,webserver.somedomain .com mail.$mydomain, www.$mydomain, ftp.$mydomain
mydomain = somedomain.com
myhostname = webserver.somedomain.com
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
unknown_local_recipient_reject_code = 550

Any thoughts on what I've done wrong
thanks
Steve
Reply With Quote
Sponsored Links
  #2  
Old 5th May 2010, 13:11
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,589
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

Did you install courier or dovecot as pop3 / imap server?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 5th May 2010, 16:48
stevegjacobs stevegjacobs is offline
Junior Member
 
Join Date: Sep 2008
Posts: 28
Thanks: 1
Thanked 1 Time in 1 Post
Default

I've installed courier - followed the 'Perfect Server Centos 5.4 tutorial
Reply With Quote
  #4  
Old 5th May 2010, 16:50
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,589
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

Please post the output of:

ls -la /var/vmail/
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 5th May 2010, 19:24
stevegjacobs stevegjacobs is offline
Junior Member
 
Join Date: Sep 2008
Posts: 28
Thanks: 1
Thanked 1 Time in 1 Post
Default

The output you asked for is below, but in the meantime I think I've messed up everything. I was running ispconfig 3.0.16 and decided to update to 3.0.21. Now the ispconfig web interface address (mydomain.com:8080) results in a blank page.

Here is the output:
# ls -la /var/vmail/
total 40
drwx------ 5 vmail vmail 4096 May 5 16:28 .
drwxr-xr-x 10 root root 4096 May 5 10:08 ..
-rw-r--r-- 1 vmail vmail 33 Apr 28 19:50 .bash_logout
-rw-r--r-- 1 vmail vmail 176 Apr 28 19:50 .bash_profile
-rw-r--r-- 1 vmail vmail 124 Apr 28 19:50 .bashrc
drwxr-xr-x 4 vmail vmail 4096 May 5 10:35 mydomain.com
-rw------- 1 vmail vmail 1382 May 5 16:28 .mailfilter
-rw-r--r-- 1 root root 1382 May 5 16:28 .mailfilter~
drwxr-xr-x 3 root root 4096 Apr 30 12:46 mailfilters
drwxr-xr-x 4 vmail vmail 4096 Apr 28 19:50 .mozilla

Last edited by stevegjacobs; 5th May 2010 at 19:40.
Reply With Quote
  #6  
Old 5th May 2010, 19:29
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,589
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

Quote:
The output you asked for is below, but in the meantime I think I've messed up everything. I was running ispconfig 3.0.16 and decided to update to 3.0.21. Now the ispconfig web interface address (mydomain.com:8080) results in a blank page.
Ok. Then we should check this first. Please take a look into the apache error log file.

The output for the /var/vmail directory is ok.

By the way, why did you use centos for the install? Debian, which is the recommended linux distribution fo ispconfig, is much easier to setup. Centos is more for linux cracks which dont care if the have to compile everything manually as centos lacks a lot of software.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 6th May 2010, 11:31
stevegjacobs stevegjacobs is offline
Junior Member
 
Join Date: Sep 2008
Posts: 28
Thanks: 1
Thanked 1 Time in 1 Post
Default

Here are a few lines from apache error log immediatly following a visit to http://mydomain.com:8080:

Code:
# tail -f error_log
[Thu May 06 10:19:49 2010] [error] [client 86.47.41.3] PHP Warning:  app::include_once() [<a href='function.include'>function.include</a>]: Failed opening '/mnt/drbd/ispconfig/interface/lib/classes/plugin.inc.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /mnt/drbd/ispconfig/interface/lib/app.inc.php on line 79
[Thu May 06 10:19:49 2010] [error] [client 86.47.41.3] PHP Fatal error:  Class 'plugin' not found in /mnt/drbd/ispconfig/interface/lib/app.inc.php on line 80
[Thu May 06 10:19:49 2010] [error] [client 86.47.41.3] File does not exist: /usr/local/ispconfig/interface/web/favicon.ico
[Thu May 06 10:19:52 2010] [error] [client 86.47.41.3] File does not exist: /usr/local/ispconfig/interface/web/favicon.ico
[Thu May 06 10:19:56 2010] [error] [client 86.47.41.3] PHP Warning:  app::include_once(/mnt/drbd/ispconfig/interface/lib/classes/plugin.inc.php) [<a href='function.app-include-once'>function.app-include-once</a>]: failed to open stream: Permission denied in /mnt/drbd/ispconfig/interface/lib/app.inc.php on line 79
[Thu May 06 10:19:56 2010] [error] [client 86.47.41.3] PHP Warning:  app::include_once() [<a href='function.include'>function.include</a>]: Failed opening '/mnt/drbd/ispconfig/interface/lib/classes/plugin.inc.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /mnt/drbd/ispconfig/interface/lib/app.inc.php on line 79
[Thu May 06 10:19:56 2010] [error] [client 86.47.41.3] PHP Fatal error:  Class 'plugin' not found in /mnt/drbd/ispconfig/interface/lib/app.inc.php on line 80
[Thu May 06 10:20:28 2010] [error] [client 86.47.41.3] PHP Warning:  app::include_once(/mnt/drbd/ispconfig/interface/lib/classes/plugin.inc.php) [<a href='function.app-include-once'>function.app-include-once</a>]: failed to open stream: Permission denied in /mnt/drbd/ispconfig/interface/lib/app.inc.php on line 79
[Thu May 06 10:20:28 2010] [error] [client 86.47.41.3] PHP Warning:  app::include_once() [<a href='function.include'>function.include</a>]: Failed opening '/mnt/drbd/ispconfig/interface/lib/classes/plugin.inc.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /mnt/drbd/ispconfig/interface/lib/app.inc.php on line 79
[Thu May 06 10:20:28 2010] [error] [client 86.47.41.3] PHP Fatal error:  Class 'plugin' not found in /mnt/drbd/ispconfig/interface/lib/app.inc.php on line 80
Reply With Quote
  #8  
Old 6th May 2010, 11:35
stevegjacobs stevegjacobs is offline
Junior Member
 
Join Date: Sep 2008
Posts: 28
Thanks: 1
Thanked 1 Time in 1 Post
Default

At this point I think I probably should have started with debian, but this project didn't start out with ispconfig in mind.

Here are the apache error logs following an attempted login at http://mydomain.com:8080:

Code:
# tail -f error_log
[Thu May 06 10:19:49 2010] [error] [client 86.47.41.3] PHP Warning:  app::include_once() [<a href='function.include'>function.include</a>]: Failed opening '/mnt/drbd/ispconfig/interface/lib/classes/plugin.inc.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /mnt/drbd/ispconfig/interface/lib/app.inc.php on line 79
[Thu May 06 10:19:49 2010] [error] [client 86.47.41.3] PHP Fatal error:  Class 'plugin' not found in /mnt/drbd/ispconfig/interface/lib/app.inc.php on line 80
[Thu May 06 10:19:49 2010] [error] [client 86.47.41.3] File does not exist: /usr/local/ispconfig/interface/web/favicon.ico
[Thu May 06 10:19:52 2010] [error] [client 86.47.41.3] File does not exist: /usr/local/ispconfig/interface/web/favicon.ico
[Thu May 06 10:19:56 2010] [error] [client 86.47.41.3] PHP Warning:  app::include_once(/mnt/drbd/ispconfig/interface/lib/classes/plugin.inc.php) [<a href='function.app-include-once'>function.app-include-once</a>]: failed to open stream: Permission denied in /mnt/drbd/ispconfig/interface/lib/app.inc.php on line 79
[Thu May 06 10:19:56 2010] [error] [client 86.47.41.3] PHP Warning:  app::include_once() [<a href='function.include'>function.include</a>]: Failed opening '/mnt/drbd/ispconfig/interface/lib/classes/plugin.inc.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /mnt/drbd/ispconfig/interface/lib/app.inc.php on line 79
[Thu May 06 10:19:56 2010] [error] [client 86.47.41.3] PHP Fatal error:  Class 'plugin' not found in /mnt/drbd/ispconfig/interface/lib/app.inc.php on line 80
[Thu May 06 10:20:28 2010] [error] [client 86.47.41.3] PHP Warning:  app::include_once(/mnt/drbd/ispconfig/interface/lib/classes/plugin.inc.php) [<a href='function.app-include-once'>function.app-include-once</a>]: failed to open stream: Permission denied in /mnt/drbd/ispconfig/interface/lib/app.inc.php on line 79
[Thu May 06 10:20:28 2010] [error] [client 86.47.41.3] PHP Warning:  app::include_once() [<a href='function.include'>function.include</a>]: Failed opening '/mnt/drbd/ispconfig/interface/lib/classes/plugin.inc.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /mnt/drbd/ispconfig/interface/lib/app.inc.php on line 79
[Thu May 06 10:20:28 2010] [error] [client 86.47.41.3] PHP Fatal error:  Class 'plugin' not found in /mnt/drbd/ispconfig/interface/lib/app.inc.php on line 80
Reply With Quote
  #9  
Old 6th May 2010, 12:10
stevegjacobs stevegjacobs is offline
Junior Member
 
Join Date: Sep 2008
Posts: 28
Thanks: 1
Thanked 1 Time in 1 Post
Default

On the upgrade of ispconfig, it seemed to leave some files with incorrect ownership. I changed /interface/lib/classes/plugin.inc.php from being owned by root to ispconfig:ispconfig and the site seems to be working again. Could all files in the ispconfig folder safely be chowned to ispconfig:ispconfig?
Reply With Quote
  #10  
Old 6th May 2010, 13:38
stevegjacobs stevegjacobs is offline
Junior Member
 
Join Date: Sep 2008
Posts: 28
Thanks: 1
Thanked 1 Time in 1 Post
 
Default

Still cannot send or receive email. Some troubleshooting output - mail log after trying to send myself an email from squirrelmail:
May 6 12:36:41 webserver2 imapd: Connection, ip=[::ffff:127.0.0.1]
May 6 12:36:41 webserver2 imapd: LOGIN, user=steve@bordnamona.ie, ip=[::ffff:127.0.0.1], port=[41053], protocol=IMAP
May 6 12:36:41 webserver2 postfix/pickup[706]: E20A2211002C: uid=48 from=<steve@bordnamona.ie>
May 6 12:36:41 webserver2 postfix/cleanup[19299]: E20A2211002C: message-id=<52286.86.47.41.3.1273145801.squirrel@78.153.22 1.52>
May 6 12:36:41 webserver2 postfix/qmgr[707]: E20A2211002C: from=<steve@bordnamona.ie>, size=796, nrcpt=1 (queue active)
May 6 12:36:41 webserver2 postfix/smtp[19304]: connect to 127.0.0.1[127.0.0.1]: Connection refused (port 10024)
May 6 11:36:41 webserver2 postfix/smtp[19304]: E20A2211002C: to=<steve@bordnamona.ie>, relay=none, delay=0.03, delays=0.02/0.01/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]: Connection refused)
May 6 12:36:41 webserver2 imapd: LOGOUT, user=steve@bordnamona.ie, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=756, sent=203, time=0
May 6 12:36:42 webserver2 imapd: Connection, ip=[::ffff:127.0.0.1]
May 6 12:36:42 webserver2 imapd: LOGIN, user=steve@bordnamona.ie, ip=[::ffff:127.0.0.1], port=[41057], protocol=IMAP
May 6 12:36:42 webserver2 imapd: LOGOUT, user=steve@bordnamona.ie, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=119, sent=900, time=0
May 6 12:37:02 webserver2 imapd: Connection, ip=[::ffff:127.0.0.1]
May 6 12:37:02 webserver2 imapd: LOGIN, user=steve@bordnamona.ie, ip=[::ffff:127.0.0.1], port=[41058], protocol=IMAP
May 6 12:37:02 webserver2 imapd: LOGOUT, user=steve@bordnamona.ie, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=87, sent=391, time=0

It didn't come through to the squirrelmail inbox.
Reply With Quote
Reply

Bookmarks

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
Catchall and Forwarding not working simmo General 6 22nd March 2014 00:54
How cai remove amavis from postfix ? gabrix Server Operation 16 2nd October 2012 09:58
Postfix generating lots of processes, mail stopped unixfox General 7 9th March 2010 15:34
CentoS doesn't send the emails vaio1 Installation/Configuration 18 5th November 2008 17:51
Virtual Users With Postfix, PostfixAdmin, Courier, Mailscanner,Mailwatch CentOS 5.2 tecstream HOWTO-Related Questions 3 16th July 2008 22:10


All times are GMT +2. The time now is 14:26.


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