Skip to content

Instantly share code, notes, and snippets.

@jmcnevin
Created March 13, 2010 08:43
Show Gist options
  • Save jmcnevin/331207 to your computer and use it in GitHub Desktop.
Save jmcnevin/331207 to your computer and use it in GitHub Desktop.
Adds VERP support to NET::SMPT
# Add this line to your postfix main.cf file to add VERP support.
smtpd_authorized_verp_clients = $mynetworks
# Adding VERP support to Net::SMTP.
module Net
class SMTP
def mailfrom(from_addr)
if $SAFE > 0
raise SecurityError, 'tainted from_addr' if from_addr.tainted?
end
getok("MAIL FROM:<#{from_addr}> XVERP")
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment