Sendmail masquerade outgoing email address
Masquerade the entire user@hostname.domain to another user1@hostname1.domain1. Step 1 #cd /etc/mail/ #echo "user user1@hostname1.domain1" > genericstable Step 2 Add/Modify the following lines in /etc/mail/sendmail.mc dnl FEATURE(genericstable)dnl FEATURE(`genericstable',`hash -o /etc/mail/genericstable.db') FEATURE(generics_entire_domain)dnl GENERICS_DOMAIN_FILE(`/etc/mail/genericstable') Step 3 Create the sendmail.cf file #m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf Step 4 Verify the contents of the sendmail.cf file . F{G}/etc/mail/genericstable Kgenerics hash -o /etc/mail/genericstable.db # handle generics database R< $+ > $+ < $* > @ $: < $(generics $1 $: @ $1 $) > $2 < $3 > $: < $(generics $1+*@$3 $@ $2 $:@$1 + $2@$3 $) > $4 < @ $5 > $: < $(generics $1@$3 $: $) > $4 < @ $5 > R< > $+ < @ $+ . > $: < $(generics @$2 $@ $1 $: $) > $1 < @ $2 . ...