Git Product home page Git Product logo

haraka-plugin-aliases's Introduction

Build Status Code Climate NPM

haraka-plugin-aliases

This plugin allows the configuration of aliases that perform an action or change the RCPT address. Aliases are specified in a JSON formatted config file, and must have an action. Syntax errors found in the JSON config will stop the server.

IMPORTANT: this plugin must appear in config/plugins before other plugins that run on hook_rcpt

WARNING: DO NOT USE THIS PLUGIN WITH queue/smtp_proxy.

Configuration

aliases

JSON formatted config file that contains keys to match against RCPT addresses, and values that are objects with an "action" : "" property. Example:

{ "test1": { "action": "drop" } }

In the above example the "test1" alias will drop any message that matches test1, test1-, or test1+ (wildcard '-' or '+', see below). Actions may have 0 or more options listed like so:

{ "test3": { "action": "alias", "to": "test3-works" } }

In the above example the "test3" alias has an action of "alias" and a mandatory "to" field. If "to" were missing the alias would fail and an error would be emitted.

Aliases of 'user', '@host' and 'user@host' possible:

{ "demo" : { "action" : "drop" } }
    or
{ "@example.com" : { "action" : "drop" } }
    or
{ "[email protected]" : { "action" : "drop" } }

Aliases may be expanded to multiple recipients:

{
  "[email protected]": {
    "action": "alias",
    "to": ["[email protected]", "[email protected]"]
  }
}

wildcard notation

This plugin supports wildcard matching of aliases against the right most string of a RCPT address. The characters '-' and '+' are commonly used for subaddressing and this plugin can alias the "user" part of the address.

If the address were [email protected] (or [email protected]), the below alias would match:

{ "test2": { "action": "drop" } }

Larger and more specific aliases match first when using wildcard '-' notation. If the above RCPT was evaluated with this alias config, it would alias:

{
  "test2": { "action": "drop" },
  "test2-testing": { "action": "alias", "to": "[email protected]" }
}

It also allows you to route all emails to a certain domain:

{
  "*": { "action": "alias", "to": "[email protected]" }
}

chaining and circuits

Alias chaining is not supported. As a side-effect, we enjoy protections against alias circuits.

  • optional one line formatting

Any valid JSON will due. Please consider keeping each alias on its own line so that others that wish to grep the aliases file have an easier time finding the full configuration for an alias.

  • nondeterministic duplicate matches

This plugin was written with speed in mind. That means every lookup hashes into the alias file for its match. While the act of doing so is fast, it does mean that any duplicate alias entries will match nondeterministically. That is, we cannot predict what will happen here:

{
  "coinflip": { "action": "alias", "to": "[email protected]" },
  "coinflip": { "action": "alias", "to": "[email protected]" }
}

Due to node.js implementation, one result will likely always be chosen over the other, so this is not exactly a coinflip. We simply cannot say what the language implementation will do and it could change.

action (required)

The following is a list of supported actions and their options.

  • drop

    Drops a message while pretending everything was okay to the sender. This acts like an alias to /dev/null.

  • alias

    Maps the alias key to the address specified in the "to" option. A note about matching in addition to the note about wildcard '-' above. When we match an alias, we store the hostname of the match for a shortcut substitution syntax later.

    • to (required)

    This option is the full address, or local part at matched hostname that the RCPT address will be re-written to. For an example of an alias to a full address consider the following:

    { "test5": { "action": "alias", "to": "[email protected]" } }

    This maps RCPT matches for "test5" to "[email protected]". This would map "[email protected]" to "[email protected]" every time. Compare this notation with its shortcut counterpart, best used when the "to" address is at the same domain as the match:

    { "test4": { "action": "alias", "to": "test4" } }

    This notation is more compact. Mail to "[email protected]" will map to "[email protected]". This notation enables lots of aliases on a single domain to map to other local parts at the same domain.

Example Configuration

{
  "test1": { "action": "drop" },
  "test2": { "action": "drop" },
  "test3": { "action": "alias", "to": "test3-works" },
  "test4": { "action": "alias", "to": "test4" },
  "test5": { "action": "alias", "to": "[email protected]" },
  "test6": { "action": "alias", "to": "[email protected]" }
}

haraka-plugin-aliases's People

Contributors

greenkeeper[bot] avatar msimerson avatar timokoole avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

haraka-plugin-aliases's Issues

Aliases plugin not working as expected: order of rules

Haraka version

2.8.8

Expected behavior

Given the rules

{
"@example.com" : { "action" : "alias", "to" : "[email protected]" },
"foo" : { "action" : "alias", "to" : "[email protected]" }
}

And the recipient [email protected]

The expected replacement recipient is [email protected]

Observed behavior

The replacement recipient is [email protected]

Steps to reproduce

Send mail to [email protected]

The reason is that the two if statements "if (config['@'+host]) {" and "if (config[user] || config[match[0]] || config[match[0] + '@' + host]) {" are in the wrong order, they should be reversed.

aliases config file no effect

Haraka version

2.8.8

Expected behavior

aliases config file no effect

Observed behavior

hook=queue plugin=aliases function=discard params="" retval=CONT msg=""

Steps to reproduce

When rename aliases config to aliases.ini, aliases.json or aliases, it is no have any effect.

Aliases plugin not working as expected: chaining

Haraka version

2.8.8

Expected behavior

As per documentation "In short, we do not allow chaining of aliases at this time"

Observed behavior

Rules are chained because of missing "else" statements before "if (config['@'+host]) {" and "if (config[user] || config[match[0]] || config[match[0] + '@' + host]) {"

Steps to reproduce

Use this config

{
"[email protected]" : { "action" : "alias", "to" : "[email protected]" },
"@example.com" : { "action" : "alias", "to" : "[email protected]" }
}

Mail for [email protected] is aliased to [email protected] instead of [email protected]

No logging output

I don't think the logging is working. I see the alias plugin rcpt hook is running, but there is no logging shown for this plugin.

Looking at the code in this plugin I see logging looks like this:

connection.loginfo(plugin, `unknown action: ${action1}`)

In the hello.checks plugin logging looks like this:

this.loginfo(connection, `SKIPPING: ${test_name}`);

I'm not sure if these are logically equivalent, but as logging is not working I was wondering if something had changed in Haraka that had broke logging on this plugin.

Aliases and smtp_forward plugin won't send to multiple domains

Describe the bug

We have two domains domainA.de and domainB.dem

The MX record target domainA.de and all mails should go thou haraka and then to an exchange server that has configured the domain domainA.de.
A receive connector has been configured on the Exchange Connector to accept mail from the Haraka IP.
For compliance reasons, we need to redirect one address ([email protected]) to another exchangeserver with the domain domainB.dem and the address [email protected].

Expected behavior

We expect, that all address will proceed separate, but i seems like the plugin uses only the first address to proceed all addresses.

Observed behavior

Mails with multiple recipients are tried to be delivered to the same Exchange server, although the Alias plugin from [email protected] changes to [email protected].
The delivery is rejected by the Exchange of domainB.de, because it is not responsible for domainA.de.

System Info

Haraka Haraka.js - Version: 3.0.2
Node v20.3.0
OS Linux haraka01 5.15.0-75-generic haraka/Haraka#82-Ubuntu SMP Tue Jun 6 23:10:23 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
openssl OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022)

Details

We configured the following alias rule:

{ "[email protected]" : { "action" : "alias", "to" : ["[email protected]"] } }

We have the following configuration in smtp_forward.ini:

[domainA.de]
host=ex01-domainA.de
port=25
enable_tls=true

[domainB.de]
host=mail.domainB.de
port=25

Plugins:
aliases
rcpt_to.in_host_list
queue/smtp_forward

When we send an email to [email protected] it will be redirected to the server with the domain domainB.de and the address [email protected]

Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.183Z [DEBUG] [-] [core] addOCSP: not available
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.189Z [NOTICE] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9] [core] connect ip=1.1.1.1 port=47225 local_ip=192.168.1.100 local_port=25
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.190Z [DEBUG] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9] [core] running connect_init hooks
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.190Z [DEBUG] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9] [core] running connect_init_respond
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.190Z [DEBUG] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9] [core] running lookup_rdns hooks
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.223Z [DEBUG] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9] [core] running connect hooks
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.224Z [PROTOCOL] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9] [core] S: 220 haraka01 ESMTP Haraka/3.0.2 ready
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.339Z [PROTOCOL] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9] [core] C: EHLO mail-oa1-f42.google.com state=1
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.340Z [DEBUG] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9] [core] running ehlo hooks
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.341Z [DEBUG] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9] [core] running capabilities hooks
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.341Z [PROTOCOL] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9] [core] S: 250-haraka01 Hello mail-oa1-f42.google.com [1.1.1.1]Haraka is at your service.
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.341Z [PROTOCOL] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9] [core] S: 250-PIPELINING
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.341Z [PROTOCOL] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9] [core] S: 250-8BITMIME
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.342Z [PROTOCOL] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9] [core] S: 250-SMTPUTF8
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.342Z [PROTOCOL] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9] [core] S: 250 SIZE 0
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.457Z [PROTOCOL] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9] [core] C: MAIL FROM:<[email protected]> SIZE=2281 state=1
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.460Z [DEBUG] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [core] running mail hooks
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.461Z [DEBUG] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [core] running mail hook in rcpt_to.in_host_list plugin
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.461Z [DEBUG] [-] [rcpt_to.in_host_list] checking gmail.com in config/host_list
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.462Z [DEBUG] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [core]  hook=mail plugin=rcpt_to.in_host_list function=hook_mail params=<[email protected]> retval=CONT msg=""
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.462Z [NOTICE] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [core] sender <[email protected]> code=CONT msg=""
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.462Z [PROTOCOL] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [core] S: 250 sender <[email protected]> OK
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.463Z [PROTOCOL] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [core] C: RCPT TO:<[email protected]> state=1
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.464Z [DEBUG] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [core] running rcpt hooks
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.464Z [DEBUG] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [core] running rcpt hook in aliases plugin
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.464Z [DEBUG] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [aliases] aliasing <[email protected]> to [email protected]
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.465Z [DEBUG] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [core]  hook=rcpt plugin=aliases function=aliases params=<[email protected]> retval=CONT msg=""
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.465Z [DEBUG] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [core] running rcpt hook in rcpt_to.in_host_list plugin
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.466Z [DEBUG] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [rcpt_to.in_host_list] Checking if <[email protected]> host is in host_list
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.466Z [DEBUG] [-] [rcpt_to.in_host_list] checking domainA.de in config/host_list
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.466Z [INFO] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [core]  hook=rcpt plugin=rcpt_to.in_host_list function=hook_rcpt params=<[email protected]> retval=OK msg=""
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.466Z [DEBUG] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [core] running rcpt_ok hooks
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.467Z [NOTICE] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [core] recipient <[email protected]> code=OK msg="" [email protected]
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.467Z [PROTOCOL] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [core] S: 250 recipient <[email protected]> OK
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.467Z [PROTOCOL] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [core] C: DATA state=1
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.468Z [DEBUG] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [core] running data hooks
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.469Z [PROTOCOL] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [core] S: 354 go ahead, make my day
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.702Z [DEBUG] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [core] running data_post hooks
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.702Z [NOTICE] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [core] message mid=<CAEdv-_fWOQ5Mf03FxKpDwrdxJfiTao4OZKzAN9_4iRLuCEOm-w@mail.gmail.com> size=2284 rcpts=1/0/0 delay=0 code=CONT msg=""
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.703Z [DEBUG] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [core] running queue hooks
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.703Z [DEBUG] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [core] running queue hook in aliases plugin
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.703Z [DEBUG] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [core]  hook=queue plugin=aliases function=discard params="" retval=CONT msg=""
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.703Z [DEBUG] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [core] running queue hook in queue/smtp_forward plugin
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.705Z [INFO] [-] [core] [smtp_client] uuid=75575106-C001-4CE9-A219-FB05C4BB2883 host=mail.domainB.de port=25 created
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.706Z [DEBUG] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [queue/smtp_forward] Got smtp_client: 75575106-C001-4CE9-A219-FB05C4BB2883
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.706Z [INFO] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [queue/smtp_forward] forwarding to mail.domainB.de:25
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.711Z [DEBUG] [-] [core] socket.remoteAddress undefined
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.713Z [PROTOCOL] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [queue/smtp_forward] S: 220 EX01.domainB.de Microsoft ESMTP MAIL Service ready at Thu, 6 Jul 2023 07:52:30 +0200\r\n
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.713Z [PROTOCOL] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [queue/smtp_forward] C: EHLO haraka01
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.714Z [PROTOCOL] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [queue/smtp_forward] S: 250-EX01.domainB.de Hello [2.2.2.2]\r\n
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.714Z [PROTOCOL] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [queue/smtp_forward] S: 250-SIZE 104857600\r\n
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.714Z [PROTOCOL] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [queue/smtp_forward] S: 250-PIPELINING\r\n
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.715Z [PROTOCOL] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [queue/smtp_forward] S: 250-DSN\r\n
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.715Z [PROTOCOL] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [queue/smtp_forward] S: 250-ENHANCEDSTATUSCODES\r\n
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.715Z [PROTOCOL] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [queue/smtp_forward] S: 250-STARTTLS\r\n
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.715Z [PROTOCOL] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [queue/smtp_forward] S: 250-X-ANONYMOUSTLS\r\n
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.715Z [PROTOCOL] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [queue/smtp_forward] S: 250-AUTH NTLM\r\n
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.715Z [PROTOCOL] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [queue/smtp_forward] S: 250-X-EXPS GSSAPI NTLM\r\n
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.716Z [PROTOCOL] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [queue/smtp_forward] S: 250-8BITMIME\r\n
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.716Z [PROTOCOL] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [queue/smtp_forward] S: 250-BINARYMIME\r\n
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.716Z [PROTOCOL] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [queue/smtp_forward] S: 250-CHUNKING\r\n
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.716Z [PROTOCOL] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [queue/smtp_forward] S: 250-SMTPUTF8\r\n
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.716Z [PROTOCOL] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [queue/smtp_forward] S: 250 XRDST\r\n
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.717Z [PROTOCOL] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [queue/smtp_forward] C: MAIL FROM:<[email protected]>
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.718Z [PROTOCOL] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [queue/smtp_forward] S: 250 2.1.0 Sender OK\r\n
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.718Z [PROTOCOL] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [queue/smtp_forward] C: RCPT TO:<[email protected]>
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.719Z [PROTOCOL] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [queue/smtp_forward] S: 250 2.1.5 Recipient OK\r\n
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.719Z [PROTOCOL] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [queue/smtp_forward] C: DATA
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.720Z [PROTOCOL] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [queue/smtp_forward] S: 354 Start mail input; end with <CRLF>.<CRLF>\r\n
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.842Z [PROTOCOL] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [queue/smtp_forward] S: 250 2.6.0 <CAEdv-_fWOQ5Mf03FxKpDwrdxJfiTao4OZKzAN9_4iRLuCEOm-w@mail.gmail.com> [InternalId=82974473191468, Hostname=EX01.domainB.de] 3784 bytes in 0.103, 35,867 KB/sec Queued mail for delivery\r\n
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.842Z [INFO] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [core]  hook=queue plugin=queue/smtp_forward function=queue_forward params="" retval=OK msg="2.6.0 <CAEdv-_fWOQ5Mf03FxKpDwrdxJfiTao4OZKzAN9_4iRLuCEOm-w@mail.gmail.com> [InternalId=82974473191468, Hostname=EX01.domainB.de] 3784 bytes in 0.103, 35,867 KB/sec Queued mail for delivery"
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.843Z [DEBUG] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [core] running queue_ok hooks
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.843Z [NOTICE] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [core] queue code=OK msg="2.6.0 <CAEdv-_fWOQ5Mf03FxKpDwrdxJfiTao4OZKzAN9_4iRLuCEOm-w@mail.gmail.com> [InternalId=82974473191468, Hostname=EX01.domainB.de] 3784 bytes in 0.103, 35,867 KB/sec Queued mail for delivery (4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1)"
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.843Z [PROTOCOL] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [core] S: 250 2.6.0 <CAEdv-_fWOQ5Mf03FxKpDwrdxJfiTao4OZKzAN9_4iRLuCEOm-w@mail.gmail.com> [InternalId=82974473191468, Hostname=EX01.domainB.de] 3784 bytes in 0.103, 35,867 KB/sec Queued mail for delivery (4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1)
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.844Z [DEBUG] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [core] running reset_transaction hooks
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.844Z [DEBUG] [-] [core] [smtp_client] 75575106-C001-4CE9-A219-FB05C4BB2883 releasing, state=1
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.845Z [DEBUG] [-] [core] [smtp_client] 75575106-C001-4CE9-A219-FB05C4BB2883: [mail.domainB.de:25] SMTP connection closed  (state=4)
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.959Z [PROTOCOL] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [core] C: QUIT state=1
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.959Z [DEBUG] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [core] running quit hooks
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.960Z [PROTOCOL] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [core] S: 221 haraka01 closing connection. Have a jolly good day.
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.960Z [DEBUG] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [core] client has disconnected
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.960Z [DEBUG] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [core] running disconnect hooks
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.960Z [DEBUG] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [core] client has disconnected
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.961Z [DEBUG] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [core] client has disconnected
Jul  6 07:52:31 haraka01 haraka[481720]: 2023-07-06T05:52:31.961Z [NOTICE] [4CC8EAE6-84C4-4FA7-9E0E-EB1C699811A9.1] [core] disconnect ip=1.1.1.1 rdns=mail-oa1-f42.google.com helo=mail-oa1-f42.google.com relay=N early=N esmtp=Y tls=N pipe=N errors=0 txns=1 rcpts=1/0/0 msgs=1/0/0 bytes=2284 lr="" time=0.774

When we send an email to [email protected] it will be redirected to the server with the domain domainA.de and the address [email protected]

When we send an email with two or more address in the to/CC/BCC field e.g., [email protected], [email protected] all emails will be redirected to the server with the domain domainB.de. All mails will be rejected.


Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.543Z [DEBUG] [-] [core] addOCSP: not available
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.547Z [NOTICE] [BB535B99-4A7A-440F-942F-4421015ED98B] [core] connect ip=1.1.1.1 port=42071 local_ip=192.168.1.100 local_port=25
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.547Z [DEBUG] [BB535B99-4A7A-440F-942F-4421015ED98B] [core] running connect_init hooks
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.547Z [DEBUG] [BB535B99-4A7A-440F-942F-4421015ED98B] [core] running connect_init_respond
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.547Z [DEBUG] [BB535B99-4A7A-440F-942F-4421015ED98B] [core] running lookup_rdns hooks
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.573Z [DEBUG] [BB535B99-4A7A-440F-942F-4421015ED98B] [core] running connect hooks
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.573Z [PROTOCOL] [BB535B99-4A7A-440F-942F-4421015ED98B] [core] S: 220 haraka01 ESMTP Haraka/3.0.2 ready
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.722Z [PROTOCOL] [BB535B99-4A7A-440F-942F-4421015ED98B] [core] C: EHLO mail-pj1-f49.google.com state=1
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.722Z [DEBUG] [BB535B99-4A7A-440F-942F-4421015ED98B] [core] running ehlo hooks
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.723Z [DEBUG] [BB535B99-4A7A-440F-942F-4421015ED98B] [core] running capabilities hooks
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.723Z [PROTOCOL] [BB535B99-4A7A-440F-942F-4421015ED98B] [core] S: 250-haraka01 Hello mail-pj1-f49.google.com [1.1.1.1]Haraka is at your service.
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.723Z [PROTOCOL] [BB535B99-4A7A-440F-942F-4421015ED98B] [core] S: 250-PIPELINING
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.723Z [PROTOCOL] [BB535B99-4A7A-440F-942F-4421015ED98B] [core] S: 250-8BITMIME
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.723Z [PROTOCOL] [BB535B99-4A7A-440F-942F-4421015ED98B] [core] S: 250-SMTPUTF8
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.724Z [PROTOCOL] [BB535B99-4A7A-440F-942F-4421015ED98B] [core] S: 250 SIZE 0
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.872Z [PROTOCOL] [BB535B99-4A7A-440F-942F-4421015ED98B] [core] C: MAIL FROM:<[email protected]> SIZE=2282 state=1
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.874Z [DEBUG] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core] running mail hooks
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.875Z [DEBUG] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core] running mail hook in rcpt_to.in_host_list plugin
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.875Z [DEBUG] [-] [rcpt_to.in_host_list] checking gmail.com in config/host_list
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.875Z [DEBUG] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core]  hook=mail plugin=rcpt_to.in_host_list function=hook_mail params=<[email protected]> retval=CONT msg=""
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.875Z [NOTICE] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core] sender <[email protected]> code=CONT msg=""
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.876Z [PROTOCOL] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core] S: 250 sender <[email protected]> OK
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.876Z [PROTOCOL] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core] C: RCPT TO:<[email protected]> state=1
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.880Z [DEBUG] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core] running rcpt hooks
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.880Z [DEBUG] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core] running rcpt hook in aliases plugin
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.881Z [DEBUG] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [aliases] aliasing <[email protected]> to [email protected]
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.881Z [DEBUG] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core]  hook=rcpt plugin=aliases function=aliases params=<[email protected]> retval=CONT msg=""
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.881Z [DEBUG] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core] running rcpt hook in rcpt_to.in_host_list plugin
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.881Z [DEBUG] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [rcpt_to.in_host_list] Checking if <[email protected]> host is in host_list
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.882Z [DEBUG] [-] [rcpt_to.in_host_list] checking domainA.de in config/host_list
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.882Z [INFO] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core]  hook=rcpt plugin=rcpt_to.in_host_list function=hook_rcpt params=<[email protected]> retval=OK msg=""
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.882Z [DEBUG] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core] running rcpt_ok hooks
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.882Z [NOTICE] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core] recipient <[email protected]> code=OK msg="" [email protected]
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.882Z [PROTOCOL] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core] S: 250 recipient <[email protected]> OK
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.883Z [PROTOCOL] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core] C: RCPT TO:<[email protected]> state=1
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.884Z [DEBUG] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core] running rcpt hooks
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.885Z [DEBUG] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core] running rcpt hook in aliases plugin
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.885Z [DEBUG] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core]  hook=rcpt plugin=aliases function=aliases params=<[email protected]> retval=CONT msg=""
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.885Z [DEBUG] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core] running rcpt hook in rcpt_to.in_host_list plugin
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.885Z [DEBUG] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [rcpt_to.in_host_list] Checking if <[email protected]> host is in host_list
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.885Z [DEBUG] [-] [rcpt_to.in_host_list] checking domainA.de in config/host_list
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.886Z [INFO] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core]  hook=rcpt plugin=rcpt_to.in_host_list function=hook_rcpt params=<[email protected]> retval=OK msg=""
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.886Z [DEBUG] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core] running rcpt_ok hooks
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.886Z [NOTICE] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core] recipient <[email protected]> code=OK msg="" [email protected]
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.886Z [PROTOCOL] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core] S: 250 recipient <[email protected]> OK
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.886Z [PROTOCOL] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core] C: DATA state=1
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.887Z [DEBUG] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core] running data hooks
Jul  6 07:54:07 haraka01 haraka[481720]: 2023-07-06T05:54:07.887Z [PROTOCOL] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core] S: 354 go ahead, make my day
Jul  6 07:54:08 haraka01 haraka[481720]: 2023-07-06T05:54:08.177Z [DEBUG] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core] running data_post hooks
Jul  6 07:54:08 haraka01 haraka[481720]: 2023-07-06T05:54:08.178Z [NOTICE] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core] message mid=<CAEdv-_eCjBXz6K5LCP+RGs5zAFVFLnPuotp5oPQVwjak1EXV+A@mail.gmail.com> size=2285 rcpts=2/0/0 delay=0.001 code=CONT msg=""
Jul  6 07:54:08 haraka01 haraka[481720]: 2023-07-06T05:54:08.178Z [DEBUG] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core] running queue hooks
Jul  6 07:54:08 haraka01 haraka[481720]: 2023-07-06T05:54:08.178Z [DEBUG] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core] running queue hook in aliases plugin
Jul  6 07:54:08 haraka01 haraka[481720]: 2023-07-06T05:54:08.178Z [DEBUG] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core]  hook=queue plugin=aliases function=discard params="" retval=CONT msg=""
Jul  6 07:54:08 haraka01 haraka[481720]: 2023-07-06T05:54:08.179Z [DEBUG] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core] running queue hook in queue/smtp_forward plugin
Jul  6 07:54:08 haraka01 haraka[481720]: 2023-07-06T05:54:08.180Z [INFO] [-] [core] [smtp_client] uuid=818A5A77-0CA3-496D-9328-380340693636 host=mail.domainB.de port=25 created
Jul  6 07:54:08 haraka01 haraka[481720]: 2023-07-06T05:54:08.180Z [DEBUG] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [queue/smtp_forward] Got smtp_client: 818A5A77-0CA3-496D-9328-380340693636
Jul  6 07:54:08 haraka01 haraka[481720]: 2023-07-06T05:54:08.180Z [INFO] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [queue/smtp_forward] forwarding to mail.domainB.de:25
Jul  6 07:54:08 haraka01 haraka[481720]: 2023-07-06T05:54:08.182Z [DEBUG] [-] [core] socket.remoteAddress undefined
Jul  6 07:54:08 haraka01 haraka[481720]: 2023-07-06T05:54:08.183Z [PROTOCOL] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [queue/smtp_forward] S: 220 EX01.domainB.de Microsoft ESMTP MAIL Service ready at Thu, 6 Jul 2023 07:54:07 +0200\r\n
Jul  6 07:54:08 haraka01 haraka[481720]: 2023-07-06T05:54:08.183Z [PROTOCOL] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [queue/smtp_forward] C: EHLO haraka01
Jul  6 07:54:08 haraka01 haraka[481720]: 2023-07-06T05:54:08.184Z [PROTOCOL] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [queue/smtp_forward] S: 250-EX01.domainB.de Hello [2.2.2.2]\r\n
Jul  6 07:54:08 haraka01 haraka[481720]: 2023-07-06T05:54:08.184Z [PROTOCOL] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [queue/smtp_forward] S: 250-SIZE 104857600\r\n
Jul  6 07:54:08 haraka01 haraka[481720]: 2023-07-06T05:54:08.184Z [PROTOCOL] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [queue/smtp_forward] S: 250-PIPELINING\r\n
Jul  6 07:54:08 haraka01 haraka[481720]: 2023-07-06T05:54:08.184Z [PROTOCOL] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [queue/smtp_forward] S: 250-DSN\r\n
Jul  6 07:54:08 haraka01 haraka[481720]: 2023-07-06T05:54:08.185Z [PROTOCOL] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [queue/smtp_forward] S: 250-ENHANCEDSTATUSCODES\r\n
Jul  6 07:54:08 haraka01 haraka[481720]: 2023-07-06T05:54:08.185Z [PROTOCOL] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [queue/smtp_forward] S: 250-STARTTLS\r\n
Jul  6 07:54:08 haraka01 haraka[481720]: 2023-07-06T05:54:08.185Z [PROTOCOL] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [queue/smtp_forward] S: 250-X-ANONYMOUSTLS\r\n
Jul  6 07:54:08 haraka01 haraka[481720]: 2023-07-06T05:54:08.185Z [PROTOCOL] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [queue/smtp_forward] S: 250-AUTH NTLM\r\n
Jul  6 07:54:08 haraka01 haraka[481720]: 2023-07-06T05:54:08.185Z [PROTOCOL] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [queue/smtp_forward] S: 250-X-EXPS GSSAPI NTLM\r\n
Jul  6 07:54:08 haraka01 haraka[481720]: 2023-07-06T05:54:08.185Z [PROTOCOL] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [queue/smtp_forward] S: 250-8BITMIME\r\n
Jul  6 07:54:08 haraka01 haraka[481720]: 2023-07-06T05:54:08.186Z [PROTOCOL] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [queue/smtp_forward] S: 250-BINARYMIME\r\n
Jul  6 07:54:08 haraka01 haraka[481720]: 2023-07-06T05:54:08.186Z [PROTOCOL] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [queue/smtp_forward] S: 250-CHUNKING\r\n
Jul  6 07:54:08 haraka01 haraka[481720]: 2023-07-06T05:54:08.186Z [PROTOCOL] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [queue/smtp_forward] S: 250-SMTPUTF8\r\n
Jul  6 07:54:08 haraka01 haraka[481720]: 2023-07-06T05:54:08.186Z [PROTOCOL] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [queue/smtp_forward] S: 250 XRDST\r\n
Jul  6 07:54:08 haraka01 haraka[481720]: 2023-07-06T05:54:08.186Z [PROTOCOL] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [queue/smtp_forward] C: MAIL FROM:<[email protected]>
Jul  6 07:54:08 haraka01 haraka[481720]: 2023-07-06T05:54:08.188Z [PROTOCOL] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [queue/smtp_forward] S: 250 2.1.0 Sender OK\r\n
Jul  6 07:54:08 haraka01 haraka[481720]: 2023-07-06T05:54:08.188Z [PROTOCOL] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [queue/smtp_forward] C: RCPT TO:<[email protected]>
Jul  6 07:54:08 haraka01 haraka[481720]: 2023-07-06T05:54:08.189Z [PROTOCOL] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [queue/smtp_forward] S: 250 2.1.5 Recipient OK\r\n
Jul  6 07:54:08 haraka01 haraka[481720]: 2023-07-06T05:54:08.190Z [PROTOCOL] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [queue/smtp_forward] C: RCPT TO:<[email protected]>
Jul  6 07:54:13 haraka01 haraka[481720]: 2023-07-06T05:54:13.199Z [PROTOCOL] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [queue/smtp_forward] S: 550 5.7.54 SMTP; Unable to relay recipient in non-accepted domain\r\n
Jul  6 07:54:13 haraka01 haraka[481720]: 2023-07-06T05:54:13.200Z [INFO] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core]  hook=queue plugin=queue/smtp_forward function=queue_forward params="" retval=DENY msg="5.7.54 SMTP; Unable to relay recipient in non-accepted domain"
Jul  6 07:54:13 haraka01 haraka[481720]: 2023-07-06T05:54:13.200Z [DEBUG] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core] running deny hooks
Jul  6 07:54:13 haraka01 haraka[481720]: 2023-07-06T05:54:13.200Z [NOTICE] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core] queue code=DENY msg="5.7.54 SMTP; Unable to relay recipient in non-accepted domain (BB535B99-4A7A-440F-942F-4421015ED98B.1)"
Jul  6 07:54:13 haraka01 haraka[481720]: 2023-07-06T05:54:13.200Z [PROTOCOL] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core] S: 550 5.7.54 SMTP; Unable to relay recipient in non-accepted domain (BB535B99-4A7A-440F-942F-4421015ED98B.1)
Jul  6 07:54:13 haraka01 haraka[481720]: 2023-07-06T05:54:13.200Z [DEBUG] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core] running reset_transaction hooks
Jul  6 07:54:13 haraka01 haraka[481720]: 2023-07-06T05:54:13.201Z [DEBUG] [-] [core] [smtp_client] 818A5A77-0CA3-496D-9328-380340693636 releasing, state=1
Jul  6 07:54:13 haraka01 haraka[481720]: 2023-07-06T05:54:13.202Z [DEBUG] [-] [core] [smtp_client] 818A5A77-0CA3-496D-9328-380340693636: [mail.domainB.de:25] SMTP connection closed  (state=4)
Jul  6 07:54:13 haraka01 haraka[481720]: 2023-07-06T05:54:13.349Z [PROTOCOL] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core] C: QUIT state=1
Jul  6 07:54:13 haraka01 haraka[481720]: 2023-07-06T05:54:13.350Z [DEBUG] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core] running quit hooks
Jul  6 07:54:13 haraka01 haraka[481720]: 2023-07-06T05:54:13.350Z [PROTOCOL] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core] S: 221 haraka01 closing connection. Have a jolly good day.
Jul  6 07:54:13 haraka01 haraka[481720]: 2023-07-06T05:54:13.350Z [DEBUG] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core] client has disconnected
Jul  6 07:54:13 haraka01 haraka[481720]: 2023-07-06T05:54:13.350Z [DEBUG] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core] running disconnect hooks
Jul  6 07:54:13 haraka01 haraka[481720]: 2023-07-06T05:54:13.351Z [DEBUG] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core] client has disconnected
Jul  6 07:54:13 haraka01 haraka[481720]: 2023-07-06T05:54:13.351Z [DEBUG] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core] client has disconnected
Jul  6 07:54:13 haraka01 haraka[481720]: 2023-07-06T05:54:13.351Z [NOTICE] [BB535B99-4A7A-440F-942F-4421015ED98B.1] [core] disconnect ip=1.1.1.1 rdns=mail-pj1-f49.google.com helo=mail-pj1-f49.google.com relay=N early=N esmtp=Y tls=N pipe=N errors=0 txns=1 rcpts=2/0/0 msgs=0/0/1 bytes=2285 lr="550 5.7.54 SMTP; Unable to relay recipient in non-accepted domain (BB535B99-4A7A-440F-942F-4421015ED98B.1)" time=5.806

aliases: standardize & modernize

  • populate [files] in package.json. Delete .npmignore.
  • automated code linting. #3308
    • dep: eslint-plugin-haraka -> @haraka/eslint-config
    • update 'lint' script in package.json
    • verify 'lint' CI test config
  • lint: remove duplicate / stale rules from .eslintrc
  • automated code formatting (see also #3308)
  • automated CI testing.
    • mostly done, verify that local copy of ci.yml is up-to-date.
  • CONTRIBUTORS: see 3309
  • consistent naming of "special" files like CHANGELOG.md.
  • CHANGELOG: verify links at bottom (due to inconsistent tag naming)
    • latest .release does this, fixes most, and warns of errors it can't fix
  • verify GitHub repo About link points to npm package
  • convert test suites to mocha "style"
    • works great today and with node --test in v18+

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.