问题原文
原帖链接 · drpaneas · CC BY-SA 3.0
In my system I've noticed that there are these two files, coming from different packages:
/etc/aliases-->netcfg-11.5-27.1.noarch/etc/postfix/aliases-->postfix-2.11.6-19.1.x86_64
I've also noticed that in my 'postfix' configuration, namely /etc/postfix/main.cf there's this line pointing to (1), instead of (2).
alias_maps = hash:/etc/aliases
Question: is this by default like this? It doesn't make sense to me, I would expect that postfix should use postfix's file and not netcfgs.
社区高分解答
原帖链接 · shodanshok · CC BY-SA 3.0
From postfix man page:
On some systems the alias database is not in /etc/aliases. To find out the location for your system, execute the command "postconf alias_maps".
The /etc/postfix/aliases probably is a stub file to be used on system lacking /etc/aliases. Anyway, as you discovered, your alias_map points to /etc/aliases, so you can safely ignore the other file.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
