X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fibex%2Fmail%2FSMTP.java;fp=src%2Forg%2Fibex%2Fmail%2FSMTP.java;h=eed1a311d1912925d601962942a7327ab198776e;hb=71904e0d41c8cd254c347ac47d9c2591b671bc38;hp=bf162fbb2639f4eb0980c9deb01792602720f06c;hpb=5fc5ce51ea2da0e2a88a00ecebc9546355f924d1;p=org.ibex.mail.git diff --git a/src/org/ibex/mail/SMTP.java b/src/org/ibex/mail/SMTP.java index bf162fb..eed1a31 100644 --- a/src/org/ibex/mail/SMTP.java +++ b/src/org/ibex/mail/SMTP.java @@ -185,6 +185,11 @@ public class SMTP { } else if (conn.getRemoteAddress().isLoopbackAddress() || (from!=null&&from.toString().indexOf("johnw")!=-1)) { conn.println("250 you are connected locally, so I will let you send"); to.addElement(addr); + whitelist.addWhitelist(addr); + } else if (authenticatedAs!=null) { + conn.println("250 you are authenticated as "+authenticatedAs+", so I will let you send"); + to.addElement(addr); + whitelist.addWhitelist(addr); } else { conn.println("535 sorry, " + addr + " is not on this machine, you are not connected from localhost, and I will not relay without SMTP AUTH"); Log.warn("","535 sorry, " + addr + " is not on this machine, you are not connected from localhost, and I will not relay without SMTP AUTH");