Evil Net::SMTP Hack with SMTP Authentication

For some reason my hosting provider doesn't like Perl's Net::SMTP SMTP authentication of PLAIN. Everytime, it gives an error.

Unfortunately, there is not way to tell Net::SMTP::auth method to only use a predefined mechanism from Authen::SASL. It will tries the first one every time.... This happens to be the ever failing PLAIN not the working LOGIN flavor.

I tried to pass in a Authen::SASL to the auth method but it will just be smart and override the mechanism list :(

Well, here is my evil to turn the mechanism method into a read only method, put in the top of my script:

package Authen::SASL;
no warnings 'redefine'; # suppress sub refine warning
sub mechanism { return 'LOGIN'; }
package main;

Awful hack but right now I can't find a better way around this problem without completely overriding the the auth method, which seems much worse.

now to figure out how to open a good bug for Net::SMTP.


  1. When it involves sports betting—and playing in general—everything circles across the odds. If you’re new to the scene, the percentages basically point out the chance of an outcome occurring. You can 온라인카지노 wager on which team wins a recreation or event; what number of} whole goals/points/runs two teams will score in a recreation or event; or even an individual athlete’s or team’s statistical performance. We additionally provide odds on unique entertainment props you won’t find anyplace else. Anytime a significant event is happening in sports, we now have odds on it or can level you to somebody who does and let you understand how|you know the way} your money is best spent. Once you’ve discovered a sportsbook or betting app, Sports Betting Dime offers a huge vary of assets assist you|that will assist you|that can help you} make {the best possible|the absolute best|the very best} wager.


Post a Comment

Popular posts from this blog

BootstrapX clickover

Template Toolkit Debugging inside of Perl Dancer

2 ways to get SQLite to put dates into columns