Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 16th March 2010, 09:35
djmixx07 djmixx07 is offline
Junior Member
 
Join Date: Mar 2010
Posts: 29
Thanks: 1
Thanked 0 Times in 0 Posts
Default Unable to send, receive, and login to email. Using Roundcube, ISPConfig, Proxmox.

Hi everyone, embarrassingly speaking..I am a complete newbie when it comes to Linux and server administration. I am trapped in a situation in my current work that all was turned over to me when our network administrator resigned. I work at a government office here in the Philippines.

So here goes the problem. Our email (neither Roundcube or Thunderbird) is unable to send and receive emails. I am also unable to login to Roundcube. It just loads for a while after logging in then goes to the next page which is just a plain white page. Upon checking in ISPConfig, all the servers are online, specially POP3 and SMTP.

So I just can't figure out whats going on, and what's wrong with it. It was working perfectly last week. Then just broke down all of a sudden. I did series of shutdowns and restarts at our 2 baremetal servers..but to no avail.
I am not sure if it's about postfix because when I do "/etc/init.d/postfix restart", it says that it's already running.. But when I do "/etc/init.d/postfix status", it says it's not running..which is very confusing as well.

I really hope for your help guys. I would greatly appreciate any assistance. Thanks in advance.

PS:
Since I am a complete novice in Linux, if you can assist also in what command to type in terminal..I would REALLY appreciate it.

Kindly,
DJ
Reply With Quote
Sponsored Links
  #2  
Old 17th March 2010, 13:26
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Which distribution do you use? Do you use ISPConfig 2 or 3?

Are there any errors in your mail log?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 18th March 2010, 02:20
djmixx07 djmixx07 is offline
Junior Member
 
Join Date: Mar 2010
Posts: 29
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hi Falko,

I think we are using ISPConfig 2.x.

Here are what's in my mail log..(quite long but repetitive):
Mar 18 08:54:38 mail postfix/local[31501]: fatal: open database /etc/aliases.db: No such file or directory
Mar 18 08:54:39 mail postfix/master[2821]: warning: process /usr/libexec/postfix/local pid 31501 exit status 1
Mar 18 08:54:39 mail postfix/master[2821]: warning: /usr/libexec/postfix/local: bad command startup -- throttling
Mar 18 08:54:52 mail postfix/smtpd[31504]: fatal: open database /etc/aliases.db: No such file or directory
Mar 18 08:54:53 mail postfix/master[2821]: warning: process /usr/libexec/postfix/smtpd pid 31504 exit status 1
Mar 18 08:54:53 mail postfix/master[2821]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Mar 18 08:55:39 mail postfix/local[31527]: fatal: open database /etc/aliases.db: No such file or directory
Mar 18 08:55:40 mail postfix/master[2821]: warning: process /usr/libexec/postfix/local pid 31527 exit status 1
Mar 18 08:55:40 mail postfix/master[2821]: warning: /usr/libexec/postfix/local: bad command startup -- throttling

Thanks so much for giving time on my issue.
Reply With Quote
  #4  
Old 18th March 2010, 07:30
djmixx07 djmixx07 is offline
Junior Member
 
Join Date: Mar 2010
Posts: 29
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I did telnet localhost 25, these are the results:

Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail.immigration.gov.ph ESMTP Postfix (2.4.5)
421 4.4.2 mail.immigration.gov.ph Error: timeout exceeded
Connection closed by foreign host.

-----------------------------------
And these are for main.cf:

mynetworks = 127.0.0.0/8, 124.6.144.0/29
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/postfix/aliases
virtual_maps = hash:/etc/postfix/virtual
smtpd_banner = mail.immigration.gov.ph ESMTP Postfix ($mail_version)
home_mailbox=
mail_spool_directory = /var/mail
myhostname = mail.immigration.gov.ph
mydomain = immigration.gov.ph
inet_interfaces = all
default_transport = smtp
myorigin = immigration.gov.ph
mydestination = immigration.gov.ph

smtp_sasl_local_domain =
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpb_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,check_ relay_domains
smtpd_tls_auth_only = no
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,check_ relay_domains
smtpd_sasl_security_options = noanonymous
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_use_tls = yes
smtp_use_tls = yes
smtpd_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tlsloglevel = 1
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtp_tls_note_starttls_offer = yes
tls_random_source = dev:/dev/urandom
inet_protocols = ipv4

Hope this helps. Thanks
Reply With Quote
  #5  
Old 18th March 2010, 15:21
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Please try this:
Code:
newaliases
/etc/init.d/postfix restart
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 19th March 2010, 09:13
djmixx07 djmixx07 is offline
Junior Member
 
Join Date: Mar 2010
Posts: 29
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hi Falko,

Here are the results from what you asked me to do.

Code:
mail:~# newaliases
mail:~# /etc/init.d/postfix restart
Stopping Postfix Mail Transport Agent: postfix.
Starting Postfix Mail Transport Agent: postfixpostfix/postfix-script: fatal: the Postfix mail system is already running
 failed!
and my mail.log now is different (sorry quite long).

Code:
Mar 19 16:01:10 mail postfix/smtpd[3770]: disconnect from web54505.mail.re2.yahoo.com[206.190.49.155]
Mar 19 16:03:01 mail postfix/smtpd[3828]: warning: database /etc/postfix/virtual.db is older than source file /etc/postfix/virtual
Mar 19 16:03:01 mail postfix/smtpd[3828]: warning: smtpd_sasl_auth_enable is true, but SASL support is not compiled in
Mar 19 16:03:01 mail postfix/smtpd[3828]: warning: TLS has been selected, but TLS support is not compiled in
Mar 19 16:03:01 mail postfix/smtpd[3828]: connect from mx.bol.com.br[200.221.29.128]
Mar 19 16:03:01 mail postfix/smtpd[3831]: warning: database /etc/postfix/virtual.db is older than source file /etc/postfix/virtual
Mar 19 16:03:01 mail postfix/smtpd[3831]: warning: smtpd_sasl_auth_enable is true, but SASL support is not compiled in
Mar 19 16:03:01 mail postfix/smtpd[3831]: warning: TLS has been selected, but TLS support is not compiled in
Mar 19 16:03:01 mail postfix/smtpd[3831]: connect from mx.bol.com.br[200.221.29.128]
Mar 19 16:03:01 mail postfix/trivial-rewrite[3832]: warning: database /etc/postfix/virtual.db is older than source file /etc/postfix/virtual
Mar 19 16:03:01 mail postfix/smtpd[3828]: warning: support for restriction "check_relay_domains" will be removed from Postfix; use "reject_unauth_destination" instead
Mar 19 16:03:01 mail postfix/cleanup[3833]: warning: database /etc/postfix/virtual.db is older than source file /etc/postfix/virtual
Mar 19 16:03:01 mail postfix/smtpd[3828]: CF7D438E05E: client=mx.bol.com.br[200.221.29.128]
Mar 19 16:03:02 mail postfix/smtpd[3831]: warning: support for restriction "check_relay_domains" will be removed from Postfix; use "reject_unauth_destination" instead
Mar 19 16:03:02 mail postfix/cleanup[3834]: warning: database /etc/postfix/virtual.db is older than source file /etc/postfix/virtual
Mar 19 16:03:02 mail postfix/smtpd[3831]: 424AF38E05F: client=mx.bol.com.br[200.221.29.128]
Mar 19 16:03:02 mail postfix/cleanup[3833]: CF7D438E05E: message-id=<20100319080254.B0F117000F33@selva8.bol.com.br>
Mar 19 16:03:03 mail postfix/qmgr[2789]: CF7D438E05E: from=<>, size=8161, nrcpt=1 (queue active)
Mar 19 16:03:03 mail postfix/smtpd[3828]: disconnect from mx.bol.com.br[200.221.29.128]
Mar 19 16:03:03 mail postfix/local[3835]: CF7D438E05E: to=<www-data@immigration.gov.ph>, relay=local, delay=1.2, delays=1.2/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
Mar 19 16:03:03 mail postfix/qmgr[2789]: CF7D438E05E: removed
Mar 19 16:03:03 mail postfix/cleanup[3834]: 424AF38E05F: message-id=<20100319080254.B7373700110A@selva8.bol.com.br>
Mar 19 16:03:03 mail postfix/qmgr[2789]: 424AF38E05F: from=<>, size=8185, nrcpt=1 (queue active)
Mar 19 16:03:03 mail postfix/smtpd[3831]: disconnect from mx.bol.com.br[200.221.29.128]
Mar 19 16:03:03 mail postfix/local[3835]: 424AF38E05F: to=<www-data@immigration.gov.ph>, relay=local, delay=1.3, delays=1.3/0/0/0.02, dsn=2.0.0, status=sent (delivered to mailbox)
Mar 19 16:03:03 mail postfix/qmgr[2789]: 424AF38E05F: removed
Mar 19 16:03:07 mail postfix/smtpd[3828]: connect from jazz.globequest.com.ph[202.95.234.228]
Mar 19 16:03:07 mail postfix/smtpd[3831]: connect from jazz.globequest.com.ph[202.95.234.228]
Mar 19 16:03:07 mail postfix/smtpd[3828]: E445238E05E: client=jazz.globequest.com.ph[202.95.234.228]
Mar 19 16:03:08 mail postfix/cleanup[3833]: E445238E05E: message-id=<20100319054933.ABE43700020A@selva14.bol.com.br>
Mar 19 16:03:08 mail postfix/smtpd[3831]: 0397E38E05F: client=jazz.globequest.com.ph[202.95.234.228]
Mar 19 16:03:08 mail postfix/cleanup[3834]: 0397E38E05F: message-id=<20100319070624.1593370004E6@selva15.bol.com.br>
Mar 19 16:03:08 mail postfix/smtpd[3828]: disconnect from jazz.globequest.com.ph[202.95.234.228]
Mar 19 16:03:08 mail postfix/qmgr[2789]: E445238E05E: from=<>, size=8745, nrcpt=1 (queue active)
Mar 19 16:03:08 mail postfix/local[3835]: E445238E05E: to=<www-data@immigration.gov.ph>, relay=local, delay=0.24, delays=0.23/0/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
Mar 19 16:03:08 mail postfix/qmgr[2789]: E445238E05E: removed
Mar 19 16:03:08 mail postfix/smtpd[3831]: disconnect from jazz.globequest.com.ph[202.95.234.228]
Mar 19 16:03:08 mail postfix/qmgr[2789]: 0397E38E05F: from=<>, size=8769, nrcpt=1 (queue active)
Mar 19 16:03:08 mail postfix/local[3835]: 0397E38E05F: to=<www-data@immigration.gov.ph>, relay=local, delay=0.23, delays=0.22/0/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
Mar 19 16:03:08 mail postfix/qmgr[2789]: 0397E38E05F: removed
Here's a result again from telnet localhost 25.

Code:
mail:~# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail.immigration.gov.ph ESMTP Postfix (2.4.5)
ehlo localhost
250-mail.immigration.gov.ph
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
Hope this helps falko. Thanks so much
Reply With Quote
  #7  
Old 19th March 2010, 09:28
djmixx07 djmixx07 is offline
Junior Member
 
Join Date: Mar 2010
Posts: 29
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I was trying to do dpkg-reconfigure postfix. And it gave me this result.

Code:
mail:~# dpkg-reconfigure postfix
/usr/sbin/dpkg-reconfigure: postfix is broken or not fully installed
Reply With Quote
  #8  
Old 19th March 2010, 15:41
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Mar 19 16:03:01 mail postfix/smtpd[3828]: warning: smtpd_sasl_auth_enable is true, but SASL support is not compiled in

How exactly did you install Postfix? Did you use a guide from HowtoForge?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 20th March 2010, 10:38
SamTzu SamTzu is offline
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Helsinki
Posts: 426
Thanks: 33
Thanked 55 Times in 38 Posts
Send a message via Skype™ to SamTzu
Default Proxmox/OpenVz memory issues

The clue to solve the problem can be in the 'throtling' word.

Check if Proxmox VM is OpenVz or KVM.
OpenVZ virtualisation is a bit different from your 'normal' servers or KVM's.
It looks like you are having memory problems on your Virtual Machines.
From the Proxmox web-console try increasing the memory allocated to the mail server. In servers that sometimes have problems with PHP or other services the memory usage sometimes 'peaks' and causes the OpenVZ containers to 'throtle' the memory usage. This can cause services to stop or crash on the containers.

I found that increasing the non-existant "swap" memory on the containers solved the issue on some of our problem servers.

Since OpenVZ uses filesystem level virtualisation there is no real "swap" memory on the containers anyway.
__________________

Sami Mattila
Internet-Content

Telephone:
00358942833310
Email: firstname.lastname@internet-content.org
Shop: http://shop.internet-content.net
Site: http://www.internet-content.net
Blog: http://www.internet-content.net/en/blog
FB: https://www.facebook.com/internetcontent


Last edited by SamTzu; 20th March 2010 at 22:06.
Reply With Quote
The Following User Says Thank You to SamTzu For This Useful Post:
falko (21st March 2010)
  #10  
Old 22nd March 2010, 02:52
djmixx07 djmixx07 is offline
Junior Member
 
Join Date: Mar 2010
Posts: 29
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default

Hi Falko,
Postfix is already installed when the servers has been turned over to me. I am not sure if the past network admin used a guide in Howtoforge or elsewhere. But it was all working well until it crashed. Will try to check on SamTzu's guide. Will post again for any updates about the issue. Thanks!
Reply With Quote
Reply

Bookmarks

Tags
bare metal, ispconfig, postfix, proxmox, roundcube

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
Unable to Login to ISPConfig Stewart81 General 11 2nd August 2009 12:13
with ISPConfig, Postfix, and Courier, mail does not send or receive karazy-k Server Operation 15 20th July 2009 05:44
Suddenly can't receive email - please help miguelpinheiro General 7 14th December 2008 18:33
Can't receive email at all (or can't login) djkoelkast Installation/Configuration 2 8th September 2006 14:26
Can Send email but not receive it using sendmail on debian ZeroDni Installation/Configuration 7 25th June 2006 06:04


All times are GMT +2. The time now is 18:09.


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