HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   Mail services offline and cant seem to restart (http://www.howtoforge.com/forums/showthread.php?t=56658)

chaloum 23rd March 2012 07:31

Mail services offline and cant seem to restart
 
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

kwickcut 23rd March 2012 13:03

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

chaloum 23rd March 2012 13:05

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

till 23rd March 2012 13:14

Please post the output of:

neststat -tap

chaloum 23rd March 2012 13:15

command not found! Im sure I used to earlier today

chaloum 23rd March 2012 13:17

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

alleks 23rd March 2012 18:21

I see the instance of smtp running, weird.

Try this
Code:

service postfix restart
or this
Code:

postfix stop && postfix start

chaloum 23rd March 2012 22:25

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

alleks 23rd March 2012 23:03

than you should check your logs:
Errors:
Code:

tail -f /var/log/mail.err
Info
Code:

tail -f /var/log/mail.log

chaloum 23rd March 2012 23:05

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


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

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