Skip to content

qnotify.1

Manvendra Bhangui edited this page Feb 25, 2024 · 6 revisions

NAME

qnotify - respond to Message Disposition Notifications

SYNOPSIS

in .qmail: |qnotify [-h] [-n]

DESCRIPTION

qnotify(1) reads an rfc822 email on stdin and generates a MDN as required by RFC3798. qnotify(1) uses environment variable SENDER, RPLINE or Return-Path header to compare the address with Disposition header. By default, qnotify uses Disposition-Notification-To header. You can use a different header by setting the environment variable DISPOSITION_HEADER. qnotify(1) also uses the environment variable RECIPIENT to generate the MDN. qnotify(1) silently exits with zero return status in case it does not get the required information from the environment variables or the headers in the email.

If running as non-root, qnotify uses environment set according to files in $HOME/.defaultqueue directory. You can skip $HOME/.defaultqueue if SKIP_LOCAL_ENVIRONMENT is set. If QUEUE_BASE environment variable is not set, it additionally uses environment set according to files in /etc/indimail/control/defaultqueue directory (for any uid).

OPTIONS

-n
Print the message rather than feeding it to qmail-queue.

-h
enclose the headers rather than the original email

RETURN VALUE

0 for success 1 for read errors 2 for write erros 3 for memory allocation error 4 for file open errors 5 for failure to dup file descriptors 6 for lseek system call error 7 for usage error

SEE ALSO

envelopes(5), ifaddr(1), iftocc(1), iftoccfrom(1), bouncesaying(1), condredirect(1), condtomaildir(1), dot-qmail(5), dot-forward(1), fastforward(1), forward(1), printforward(1), setforward(1), filterto(1), except(1), preline(1), qmail-command(8), qreceipt(1), replier(1), rrforward(1)

Clone this wiki locally