Im having some trouble getting sendmail to rewrite a from header.
I normally run as root (yes I know, Ive been doing this since '97 and the sky hasnt fallen yet) and somtimes zip off an email from the command line.
When the sender gets the message "root" appears in the from header and Id like to change this to a user instead.
Heres the pertinent section of my sendmail.mc:
define(`confDEF_USER_ID',``mail:mail'')dnl
OSTYPE(`linux')dnl
undefine(`UUCP_RELAY')dnl
undefine(`BITNET_RELAY')dnl
define(`confALIAS_WAIT', `30')dnl
define(`confTO_CONNECT', `1m')dnl
define(`confTRY_NULL_MX_LIST',true)dnl
define(`confDONT_PROBE_INTERFACES',true)dnl
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
dnl define delivery mode: interactive, background, or queued
dnl define(`confDELIVERY_MODE', `i')
dnl MASQUERADE_AS(`m0rl0ck.xxx.xx')dnl
dnl FEATURE(`limited_masquerade')dnl
FEATURE(`masquerade_envelope')dnl
FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(mailertable)dnl
dnl virtusertable: redirect incoming mail to virtual domain to particular user or domain
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable')dnl
dnl genericstable: rewrite sender address for outgoing mail
FEATURE(`genericstable', `hash -o /etc/mail/genericstable')dnl
FEATURE(always_add_domain)dnl
FEATURE(redirect)dnl
FEATURE(use_cw_file)dnl
FEATURE(local_procmail)dnl
Changed my hostname in the above, but its a FQDN. Heres my genericstable:
m0rl0ck
m0rl0ck@myisp.com
root
m0rl0ck@myisp.com
So Im trying to rewrite
root@m0rl0ck.xxx.xx to
m0rl0ck@myisp.com.
Im using sendmail 8.12.6 my firewall is actually m0rl0ck.xxx.xx and my mailserver is bunny.m0rl0ck.xxx.xx. Im using dynip and bunny is flisted as my mx record.
Anybody have an idea what Im doing wrong?