Wietse Venema wrote:
Ed W:
Wietse Venema wrote:
If you don't want to receive mail for domain-less addresses then
say so, instead of coming up with the wrong solution for the wrong
problem.
OK, "I want to accept most emails over smtp and then later bounce emails with domain-less addresses"

That will not be supported.  Adding a separate code path for
domain-less envelope adresses would open a giant hole in the
defenses.

OK, I'm not averse to appending some invalid domain - I mainly need the bounce message to explain to the (non-technical) user what they did wrong so that they can fix it and resend. A transport map to an error: would work

Instead, you can try to 1) configure Postfix smtpd to use an
"invalid" myorigin value,

I tried just this much, but without:
2) configure Postfix smtpd with a
non-default rewrite_service_name setting that invokes a trivial-rewrite
server that also uses that "invalid" myorigin value and no transport
map, 3) configure the normal trivial-rewrite server with a transport
map that routes mail for the invalid domain to "error: pebcak".

..because I'm not quite clear what they achieve and hence how to actually do this bit? However, the end result is that bounces are now coming back from mailer-dae...@domain.invalid (which is I think quite expected)

Unless 2) and 3) somehow change this (dont understand?) then I think this is not a workable solution?

I have started to focus on trying to use $remote_header_rewrite_domain, however, the lookup is happening as a "local" rewrite - how can I debug why this is not a "remote" rewrite?


Thanks

Ed W


Reply via email to