/Main_Page

::You must have ninja focus to complete your mission::NinjaFocus::

Exim-incoming.sh

Views:


$ exim-incoming.sh foo@example.com

#!/bin/bash

# return all details logged to the exim main log file for all messages delivered to a particular email address

grep -E "$(
	grep "=> [^ ]*@imap.example.com <$1" /var/log/exim/main.log \
	| cut -d\  -f 3 \
	| sort \
	| uniq \
	| tr "\n" "|" \
	| sed -e 's/|$//' 
)" /var/log/exim-relay/main.log


Main Menu

Personal tools

Toolbox