Nullmailer localqueue patch
This patch allows the MTA to send all local mail to a local mbox
instead of the being sent through the network to an administration email
(adminaddr).
I originally started using nullmailer to send through my SSH tunnel
to my dial-up ISP as I didn't trust (and still don't) the shared cable
networks. At that time I couldn't find any easy way to send to
localhost:<port>, so nullmailer was perfect because I could easily
modify the source and change my portnumber (and there was no restrictions
on sending to localhost like other MTA's). The only problem
with this was that it was sending things like my tripwire reports through
the mail and I would occasionally have to pull my ISP's webmail when I was
working remotely.
Hence the patch sends all localhost, and defaulthost mail to the
mbox that you configured.
When I started working on this I was a little rusty on my c++, so
use at your own risk.
2005-03-27 - Updated for 1.00 release.
2003-11-21 - UpDated the .spec file and noticed what might be a bug. Fedora's stupid diskcheck python script emails "From: Disk Usage Monitor <root>" and it appears in my mailbox as Disk@localhost, Usage@localhost,etc. Not sure if that is proper, or if its a bug in lq, or nullmailer. Will look into it when I have time.
This patch is licensed according to the GNU GENERAL PUBLIC LICENSE
(GPL) Version 2 or a later version.
Like the original package, this patch and package comes with no
warranty of any kind.
Nullmailer localqueue patch (1.00RC5)
Nullmailer localqueue patch (1.00RC7) *Does not include the latest .spec file changes.
Latest is 1.00RC7
Nullmailer localqueue patch (1.00)
Latest is 1.00
Patched version of Bruce Guenter's nullmailer:
nullmailer-lq 1.00RC5 (tar.gz)
nullmailer-lq 1.00RC7 (tar.gz)
nullmailer-lq 1.00 (tar.gz)
Latest is 1.00
nullmailer homepage
MD5SUM's
0b362060453e1483e951f48062b4f5c0 localqueue.diff
f3d698ba00ea029f8fe70b375933f5dc nullmailer-lq-1.00RC5.tar.gz
7d2d7edc0075accee15bffebccbe047b nullmail-lq-1.00RC7.diff
9afea92f0094041db6bd7d65c63c99dd nullmailer-lq-1.00RC7.tar.gz
0823a71924eb24143333beaa5b767b3a nullmailer-lq-1.00RC7-2.i386.rpm
a09d3e0a51645c35bb633b2304c2fd1e nullmailer-lq-1.00RC7.tar.gz.old
9773b45be5a0083fe9a81a767e9c70ec nullmailer-lq-1.00.tar.gz
4d3a83967e2c79891f32912b431f6810 nullmailer-lq-1.00.diff
Hopefully I will get a GPG signature up soon
Changelog
2005-03-27 basher584--basher584.org
* Small clean ups.
* Updated to 1.00 release
2003-11-21 basher584--basher584.org
* Fixed the .spec file to actually work with lq.
* RPM Does not require supervise-scripts
2003-02-20 basher584--basher584.org
* Re-merged my changes to nullmailer-1.00RC7
* Added README.localueue
* Makefile.in: added chown nullmail to nullmailer-localqueue
* make_defines.sh: changed admin file to /home/nullmail/mail/inbox
* updated spec file
* smtp.cc: changed debug path to /home/nullmail/smtp.out
2002-11-12 basher584--basher584.org
* Makefile.in: Added localqueue entries
* defines.h: Added ADMINFILE, the local mbox destination
* hostname.cc: Added patches found on mailing list to make
it compile
* make_defines.sh: Added ADMINFILE
* makefield.cc: Added patches found on mailing list to make
it compile
* smtp.cc: Added debug output to /tmp/smtp.out
* src/Makefile.in: added localqueue information
* inject.cc: Removed the Cc: recipient list message because
I didn't like it
* inject.cc: Add logic to detect if one ore more recipients
is/are to the local accounts.
* inject.cc: delivers local messages to the localqueue instead
of queue
* localqueue.cc: Added basically queue.cc modified to empty to
a mbox. Using lockf for locking.
* send.cc: Added stdlib.h for exit
TODO
- make debug optional
- configuration option for debug filename
- configuration option for local mbox filename