Outils pour utilisateurs

Outils du site


informatique:reseau:exim4

Exim4

MTA, Service SMTP

Voir aussi Postfix

Tips & Tricks

fallback (wildcard) alias

In /etc/exim4/exim4.conf.template replace:

system_aliases:
  ...
  data = ${lookup{$local_part}lsearch{/etc/aliases}}

By:

system_aliases:
  ...
  data = ${lookup{$local_part}lsearch*@{/etc/aliases}}

Add the fallback alias in /etc/aliases

For example:

  * : a_local_user

or

  * : a_remote_user@internet.net

Run newaliases to make Exim4 know new aliases.

Vider le queue

Forcer le traitement de la queue:

# /usr/sbin/exim -qf

Ainsi que les messages “frozen”:

# /usr/sbin/exim -qff

Compter le nombre de messages dans la queue:

# /usr/sbin/exim -bpr | grep "<" | wc -l 

Helpful Exim Commands

/usr/sbin/exim   -M   email-id        => Force delivery of one message
/usr/sbin/exim -qf                  => Force another queue run
/usr/sbin/exim -qff                 => Force another queue run and attempt to flush the frozen message
/usr/sbin/exim  -Mvl   messageID  => View the log for the message
/usr/sbin/exim  -Mvb  messageID  => View the body of the message
/usr/sbin/exim  -Mvh  messageID  => View the header of the message
/usr/sbin/exim -Mrm  messageID  =>  Remove message without sending any error message
/usr/sbin/exim  -Mg  messageID   =>  Giveup and fail message to bounce the message to the Sender

/usr/sbin/exim -bpr | grep “<” | wc -l    =>Number of emails in the que
/usr/sbin/exim -bpr | grep frozen | wc -l   => How many Frozen mails on the queue
/usr/sbin/exim -bpr | grep frozen | awk {‘print $3’} | xargs exim -Mrm   =>  Deleteing Frozen Messages
informatique/reseau/exim4.txt · Dernière modification: 12/08/2017 13:55 par cyrille