Skip to content

Instantly share code, notes, and snippets.

@pixelpaulaus
Created August 17, 2015 06:27
Show Gist options
  • Select an option

  • Save pixelpaulaus/17d93080eb5e1fb47c10 to your computer and use it in GitHub Desktop.

Select an option

Save pixelpaulaus/17d93080eb5e1fb47c10 to your computer and use it in GitHub Desktop.
async.waterfall([server.notes.getdomain(dest_domain)], function (err, domain) {
if(err){
next(SOFTDENY ,'Error geting domain settings, please try again later')
}else{
if(domain.receiving===1){
me.loginfo("ACCEPTING DOMAIN: "+dest_domain);
next()
}else{
me.loginfo("DENYING DOMAIN: "+dest_domain);
next(DENY ,'Denied, not accepting mail here. fresh')
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment