Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Analog Kid

macrumors G3
Original poster
Mar 4, 2003
9,360
12,603
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?
 

Analog Kid

macrumors G3
Original poster
Mar 4, 2003
9,360
12,603
Did you enter
Code:
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.