How do I enable extended logging in Exim via CLI?

Extended logging, what’s this?

It adds valuable logging information to your exim_mainlog (/var/log/exim_mainlog) file, so that you can easily analyze the mail log.

It should be very easy to determine from where the messages are coming, who is sending the message and from what directory on your server the user NOBODY is originating emails etc..

In addition, it adds very useful information to exim_mainlog to help you decipher email coming and going.

To enable extended logging in Exim; please do the following things…

1. SSH to the server as root user.

2. Open the Exim configuration file using your favorite text editor ( /etc/exim.conf )

3. Find the entry â hostlist auth_relay_hosts = *â in the configuration file.

4. Add the following line after this entry :

log_selector = +address_rewrite +all_parents +arguments +connection_reject +delay_delivery +delivery_size +dnslist_defer +incoming_interface +incoming_port +lost_incoming_connection +queue_run +received_sender +received_recipients +retry_defer +sender_on_delivery +size_reject +skip_delivery +smtp_confirmation +smtp_connection +smtp_protocol_error +smtp_syntax_error +subject +tls_cipher +tls_peerdn

log_selector = +all

You can either enable all the options or just the required ones.

5. Save the file and restart Exim service.

How to set Extended Exim Logging from WHM?

Yeah, if you are not much familiar with Linux command line, you can manage this settings from the WHM panel. Please log into the WHM panel and go to the following location:

WHM > Service Configuration > Exim Configuration Editor > Switch to Advanced Mode

Add the above log_selector  entry to the first text box. Scroll to the bottom and hit Save.

That’s it.

How to check spamming on server which has Exim MTA?

Electronic spamming is the use of electronic messaging systems to send unsolicited messages (spam), especially advertising, as well as sending messages repeatedly on the same site.

It happens in many ways on a mail server. Spamming is one of the common and frequent problem in web hosting industry. Spamming can cause your server’s IPs blocked at different RBLs, if any accounts in your server sends multiple spam emails. Read more….

Arunlal Ashok

Sr. Linux Server Administrator. I'm managing Linux servers since 2012. I started this blog to share and discuss my ideas. Check My Profile in uPwork (oDesk) and create a job, if you need any administration help. Thanks!!

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *