Mail services offline and cant seem to restart

Discussion in 'General' started by chaloum, Mar 23, 2012.

  1. chaloum

    chaloum New Member

    I'm reasonable sure that when I set the server up the smtp-server pop3-server and imap-server where all online.

    now the servers in ISPConfig it says the servers are off-line and I cant seem to get them started.

    I'm asking two questions

    1) how do i get mail servers running started, ive done /etc/init.d/courier-imap restart etc it the systems doesn't say if it was successful in restarting
    2) how would i get this working with google apps?


    thanks
     
  2. kwickcut

    kwickcut Member

    what distro are you using and what howto did you use
    assuming that you have postfix installed try

    Code:
    sudo /etc/init.d/postfix restart
     
  3. chaloum

    chaloum New Member

    Centos 6.2 ISPConfig 3..0.4.3


    i don the /etc/init.d/postfix restart many times it say it stopped and started but in ISPConfig it says off line
     
    Last edited: Mar 23, 2012
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the output of:

    neststat -tap
     
  5. chaloum

    chaloum New Member

    command not found! Im sure I used to earlier today
     
  6. chaloum

    chaloum New Member

    typo

    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 *:mysql *:* LISTEN 1827/mysqld
    tcp 0 0 *:sunrpc *:* LISTEN 1363/rpcbind
    tcp 0 0 *:ftp *:* LISTEN 2044/pure-ftpd (SER
    tcp 0 0 server1.edmedia.net.:domain *:* LISTEN 1342/named
    tcp 0 0 localhost.localdomai:domain *:* LISTEN 1342/named
    tcp 0 0 *:ssh *:* LISTEN 1651/sshd
    tcp 0 0 localhost.localdomain:ipp *:* LISTEN 1528/cupsd
    tcp 0 0 *:smtp *:* LISTEN 13796/master
    tcp 0 0 *:41567 *:* LISTEN 1381/rpc.statd
    tcp 0 0 *:amqp *:* LISTEN 2057/qpidd
    tcp 0 0 localhost.localdomain:10024 *:* LISTEN 1867/amavisd (maste
    tcp 0 0 localhost.localdomain:10025 *:* LISTEN 13796/master
    tcp 0 0 localhost.localdomain:mysql localhost.localdomain:42115 ESTABLISHED 1827/mysqld
    tcp 0 0 localhost.localdomain:42052 localhost.localdomain:mysql ESTABLISHED 2051/amavisd (ch2-a
    tcp 0 0 server1.edmedia.net.au:ssh 192.168.1.199:56175 ESTABLISHED 13669/sshd
    tcp 0 0 server1.edmedia.net.au:ssh 192.168.1.4:62809 ESTABLISHED 2328/sshd
    tcp 51 0 localhost.localdomain:35257 localhost.localdomain:10025 CLOSE_WAIT 2052/amavisd (ch1-a
    tcp 0 0 localhost.localdomain:mysql localhost.localdomain:42052 ESTABLISHED 1827/mysqld
    tcp 0 0 localhost.localdomain:42115 localhost.localdomain:mysql ESTABLISHED 2052/amavisd (ch1-a
    tcp 0 0 *:pop3 *:* LISTEN 1893/couriertcpd
    tcp 0 0 *:imap *:* LISTEN 1880/couriertcpd
    tcp 0 0 *:sunrpc *:* LISTEN 1363/rpcbind
    tcp 0 0 *:webcache *:* LISTEN 13342/httpd
    tcp 0 0 *:http *:* LISTEN 13342/httpd
    tcp 0 0 *:tproxy *:* LISTEN 13342/httpd
    tcp 0 0 *:ftp *:* LISTEN 2044/pure-ftpd (SER
    tcp 0 0 *:domain *:* LISTEN 1342/named
    tcp 0 0 *:ssh *:* LISTEN 1651/sshd
    tcp 0 0 localhost.localdomain:ipp *:* LISTEN 1528/cupsd
    tcp 0 0 *:42487 *:* LISTEN 1381/rpc.statd
    tcp 0 0 *:smtp *:* LISTEN 13796/master
    tcp 0 0 *:https *:* LISTEN 13342/httpd
    tcp 0 0 *:imaps *:* LISTEN 1887/couriertcpd
    tcp 0 0 *:pop3s *:* LISTEN 1899/couriertcpd
    tcp 0 0 server1.edmedia.ne:webcache CPE-124-188-240-27.ns:49462 ESTABLISHED 13382/httpd
     
  7. alleks

    alleks Member

    I see the instance of smtp running, weird.

    Try this
    Code:
    service postfix restart
    or this
    Code:
    postfix stop && postfix start
     
    Last edited: Mar 23, 2012
  8. chaloum

    chaloum New Member

    I've done that several times before but did it again and still getting the same results

    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 *:mysql *:* LISTEN 1827/mysqld
    tcp 0 0 *:sunrpc *:* LISTEN 1363/rpcbind
    tcp 0 0 *:ftp *:* LISTEN 2044/pure-ftpd (SER
    tcp 0 0 server1.edmedia.net.:domain *:* LISTEN 1342/named
    tcp 0 0 localhost.localdomai:domain *:* LISTEN 1342/named
    tcp 0 0 *:ssh *:* LISTEN 1651/sshd
    tcp 0 0 localhost.localdomain:ipp *:* LISTEN 1528/cupsd
    tcp 0 0 *:smtp *:* LISTEN 32116/master
    tcp 0 0 *:41567 *:* LISTEN 1381/rpc.statd
    tcp 0 0 localhost.localdomain:10024 *:* LISTEN 26857/amavisd (mast
    tcp 0 0 *:amqp *:* LISTEN 2057/qpidd
    tcp 0 0 localhost.localdomain:10025 *:* LISTEN 32116/master
    tcp 0 0 server1.edmedia.net.au:ssh 192.168.1.199:56175 ESTABLISHED 13669/sshd
    tcp 0 0 server1.edmedia.net.au:ssh 192.168.1.4:62809 ESTABLISHED 2328/sshd
    tcp 0 0 server1.edmedia.net.au:ssh 192.168.1.199:58065 ESTABLISHED 17286/sshd
    tcp 0 0 *:pop3 *:* LISTEN 16779/couriertcpd
    tcp 0 0 *:imap *:* LISTEN 16766/couriertcpd
    tcp 0 0 *:sunrpc *:* LISTEN 1363/rpcbind
    tcp 0 0 *:webcache *:* LISTEN 14389/httpd
    tcp 0 0 *:http *:* LISTEN 14389/httpd
    tcp 0 0 *:tproxy *:* LISTEN 14389/httpd
    tcp 0 0 *:ftp *:* LISTEN 2044/pure-ftpd (SER
    tcp 0 0 *:domain *:* LISTEN 1342/named
    tcp 0 0 *:ssh *:* LISTEN 1651/sshd
    tcp 0 0 localhost.localdomain:ipp *:* LISTEN 1528/cupsd
    tcp 0 0 *:42487 *:* LISTEN 1381/rpc.statd
    tcp 0 0 *:smtp *:* LISTEN 32116/master
    tcp 0 0 *:https *:* LISTEN 14389/httpd
    tcp 0 0 *:imaps *:* LISTEN 16773/couriertcpd
    tcp 0 0 *:pop3s *:* LISTEN 16785/couriertcpd
     
  9. alleks

    alleks Member

    than you should check your logs:
    Errors:
    Code:
    tail -f /var/log/mail.err
    Info
    Code:
    tail -f /var/log/mail.log
     
  10. chaloum

    chaloum New Member

    tail: cannot open `/var/log/mail.log' for reading: No such file or directory
     
  11. alleks

    alleks Member

    You should have at least the level to find some logs on a linux system, otherwise: how you're pretending to debug/fix ?

    Code:
    ls -al /var/log/
    and look for mail logs
     
  12. chaloum

    chaloum New Member

    yes I do


    drwxr-xr-x. 15 root root 4096 Mar 23 19:40 .
    drwxr-xr-x. 25 root root 4096 Mar 15 00:30 ..
    -rw-------. 1 root root 4369 Mar 14 20:22 anaconda.ifcfg.log
    -rw-------. 1 root root 24458 Mar 14 20:22 anaconda.log
    -rw-------. 1 root root 235167 Mar 14 20:22 anaconda.program.log
    -rw-------. 1 root root 288935 Mar 14 20:22 anaconda.storage.log
    -rw-------. 1 root root 76214 Mar 14 20:22 anaconda.syslog
    -rw-------. 1 root root 50055 Mar 14 20:22 anaconda.xlog
    -rw-------. 1 root root 64772 Mar 14 20:22 anaconda.yum.log
    drwxr-x---. 2 root root 4096 Mar 22 16:59 audit
    -rw-r--r-- 1 root root 3083 Mar 24 04:46 boot.log
    -rw-------. 1 root utmp 1367040 Mar 24 02:47 btmp
    drwxr-xr-x 2 clam clam 4096 Mar 18 03:39 clamav
    drwxr-xr-x. 2 root root 4096 Mar 14 20:24 ConsoleKit
    -rw------- 1 root root 1511691 Mar 24 09:10 cron
    -rw-------. 1 root root 743752 Mar 18 03:39 cron-20120318
    drwxr-xr-x. 2 lp sys 4096 Dec 8 09:35 cups
    -rw-r--r-- 1 root root 35144 Mar 23 19:40 dmesg
    -rw-r--r-- 1 root root 35163 Mar 17 17:40 dmesg.old
    -rw-r--r--. 1 root root 212393 Mar 14 22:31 dracut.log
    -rw------- 1 root root 7255 Mar 24 02:57 fail2ban.log
    drwx------ 2 root root 4096 Mar 18 03:39 httpd
    drwxr-xr-x 3 root root 4096 Mar 15 00:28 ispconfig
    -rw-r--r-- 1 root root 12362 Mar 15 00:28 ispconfig_install.log
    -rw-r--r--. 1 root root 1464380 Mar 23 23:07 lastlog
    -rw-r--r-- 1 root root 3696515 Mar 24 09:10 maillog
    -rw-r--r--. 1 root root 771411 Mar 18 03:34 maillog-20120318
    drwxrwsr-x 2 root mailman 4096 Mar 18 03:39 mailman
    -rw-r--r--. 1 root root 0 Mar 14 20:24 mcelog
    -rw-r--r-- 1 root root 11190578 Mar 24 09:10 messages
    -rw-r--r--. 1 root root 4846763 Mar 18 03:39 messages-20120318
    -rw-r----- 1 mysql mysql 24490 Mar 23 19:41 mysqld.log
    drwxr-xr-x. 2 ntp ntp 4096 Nov 29 11:09 ntpstats
    drwxr-xr-x. 2 root root 4096 Mar 14 21:46 prelink
    -rw------- 1 root root 7398313 Mar 23 11:55 pureftpd.log
    -rw------- 1 root root 2999786 Mar 17 18:06 pureftpd.log-20120318
    drwxr-xr-x 2 root root 4096 Mar 18 03:39 rkhunter
    drwxr-xr-x. 2 root root 4096 Mar 24 00:00 sa
    drwx------. 3 root root 4096 Mar 14 20:08 samba
    -rw-r--r-- 1 root root 0 Mar 15 04:10 sa-update.log
    -rw------- 1 root root 1239815 Mar 24 03:49 secure
    -rw-------. 1 root root 67003 Mar 18 01:39 secure-20120318
    -rw------- 1 root root 0 Mar 18 03:39 spooler
    -rw-------. 1 root root 0 Mar 14 20:07 spooler-20120318
    drwxr-x---. 2 root root 4096 Jan 24 21:39 sssd
    -rw-------. 1 root root 0 Mar 14 19:51 tallylog
    -rw-rw-r--. 1 root utmp 64512 Mar 23 23:07 wtmp
    -rw------- 1 root root 15971 Mar 23 16:38 yum.log
     
  13. chaloum

    chaloum New Member

    i think the command should have been 'tail -f /var/log/maillog'



    Mar 24 09:05:02 server1 postfix/smtpd[1061]: connect from CPE-124-188-240-27.someserver.net.au[124.188.240.27]
    Mar 24 09:05:02 server1 postfix/smtpd[1061]: lost connection after CONNECT from CPE-124-188-240-27.someserver.net.au[124.188.240.27]
    Mar 24 09:05:02 server1 postfix/smtpd[1061]: disconnect from CPE-124-188-240-27.someserver.net.au[124.188.240.27]
    Mar 24 09:08:22 server1 postfix/anvil[1081]: statistics: max connection rate 1/60s for (smtp:124.188.240.27) at Mar 24 09:05:02
    Mar 24 09:08:22 server1 postfix/anvil[1081]: statistics: max connection count 1 for (smtp:124.188.240.27) at Mar 24 09:05:02
    Mar 24 09:08:22 server1 postfix/anvil[1081]: statistics: max cache size 1 at Mar 24 09:05:02
    Mar 24 09:09:29 server1 clamd[1858]: SelfCheck: Database status OK.
    Mar 24 09:10:02 server1 postfix/smtpd[1219]: connect from CPE-124-188-240-27.someserver.net.au[124.188.240.27]
    Mar 24 09:10:02 server1 postfix/smtpd[1219]: lost connection after CONNECT from CPE-124-188-240-27.someserver.net.au[124.188.240.27]
    Mar 24 09:10:02 server1 postfix/smtpd[1219]: disconnect from CPE-124-188-240-27.someserver.net.au[124.188.240.27]
    Mar 24 09:13:22 server1 postfix/anvil[1240]: statistics: max connection rate 1/60s for (smtp:124.188.240.27) at Mar 24 09:10:02
    Mar 24 09:13:22 server1 postfix/anvil[1240]: statistics: max connection count 1 for (smtp:124.188.240.27) at Mar 24 09:10:02
    Mar 24 09:13:22 server1 postfix/anvil[1240]: statistics: max cache size 1 at Mar 24 09:10:02
     
    Last edited: Mar 23, 2012
  14. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    netstat -tap
    ?
     
  15. chaloum

    chaloum New Member

    It's in post 6
     

Share This Page