Project

General

Profile

Exim4Cheatsheet » History » Version 1

Version 1/4 - Next » - Current version
Andreas Kohlbecker, 02/20/2018 02:44 PM


Exim4Cheatsheet

exim4 Cheatsheet

Show mails in queue

/usr/local/atmail/mailserver/bin/exim -bp

Show a table overview of the mails in the queue

/usr/local/atmail/mailserver/bin/exim -bp | /usr/local/atmail/mailserver/bin/exiqsumm

Show the number of mails in the queue

/usr/local/atmail/mailserver/bin/exim -bpc

Deliver local mails

/usr/local/atmail/mailserver/bin/exim -v -M {MAIL ID}

Deliver all mails in queue as far as possible

/usr/local/atmail/mailserver/bin/exim -q

Deliver all mails in queue as far as possible (verbose mode)

/usr/local/atmail/mailserver/bin/exim -qff -v

Deliver frozen mail

/usr/local/atmail/mailserver/bin/exim -Mt  {MAIL ID}

Delete all frozen mails

/usr/local/atmail/mailserver/bin/exim -bp | awk '/frozen/{print "/usr/local/atmail/mailserver/bin/exim -Mrm "$3}' | /bin/sh

Unfreeze all frozen mails

/usr/local/atmail/mailserver/bin/exim -bp | awk '/frozen/{print "/usr/local/atmail/mailserver/bin/exim -Mt "$3}' | /bin/sh

Delete specific mail from queue

/usr/local/atmail/mailserver/bin/exim -Mrm {MAIL ID}

Delete mails older than 10 days

/usr/local/atmail/mailserver/bin/exim -bp | grep ‘[0-9][0-9]d ‘ | awk ‘{print $3}’ | xargs /usr/local/atmail/mailserver/bin/exim -Mrm
Add picture from clipboard (Maximum size: 40 MB)