#--------------------------------------------------------------------
#procedure to start all needed components to have
#a full complete test
-actions : killall debug newtest dosortr dorcvr
+
+restart : killall debug dosortr dorcvr
+
+actions : newtest restart
dosortr :
@ echo "Starting Sorter"
#root working directoy definition for the whole application
ROOTBASE="/home/jmp/safe-mailleur/mailleur/test_area/"
#defining local default domain
-DFLTDOMAIN="localtest.example.com"
+DFLTDOMAIN="example.com"
#------------------------------------------------
#list of listening port to do SMTP protocole
#format
S:MAIL FROM: <postmaster@example.com>
R:250 2.1.3 postmaster@example.com.. sender ok
S:RCPT TO: <user1@subdom0.example.com>
-R:563 5.6.3 No valid MX found for recipient domain name (domain=subdom0.example.com)
+R:563 5.6.4 No valid MX found for recipient domain name (domain=subdom0.example.com)
S:RCPT TO: <user1@mailref1.example.com>
R:250 2.6.4 Address accepted <user1@mailref1.example.com>
S:QUIT
R:250 2.1.3 trouble@mailref1.example.com.. sender ok
#---------------------------------------------
S:RCPT TO: <dom1user3@example.com>
-R:250 2.6.4 Address accepted <dom1user3@example.com>
+R:551 5.6.5 <dom1user3@example.com> unknown user
S:RCPT TO: <dom1user3@mailref1.example.com>
R:250 2.6.4 Address accepted <dom1user3@mailref1.example.com>
-S:RCPT TO: <user1@mailleur.example.com>
-R:250 2.6.4 Address accepted <user1@mailleur.example.com>
+S:RCPT TO: <user1@posdb.example.com>
+R:250 2.6.4 Address accepted <user1@posdb.example.com>
#-------------------------------------------------------------------------
#-sending data
C:DATA 354 3.5.0 End data with <CR><LF>.<CR><LF>
D:Subject: A email to not exitsing user
-D:From: Trouble maker <mailref1.example.com
+D:From: Trouble maker <mailref1.example.com>
D:To: Not existing <dom1user3@mailref1.example.com>
C:T
D:
-D:This mail should be sent back to the originator
+D:This mail on remote MX should be sent back to the originator
+D:while the other user@posdb.example.com receipient should got email
D:
D:
C:.
S:MAIL FROM: <trouble@mailref1.example.com>
R:250 2.1.3 trouble@mailref1.example.com.. sender ok
S:RCPT TO: <user1@subdom0.example.com>
-R:563 5.6.3 No valid MX found for recipient domain name (domain=subdom0.example.com)
+R:563 5.6.4 No valid MX found for recipient domain name (domain=subdom0.example.com)
#-------------------------------------------------------------------------
#-sending data
C:DATA 503 5.5.0 RCPT first. transaction protocol command out of sequence
+++ /dev/null
-#====================================================
-T:(feed12) Trying to send Email while the recipient unknown
-R:220 mailleur.example.com, ESMTP (cleartext) mailleur...
-#====================================================
-S:HELO example.com
-R:250 mailleur.example.com, link (cleartext) ready,...
-S:MAIL FROM: <trouble@mailref1.example.com>
-R:250 2.1.3 trouble@mailref1.example.com.. sender ok
-S:RCPT TO: <dom1user3@mailref1.example.com>
-R:250 2.6.4 Address accepted <dom1user3@mailref1.example.com>
-#-------------------------------------------------------------------------
-#-sending data
-C:DATA 354 3.5.0 End data with <CR><LF>.<CR><LF>
-D:Subject: A email to a not existing user
-D:From: Trouble maker <mailref1.example.com
-D:To: Not existing <dom1user3@mailref1.example.com>
-C:T
-D:
-D:This mail should be sent back to the originator
-D:
-D:
-C:.
-#-------------------------------------------------------------------------
-R:250-3.5.3 Session ID=<...
-R:250-3.5.3 data stream received:...
-R:250 3.5.3 Message accepted for delivery
-S:QUIT
-R:221 2.0.0 Bye, closing connection...