Lindsay Haisley writes:
This is not what I want. Instead mail from outside the local system (i.e. not being handed off from some other courier component) to either "[EMAIL PROTECTED]" or especially to "@somedomain" should be rejected as User unknown. So the mystery is solved, but not the original problem.
Yes, one step at a time. I do intend to change the code to reject @somedomain, but first I needed to understand what was going on.
Your original problem can be solved using localmailfilter; I think you know how to use it.
Create the maildropfilter config file, using the example in the localmailfilter man page. Create the .mailfilters subdirectory, and create rcptfilter-default, and set the permissions on everything as given in the man page. Your rcptfilter-default:
echo "500 Go away" EXITCODE=1 exitIf you have something on the machine that sends mail by connecting to localhost port 25, you'll have to have this filter file check $TCPREMOTEIP, first.
For now, you'll have to set up identical .mailfilters/rcptfilter-default and .mailfilters/rcptfilter, until I block @somedomain.
pgpmWiFxWtpHl.pgp
Description: PGP signature
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
