> From: Jim Hatfield [mailto:[EMAIL PROTECTED] > I'm not clear whether filter_recipient() is called once for > each envelope recipient, or just once. The implication is > that it's called for each but I'd like to be sure. ... > In the following transaction: > > mail from:<> > rcpt to:<[EMAIL PROTECTED]> > rcpt to:<[EMAIL PROTECTED]> > I'd like to be able to reject the second "rcpt to" ...
You're omitting the server half of the transaction. CLIENT> mail from:<> At this point filter_sender (name?) is run on the server Assuming that this returns an OK, the server sends the following to the client: SERVER> 250 2.1.0 <>... Sender ok CLIENT> rcpt to:<[EMAIL PROTECTED]> At this point filter_recipient() is called for <[EMAIL PROTECTED]> You should return an OK for this call SERVER> 250 2.1.5 <[EMAIL PROTECTED]>... Recipient ok CLIENT> rcpto to:<[EMAIL PROTECTED]> At this point filter_recipient() is called for <[EMAIL PROTECTED]> You should return a REJECT for this call SERVER> 550 5.3.0 <[EMAIL PROTECTED]>... We don't accept NDR's for this address _______________________________________________ Visit http://www.mimedefang.org and http://www.canit.ca MIMEDefang mailing list [EMAIL PROTECTED] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

