Qmail
[Top] [All Lists]

Re: holding mail delivery

To: qmail@list.cr.yp.to
Subject: Re: holding mail delivery
From: Jeremy Kitchen <kitchen@scriptkitchen.com>
Date: Thu, 21 Dec 2006 03:54:37 -0800
Delivered-to: sp-com-lists@consult.net
Delivered-to: gmail-qmail@securepoint.com
Delivered-to: sp.com.list@gmail.com
Delivered-to: mailing list qmail@list.cr.yp.to
In-reply-to: <20061123170757.GA11983@tranquility.scriptkitchen.com>
Mailing-list: contact qmail-help@list.cr.yp.to; run by ezmlm
References: <20061123170757.GA11983@tranquility.scriptkitchen.com>
User-agent: Thunderbird 1.5.0.9 (Windows/20061207)
Payal Rathod wrote:
> Hi,
> My mail server just accepts mails from a relay server and delivers the 
> mails to internet. Now I want that if the mail is sent from particular 
> addresses (around 3-4 of them) only, then accept it and deliver it or 
> otherwise accept it and send it a local mailbox (for auditing purpose). 

You can do this with qmail-smtpd's RELAYCLIENT environment variable.
Set up an entry in your tcprules file, something like this:
12.34.56.78:allow,RELAYCLIENT="@audit.internal"

then set up a virtualdomain and an appropriate .qmail-default file to
handle those deliveries.

-Jeremy

Attachment: signature.asc
Description: OpenPGP digital signature

<Prev in Thread] Current Thread [Next in Thread>
  • Re: holding mail delivery, Jeremy Kitchen <=