mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-09-13 16:45:27 +08:00
Store Forwarded-For info
This commit is contained in:
parent
d4213bc32e
commit
685a360af7
2 changed files with 8 additions and 4 deletions
|
@ -367,7 +367,8 @@ class FilterHandler {
|
|||
(forwardTargets.size &&
|
||||
Array.from(forwardTargets).map(row => ({
|
||||
type: row[1].type,
|
||||
value: row[1].value
|
||||
value: row[1].value,
|
||||
recipient
|
||||
}))) ||
|
||||
false,
|
||||
|
||||
|
|
|
@ -62,7 +62,8 @@ class Maildropper {
|
|||
switch (target.type) {
|
||||
case 'mail':
|
||||
deliveries.push({
|
||||
to: target.value
|
||||
to: target.value,
|
||||
forwardedFor: target.recipient
|
||||
});
|
||||
break;
|
||||
|
||||
|
@ -81,7 +82,8 @@ class Maildropper {
|
|||
mxPort: relayData.mxPort,
|
||||
mxAuth: relayData.mxAuth,
|
||||
mxSecure: relayData.mxSecure,
|
||||
skipSRS: true
|
||||
skipSRS: true,
|
||||
forwardedFor: target.recipient
|
||||
});
|
||||
});
|
||||
break;
|
||||
|
@ -95,7 +97,8 @@ class Maildropper {
|
|||
to,
|
||||
http: true,
|
||||
targetUrl: target.value,
|
||||
skipSRS: true
|
||||
skipSRS: true,
|
||||
forwardedFor: target.recipient
|
||||
});
|
||||
});
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue