I have a potentially unique case where our backend smtp server has come
wildcard / catchall mailboxes set up.

I've added these mailboxes as @domain.tld in the local addresses flat file.
We have not experimented with assp catchalls, but you wouldn't want to have
@domain.tld in the flat file and have a catchall for that domain anyway.

The issue that we've run into is when a user wants to "turn off" a specific
address.  For example lets take a simple domain with the following users:
[EMAIL PROTECTED]
[EMAIL PROTECTED]
@domain.tld

on the real server side, user1 is just a regular user.  User 2 is a regular
user with the @domain.tld alias, so that user will get all mail addressed to
the domain that isn't to user1.

If user2 no longer wants to get mail for
[EMAIL PROTECTED], an address that was used in a
newspaper ad or something, that should not just send an NDR, with the
current setup, this is impossible.  ASSP will let it through due to the
@domain.tld (unless it's spam) and our backend server is too stupid.

SO-
I implemented a BounceTheseLocalAddresses functionality.

After:
['LocalAddresses_Flat_Domains','Use Addresses without \'@\' as
Domains',0,\&checkbox,0,'([01]?)',undef,'Will handle entries without \'@\'
as full domains'],

Add:
['BounceTheseLocalAddresses','Bounce These Local
Addresses*',80,\&textinput,'','(.*)','ConfigMakeSLRe',
  'Nexario Mod - If ANY recipient on bounce list, message will not be
delivered.  Used for disabled legitimate accounts, where a user may have
  left the company. Stops wildcard mailboxes from getting these messages.'],


In "our %MakeSLRE = (", add:
    'BounceTheseLocalAddresses' => 'BOUNCELOCALADDRRE',


Replace:
if ( $LocalAddresses_Flat && matchSL( $uh, 'LocalAddresses_Flat' ) ) {
 $this->{islocalmailaddress} = 1;
 d("$u$h validated by flat LocalAddresses list");

}

with:
if ( $LocalAddresses_Flat && matchSL( $uh, 'LocalAddresses_Flat' ) ) {

 if(matchSL( $uh, 'BounceTheseLocalAddresses' )) {
  d("$u$h rejected by bounce address list\n");
 } else {
  $this->{islocalmailaddress}=1;
  d("$u$h validated by flat LocalAddresses list\n");
}

Hope this helps someone else and that Fritz considers putting this into
1.4.x and 2.0.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test

Reply via email to