The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

bounced - Bounce mails in the defer spool

SYNOPSIS

Run from crontab:

00-59 * * * * /path/to/bounced -s

Or in daemon mode:

/path/to/bounced -D -t time_to_sleep

COMMAND LINE SWITCHES AND OPTIONS

Usage: bounced [-v] [-n] {-D [-t time_to_sleep]|-s}
-D
Run the program in daemon mode.
-t
Time (in seconds) which we'll be sleeping
between each run. (only in deamon mode)
-s
Run once and exit.
-v
Give verbose error and info messages in logging
-n
Debug mode. Don't really send mail and do not
delete the queue file.

DESCRIPTION

Bounced handles the bounced mail in the defer queue
and sends it back to the right recipient.

1. Get a new file from the defer queue.
2. Try to get the sender by various methods.
3. Find out what kind of bounce this is (glist error, external smtpd bounce etc)
4. Send it back to the sender.

If no sender is found or the deferred mail cannot be linked to any
glist mailinglist, the admin defined in the global configuration directory
of glist.conf is used.

CONFIGURATION

Configuration is done in the script it self.
Thogh this is preferred to be changed in the Makefile,
this can be done in the script as well.

In the first lines of bounced you can configure the following variables:
PREFIX
Bounced's prefix path.
SENDMAIL
The full path to the sendmail program, with options.
(usually sendmail -t)

FILES

Message files in PREFIX/spool/deferred
Each message file should be like this:

Header part
<empty line>
Body Part

The following headers are specific for bounced:

X-GL-Error	-	The error we should send back.
X-Mailinglist	-	The mailinglist this mail belongs to.
X-Original-Sender -	The original sender of this mail.

REQUIREMENTS

Perl 5
Maybe even Perl 5.6?
POSIX
Should be in the standard perl distribution.
Getopt:Std
Should be in the standard perl distribution.
File::Copy
Should be in the standard perl distribution.
Postfix / Sendmail
http://www.postfix.org
http://www.sendmail.org

VERSION

This is version 1.0

BUGS

None known as of this date :)

AUTHOR

Ask Solem Hoel <ask@unixmonks.net>, http://www.unixmonks.net

2 POD Errors

The following errors were encountered while parsing the POD:

Around line 2:

Unknown directive: =comment

Around line 259:

=cut found outside a pod block. Skipping to next block.