Phage capsid recognition triggers activation of a bacterial toxin-antitoxin defense system.