Rule to reply to the sender of an external account address

Use this forum if you have installed hMailServer and want to ask a question related to a production release of hMailServer. Before posting, please read the troubleshooting guide. A large part of all reported issues are already described in detail here.
Post Reply
brimaud
New user
New user
Posts: 8
Joined: 2019-05-29 10:50

Rule to reply to the sender of an external account address

Post by brimaud » 2019-09-19 10:12

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

User avatar
mattg
Moderator
Moderator
Posts: 22435
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

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

Post by mattg » 2019-09-19 13:38

Run this and post the results please
viewtopic.php?f=20&t=30914
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

brimaud
New user
New user
Posts: 8
Joined: 2019-05-29 10:50

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

Post by brimaud » 2019-09-19 16:01

This is the diag file
Thank you
Attachments
HMSDiagnostic_201909191556.zip
(2.77 KiB) Downloaded 138 times

User avatar
mattg
Moderator
Moderator
Posts: 22435
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

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

Post by mattg » 2019-09-20 00:55

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)?
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

brimaud
New user
New user
Posts: 8
Joined: 2019-05-29 10:50

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

Post by brimaud » 2019-09-20 08:39

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
Attachments
HMSDiagnostic_201909200831.zip
(3.41 KiB) Downloaded 138 times

User avatar
mattg
Moderator
Moderator
Posts: 22435
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

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

Post by mattg » 2019-09-21 00:04

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
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

brimaud
New user
New user
Posts: 8
Joined: 2019-05-29 10:50

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

Post by brimaud » 2019-09-23 08:09

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
Attachments
log.zip
(11.25 KiB) Downloaded 132 times
Last edited by mattg on 2019-09-23 11:30, edited 1 time in total.
Reason: email address removed

User avatar
mattg
Moderator
Moderator
Posts: 22435
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

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

Post by mattg » 2019-09-23 10:34

do you have smtp logging enabled?
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

brimaud
New user
New user
Posts: 8
Joined: 2019-05-29 10:50

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

Post by brimaud » 2019-09-23 11:13

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

User avatar
katip
Senior user
Senior user
Posts: 1158
Joined: 2006-12-22 07:58
Location: Istanbul

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

Post by katip » 2019-09-23 11:34

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.
Katip
--
HMS 5.7, MariaDB 10.4.10, SA 4.0.0, ClamAV 0.103.8

brimaud
New user
New user
Posts: 8
Joined: 2019-05-29 10:50

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

Post by brimaud » 2019-09-23 14:03

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.

brimaud
New user
New user
Posts: 8
Joined: 2019-05-29 10:50

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

Post by brimaud » 2019-09-24 08:00

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
Attachments
Log3.zip
(15.15 KiB) Downloaded 133 times

User avatar
mattg
Moderator
Moderator
Posts: 22435
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

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

Post by mattg » 2019-09-24 10:40

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
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

brimaud
New user
New user
Posts: 8
Joined: 2019-05-29 10:50

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

Post by brimaud » 2019-09-24 16:00

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

User avatar
katip
Senior user
Senior user
Posts: 1158
Joined: 2006-12-22 07:58
Location: Istanbul

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

Post by katip » 2019-09-24 16:18

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.
Katip
--
HMS 5.7, MariaDB 10.4.10, SA 4.0.0, ClamAV 0.103.8

Post Reply