Okay, so here's the situation: I'm new to this, but after a few days of Googling I finally managed to successfully setup postfix on a server. I use two subdomains for email. The first subdomain is used by the server just to send email, and the second subdomain is used to forward email. In other words, let's say one email is [email protected], and the other subdomain is used to create forwarders, i.e. [email protected] gets forwarded to [email protected] and [email protected] gets forwarded to [email protected].
Now that you understand the basic setup, my question is: What does postfix do when it receives an email to an address that isn't setup for receiving, or an address that isn't setup to forward email? On the server, I have no MDA or MUA installed, just postfix, as that is all that's necessary to send and forward emails. Normally, if the server was just sending emails, I'd edit the main.cf file to listen only on the loopback interface, but I can't do that since I also need to receive emails in order to forward them. My concern is that if someone replies to the [email protected] email, because there is no MDA, postfix will cache the email somewhere. On a server that has just enough memory and diskspace to work with, I want to make sure that the email will simply be ignored or discarded by postfix, instead of retained in memory or written to a hard disk.
TLDR When postfix receives an email that it can't "hand off," does it discard the email? If not, is there a way to make it ignore those emails?
Thanks! (By the way, if you need any more or simply more-specific info, let me know!)
main.cf
file:virtual_alias_domains = fwd.example.com
andvirtual_alias_maps = hash:/etc/postfix/virtual
and then added the forwarding rules to thevirtual
file as such:[email protected] [email protected]
. Finally, I ran the commandsudo postmap /etc/postfix/virtual
. As I said, I'm a newbie to all of this, but I tested it and it seemed to work fine.