Solved: MailScanner + Sendmail and User Unknown not bounced at once...(this does NOT use LDAP routing)

David H. dh at UPTIME.AT
Mon Feb 16 22:55:01 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Ken Anderson wrote:

 > If it's sendmail, one simple way is to use the access map and reject it.
 >
 > TO:user1 at domain.com     RELAY
 > TO:user2 at domain.com     RELAY
 > # Default entry to reject
 > TO:domain.com  ERROR:5.1.1:550 User unknown
 >
 > How are you doing this?

It utilises a few patches made by Andrzej Filip, namely

http://www.polbox.com/a/anfi/sendmail/rtcyrus.html
http://www.polbox.com/a/anfi/sendmail/_FFR_MAP_FSTAT.html
and if you want it
http://www.polbox.com/a/anfi/sendmail/localNalias.html

Basically it assumes that the IMAP server is present on the same
machine. Then it executes a fstat on /var/spool/yourimap/users/<username>

After ALL expansion has been finished and all virtual look ups finished.

As I said, if you want details and I see some feedback, I am willing to
write a howto

- -d

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)

iD8DBQFAMUpJPMoaMn4kKR4RA6vwAKCVRQZK9iRsQK2IxrIup1PeDw9pZACggD/N
6NNqIjOOV1WoAOPESYhASKA=
=OIon
-----END PGP SIGNATURE-----



More information about the MailScanner mailing list