Package mireka.filter.misc
Class RedirectPostmasterMail
- Object
-
- mireka.filter.StatelessFilterType
-
- mireka.filter.misc.RedirectPostmasterMail
-
- All Implemented Interfaces:
DataRecipientFilter,FilterBase,FilterType
public class RedirectPostmasterMail extends StatelessFilterType
Assigns a destination to a postmaster recipient depending on the reverse path. This filter is useful if some public clients needs to send mail to a specific address, but cannot store authentication information. In that case it sends mail to the postmaster, which does not require authentication. This filter sorts these mails bases on the reverse path. If no mapping matches the reverse path then this filter does nothing.
-
-
Constructor Summary
Constructors Constructor Description RedirectPostmasterMail()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMapping(ReversePathDestinationPair mapping)FilterReplyverifyRecipient(RecipientContext recipientContext)Decides if a recipient should be accepted.-
Methods inherited from class mireka.filter.StatelessFilterType
begin, createInstance, data, dataRecipient, done, from, recipient
-
-
-
-
Method Detail
-
verifyRecipient
public FilterReply verifyRecipient(RecipientContext recipientContext) throws RejectExceptionExt
Description copied from interface:FilterBaseDecides if a recipient should be accepted. The decision can be a final positive, a final negative, or a neutral answer. This function is not called if a previous filter has already accepted or rejected the recipient. In case of a neutral answer, other filters will decide. If all filters return the neutral answer, then the recipient will be accepted if a destination is assigned to it and the assigned destination is not anUnknownRecipientDestination; otherwise it will be rejected as an unknown user.- Specified by:
verifyRecipientin interfaceFilterBase- Overrides:
verifyRecipientin classStatelessFilterType- Throws:
RejectExceptionExt
-
addMapping
public void addMapping(ReversePathDestinationPair mapping)
-
-