It is used for masquerading.  Here is the contents of mine:

stew    [EMAIL PROTECTED]
aysent  [EMAIL PROTECTED]

The first entry is the local username, the 2nd the email address that will
land in the "From:" line.  Now I know you can set the from in most mail
clients, but you need to masquerade the envelope too, to get your mail
through many mail servers without bouncing.

You need to feed this through makemap to create a .db file, as well as
modify some settings in sendmail.cf.  The "Bat" book by O'Reilly goes
into this in detail.  I should have an article showing up in Linux Journal
showing how I use this feature, and procmail to let my "frugal" employer
use 1 email address for a whole plant. ;^)

In that case my genericstable reads like this:

user1   [EMAIL PROTECTED]
user2   [EMAIL PROTECTED]

So the "From:" line takes their first name/last name from /etc/passwd,
combines it with the generics table entry like so:

FName LName <[EMAIL PROTECTED]>

Then if you can get the recipient to setup their address book with the
user's real first name/last name and [EMAIL PROTECTED], the
"To:" line looks like this:

FName LName <[EMAIL PROTECTED]>

Or just have them reply to the first mail, and grab the address.

And you can setup a generic mailbox account, say "frugalcompany" on your
server, with procmail recipes that look for "FName LName" and forward the
mail to the right user.  For those correspondants that can't get the
address book entry right, I just hard-code the sender in the procmailrc
file to a user.

Stew Benedict

On Wed, 6 Dec 2000, Steve Lee wrote:

> in sendmail setup
> what is genericstable used for?
> 
> Thanks.
> 
> 
> 
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
> 



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to