eEHLO,
eHELO,
eSMTPAuth,
+ eSMTPAuthPlain1,
+ eSMTPAuthPlain2,
eFROM,
eRCPT,
eDATA,
ParsedURL *pCurrRelay;
StrBuf *msgtext;
StrBuf *QMsgData;
+ StrBuf *MultiLineBuf;
const char *envelope_from;
char user[1024];
char node[1024];
char name[1024];
char mailfrom[1024];
-
+ long SendLogin;
long Flags;
+ long IsRelay;
} SmtpOutMsg;
#define SMTPCM_syslog(LEVEL, FORMAT) \
DBGLOG(LEVEL) syslog(LEVEL, \
"SMTPCQ: " FORMAT)
+
+
+
+typedef enum __smtpstate {
+ eSTMPmxlookup,
+ eSTMPevaluatenext,
+ eSTMPalookup,
+ eSTMPaaaalookup,
+ eSTMPconnecting,
+ eSTMPsmtp,
+ eSTMPsmtpdata,
+ eSTMPsmtpdone,
+ eSTMPfinished,
+ eSTMPfailOne,
+ eSMTPFailTemporary,
+ eSMTPFailTotal
+} smtpstate;
+
+void SetSMTPState(AsyncIO *IO, smtpstate State);