[SOLVED] vzdump - Change mail subject/template?

Jul 12, 2017
9
4
43
36
Hi,

I am forwarding the vzdump result mails to Pushover (SMTP to Push-Gateway).
Unfortunately I cannot see the result of the vzdump in the title as it is too long for the smartphone screen.
Is there a way to change the subject of the result mails or do I need to use own hook scripts?

Greetings
Sebastian
 
Hi again,

found an old thread saying that the subject is hardcoded and not changeable, so I use postfix to manipulate the outgoing mail:

/etc/postfix/main.cf:
header_checks = regexp:/etc/postfix/short_subject.regexp

/etc/postfix/short_subject.regexp:
/^Subject: vzdump backup status \(hostname.domain.local\)(.*)$/ REPLACE Subject: pve-home$1

last:
postfix reload
 
Last edited:
  • Like
Reactions: dgow