Submitted by joeles on Fri, 02/06/2009 - 10:15
The "delete-alias" api call does not work when trying to delete a catch-all alias. The api does not accept an empty string for the --from argument and everything else I tried including "@domain.com" failed to match a valid alias. I added the following code to delete-alias.pl after line 55 and it fixed it for me. Now I can use "@" for --from argument and the catch-all alias is correctly deleted.
$email = $from eq "@" ? "\@$domain" : $email;
Status:
Closed (fixed)