PDA

View Full Version : system aliases



joh2900
06-16-2004, 10:34 AM
how can i forward mail from root to another email? I have adding the alias to /etc/aliases, have dns set up for name.doman.com
have mx record for name.domain.com, but mail will not forward.

DirectAdmin Support
06-17-2004, 10:01 AM
Hello,

You might need to swap the order of "system_aliases" and "localuser" in your /etc/exim.conf to look like:
system_aliases:
driver = redirect
allow_defer
allow_fail
data = ${lookup{$local_part}lsearch{/etc/aliases}}
file_transport = address_file
pipe_transport = address_pipe
retry_use_local_part
# user = exim

localuser:
driver = accept
check_local_user
condition = "${if eq {$domain} {$primary_hostname} {yes} {no}}"
transport = local_deliveryJust make sure system_aliases comes first.

John