I'm trying to set up a local mailserver. I run Mac OS X Server 10.6 Snow Leopard, and it uses Postfix as server. I set the server up using the GUI and I'm doing all virtual settings via the terminal.
The situation: the server is on a domain, let's call it "domain.com". I have multiple virtual aliases, for now let's say "alias.com". I have a user "postmaster" on the server.
My goal: I'd like to setup some aliases (postmaster, root, mailer-daemon, etc.) that work for all domains/aliases without having to set it up every time I add an alias domain.
Summary/to the point question: how can I set up aliases that work automatically for all virtual domains?
Current progress: using the current configuration, I receive all messages to email@example.com, firstname.lastname@example.org, etc...@domain.com. But when I send a message to email@example.com (or firstname.lastname@example.org), the message is returned.
Aug 17 23:53:54 home postfix/smtpd: connect from SERVER[IP] Aug 17 23:53:54 home postfix/smtpd: NOQUEUE: reject: RCPT from SERVER[IP]: 550 5.1.1 <email@example.com>: Recipient address rejected: User unknown in virtual alias table; from=<FROM> to=<firstname.lastname@example.org> proto=ESMTP helo=<SERVER> Aug 17 23:53:55 home postfix/smtpd: disconnect from SERVER[IP]
bash-3.2# postconf -n virtual_alias_domains = $virtual_alias_maps hash:/etc/postfix/virtual_domains virtual_alias_maps = hash:/etc/postfix/virtual_users
Contents of /etc/postfix/virtual_domains:
Contents of /etc/postfix/virtual_users:
email@example.com jonathan firstname.lastname@example.org jonathan email@example.com jonathan
Contents of /etc/aliases:
root: postmaster MAILER-DAEMON: postmaster bin: root daemon: root named: root nobody: root uucp: root www: root ftp-bugs: root postfix: root manager: root dumper: root operator: root abuse: postmaster decode: root
I've googled a lot, but I can't find real solutions. I hope you guys come up with some genius plan :-)