web analytics

Category Exim

Enabling detailed debug log in imap

Sometimes your might need to check for detailed logging in email. One of my friends was  developing an email application and he wanted to check what was happening behind the screen when he received an email, moves it to another folder, deletes it etc.

Hence, we decided to enable detailed logging in imap. It was a cpanel server and we used the option imapdebug. Always keep a backup of the file you edit.

root@abc# cp -pv /usr/lib/courier-imap/etc/imapd /usr/lib/courier-imap/etc/imapd.bak.$(date +%F)

root@abc# vi /usr/lib/courier-imap/etc/imapd

Now uncomment the following line.


Now touch a file named  imaplog.txt at the root of the account where you want to enable logging. Restart the courier service. Suppose I need to enable logging for greproot@abc.com.


Read More

Frozen mails in exim

Normally an MTA retries the delivery of mails if it is not delivered in first attempt. There are a few mails which fails and exim writes them as frozen. Exim will not bounce emails if the original message looks like a bounce. Instead the message is frozen, awaiting the SysAdmin’s attention. If the message is frozen (attempts to deliver it are suspended) then the text “*** frozen ***” is displayed at the end of the line. You can safely delete those messages.

exim -bP will list all control values

To check the no: ...

Read More