No brainer config option to allow users to modify the 'catch-all' address for
hosteddomains. Also should work to allow just "@domain.com". (Not tested).
Matt Pavlovich
--- local.c.orig 2003-06-05 18:27:55.000000000 -0500
+++ local.c 2003-06-05 18:31:48.000000000 -0500
@@ -34,7 +34,12 @@
#define syslog(a, b)
#endif
-#define DEFAULTNAME "alias@"
+/*
+** Make this a config option
+** #define DEFAULTNAME "alias@"
+**
+** Now call it 'CATCHALLNAME'
+*/
static const char rcsid[]="$Id: local.c,v 1.20 2002/12/12 04:06:03 mrsam Exp $";
@@ -308,12 +313,12 @@
lai.rwi=rwi;
lai.found=0;
- alloc_buf=malloc(sizeof(DEFAULTNAME)
+ alloc_buf=malloc(sizeof(getenv("CATCHALLNAME"))
+strlen(atdomain));
if (!alloc_buf)
clog_msg_errno();
- strcat(strcpy(alloc_buf, DEFAULTNAME),
+ strcat(strcpy(alloc_buf, getenv("CATCHALLNAME")),
atdomain);
i=authstaticlist_search(alloc_buf, "courier",
49a50,60
> ##NAME: CATCHALLNAME:0
> #
> # If you want to use a 'catch-all' for hosteddomin 'domain.com', use set
> # CATCHALLNAME to 'addr@' and add '[EMAIL PROTECTED]' as an address to
> # the user where you want all the mail to go.
> #
> # Set to "" in order to use "@domain.com", and be consistent with what
> # is used in aliases.
>
> CATCHALLNAME=alias@
>