Page 1 of 1

Rule to reply to the sender of an external account address

Posted: 2019-09-19 10:12
by brimaud
Hello
I want to create a rule to reject the big mails and send a reply to the sender to say that the mail is rejected.
It seems that messages coming from an external account are actually filtered but the sender does not receive the answer. I tested this with multiple addresses. The message does not go in spam.
the log file give no error

however it works with an internal account.
I work with version 5.6.7-B2425 in French.
Please can you reproduce it and tell me how to make it work correctly

Thank you
Bruno

Re: Rule to reply to the sender of an external account address

Posted: 2019-09-19 13:38
by mattg
Run this and post the results please
viewtopic.php?f=20&t=30914

Re: Rule to reply to the sender of an external account address

Posted: 2019-09-19 16:01
by brimaud
This is the diag file
Thank you

Re: Rule to reply to the sender of an external account address

Posted: 2019-09-20 00:55
by mattg
In your My computer range you have NOT allowed Local to external

That will stop all mail being sent out from your server, including replies generated from rules

ALSO, you have current errors
Can you please show your error log
E:\hmailserver\Logs\ERROR_hmailserver_2019-09-19.log

Does this machine have multiple NICs (network cards)?

Re: Rule to reply to the sender of an external account address

Posted: 2019-09-20 08:39
by brimaud
Hello,
I've actived the option but the result is bad

The error is about the backup
Please See the attached files.
I send you a new diag file

The machine have only one network card

Thank you very much

Bruno

Re: Rule to reply to the sender of an external account address

Posted: 2019-09-21 00:04
by mattg
brimaud wrote:
2019-09-20 08:39
I've actived the option but the result is bad
What does 'bad' mean in this instance?

Your IP range looks fine
Your Route should have sender = A remote address

SMTP >> Advanced >> Bind to local address could be blank (but may not matter)

You should NOT allow SSLv3.0

Otherwise looks OK to me

If you are still having issues, enable all logging, rename today's logs, Create your issue (send and reply to an external address), wait 90 seconds, then show all logs created

Re: Rule to reply to the sender of an external account address

Posted: 2019-09-23 08:09
by brimaud
Hello

"Bad" mean that it not work correctly. The sender does not recieve the reply.

See look the attached log file.

I use the external address **********removed*************
With this addresse I send a message at **********removed*************
The subject have to contain the word "test"
If you send me a message with the subject "test", you have to recieve a reply from me.

Bruno

Re: Rule to reply to the sender of an external account address

Posted: 2019-09-23 10:34
by mattg
do you have smtp logging enabled?

Re: Rule to reply to the sender of an external account address

Posted: 2019-09-23 11:13
by brimaud
Hello

This is the SMTP logging :
"SMTPC" 1528 26162 "2019-09-23 11:07:42.969" "212.227.15.184" "RECEIVED: 220 kundenserver.de (mreue109) Nemesis ESMTP Service ready"
"SMTPC" 1528 26162 "2019-09-23 11:07:42.969" "212.227.15.184" "SENT: EHLO 192.168.123.7"
"SMTPC" 1544 26162 "2019-09-23 11:07:43.016" "212.227.15.184" "RECEIVED: 250-kundenserver.de Hello 192.168.123.7 [92.245.150.143][nl]250-8BITMIME[nl]250-AUTH LOGIN PLAIN[nl]250 SIZE 69920427"
"SMTPC" 1544 26162 "2019-09-23 11:07:43.016" "212.227.15.184" "SENT: AUTH LOGIN"
"SMTPC" 2004 26162 "2019-09-23 11:07:43.047" "212.227.15.184" "RECEIVED: 334 VXNlcm5hbWU6"
"SMTPC" 2004 26162 "2019-09-23 11:07:43.047" "212.227.15.184" "SENT: YnJ1bm8ucmltYXVkQGJlY3Qtc2FzLmZy"
"SMTPC" 172 26162 "2019-09-23 11:07:43.094" "212.227.15.184" "RECEIVED: 334 UGFzc3dvcmQ6"
"SMTPC" 172 26162 "2019-09-23 11:07:43.094" "212.227.15.184" "SENT: ***"
"SMTPC" 2060 26162 "2019-09-23 11:07:43.141" "212.227.15.184" "RECEIVED: 235 Authentication succeeded"
"SMTPC" 2060 26162 "2019-09-23 11:07:43.141" "212.227.15.184" "SENT: ***"
"SMTPC" 2004 26162 "2019-09-23 11:07:43.188" "212.227.15.184" "RECEIVED: 250 Requested mail action okay, completed"
"SMTPC" 2004 26162 "2019-09-23 11:07:43.188" "212.227.15.184" "SENT: RCPT TO:**********removed*************
"SMTPC" 172 26162 "2019-09-23 11:07:43.235" "212.227.15.184" "RECEIVED: 250 OK"
"SMTPC" 172 26162 "2019-09-23 11:07:43.235" "212.227.15.184" "SENT: DATA"
"SMTPC" 2060 26162 "2019-09-23 11:07:43.297" "212.227.15.184" "RECEIVED: 354 Start mail input; end with <CRLF>.<CRLF>"
"SMTPC" 2060 26162 "2019-09-23 11:07:43.297" "212.227.15.184" "SENT: [nl]."
"SMTPC" 1544 26162 "2019-09-23 11:07:43.469" "212.227.15.184" "RECEIVED: 250 Requested mail action okay, completed: id=1MCKO4-1iLhzJ0VRS-009QOn"
"SMTPC" 1544 26162 "2019-09-23 11:07:43.469" "212.227.15.184" "SENT: QUIT"
"SMTPC" 1528 26162 "2019-09-23 11:07:43.531" "212.227.15.184" "RECEIVED: 221 kundenserver.de Service closing transmission channel"
It seam that the mail is sent correctly...
But where is it now ??? It is a mystery

Re: Rule to reply to the sender of an external account address

Posted: 2019-09-23 11:34
by katip
PMFJI,

it seems you relay outgoing mail via "kundenserver.de" which accepts your message perfectly.
however, for the rest of delivery process you should apply to them if mail never arrives.

Re: Rule to reply to the sender of an external account address

Posted: 2019-09-23 14:03
by brimaud
It is difficult to do some tests and catch loggings this afternoon because several clients send and recieve many mails during the day.
I'l try this evening when there will be fewer people.

Re: Rule to reply to the sender of an external account address

Posted: 2019-09-24 08:00
by brimaud
Hello,

In attached zip file there is the log file
The story begin at the line number 54 at 07:54:28.804 Message 130115

The email sent is : {E449DC32-0BD3-4B4E-BCC2-A33D45380910} which I caught.
I wait few minutes to copy the log file after.

There olso the reply which it sent and my rule to reply

Thank you for your assistance
Bruno

Re: Rule to reply to the sender of an external account address

Posted: 2019-09-24 10:40
by mattg
katip wrote:
2019-09-23 11:34
it seems you relay outgoing mail via "kundenserver.de" which accepts your message perfectly.
however, for the rest of delivery process you should apply to them if mail never arrives.
Yep

Re: Rule to reply to the sender of an external account address

Posted: 2019-09-24 16:00
by brimaud
ok I'll phone to my hosting...

But

Isn't it a problem that the from data is equal to <Empty>
"APPLICATION" 1376 "2019-09-24 07:55:29.192" "SMTPDeliverer - Message 130116: Delivering message from <Empty> to be.bect-sa@orange.fr. File: E:\hmailserver\Data\{E449DC32-0BD3-4B4E-BCC2-A33D45380910}.eml"
Bruno

Re: Rule to reply to the sender of an external account address

Posted: 2019-09-24 16:18
by katip
brimaud wrote:
2019-09-24 16:00
Isn't it a problem that the from data is equal to <Empty>
don't worry. it's not visible From, it's Return-Path which is empty in headers.
receiver will see From (you) intact.