Re: local aliases before null client?
am 23.08.2006 16:55:17 von Mike
On 2006-08-22, Mike wrote:
> On one of my boxes I have sendmail using the nullclient.mc feature.
> I need to turn on local alias processing also on this box such that
> aliases are expanded first then sent to the smart hub.
>
> Is there a way to turn on local aliases process with nullclient?
>
> Mike
Below is what I changed /etc/mail/sendmail.mc to, it seems to work fine.
divert(-1)dnl
dnl #
dnl # This is the sendmail macro config file for m4. If you make changes to
dnl # /etc/mail/sendmail.mc, you will need to regenerate the
dnl # /etc/mail/sendmail.cf file by confirming that the sendmail-cf package is
dnl # installed and then performing a
dnl #
dnl # make -C /etc/mail
dnl #
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`setup for Red Hat Linux')dnl
OSTYPE(`linux')dnl
define(`confLOG_LEVEL', `9')dnl
define(`MAIL_HUB', `hub.domain.com')
define(`SMART_HOST', `hub.domain.com')
define(`confFORWARD_PATH', `')
ifdef(`confFROM_HEADER',, `define(`confFROM_HEADER', `<$g>')')
dnl define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
define(`ALIAS_FILE', `/etc/aliases')dnl
define(`STATUS_FILE', `/var/log/mail/statistics')dnl
define(`confDOMAIN_NAME', `domain.com')dnl
MASQUERADE_AS(`domain.com')
FEATURE(`allmasquerade')
FEATURE(`masquerade_envelope')
define(`_DEF_LOCAL_MAILER_FLAGS', `lsADFM5q')
DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl
MAILER(`local')
MAILER(`smtp')