On Tue, Jan 08, 2002 at 04:34:42PM -0600, Stuart Biggerstaff wrote: >Is there a straightforward way to have e-mail sent to nonexistent addresses >forwarded to root or another account? We would like to be able to collect >these to possibly forward to the users.
I don't do sendmail, but did see an /etc/maildomains file on a system I did some other work on which provides for mapping mail for multiple domains with default addresses if there isn't a match. The file for this is in the format: [EMAIL PROTECTED] some_valid_email_address [EMAIL PROTECTED] another_valid_email_address example.com an_address_where_anything_else_goes. I thought this was a pretty neat way to handle virtual domains, and implemented this in smail-3.2 using the rewrite driver. This probably isn't the best way to handle several thousand primary addresses on a system though. It lends itself best to virtual domains with limited numbers of users. This could be used though if one has a capability similar to smail's smart_user variable which will forward unknown local addresses to another mail server for handling (or another instance of the server on the same machine, but listening on another NIC). >I know we could set up aliases for deleted former users and maybe for >incorrect spellings we could anticipate, but that wouldn't get all >possibilities. Deleted or expired are fairly easy to handle by aliasing the address so that they get forwarded to a script that returns some useful message. Bill -- INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Software LLC UUCP: camco!bill PO Box 820; 6641 E. Mercer Way FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 URL: http://www.celestial.com/ ``Whenever you find yourself on the side of the majority it is time to pause and reflect.'' -- Mark Twain _______________________________________________ Linux-users mailing list Archives, Digests, etc at http://linux.nf/mailman/listinfo/linux-users