1
0
mirror of https://github.com/moparisthebest/davmail synced 2025-01-12 22:18:11 -05:00

SMTP: Improve message on MAIL FROM without authentication

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1403 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2010-09-01 06:46:46 +00:00
parent f9427feaf5
commit 85d730310f

View File

@ -123,6 +123,8 @@ public class SmtpConnection extends AbstractConnection {
state = State.STARTMAIL; state = State.STARTMAIL;
recipients.clear(); recipients.clear();
sendClient("250 Sender OK"); sendClient("250 Sender OK");
} else if (state == State.INITIAL) {
sendClient("503 Authentication required");
} else { } else {
state = State.INITIAL; state = State.INITIAL;
sendClient("503 Bad sequence of commands"); sendClient("503 Bad sequence of commands");