Hey guys,
This might sounds like a dumb question but I am not sure what to do from here.
I need to relay emails from local machine to a mail relay server with sendmail daemon stopped (for few reasons) on local machine. The problem is sendmail ignores aliases db with sendmail daemon stopped.
What confuses me is that aliases are enabled in config files.
submit.mc:
#
# This is the prototype file for a set-group-ID sm-msp sendmail that
# acts as a initial mail submission program.
#
divert(0)dnl
VERSIONID(`$Id: submit.mc,v 8.6.2.4 2002/12/29 03:54:34 ca Exp $')
define(`confCF_VERSION', `Submit')dnl
define(`__OSTYPE__',`')dnl dirty hack to keep proto.m4 from complaining
define(`_USE_DECNET_SYNTAX_', `1')dnl support DECnet
define(`confTIME_ZONE', `USE_TZ')dnl
define(`confDONT_INIT_GROUPS', `True')dnl
define(`ALIAS_FILE', `/etc/mail/aliases')dnl
dnl
dnl If you use IPv6 only, change [127.0.0.1] to [IPv6:::1]
FEATURE(`msp', `[xx.xx.xx.xx]')dnl
I tried using define(`ALIAS_FILE', `/etc/mail/aliases')dnl after FEATURE(`msp', `[xx.xx.xx.xx]')dnl[/I] as well.
submit.cf:
# location of alias file
O AliasFile=/etc/mail/aliases
aliases:
test: test@somedomain.com
- run
newaliases command
/usr/lib/sendmail -C submit.cf -bv test -> does not deliver to
test@somedomain.com but to test@localmachinedomain
/usr/lib/sendmail -C sendmail.cf -bv test -> delivers to
test@somedomain.com
What am I missing?
Thank you!