On Tue Sep 23, 2008 at 07:54:00 +0200, Kaare Rasmussen wrote: > I'm playing around with qpsmtpd to see if I can use it for my purposes. > It's great fun to discover how easy it is to extend the plugin system.
:) > a. checks if mail is for local > b. if not and user is allowed to relay, just throw the mail to a smtp > server. > c. deliver straigth to the maildir if mail is for one of the virtual domains > d. else reject. > > I haven't found a plugin like this, but it looks easy to implement. I > just wonder if there's something wrong with the method. Seems to me you have three states: 1. Mail delivered locally. 2. Mail forwarded. 3. Mail rejected. There are plugins already present to do local maildir delivery, and forward via SMTP. So I'd suggest you just augment those separately. (ie. Update the "queue/maildir" plugin to write to the proper location, and record a status somewhere so that the message delivery works. Then update the smtp forward plugin to only forward if it should - and reject otherwise.) Steve --