Some useful cheatsheet for exim command:-
|exim -Mrm <Mail ID>
||Remove certain email ID
||List the email queue
||List the number of queue mail
|exim -bp | exiqsumm
||Print summary of the mail in queue
||Print what exim is doing right now
|exim -bt <[email protected]>
||Test how a email route from exim
||Print exim configuration
||Force delivery mail in queue
|exim -M <Mail ID>
||Force delivery certain mail ID
|exim -Mvl <Mail ID>
||View Email ID log
|exim -Mvh <Mail ID>
||View Email ID header
|exim -Mvb <Mail ID>
||View Email ID body
|exiqgrep -f <[email protected]>
||Search certain sender from queue
|exiqgrep -r <[email protected]>
||Search certain recipient from queue
|exiqgrep -o <seconds>
||Search number of second(s) older than current time
|exiqgrep -zi | xargs exim -Mrm
||Remove all frozen mail.
This post is very useful for those System Administrator or System Engineer who wish to monitor over hundred of servers which could get the spamming PHP script immediately from your server.
The following example was written based on cPanel exim4 and you may stored them in a .sh file.
Continue reading exim: Check current PHP Script Spam process
I found out this problem just after the disk replace on backup drive but have no idea why it is occurred. However, the fixes is found.
With this issue, you may find the following error,
Warning: fsockopen() [function.fsockopen]: unable to connect to localhost:143 (php_network_getaddresses: getaddrinfo failed: Name or service not known) in /usr/local/cpanel/base/3rdparty/squirrelmail/plugins/login_auth/functions.php on line 129
Login failed because your username or password was entered incorrectly.
Connection to IMAP server failed.
To resolve this problem, try to check the following issue,
1. If /etc/nsswitch.conf is exists.
2. If the permission of /etc/nsswitch.conf is 644, else do,
chmod 644 /etc/nsswitch.conf
3. check if /etc/nsswitch.conf come with any content. Update your system to get the fresh content.
Today, one of the customer email found error when trying to access to the Horde Email from cPanel.
A fatal error has occurred
DB Error: no such database
Details have been logged for the administrator.
To get this issue fixed, simply follow the command as below from SSH.
With this command, it will repair and reinstall horde mail.
In order to set the scheduled automatic time to hit your Send/Receive feature from your Microsoft Outlook 2010, you may refer to the step below,
1. Open your Microsoft Outlook 2010.
2. Select the Send/Receive tab.
3. Next, click on the Send/Receive Groups.
4. Select on the “Define Send/Receive Groups…”.
5. Then you may change the time interval from the “Schedule an automatic send/receive every [number] minutes.”
** The default setting is 30 minutes.
If you get the error like,
451-The server has reached its limit for processing requests from your host.n451 Please try again later.
You may easily fix it by changing your exim configuration.
First of all, log into the WHM and look for Exim configuration Editor. Then look for Advance Editor.
Then you should find something like,
smtp_accept_max = 100
Change it to higher value like 200 and save it.
In case the setting is hide and not able to change from WHM, you may change it from SSH with path as below,
Sometimes, when you using horde email account, you will found out your session changed and you need to login again.
Your Internet Address has changed since the beginning of your Mail session.
To protect your security, you must login again.
This error most probably appear when you using proxy server or multiple IP for your Internet Access.
To overcome this issue, you need to turn off the checkip value from your horde configuration.
1. Open file locate at /usr/local/cpanel/base/horde/config/conf.php.
2. Change the value from,
$conf[‘auth’][‘checkip’] = true;
$conf[‘auth’][‘checkip’] = false;
3. Restart the email services.
For some reason, your SmarterMail Administrator account might not able to login and you need to reset the administrator password.
1. Stop the SmarterMail service.
2. Navigate to the SmarterMail directory. By default, this will be C:\Program Files\SmarterTools\SmarterMail.
3. Open the Service subdirectory.
4. Make a backup copy of the file MailConfig.xml.
5. Open the MailConfig.xml file in Notepad.
6. Find the section that looks like this:
<!-- ** System Admin *************************** -->
<!-- ** To reset admin password, delete these items ** -->
<!-- ** and then restart the SmarterMail Service. ** -->
<!-- ***************************************** -->
<sysadminusername> ... </sysadminusername>
<sysadminpassword> ... </sysadminpassword>
<!-- ***************************************** -->
7. Delete those lines and save the file.
8. Start the SmarterMail service.
Now, log into the Smartermail again with login detail as below,
If your cPanel server is a shared environment server, your server IP might be blocked by any RBL list such as SpamHaus.
As cPanel by default set the primary email as the SMTP mail IP, to enable different IPs to be send from the cPanel, you may follow the step as below,
1. Log into WHM.
2. Select Service Configuration and choose Exim Configuration Editor.
3. Find “Reference /etc/mailips for outgoing SMTP connections” and enable it.
4. Edit the file named /etc/mailips through SSH.
Replace the host name and IPs with your desired information.
With Mozilla Thunderbird 6, you may setup your mail with POP3 and IMAP.
To understand POP3 and IMAP,
With POP3, your mail is saved in a mailbox on the remote server until you check your mail. When you check your mail, all of the mail is downloaded to your computer and is no longer maintained on the server. If you use POP3 and are traveling or check your mail from multiple locations, you will not be able to view any of your old mail because the messages only exist on the computer on which you originally received your mail.
IMAP is keeps all messages and folders on the server. In addition, IMAP idle is an optional feature of the IMAP protocol that pushes all new messages to Thunderbird as they are received by the mail server.
Follow these steps to create an IMAP or POP3 account in Thunderbird 6:
- In Thunderbird, go to Tools and Account Settings.
- Click Account Actions and then click Add Mail Account.
- Complete the following fields: Your Name, Email Address (i.e. [email protected]) and Password
- Click Continue.
- After Thunderbird detects your settings, select either IMAP or POP, depending on which method you would like to use to receive messages. If your configuration could not automatically be detected, see the steps below regarding manual configuration.
- Click Create Account.
If Thunderbird does not automatically detect your settings, follow these steps:
- Follow steps 1-4 above.
- After Thunderbird fails to recognize your mail settings, click Manual config.
- For the incoming server, select the desired method of retrieval and enter your mail hostname or servername into the server hostname field.
- Select the port your mail server requires (Default for IMAP:143, Default for POP: 110) and select the appropriate SSL setting based on your server configuration.
- Leave authentication set to auto-detect.
- For the Outgoing server, enter your server hostname, select the port and select the appropriate SSL setting based on your server configuration. Leave the authentication set to auto-detect.
- For the username, enter your full email address.
- Click Re-Test.
- Once the test has finished, click Create Account.
The above step is referring with SmarterMail 8.x version and get reference from smartertool.