Search found 9 matches

by ilpanos
2019-05-31 09:39
Forum: General discussions
Topic: Problem, different from address when forwarding using account forwarding tab and account rule
Replies: 12
Views: 3890

Re: Problem, different from address when forwarding using account forwarding tab and account rule

Is this the expected behavior? Is there any way to change it? If you know your c++ and build your own hmailserver.exe the code you are looking for is in RuleApplier.cpp approx line 248 void RuleApplier::ApplyAction_Forward(std::shared_ptr<RuleAction> pAction, std::shared_ptr<const Account> account,...
by ilpanos
2019-05-31 09:31
Forum: General discussions
Topic: Problem, different from address when forwarding using account forwarding tab and account rule
Replies: 12
Views: 3890

Re: Problem, different from address when forwarding using account forwarding tab and account rule

The From header is indeed intact, however the FromAddress (envelope sender from my understanding and not From header) changes, maybe i wasn't clear in the first post. I added: [Settings] RewriteEnvelopeFromWhenForwarding=0 and restarted the service but it didn't help. hMailServer 5.6.6-B2383 learnt...
by ilpanos
2019-05-30 13:47
Forum: General discussions
Topic: Problem, different from address when forwarding using account forwarding tab and account rule
Replies: 12
Views: 3890

Re: Problem, different from address when forwarding using account forwarding tab and account rule

@ilpanos You are right, the FromAddress is modified using the Forward Account rule mechanism...but i do'nt see why you need that to be different as you pointed out If it's forwarded to a domain on the same hmailserver instance it doens't influence anything If it's forwarded to a external domain the...
by ilpanos
2019-05-30 09:34
Forum: General discussions
Topic: Problem, different from address when forwarding using account forwarding tab and account rule
Replies: 12
Views: 3890

Re: Problem, different from address when forwarding using account forwarding tab and account rule

The emails are being forwarded using the From address of the account . However I need the forwarded emails to keep the original From address rather than changing to that of the forwarding account. interesting. i didn't know this. i use account level rules to forward tagged (by script) messages to a...
by ilpanos
2019-05-30 09:30
Forum: General discussions
Topic: Problem, different from address when forwarding using account forwarding tab and account rule
Replies: 12
Views: 3890

Re: Problem, different from address when forwarding using account forwarding tab and account rule

In your hmailserver.ini file add this to the bottom [settings] RewriteEnvelopeFromWhenForwarding=0 ; When performing forwarding, hMailServer now keeps the original From address rather than changing to that of the forwarding account. ; This change was made to reduce risk of message delivery failures...
by ilpanos
2019-05-29 11:08
Forum: General discussions
Topic: Problem, different from address when forwarding using account forwarding tab and account rule
Replies: 12
Views: 3890

Problem, different from address when forwarding using account forwarding tab and account rule

Hello, I currently use hMailServer 5.6.6-B2383. I am trying to forward emails using account rules, ex: Criteria: From contains abc@domain1.com Actions: Forward email to xyz@externaldomain.com The emails are being forwarded using the From address of the account . However I need the forwarded emails t...
by ilpanos
2018-01-12 13:56
Forum: User contributed hMailServer 5 scripts
Topic: Batch Add Users and/or Aliases from CSV file
Replies: 28
Views: 28283

Re: Batch Add Users and/or Aliases from CSV file

Is there a way to also add external accounts?

I am asking this because I see at the documentation of com_object_account that FetchAccounts is listed as read-only.
by ilpanos
2017-12-14 11:28
Forum: Scripting
Topic: Simple script to mark emails with custom rule
Replies: 3
Views: 2577

Re: Simple script to mark emails with custom rule

Yes I see the option but I believe it is not suitable for what I want to do. I only see DNS blacklisting options. What I want to do is to mark specific email addresses from a domain and not the whole domain (ex. I want to mark newsletter@mplampla.com but not the whole mplampla.com domain). This is t...
by ilpanos
2017-12-12 15:49
Forum: Scripting
Topic: Simple script to mark emails with custom rule
Replies: 3
Views: 2577

Simple script to mark emails with custom rule

Hello, I am trying to make a custom rule for SPAM mail that will tag emails subject. If I set a "Set header value" action to the rule, then the mails subject is being deleted leaving only the spam tag. So I am trying to call a script in order to append the spam tag to the mail subject. I added at th...