I followed an online tutorial on setting up a local mail server with Postfix/Amavis on Ubuntu. It's finally working at least, but mail to non-existant users is bouncing.
On our "real" (managed by professionals) server, writing to email@example.com from Outlook returns an immediate Undeliverable notice, not a bounce message. A PHP script that mails to firstname.lastname@example.org does not generate a bounce. This is good.
On the local server, writing from Outlook gets a bounce back from MAILER-DAEMON, and so does mailing from the PHP script. This is bad.
If I connect to Postfix by telnet, I get a 550 Reject after RCPT TO: <email@example.com>. Connecting directly to Amavis on port 10024 does not give a rejection, but all incoming mail goes through port 25, right? (It's the only port open on the firewall, after all.) How do I get rid of the bounces?
I will be happy to provide any additional info, but I'm not sure where to start. Users/Aliases are stored in MySQL.