Created
August 17, 2015 06:27
-
-
Save pixelpaulaus/17d93080eb5e1fb47c10 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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