2

I have a /etc/postfix/virtual file set up to alias mail to different domains to the right local user, however I also want to use /etc/aliases to alias certain local users (mostly nobody and postmaster to root) -- I have:

alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
virtual_alias_maps = hash:/etc/postfix/virtual

But it seems to be ignoring the /etc/aliases (I have nobody: root but mail to nobody@localhost still goes to /var/mail/nobody)

  • Did you use postmap after editing the aliases file? – Khaled Nov 3 '10 at 16:39
  • I used it on the virtual file... do I also need to call it on the aliases file? – singpolyma Nov 3 '10 at 17:08
  • Running postmap on /etc/aliases gives a bunch of warnings and running postalias has no effect – singpolyma Nov 3 '10 at 17:12
  • paste the results of postconf (obscure the things you want hidden). See if it matches what you think it should... If not maybe this will help. – Leo Nov 3 '10 at 20:03
  • postconf output (hostnames redacted) : pastie.org/1273446 – singpolyma Nov 4 '10 at 21:52
1

Q: Did you run newaliases after changing the /etc/aliases/ file? A: you say “yes”.

Q: Do you have similar output for the following command?

# file /etc/aliases*
/etc/aliases:    ASCII text
/etc/aliases.db: Berkeley DB (Hash, version 9, native byte-order)
  • Just tried running postmap /etc/aliases followed by newaliases and then reloading postfix... no effect. – singpolyma Nov 3 '10 at 19:06
  • $ file /etc/aliases* /etc/aliases: ASCII text /etc/aliases.db: Berkeley DB (Hash, version 9, native byte-order) – singpolyma Nov 4 '10 at 21:45
  • Could the problem have something to do with me using procmail for delivery? I have: mailbox_command = procmail -a $EXTENSION – singpolyma Nov 19 '10 at 16:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.