Mathieu - <ptr.jeta...@gmail.com> writes: > On 8 February 2012 04:21, Carson Chittom <car...@wistly.net> wrote: >> I'm using 5.0-stable. Since I'm on a DSL line, I'm using smtpd to send >> external mail (using SSL, with a login and password) per the >> instructions in smtpd.conf(5). I have copied exactly the section under >> EXAMPLES (under "smtpd.conf would look like this:"). B I have also edited >> /etc/mailer.conf in accord with smtpd(8). >> >> I have edited /etc/mail/aliases to forward mail to root to my personal >> account and have run newaliases. B However, such mail (largely the output >> from /etc/daily and its ilk) still goes directly to root instead of to >> me. B Obviously, I'm doing something wrong--can somebody point me in the >> right direction? > > Did you add the alias your_alias_map directive ? > > Something like : > accept for local alias your_alias_map deliver to mbox
Apparently what happened is that I missed this particular sentence in smtpd.conf(5): "For each message processed by the daemon, the filter rules are evaluated in sequential order, from first to last." My /etc/mail/smtpd.conf had accept for local deliver to mbox accept for local alias "aliases" deliver to mbox so the aliases were never even getting looked at. I've switched the order and now everything works fine.