I am finishing a personal router that I will use begining of next week. Everything looks great.
So I would like that the small amount of mail generated by the router may be redirected simply to the main server.
The main server exports users account via yp (so only one auth between the two of them, and accounts are common) and works great since quite a time as mail server. No problem on this side apparently. I simply add a domain to accept mail for : Blackblock (its own system hostname).
On the router side, I made a mail alias table using the usual /etc/mail/aliases file :
Code:
# Basic system aliases -- these MUST be present
MAILER-DAEMON: postmaster
postmaster: root
# General redirections for important pseudo accounts
daemon: root
...
www: root
root: root@blackblock
stephane: stephane@blackblock
And the smtpd :
Code:
listen on lo0
table aliases file:/etc/mail/aliases
#accept for local alias <aliases>
#
# Already tested this one above. Not working. The mail command returns :
# send-mail: command failed: 550 Invalid recipient
# this one does not work either.
# The aliases are not considered, and you cannot set alias in a relay line.
accept from local relay via smtp://blackblock
So what should I do ? Any idea ?