I am trying to configure masquerading in sendmail 8.12.4 and have run into a snag. I run the M4 on my mc file and after its done I get this error message.
/etc/sendmail.cf: line 38: unknown configuration line "masquerade_as(xn-tech.com)masquerade_domain(`.xn-tech.com)exposed_user('root')"
Warning: .cf version level (10) exceeds sendmail version 8.11.0 functionality (9)
We are running 8.12.4 on a Red Hat 6.2 server. We upgraded sendmail with the version (8.12.4) from sendmail.org.
I have included my .mc file if that helps below.
Can some kind sendmail guru tell me where I am screwing this up. I am at a loss and am new to sendmail. I have the bat book in front of me but its not helping much.
divert(-1)
dnl This is xn's custom macro config file used to generate the /etc/sendmail.cf
dnl file. If you modify thei file you will have to regenerate the
dnl /etc/sendmail.cf by running this macro config through the m4
dnl preprocessor:
dnl
dnl m4 /etc/sendmail.mc > /etc/sendmail.cf
dnl
dnl You will need to have the sendmail-cf package installed for this to
dnl work.
dnl The next line has been modified to reflect path change for sendmail. dnl
include(`/sendmail-8.12.4/cf/m4/cf.m4')
VERSIONID(`linux setup for Red Hat Linux')dnl
OSTYPE(`linux')
define(`confDEF_USER_ID',``8:12'')dnl
undefine(`UUCP_RELAY')dnl
undefine(`BITNET_RELAY')dnl
dnl The following line has been determined to be a vulnerability to DOS attacks. dnl
dnl define(`confAUTO_REBUILD')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
define('ALIAS_FILE','/etc/aliases')dnl
define(`STATUS_FILE', `/var/log/sendmail.st')dnl
dnl define(`UUCP_MAILER_MAX', `2000000')dnl
define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
dnl define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn')dnl
dnl define(`confTO_QUEUEWARN', `4h')dnl
dnl define(`confTO_QUEUERETURN', `5d')dnl
dnl define(`confQUEUE_LA', `12')dnl
dnl define(`confREFUSE_LA', `18')dnl
define(`confSAFE_FILE_ENV',`/var/mailjail')dnl
masquerade_as(xn-tech.com)dnl
masquerade_domain('.xn-tech.com)dnl
exposed_user('root')dnl
FEATURE(masquerade_envelope)dnl
FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable')dnl
FEATURE(redirect)dnl
FEATURE(always_add_domain)dnl
FEATURE(use_cw_file)dnl
FEATURE(local_procmail)dnl
FEATURE(`access_db')dnl
FEATURE(`blacklist_recipients')dnl
dnl We strongly recommend to comment this one out if you want to protect
dnl yourself from spam. However, the laptop and users on computers that do
dnl not hav 24x7 DNS do need this. we however do not. dnl
dnl FEATURE(`accept_unresolvable_domains')dnl
dnl FEATURE(`relay_based_on_MX')dnl
MAILER(local)dnl
MAILER(smtp)dnl
MAILER(procmail)dnl
/etc/sendmail.cf: line 38: unknown configuration line "masquerade_as(xn-tech.com)masquerade_domain(`.xn-tech.com)exposed_user('root')"
Warning: .cf version level (10) exceeds sendmail version 8.11.0 functionality (9)
We are running 8.12.4 on a Red Hat 6.2 server. We upgraded sendmail with the version (8.12.4) from sendmail.org.
I have included my .mc file if that helps below.
Can some kind sendmail guru tell me where I am screwing this up. I am at a loss and am new to sendmail. I have the bat book in front of me but its not helping much.
divert(-1)
dnl This is xn's custom macro config file used to generate the /etc/sendmail.cf
dnl file. If you modify thei file you will have to regenerate the
dnl /etc/sendmail.cf by running this macro config through the m4
dnl preprocessor:
dnl
dnl m4 /etc/sendmail.mc > /etc/sendmail.cf
dnl
dnl You will need to have the sendmail-cf package installed for this to
dnl work.
dnl The next line has been modified to reflect path change for sendmail. dnl
include(`/sendmail-8.12.4/cf/m4/cf.m4')
VERSIONID(`linux setup for Red Hat Linux')dnl
OSTYPE(`linux')
define(`confDEF_USER_ID',``8:12'')dnl
undefine(`UUCP_RELAY')dnl
undefine(`BITNET_RELAY')dnl
dnl The following line has been determined to be a vulnerability to DOS attacks. dnl
dnl define(`confAUTO_REBUILD')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
define('ALIAS_FILE','/etc/aliases')dnl
define(`STATUS_FILE', `/var/log/sendmail.st')dnl
dnl define(`UUCP_MAILER_MAX', `2000000')dnl
define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
dnl define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn')dnl
dnl define(`confTO_QUEUEWARN', `4h')dnl
dnl define(`confTO_QUEUERETURN', `5d')dnl
dnl define(`confQUEUE_LA', `12')dnl
dnl define(`confREFUSE_LA', `18')dnl
define(`confSAFE_FILE_ENV',`/var/mailjail')dnl
masquerade_as(xn-tech.com)dnl
masquerade_domain('.xn-tech.com)dnl
exposed_user('root')dnl
FEATURE(masquerade_envelope)dnl
FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable')dnl
FEATURE(redirect)dnl
FEATURE(always_add_domain)dnl
FEATURE(use_cw_file)dnl
FEATURE(local_procmail)dnl
FEATURE(`access_db')dnl
FEATURE(`blacklist_recipients')dnl
dnl We strongly recommend to comment this one out if you want to protect
dnl yourself from spam. However, the laptop and users on computers that do
dnl not hav 24x7 DNS do need this. we however do not. dnl
dnl FEATURE(`accept_unresolvable_domains')dnl
dnl FEATURE(`relay_based_on_MX')dnl
MAILER(local)dnl
MAILER(smtp)dnl
MAILER(procmail)dnl