On 31.10.17 18:38, J Doe wrote:
Because my server is configured to perform virtual domain hosting, I have
the following:

  /etc/postfix/main.cf
      mydestination = localhost

...but if a message is sent to a non-existent domain that I *virtually host* 
for:

you apparently mean, non-existent recipient within existent domain
(example.com)

   /etc/postfix/main.cf
       virtual_alias_domains = example.com
       virtual_alias_maps = hash:/etc/postfix/virtual

...it generates a NOQUEUE and terminates the SMTP conversation by default.

which is correct behaviour.

To catch mail that is addressed to non-existent recipients, I add the
following to my virtual_alias_maps hash file:

   /etc/postfix/virtual

   @example.com ADDRESS_TO_SEND_TO

...where ADDRESS_TO_SEND_TO is the e-mail address to catch e-mails addressed to 
a non-existent domain.

Non-existent recipient, again. And this is exactly what causes backscatter. Don't accept mail to non-existent recipients. If you really must accept it
(why?), don't forward it, especially not to gmail.

--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
WinError #99999: Out of error messages.

Reply via email to