2009-10-19 14:01

Pour ajouter les sujets de courriels dans la log Exim4 (/var/log/exim4/mainlog), il suffit simplement de modifier le fichier /etc/exim4/exim4.conf.template comme suit en ajoutant +subject au log_selector :

.ifdef MAIN_LOG_SELECTOR
log_selector = MAIN_LOG_SELECTOR +subject
.endif

Puis relancer Exim :

/etc/init.d/exim4 restart
2009-10-19 14:01 · Tags: ,

3 Comments

  1. Tiens, ça me dit quelque chose, ça…

    :)

    Répondre

  2. Great this was just what I needed, now I get T=[subject] in my logs.
    Thank you!

    Répondre

  3. That’s the wrong way to do it. The correct method is to:
    1. create or edit /etc/exim4/exim4.conf.localmacros and add
    MAIN_LOG_SELECTOR = +subject
    2. run update-exim4.conf
    3. and restart exim
    you’re not supposed to modify the template file directly as that will get overwritten.

    Répondre

Leave a Reply

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