-
-
Notifications
You must be signed in to change notification settings - Fork 3
qmail popbull.8
qmail-popbull - insert bulletins
qmail-popbull bulletin-directory pop3d-program Maildir
qmail-popbull examines a directory of bulletins whenever a user checks their pop3 mail. When a new bulletin is seen, it inserts the bulletin into the user's Maildir.
It compares the time on a .timestamp file in the Maildir directory and compares it to the time on the bulletin. If the bulletin is newer, qmail-popbull inserts a symlink to the bulletin into the user's Maildir/new directory. The bulletin should be an ordinary email message. One reasonable use of qmail-popbull is to point it to the new directory of a special user's Maildir. When you send that user mail, it becomes a bulletin.
Caution! The files in the bulletin directory must be readable by anyone, so you'll probably have to store the mail in the user's maildir using:
./Maildir/
|chmod ugo+r Maildir/new/*
When qmail-popbull is finished, it execs the pop3d-program with the remainder of its arguments as arguments to pop3d-program.
pop3d-program can be any program, but that program's first argument must be the user's Maildir.
Suggested invocation:
qmail-popup YOURHOST /bin/checkpassword /usr/sbin/qmail-popbull
/var/spool/bulletins /usr/sbin/qmail-pop3d Maildir
(all on one line)
qmail-popup(8) qmail-pop3d(8)