FORUM HOME | WHUK BLOG   
WEB HOSTING UK AFFORDABLE WEBSITE HOSTING SERVICES IN UNITED KINGDOM
PHP LINUX SHARED HOSTING WINDOWS ASP.NET HOSTING PACKAGES
ECOMMERCE HOSTING ASP MSSQL MS ACCESS ODBC FRONTPAGE HOSTING
CPANEL WHM FANTASTICO RESELLER DEDICATED SERVER WEB HOSTING
CHEAP PLESK CPANEL HTML MYSQL BEST UK VPS HOSTING COMPANY
CHEAP RELIABLE UK HOSTING PROVIDER SINCE 2001
MANAGED WEB HOSTING SERVICE
AFFORDABLE WEBSITE HOSTING SERVICES IN UNITED KINGDOM

Web Hosting UK Forums | Linux Windows Dedicated Server and cPanel VPS Hosting Forum » Web Hosting and Domains » FAQ's / Tutorials.

Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 20-05-10, 02:06 PM
Member
 
Join Date: Apr 2010
Posts: 41
Default Manage e-mails on Linux Plesk and cPanel based servers

When you are in trouble with sending/receiving e-mails from and to your server then you can investigate it using following basic commands on Linux Plesk and cPanel based server :

PLESK :


a. Check e-mail queue

root@server # /var/qmail/bin/qmail-qstat

messages in queue: 6

messages in queue but not yet preprocessed: 0

b. You can check current running e-mail logs

root@server # tail -f /usr/local/psa/var/log/maillog

c. If you want to check previous or old logs then you can open file in viewer and find respective e-mail ID or IP address or specifc string while givin / with string and press enter

root@server # less /usr/local/psa/var/log/maillog

d. Chek e-mails in e-mail queue

root@server # /var/qmail/bin/qmail-qread

2 May 2008 12:42:47 GMT #321244 3918 <test@domain.com>
remote testing@hotmail.com
1 May 2008 12:42:47 GMT #321244 3950 <tech@domain.com>
remote testmail@aol.com
3 May 2008 12:42:47 GMT #321244 3968 <mymail@domain.com>
remote email@hotmail.com
4 May 2008 12:42:47 GMT #321244 3975 <email@domain.com>
remote tech@yahoo.com
2 May 2008 12:42:47 GMT #321244 3988 <testing@domain.com>
remote myemail@gmail.com

e. From above output you can get a message ID like #321244 in first e-mail queue with which you can find a file having e-mail

root@server # find /var/qmail/queue -iname 321244

/var/qmail/queue/remote/12/321244

/var/qmail/queue/mess/12/321244

/var/qmail/queue/info/12/321244

f. From one of the above files you can get the IP from e-mail headers

root@server # vi /var/qmail/queue/mess/12/321244

======= ======= ======= ======= ======= ======= ======= ======= ======= ======= =======

CPANEL :


a. Check e-mail queue

root@server # exim -bpc

b. You can check current running e-mail logs

root@server # tail -f /var/log/exim_mainlog

c. If you want to check previous or old logs then you can open file in viewer and find respective e-mail ID or IP address or specifc string while givin / with string and press enter

root@server # less /var/log/exim_mainlog

d. Chek e-mails in e-mail queue

root@server # exim -bp

61h 1.8K 1OEAFt-0005G2-6R <test@domain.com>
testing@hotmail.com
59h 1.8K 1OEClh-000564-BU <tech@domain.com>
testmail@aol.com
38h 12K 1OEVob-0008JE-Oc <mymail@domain.com>
email@hotmail.com
35h 1.8K 1OEZDl-0007pB-VQ <email@domain.com>
tech@yahoo.com
14h 13K 1OEsIC-0005la-P1 <testing@domain.com>
myemail@gmail.com

e. From above output you can get a message ID like '1OEAFt-0005G2-6R' in first e-mail queue with which you can find logs, body and headers of the message respectively

View Log for message
root@server # exim -Mvl 1OEAFt-0005G2-6R

View Body for message
root@server # exim -Mvb 1OEAFt-0005G2-6R

View Header for message
root@server # exim -Mvh 1OEAFt-0005G2-6R

f. You can force delivey of one message

root@server # exim -M emailID

g. You can force another queue run

root@server # exim -qf

h. You can force another queue run and attempt to flush frozen messages

root@server # exim -qff

i. You can remove message with message ID

root@server # exim -Mrm 1OEAFt-0005G2-6R
Reply With Quote

Reply

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT. The time now is 01:10 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Copyright 2001-2010 Web Hosting UK. All rights reserved.
Web Hosting UK Forum





Site Map

Shared Cloud
Shared Cloud From £1

Affiliate Program
Earn up to £300 Per Sale

Dedicated Servers
Dedicated Server Hosting

Cloud Hosting
Cloud Server Hosting

Load Balanced Server
Load Balancing Server

VPS Hosting
Linux VPS Hosting

Windows VPS
Windows 2003 VPS

Zimbra Hosting
Zimbra Email Hosting

cPanel Hosting
Shared Linux Hosting

Windows Hosting
Shared Windows Hosting

Coldfusion Hosting
Windows Coldfusion Hosting

cPanel Reseller Hosting
Reseller Hosting

Windows Reseller
Windows Reseller Hosting

Email Web Hosting
Email Hosting

Semi-Dedicated Server
Semi-Dedicated Hosting

Remote Backup Plans
Offsite Backup Service


cpanel hosting
Knowledgebase Articles

Pre-Sales Question
Web Hosting FAQ's

Dedicated Hosting
Dedicated Server FAQ's

Virtual Private Servers
VPS Hosting

PHP MySQL Hosting
cPanel Hosting

Windows Hosting
ASP MSSQL Hosting

Domain Name
Domain registration FAQ's

CMS Hosting
CMS Hosting FAQ's

Payment Gateways
Payment FAQ's


Support Tutorials

cPanel Tutorials
cPanel Flash Tutorials

Wordpress Tutorials
Wordpress Flash Tutorials

Plesk Tutorials
Plesk Flash Tutorials

PhpMyadmin Tutorials
PhpMyadmin Flash Tutorials

Drupal Tutorials
Drupal Flash Tutorials

Mambo Tutorials
Mambo Flash Tutorials

Joomla Tutorials
Joomla Flash Tutorials

More Hosting Tutorials