On Wed, 25 Apr 2007 08:04:53 +0200
"Sydney Bogaert" <[EMAIL PROTECTED]> wrote:

> > 
> > I have just started writing a specialized plugin sending outgoing
> > email. How do I figure out what the user authenticated as from
> > hook_queue?
> > 
> Looking in lib/Qpsmtpd.pm
> 
> $self->qp->authenticated
> $self->qp->auth_user 
> $self->qp->auth_mechanism

Cool. Thanks. Not tested it yet, but here is a few quick mods I made
to the maildir plugin.

For a authenticated connections $maildir/outgoing/$user is used and
for a unauthenticated connection $maildir/incoming/ is used.

The reason for this is because I have plans to write a script to pull
go through the outgoing and figure out how to send it per user
depending on the from address. The I want the ability to run
squirrelmail and have it handle multiple sending accounts for a
single user.

Then for incoming my plans are to write a script figures out who it
is going to and then deliver it to that user. Currently this is going
to require more work and I have not completely looked at it yet.

Any thoughts on it so far?

Attachment: maildir-user
Description: Binary data

Reply via email to