-T:(feed00) Email using UTF-8 characters on local delivery
+T:(feed04) Email using UTF-8 characters on local delivery
R:220 mailleur.example.com, ESMTP (cleartext) mailleur...
#====================================================
S:HELO example.com
#-------------------------------------------------------------------------
#-sending data
C:DATA 354 3.5.0 End data with <CR><LF>.<CR><LF>
-D:Subject: (feed03) Email using UTF-8 characters
+D:Subject: (feed04) Email using UTF-8 characters
C:T
D:From: Maitre Post <postmaster@example.com>
D:To: Maitre WEB <webmaster@example.com>
--- /dev/null
+T:(feed05) Email testing remote server
+R:220 mailleur.example.com, ESMTP (cleartext) mailleur...
+#====================================================
+C:ORGN 127.127.0.25
+R:220 mailleur.example.com, ESMTP (cleartext) mailleur...
+S:helo example.com
+R:250 mailleur.example.com, link (cleartext) ready, your IP/FQDN=[127.127.0.25/No.Reverse]
+S:QUIT
+R:221 2.0.0 Bye, closing connection...
+#-------------------------------------------------------------------------
//present password is crypted as a hash and in password too
//adding a list of local email
+//set for local test
INSERT INTO emails (email,password) \
values ('postmaster@example.com','postmaster');
INSERT INTO emails (email,password) \
INSERT INTO emails (email,password) \
values ('utf8-áö_üñ@example.com','utf8-áö_üñ');
-//Set for Postgresql database
+//Set for system iwith Postgresql database
INSERT INTO emails (email,password) \
values ('user1@posdb.example.com','user1');
INSERT INTO emails (email,password) \
values ('user2@posdb.example.com','user2');
-//Set for MySQL database
+//Set for system with MySQL database
INSERT INTO emails (email,password) \
values ('user1@mardb.example.com','user1');
INSERT INTO emails (email,password) \
values ('user2@mardb.example.com','user2');
+
+//List of remote IP status
+INSERT INTO remotes (remoteip,connections,credit,status) \
+ values ('127.127.9.25',0,10,'valide');
);
GRANT SELECT ON sessions TO mailapache;
+//defining table about remote server
+CREATE TABLE remotes (
+ lastupdate DBTIMESTAMP //record creation
+ DFLT NOW(),
+ remoteip TEXTUNIQUE, //remote IP number
+ connections INTEGER
+ DFLT 1, //how many time the remote connected
+ credit INTEGER //Remote IP current credit (-100..+100)
+ DFLT -100,
+ status TEXT //'toscan','inscan','valide'
+ DFLT 'toscan'
+ );
+CREATE INDEX remotes_ndx ON remotes (lastupdate,INS(status));
+INSERT INTO remotes (remoteip,connections,credit,status) \
+ values ('127.0.0.1',0,99,'valide');
//--------------------------------------------------------------
//Defining TRIGGER fonctions according database type