--- a/src/pgp.c
+++ b/src/pgp.c
@@ -264,8 +264,10 @@ do_pgp(
 	/*
 	 * <mailfrom> is valid only when signing and a local address exists
 	 */
+#ifdef NOT_DEBIAN
 	if (CURR_GROUP.attribute->from != NULL && *CURR_GROUP.attribute->from && strchr(*CURR_GROUP.attribute->from, '@'))
 		strip_name(*CURR_GROUP.attribute->from, mailfrom);
+#endif
 
 	switch (what) {
 		case PGP_KEY_SIGN:
