IMAP and POP3 offline

Discussion in 'Installation/Configuration' started by aamirrajpoot, Sep 7, 2013.

  1. aamirrajpoot

    aamirrajpoot New Member

    I am using ISPConfig 3.0.5.3 on Digital Ocean, using Centos 6.4 64bit os

    When I have fresh installed it mail was working, but my system memory was having high usage. I decided to disable clamv / amavisd. But after that my email stopped working and POP3, IMAP servers are offline

    Web-Server: Online
    FTP-Server: Online
    SMTP-Server: Online
    POP3-Server: Offline
    IMAP-Server: Offline
    DNS-Server: Online
    mySQL-Server: Online

    In my Mail Error Log

    Code:
    Sep 7 06:31:55 server clamd[1261]: SelfCheck: Database status OK.
    Sep 7 06:35:01 server postfix/smtpd[7021]: connect from localhost[::1]
    Sep 7 06:35:01 server postfix/smtpd[7021]: lost connection after CONNECT from localhost[::1]
    Sep 7 06:35:01 server postfix/smtpd[7021]: disconnect from localhost[::1]
    Sep 7 06:40:01 server postfix/smtpd[7168]: connect from localhost[::1]
    Sep 7 06:40:01 server postfix/smtpd[7168]: lost connection after CONNECT from localhost[::1]
    Sep 7 06:40:01 server postfix/smtpd[7168]: disconnect from localhost[::1]
    Sep 7 06:41:55 server clamd[1261]: SelfCheck: Database status OK.
    Sep 7 06:45:01 server postfix/smtpd[7335]: connect from localhost[::1]
    Sep 7 06:45:01 server postfix/smtpd[7335]: lost connection after CONNECT from localhost[::1]
    Sep 7 06:45:01 server postfix/smtpd[7335]: disconnect from localhost[::1]
    Sep 7 06:50:01 server postfix/smtpd[7532]: connect from localhost[::1]
    Sep 7 06:50:01 server postfix/smtpd[7532]: lost connection after CONNECT from localhost[::1]
    Sep 7 06:50:01 server postfix/smtpd[7532]: disconnect from localhost[::1]
    Sep 7 06:51:55 server clamd[1261]: SelfCheck: Database status OK.
    
    I have re-enabled the clamv and amavis but still not working, I tried to look into forums and google search but I can not seem to make it work.

    Thanks in advance
     
    Last edited: Sep 7, 2013
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Dovecot is not started or not listening on localhost. Restart dovecot and then check if you fnd any errors in the log.

    Regarding spam filter disabling, the procedure is described here for debian:

    http://www.faqforge.com/linux/contr...ilter-and-antivirus-functions-in-ispconfig-3/

    the commands to disable the daemons are different on centos, but the postfix main and master.cf chnages are the same and the most important part.
     
  3. aamirrajpoot

    aamirrajpoot New Member

    Thank you for the link,


    I edited 'vi /etc/postfix/main.cf' but there were no
    Code:
    # content_filter = amavis:[127.0.0.1]:10024
    # receive_override_options = no_address_mappings
    in it, so I havnt changed any thing.


    In ISP CONFIG admin panel, changed the POP3/IMAP Daemon to DOVECOT


    I checked dovecot, and there was no service available, after that I tried 'yum install dovecot' which indicated that dovecot is not installed.

    I have set its service to start with system boot, and after reboot, my both services POP3 / IMAP are showing ONLINE


    after that, i tried sending an email using php script, but the mail function returned FALSE.

    I thought to try using webmail. I created an email domain, and then created an email address. When I tried to login in squirrel online, it prompts me login or password not matched, but these are fine, I have tried so many times even keeping the password very simple to 111.

    Any how, services seems okay now, but I am not able to test
     
  4. aamirrajpoot

    aamirrajpoot New Member

    This is my new log

    Code:
    Sep 10 04:25:45 server amavis[10074]: Module Digest::SHA 5.47
    Sep 10 04:25:45 server amavis[10074]: Module Encode 2.35
    Sep 10 04:25:45 server amavis[10074]: Module File::Temp 0.22
    Sep 10 04:25:45 server amavis[10074]: Module IO::Socket::INET6 2.56
    Sep 10 04:25:45 server amavis[10074]: Module MIME::Entity 5.427
    Sep 10 04:25:45 server amavis[10074]: Module MIME::Parser 5.427
    Sep 10 04:25:45 server amavis[10074]: Module MIME::Tools 5.427
    Sep 10 04:25:45 server amavis[10074]: Module Mail::DKIM::Signer 0.37
    Sep 10 04:25:45 server amavis[10074]: Module Mail::DKIM::Verifier 0.37
    Sep 10 04:25:45 server amavis[10074]: Module Mail::Header 2.04
    Sep 10 04:25:45 server amavis[10074]: Module Mail::Internet 2.04
    Sep 10 04:25:45 server amavis[10074]: Module Mail::SPF v2.008
    Sep 10 04:25:45 server amavis[10074]: Module Mail::SpamAssassin 3.003001
    Sep 10 04:25:45 server amavis[10074]: Module Net::DNS 0.65
    Sep 10 04:25:45 server amavis[10074]: Module Net::Server 0.97
    Sep 10 04:25:45 server amavis[10074]: Module NetAddr::IP 4.027
    Sep 10 04:25:45 server amavis[10074]: Module Razor2::Client::Version 2.84
    Sep 10 04:25:45 server amavis[10074]: Module Scalar::Util 1.21
    Sep 10 04:25:45 server amavis[10074]: Module Socket 1.82
    Sep 10 04:25:45 server amavis[10074]: Module Socket6 0.23
    Sep 10 04:25:45 server amavis[10074]: Module Time::HiRes 1.9721
    Sep 10 04:25:45 server amavis[10074]: Module URI 1.40
    Sep 10 04:25:45 server amavis[10074]: Module Unix::Syslog 1.1
    Sep 10 04:25:45 server amavis[10074]: Amavis::ZMQ code NOT loaded
    Sep 10 04:25:45 server amavis[10074]: Amavis::DB code loaded
    Sep 10 04:25:45 server amavis[10074]: SQL base code NOT loaded
    Sep 10 04:25:45 server amavis[10074]: SQL::Log code NOT loaded
    Sep 10 04:25:45 server amavis[10074]: SQL::Quarantine NOT loaded
    Sep 10 04:25:45 server amavis[10074]: Lookup::SQL code NOT loaded
    Sep 10 04:25:45 server amavis[10074]: Lookup::LDAP code NOT loaded
    Sep 10 04:25:45 server amavis[10074]: AM.PDP-in proto code loaded
    Sep 10 04:25:45 server amavis[10074]: SMTP-in proto code loaded
    Sep 10 04:25:45 server amavis[10074]: Courier proto code NOT loaded
    Sep 10 04:25:45 server amavis[10074]: SMTP-out proto code loaded
    Sep 10 04:25:45 server amavis[10074]: Pipe-out proto code NOT loaded
    Sep 10 04:25:45 server amavis[10074]: BSMTP-out proto code NOT loaded
    Sep 10 04:25:45 server amavis[10074]: Local-out proto code loaded
    Sep 10 04:25:45 server amavis[10074]: OS_Fingerprint code NOT loaded
    Sep 10 04:25:45 server amavis[10074]: ANTI-VIRUS code loaded
    Sep 10 04:25:45 server amavis[10074]: ANTI-SPAM code loaded
    Sep 10 04:25:45 server amavis[10074]: ANTI-SPAM-EXT code NOT loaded
    Sep 10 04:25:45 server amavis[10074]: ANTI-SPAM-C code NOT loaded
    Sep 10 04:25:45 server amavis[10074]: ANTI-SPAM-SA code loaded
    Sep 10 04:25:45 server amavis[10074]: Unpackers code loaded
    Sep 10 04:25:45 server amavis[10074]: DKIM code loaded
    Sep 10 04:25:45 server amavis[10074]: Tools code NOT loaded
    Sep 10 04:25:45 server amavis[10074]: Found $file at /usr/bin/file
    Sep 10 04:25:45 server amavis[10074]: Found $altermime at /usr/bin/altermime
    Sep 10 04:25:45 server amavis[10074]: Internal decoder for .mail
    Sep 10 04:25:45 server amavis[10074]: Found decoder for .F at /usr/bin/unfreeze
    Sep 10 04:25:45 server amavis[10074]: Found decoder for .Z at /usr/bin/gzip -d
    Sep 10 04:25:45 server amavis[10074]: Found decoder for .gz at /usr/bin/gzip -d
    Sep 10 04:25:45 server amavis[10074]: Found decoder for .bz2 at /usr/bin/bzip2 -d
    Sep 10 04:25:45 server amavis[10074]: Found decoder for .xz at /usr/bin/xzdec
    Sep 10 04:25:45 server amavis[10074]: Found decoder for .lzma at /usr/bin/lzmadec
    Sep 10 04:25:45 server amavis[10074]: Found decoder for .lrz at /usr/bin/lrzip -q -k -d -o -
    Sep 10 04:25:45 server amavis[10074]: Found decoder for .lzo at /usr/bin/lzop -d
    Sep 10 04:25:45 server amavis[10074]: Found decoder for .rpm at /usr/bin/rpm2cpio
    Sep 10 04:25:45 server amavis[10074]: Found decoder for .cpio at /bin/cpio
    Sep 10 04:25:45 server amavis[10074]: Found decoder for .tar at /bin/cpio
    Sep 10 04:25:45 server amavis[10074]: Found decoder for .deb at /usr/bin/ar
    Sep 10 04:25:45 server amavis[10074]: Found decoder for .rar at /usr/bin/unrar
    Sep 10 04:25:45 server amavis[10074]: Found decoder for .arj at /usr/bin/unarj
    Sep 10 04:25:45 server amavis[10074]: Found decoder for .arc at /usr/bin/nomarch
    Sep 10 04:25:45 server amavis[10074]: Found decoder for .zoo at /usr/bin/unzoo
    Sep 10 04:25:45 server amavis[10074]: No ext program for .doc, tried: ripole
    Sep 10 04:25:45 server amavis[10074]: Found decoder for .cab at /usr/bin/cabextract
    Sep 10 04:25:45 server amavis[10074]: No ext program for .tnef, tried: tnef
    Sep 10 04:25:45 server amavis[10074]: Internal decoder for .tnef
    Sep 10 04:25:45 server amavis[10074]: Found decoder for .zip at /usr/bin/7za
    Sep 10 04:25:45 server amavis[10074]: Found decoder for .kmz at /usr/bin/7za
    Sep 10 04:25:45 server amavis[10074]: Found decoder for .7z at /usr/bin/7za
    Sep 10 04:25:45 server amavis[10074]: Found decoder for .jar at /usr/bin/7z
    Sep 10 04:25:45 server amavis[10074]: Found decoder for .swf at /usr/bin/7z
    Sep 10 04:25:45 server amavis[10074]: Found decoder for .lha at /usr/bin/7z
    Sep 10 04:25:45 server amavis[10074]: Found decoder for .iso at /usr/bin/7z
    Sep 10 04:25:45 server amavis[10074]: Found decoder for .exe at /usr/bin/unrar; /usr/bin/unarj
    Sep 10 04:25:45 server amavis[10074]: No decoder for .doc
    Sep 10 04:25:45 server amavis[10074]: Using primary internal av scanner code for ClamAV-clamd
    Sep 10 04:25:45 server amavis[10074]: Found secondary av scanner ClamAV-clamscan at /usr/bin/clamscan
    Sep 10 04:25:45 server amavis[10074]: Deleting db files __db.001,__db.003,__db.002,__db.004,nanny.db,snmp.db in /var/spool/amavisd/db
    Sep 10 04:25:45 server amavis[10074]: Creating db in /var/spool/amavisd/db/; BerkeleyDB 0.43, libdb 4.7
    Sep 10 04:30:01 server dovecot: pop3-login: Disconnected (no auth attempts): rip=::1, lip=::1, secured
    Sep 10 04:30:01 server dovecot: imap-login: Disconnected (no auth attempts): rip=::1, lip=::1, secured
    Sep 10 04:30:01 server postfix/smtpd[10245]: connect from localhost[::1]
    Sep 10 04:30:01 server postfix/smtpd[10245]: lost connection after CONNECT from localhost[::1]
    Sep 10 04:30:01 server postfix/smtpd[10245]: disconnect from localhost[::1]
    Sep 10 04:32:32 server clamd[1298]: SelfCheck: Database status OK.
    Sep 10 04:35:01 server dovecot: imap-login: Disconnected (no auth attempts): rip=::1, lip=::1, secured
    Sep 10 04:35:01 server postfix/smtpd[10494]: connect from localhost[::1]
    Sep 10 04:35:01 server postfix/smtpd[10494]: lost connection after CONNECT from localhost[::1]
    Sep 10 04:35:01 server postfix/smtpd[10494]: disconnect from localhost[::1]
    Sep 10 04:35:01 server dovecot: pop3-login: Disconnected (no auth attempts): rip=::1, lip=::1, secured
    Sep 10 04:40:02 server dovecot: imap-login: Disconnected (no auth attempts): rip=::1, lip=::1, secured
    Sep 10 04:40:02 server dovecot: pop3-login: Disconnected (no auth attempts): rip=::1, lip=::1, secured
    Sep 10 04:40:02 server postfix/smtpd[10740]: connect from localhost[::1]
    Sep 10 04:40:02 server postfix/smtpd[10740]: lost connection after CONNECT from localhost[::1]
    Sep 10 04:40:02 server postfix/smtpd[10740]: disconnect from localhost[::1]
    Sep 10 04:42:32 server clamd[1298]: SelfCheck: Database status OK.
    Sep 10 04:45:01 server dovecot: imap-login: Disconnected (no auth attempts): rip=::1, lip=::1, secured
    
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Which of the perfect server tutorials did you use to prepare your server for the installation of ispconfig. Please note that your server can not work if you have not all prerequisites installed before you install ispconfig.

    Then you cant have ispconfig installed or you replaced the main.cf file after you installed ispconfig.

    Download ispconfig tar.gz again. If you are 100% sure that it is already fully installed, run the update.php script in the install folder and choose to reconfigure services during update. if you havent installed ispconfig xet, then run the install.php script in the install folder.
     
  6. aamirrajpoot

    aamirrajpoot New Member

    I have used the following tutorial but installed the 3.0.5.3 version

    www.howtoforge.com/perfect-server-centos-6.4-x86_64-apache2-dovecot-ispconfig-3-p1

    I ran the following command to update the ispconfig
    Code:
    # php -q server/scripts/ispconfig_update.php
    Here is the response
    Code:
    >> Update
    
    Please choose the update method. For production systems select 'stable'.
    The update from svn is only for development systems and may break your current setup.
    Note: Update all slave server, before you update master server.
    
    Select update method (stable,svn) [stable]:
    
    There are no updates available for ISPConfig 3.0.5.3
    

    If I reinstall the ispconfig

    1. Will it replace or update the old ISPCONFIG and all its data?
    2. What will happen to my sites?


    When I had installed it last time, it was having email issues. I have done complete fresh centos installation and then followed the tutorial mentioned. First I checked the email; it was working. And then I created the domains.

    One thing I have done is that I installed AJENTI, and my system memory consumption increased to 700MB, so I disabled the calmav/amavis service from AJENTI, after that my email stopped working.

    I am not sure how/why my main.cf file got overwritten
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    What you did can not work an it is not what I described above. Download spconfig tar.gz, unpack it and run the update.php script which is in the install folder. But this does not matter anyore aftre you installed ajebnti as its too late now.

    Ok, that explains everything. By installing ajenti you broke your setup as it replaced the centos packages required by ispconfig, overwrote the main.cf and most likely many other files. You will have to do a complete reintall if you want to use ispconfig on that server, just follow the centos perfect setup to the letter and dont install any conflicting software like ajenti.
     

Share This Page