Exim - Knowledge Base Archives - Hivelocity Hosting https://www.hivelocity.net/kb/tag/exim/ Dedicated Servers, Private Cloud & Colocation Thu, 07 Dec 2023 14:38:11 +0000 en-US hourly 1 https://wordpress.org/?v=6.6 Tell me few basic exim commands which could be executed on the server. https://www.hivelocity.net/kb/tell-me-few-basic-exim-commands-which-could-be-executed-on-the-server/ https://www.hivelocity.net/kb/tell-me-few-basic-exim-commands-which-could-be-executed-on-the-server/#respond Wed, 30 Jan 2013 13:53:05 +0000 https://kb.hivelocity.net/?p=10987 a. To find out, how many messages are there in the mail queue: exim –bpc b. To check the mails in the queue: exim –bp c. To force exim update: /scripts/eximup –force d. How many Frozen mails in the queue? exim -bpr | grep frozen | wc –l e. Deleteing Frozen Messages exim -bpr | …

Tell me few basic exim commands which could be executed on the server. Read More »

The post Tell me few basic exim commands which could be executed on the server. appeared first on Hivelocity Hosting.

]]>
a. To find out, how many messages are there in the mail queue:

exim –bpc

b. To check the mails in the queue:

exim –bp

c. To force exim update:

/scripts/eximup –force

d. How many Frozen mails in the queue?

exim -bpr | grep frozen | wc –l

e. Deleteing Frozen Messages

exim -bpr | grep frozen | awk {‘print $3’} | xargs exim –Mrm

f. How will I remove message without sending any error message

exim -Mrm messageID

The post Tell me few basic exim commands which could be executed on the server. appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/tell-me-few-basic-exim-commands-which-could-be-executed-on-the-server/feed/ 0
How to change SMTP server IP (Exim IP) on WHM server https://www.hivelocity.net/kb/how-to-change-smtp-server-ip-exim-ip-on-whm-server/ https://www.hivelocity.net/kb/how-to-change-smtp-server-ip-exim-ip-on-whm-server/#comments Wed, 23 May 2012 14:42:16 +0000 https://kb.hivelocity.net/?p=10385 1) Login to WHM Click Exim Configuration Editor Check the box next to: “Send outgoing mail from the ip that matches the domain name in /etc/mailips (*: IP can be added to the file to change the main outgoing interface)” Save Changes Then edit the file /etc/mailips from shell and add: *: #ReplacewithnewIP# service exim …

How to change SMTP server IP (Exim IP) on WHM server Read More »

The post How to change SMTP server IP (Exim IP) on WHM server appeared first on Hivelocity Hosting.

]]>
1) Login to WHM

Click Exim Configuration Editor

Check the box next to:
“Send outgoing mail from the ip that matches the domain name in /etc/mailips (*: IP can be added to the file to change the main outgoing interface)”

Save Changes

Then edit the file /etc/mailips

from shell and add:

*: #ReplacewithnewIP#

service exim restart

2) Login to Shell

Access the Exim configuration file:
nano /etc/exim.conf

Locate remote_smtp

The default setup will look like:

remote_smtp:
driver = smtp
interface = ${if exists {/etc/mailips}{${lookup{$sender_address_domain}lsearch{/etc/mailips}{$value}{}}}{}}
helo_data = ${if exists {/etc/mailhelo}{${lookup{$sender_address_domain}lsearch{/etc/mailhelo}{$value}{$primary_hostname}}}{$primary_ho stname}}

Change to:

remote_smtp:
driver = smtp
interface = 12.14.12.14 # Change to your server IP address.

Save changes and exit.

Restart Exim

If there is an exim update when you upgrade your cPanel server you will need to re-enter the interface again.

The post How to change SMTP server IP (Exim IP) on WHM server appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/how-to-change-smtp-server-ip-exim-ip-on-whm-server/feed/ 1
Exim Configuration Editor https://www.hivelocity.net/kb/exim-configuration-editor/ https://www.hivelocity.net/kb/exim-configuration-editor/#respond Sun, 14 Nov 2010 07:13:45 +0000 https://kb.hivelocity.net/?p=2110 Overview This function allows you to modify the behavior of exim by changing certain exim configuration settings.   NOTE: You can edit the exim configuration file by clicking on Switch to Advanced Mode.     Steps 1 To access the Service Configuration Menu, click on Service Configuration Setup, on the main screen of your WebHost …

Exim Configuration Editor Read More »

The post Exim Configuration Editor appeared first on Hivelocity Hosting.

]]>
Overview

This function allows you to modify the behavior of exim by changing certain exim configuration settings.

 

NOTE: You can edit the exim configuration file by clicking on Switch to Advanced Mode.

 

 

Steps

1 To access the Service Configuration Menu, click on Service Configuration Setup, on the main screen of your WebHost Manager interface.

2 Click on Exim Configuration Editor.

3 Click on the check boxes next to the features you wish to enable or disable.

  • Always set the Sender: header when the sender is changed from the actual sender. (Unchecking this will stop “On behalf of” data in Microsoft(R) Outlook, but may limit your ability to track abuse of the mail system.)
  • Verify the existence of email senders. – Enables verify = sender/<options>
  • Use callouts to verify the existence of email senders.- Uses a callout check for the specific mail address.
  • Discard emails for users who have exceeded their quota instead of keeping them in the queue.
  • System filter file (leave blank to disable) – Sets the filter file used by exim.

4 Click on Save.

 

NOTE: For information on exim configuration specifics, please read over the documentation at exim.org.

The post Exim Configuration Editor appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/exim-configuration-editor/feed/ 0
How to Change Exim SMTP IP Address on Linux Server https://www.hivelocity.net/kb/how-to-change-exim-smtp-ip-address-on-linux-server/ https://www.hivelocity.net/kb/how-to-change-exim-smtp-ip-address-on-linux-server/#respond Sun, 14 Nov 2010 06:42:22 +0000 https://kb.hivelocity.net/?p=2047 How to Change Exim SMTP IP Address on Linux Server: You can change the IP address that exim uses to send mail by changing the following in my exim.conf a follows: remote_smtp: driver = smtp to: remote_smtp: driver = smtp interface = 123.123.123.123 Resolution : In WHM on Exim Configuration Editor, rewrite two routers, There …

How to Change Exim SMTP IP Address on Linux Server Read More »

The post How to Change Exim SMTP IP Address on Linux Server appeared first on Hivelocity Hosting.

]]>
How to Change Exim SMTP IP Address on Linux Server:

You can change the IP address that exim uses to send mail by changing the following in my exim.conf a follows:

remote_smtp:
driver = smtp

to:

remote_smtp:
driver = smtp
interface = 123.123.123.123

Resolution :

In WHM on Exim Configuration Editor, rewrite two routers, There is an edit box bellow “ROUTERS CONFIGURATION”, Box is before “lookuphost” router,
Put these lines to that box:

(7th box from top in exim configuration)

Quote:
mylookuphost:
driver = dnslookup
condition = “${perl{checkspam}}”
domains = ! +local_domains
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8 : 64.94.110.0/24
headers_add = “${perl{mailtrapheaders}}”
transport = my_remote_smtp

myliteral:
driver = ipliteral
condition = “${perl{checkspam}}”
domains = ! +local_domains
headers_add = “${perl{mailtrapheaders}}”
transport = my_remote_smtp

Then move down to “TRANSPORTS CONFIGURATION”, On edit box there (just up the remote_smtp transporter)
put these lines:

(12th box from top in exim configuration)
Quote:
my_remote_smtp:
driver = smtp
interface = 72.29.75.244
This will be permanent and will not change by CPanel updates.

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

The post How to Change Exim SMTP IP Address on Linux Server appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/how-to-change-exim-smtp-ip-address-on-linux-server/feed/ 0
Installing DrWEB server antivirus for Linux CPanel https://www.hivelocity.net/kb/installing-drweb-server-antivirus-for-linux-cpanel/ Sun, 14 Nov 2010 11:41:11 +0000 https://kb.hivelocity.net/?p=2045 Following is the step-by-step instruction on how to install DrWEB antivirus on Linux server running CPanel : I. Doing backups Following files are need to be saved: /etc/exim.conf /etc/antivirus.exim or system_filter.exim> II. Installing DrWEB First, download DrWEB antivirus RPM package from here https://www.sald.com/get.html Install it using rpm -Uvh command. For example, for glibc 2.3 use …

Installing DrWEB server antivirus for Linux CPanel Read More »

The post Installing DrWEB server antivirus for Linux CPanel appeared first on Hivelocity Hosting.

]]>
Following is the step-by-step instruction on how to install DrWEB antivirus on Linux server running CPanel :

I. Doing backups

Following files are need to be saved:
/etc/exim.conf

/etc/antivirus.exim or

system_filter.exim>

II. Installing DrWEB

First, download DrWEB antivirus RPM package from here
https://www.sald.com/get.html

Install it using rpm -Uvh command. For example, for glibc 2.3 use
# rpm -Uvh ftp://ftp.drweb.ru/pub/unix/drweb-4.30-glibc.2.3.i586.rpm

Start drweb daemon using command
# /opt/drweb/drwebd start

Now lets take care about automatic antivirus databases updates.
Add the following cron job:
00 12 * * * /opt/drweb/update/update.pl


III. Installing and configuring DrWEB-Exim

Download drweb-exim from https://www.sald.com/get.html

Untar tgz archive.
For example,
tar xzvf drweb-exim-4.29.12-F-linux.tar.gz

Now we need to copy drweb-exim files to proper directories.

# cp -r drweb-exim/etc/drweb/* /etc/drweb/
# cp -r drweb-exim/opt/drweb/doc/* /opt/drweb/doc/
# cp -r drweb-exim/opt/drweb/drweb-* /opt/drweb/

Edit /etc/drweb/drweb_exim.conf

Change

AdminMail = postmaster>
to

AdminMail = you@yourdomain.com>

Lets test how it works so far:
# /opt/drweb/drweb-exim –check_only –check_user=drweb
All tests should be “passed”.

IV. Configuring Exim

We need to make changes in two files to make drweb and exim work together.
First, edit /etc/exim.conf
Black are lines which we will need to add.

 

###### begin exim.conf ########

[skipped]>

###########################
# Runtime configuration file for Exim #
###########################

trusted_users = drweb
trusted_groups = drweb

[skipped]

#!!# message_filter renamed system_filter
system_filter = /etc/antivirus.exim
message_body_visible = 5000

>system_filter_pipe_transport = filter_pipe
system_filter_reply_transport = address_reply

[skipped]

###########################
# TRANSPORTS CONFIGURATION #
########################### ORDER DOES NOT MATTER #
# Only one appropriate transport is called for each delivery. #
############################ A transport is used only when referenced from a director or a router that
# successfully handles an address.

# This transport is used for delivering messages over SMTP connections.

begin transports

filter_pipe:
driver = pipe
user = drweb
group = mail
return_fail_output

 

>

###### end exim.conf ########>
CPanel comes with /etc/antivirus.exim filter file.
In clean Exim install it is called system_filter.exim

Add the following at the end of the file:

 

###### begin antivirus.exim #######>>

# to prevent from mail loop, skip already scanned message
if $received_protocol is “drweb-scanned”
then
finish
endif

>pipe “/opt/drweb/drweb-exim -f $sender_address — $recipients”
>>finish

 

###### end antivirus.exim ########>>


V. Restart Exim and test virus checking

Thats it with configuration.
Now restart exim:
# /etc/rc.d/init.d/exim restart
and test your email delivery.
If email is not going through, inspect /var/logs/exim_mainlog and /var/logs/exim_paniclog

Now take one of those ugly MyDoom worms, attach it to your email message and send it to yourself.

The post Installing DrWEB server antivirus for Linux CPanel appeared first on Hivelocity Hosting.

]]>
Restart Services https://www.hivelocity.net/kb/restart-services/ https://www.hivelocity.net/kb/restart-services/#respond Sun, 14 Nov 2010 06:39:28 +0000 https://kb.hivelocity.net/?p=2041 You can restart any of the available services on the web server at any time. You can restart the following services: Mail Server (Exim) DNS/Name Server (BIND) FTP Server (ProFTPd) SQL Server (MySQL) SSH Server (OpenSSH) HTTP/Web Server (Apache) POP3 Server (cppop) IMAP Server (uwimap) E-Commerce Server (interchange) Postgresql Server Servlet Server (tomcat)

The post Restart Services appeared first on Hivelocity Hosting.

]]>
You can restart any of the available services on the web server at any time. You can restart the following services:
Mail Server (Exim)
DNS/Name Server (BIND)
FTP Server (ProFTPd)
SQL Server (MySQL)
SSH Server (OpenSSH)
HTTP/Web Server (Apache)
POP3 Server (cppop)
IMAP Server (uwimap)
E-Commerce Server (interchange)
Postgresql Server
Servlet Server (tomcat)

The post Restart Services appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/restart-services/feed/ 0
Error while creating mbox spool file https://www.hivelocity.net/kb/error-while-creating-mbox-spool-file/ https://www.hivelocity.net/kb/error-while-creating-mbox-spool-file/#respond Sun, 14 Nov 2010 05:34:57 +0000 https://kb.hivelocity.net/?p=1980 Issue: “Error while creating mbox spool file” Solution: # cd /var/spool/exim/scan # ls -alt | wc Empty the folder /var/spool/exim/scan You can empty the large folder using following command. # ls -l | xargs rm -rf

The post Error while creating mbox spool file appeared first on Hivelocity Hosting.

]]>
Issue: “Error while creating mbox spool file”

Solution:

# cd /var/spool/exim/scan

# ls -alt | wc

Empty the folder /var/spool/exim/scan You can empty the large folder using following command.

# ls -l | xargs rm -rf

The post Error while creating mbox spool file appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/error-while-creating-mbox-spool-file/feed/ 0
Issue with the libdb libraries and trouble with email https://www.hivelocity.net/kb/issue-with-the-libdb-libraries-and-trouble-with-email/ https://www.hivelocity.net/kb/issue-with-the-libdb-libraries-and-trouble-with-email/#respond Sun, 14 Nov 2010 04:47:48 +0000 https://kb.hivelocity.net/?p=1947 When having trouble with email and the following error in the exim_paniclog on a cpanel server: User 0 set for local_delivery transport is on the never_users list The issue appears to be with some of the libraries the following commands should fix it: # ln -s libdb2.so.3 libdb.so.3 # /scripts/eximup –force # /etc/rc.d/init.d/exim restart

The post Issue with the libdb libraries and trouble with email appeared first on Hivelocity Hosting.

]]>
When having trouble with email and the following error in the exim_paniclog on a cpanel server:

User 0 set for local_delivery transport is on the never_users list

The issue appears to be with some of the libraries the following commands should fix it:

# ln -s libdb2.so.3 libdb.so.3
# /scripts/eximup –force
# /etc/rc.d/init.d/exim restart

The post Issue with the libdb libraries and trouble with email appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/issue-with-the-libdb-libraries-and-trouble-with-email/feed/ 0
Where do I find things on a cPanel / WHM dedicated server? https://www.hivelocity.net/kb/where-do-i-find-things-on-a-cpanel-whm-dedicated-server/ https://www.hivelocity.net/kb/where-do-i-find-things-on-a-cpanel-whm-dedicated-server/#respond Sat, 13 Nov 2010 22:35:09 +0000 https://kb.hivelocity.net/?p=1914 If you are trying to find a program, login to the shell. Typing “whereis program”, where “program” is the application you are looking for, will show you one or more possibilites for what you are looking for. If you have more than one copy of a program, for example in /usr/bin/ and another in /usr/local/bin/, …

Where do I find things on a cPanel / WHM dedicated server? Read More »

The post Where do I find things on a cPanel / WHM dedicated server? appeared first on Hivelocity Hosting.

]]>
If you are trying to find a program, login to the shell.

Typing “whereis program”, where “program” is the application you are looking for, will show you one or more possibilites for what you are looking for. If you have more than one copy of a program, for example in /usr/bin/ and another in /usr/local/bin/, typing “which program” will show you the application that will be called first by the shell. If you can’t find it at all, typing “locate program” will show you every file that matches “program”

Some of the most common programs:

/usr/sbin/sendmail
/usr/bin/perl
/bin/mail
/usr/bin/php

Default locations for most commonly used configuration files and important directories:

Exim

  • /etc/exim.conf
  • /var/log/exim_mainlog
  • /var/log/exim_rejectlog
  • /etc/valiases
  • /etc/vfilters
  • /home/username/.forward

MySQL

  • /root/.my.cnf
  • /etc/my.cnf
  • /var/lib/mysql

Apache

  • /usr/local/apache/conf/httpd.conf
  • /usr/local/apache/domlogs/

System

  • /var/log/messages
  • /var/log/dmesg

ProFTPd

  • /etc/proftpd.conf
  • /var/log/xferlog
  • /etc/proftpd/

sshd

  • /etc/ssh/sshd_config

 

The post Where do I find things on a cPanel / WHM dedicated server? appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/where-do-i-find-things-on-a-cpanel-whm-dedicated-server/feed/ 0
Kill the exim mail queue on a cPanel server https://www.hivelocity.net/kb/how-do-i-manually-kill-the-exim-mail-queue-on-a-cpanel-server/ https://www.hivelocity.net/kb/how-do-i-manually-kill-the-exim-mail-queue-on-a-cpanel-server/#respond Sat, 13 Nov 2010 22:33:37 +0000 https://kb.hivelocity.net/?p=1910 Solution How do I manually kill the exim mail queue on a cPanel server? Login to your cpanel dedicated server a root and execute the following command: /usr/local/cpanel/whostmgr/bin/whostmgr2 killeximq  

The post Kill the exim mail queue on a cPanel server appeared first on Hivelocity Hosting.

]]>
Solution

How do I manually kill the exim mail queue on a cPanel server?

Login to your cpanel dedicated server a root and execute the following command:

/usr/local/cpanel/whostmgr/bin/whostmgr2 killeximq

 

The post Kill the exim mail queue on a cPanel server appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/how-do-i-manually-kill-the-exim-mail-queue-on-a-cpanel-server/feed/ 0
What do I do if Exim is unable to route to any remote domains? https://www.hivelocity.net/kb/what-do-i-do-if-exim-is-unable-to-route-to-any-remote-domains/ https://www.hivelocity.net/kb/what-do-i-do-if-exim-is-unable-to-route-to-any-remote-domains/#respond Sat, 13 Nov 2010 22:27:16 +0000 https://kb.hivelocity.net/?p=1887 Solution There are many things that can cause problems with this, however the first step would be to check the exim logs at /var/log/exim_mainlog. This should spell out what the problem is in fairly basic terminology. You will also want to verify that your nameservers in /etc/resolv.conf are set up properly, and pointing to valid …

What do I do if Exim is unable to route to any remote domains? Read More »

The post What do I do if Exim is unable to route to any remote domains? appeared first on Hivelocity Hosting.

]]>
Solution

There are many things that can cause problems with this, however the first step would be to check the exim logs at /var/log/exim_mainlog. This should spell out what the problem is in fairly basic terminology. You will also want to verify that your nameservers in /etc/resolv.conf are set up properly, and pointing to valid IP’s that are answering DNS requests.

The post What do I do if Exim is unable to route to any remote domains? appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/what-do-i-do-if-exim-is-unable-to-route-to-any-remote-domains/feed/ 0