PDA

View Full Version : Problems with postfix aliases




Analog Kid
Aug 31, 2012, 02:42 AM
I can't figure out what's misconfigured. I can send and receive email fine. I've added a line to /etc/aliases:

baz: user@domain.tld

Where user exists and has been confirmed to receive mail. When I send to baz@domain.tld, postfix expands the alias but then bounces back to sender saying user@domain.tld is unknown. If I just click the "unknown" address in the bounce message, Mail creates a message to that sender, and it delivers without an issue.

I've been pulling my hair out over this for days. Eventually baz should have multiple destinations, but I can't even get this simple case to fire.

Any ideas what I'm doing wrong?



modernlifeiswar
Aug 31, 2012, 04:09 AM
Did you enter

sudo newaliases

on your server? This is necessary to update the alias file.

See

http://linux.about.com/library/cmd/blcmdl1_newaliases.htm

Analog Kid
Aug 31, 2012, 01:06 PM
Did you enter
sudo newaliases
on your server? This is necessary to update the alias file.

Thanks. Yeah, I did-- and checked that the timestamp on aliases.db updated as well, which it does.

I think I found part of the problem. Turns out I wasn't using the users's system user name, but one of the aliases in Server.app's "Advanced Options" for Users.

I believe if you alias to another alias, postfix recursively expands those, but I might have that wrong. It doesn't appear that Server's aliases are taken into account there. Any ideas how to make postfix search that alias list?

In fact, I can't figure out how postfix recognizes the Server's aliases at all.

The main reason I'm trying to do this is to better understand how postfix does its job, but I'd also like to avoid exposing the user name over email-- I'd prefer to have everything go through at least one level of alias so that those aliases can be changed when the spam gets out of hand.