AMP Admin, > Are domainkeys dead? I can't find any new information on them. > I have dkim working great but should I have dkim and domainkeys > both working?
Now that Yahoo has switched to DKIM too, along with gmail and others, there is hardly any need for DomainKeys left. Maybe still at the verification side, certainly not for signing. > How would I programmatically pull the sender domain via something > like $msginfoo->senderdomain? The $msginfo->sender gives the envelope sender mail address: sub sender # envelope sender, internal form, e.g.: j d...@example.com sub sender_smtp # env sender, SMTP form in <>, e.g.: <"j doe"@example.com> If you need just a domain, delete everything up to THE LAST '@' (there may be more than one!), or use the provided parsing routine Amavis::rfc2821_2822_Tools::split_address : my($sender) = $msginfo->sender; my($localpart,$domain) = split_address($sender); If you need the author address (there may be more than one in a From header field), use the: my($rfc2822_from) = $msginfo->rfc2822_from; # undef, scalar or listref $authors = ref $rfc2822_from ? join(', ',@$rfc2822_from) : $rfc2822_from; > I was trying to add vbr info to the header and had multiple domains so I > was trying to make it detect if it was one of our domains and add the vouch > by reference info accordingly. Mark ------------------------------------------------------------------------------ _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/