On Tue, Nov 17, 2009 at 09:39:53AM -0500, Wietse Venema wrote:
> > if I configure my /etc/aliases to read:
> > test: |/bin/false, u...@external-server
> > owner-test: u...@external-server
> >
> > I correctly receive E-Mail to test and owner test at
> > u...@external-server, but the error-message which is generated by
> > /bin/false is send back to the original sender.
>
> Apparently, owner-foo works for email addresses but not commands.
> That would be a bug.
It is not easy to solve, since bounces are not sent by local(8), so
we would need new a queue-file with "owner-test" as the new sender,
but there is no secure mechanism to record a command as the recipient
in the queue file.
So it seems to me that this is more of a feature than a bug, and
the solution could be along the lines of:
aliases:
owner-test: test-bounce-reader
test: [email protected], u...@external-server
command-alias: /bin/false
master.cf:
lcl-clnup unix n - n - 0 cleanup
-o virtual_alias_maps=$local_valias_maps
local unix - n n - - local
-o cleanup_service_name=lcl-clnup
lcl-virtual:
#
# Only addressable via indirect delivery in local(8)
#
command-alias [email protected]
[email protected] [email protected]
[email protected] [email protected]
virtual:
# Special virtual mappings for restricted aliases
#
# Only addressable via indirect delivery in local(8)
#
command-alias [email protected]
[email protected] [email protected]
[email protected] [email protected]
# ... Regular virtual mappings below
transport:
# Note: not a local domain in the sense of $mydestination!
localhost.invalid local:localhost
restricted.invalid error:5.1.1 Mailbox unavailable
.invalid error:5.1.2 Invalid destination domain
main.cf:
indexed = ${default_database_type}:${config_directory}/
virtual_alias_maps = ${indexed}virtual
local_valias_maps = ${indexed}lcl-virtual, $virtual_alias_maps
transport_maps = ${indexed}transport
alias_database = ${indexed}aliases
alias_maps = $alias_database
--
Viktor.
Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.
To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:[email protected]?body=unsubscribe%20postfix-users>
If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.