Skip to main content

Rewrite header to match actual sender for the incoming emails

Comments

11 comments

  • cPanelMichael
    Hello, Is SpamAssassin enabled for this account? If so, SpamAssassin includes SPF verification by default to help avoid spoofed emails. You could also enable the following options under the "ACL Options" tab in "WHM >> Exim Configuration Manager >> Basic Editor" if you wanted to verify DKIM records: Allow DKIM verification for incoming messages Reject DKIM failures Thank you.
    0
  • amjad.q
    Hello, Thanks for your replay, Yes SpamAssassin, SPF and DKIM both of them are enable The email pass from the check as email@spam-domain.com but in the email show me it's from email@mydomain.com Delivery Details as below ----------------------------------------------------- Event: success success Sender User: myaccount Sender Domain: mydomain.com From Address: email@spam-domain.com Sender: email@mydomain.com Sent Time: xxxxxxxx Sender Host: spam-server.com Sender IP: xxxxx Authentication: forwarder Spam Score: 3.6 Recipient: email@mydomain.com Delivered To: email@mydomain.com Delivery User: myaccount Delivery Domain: mydomain.com Router: virtual_user Transport: dovecot_virtual_delivery_no_batch Out Time: xxxxxxx ID: xxxxxxxxx Delivery Host: localhost Delivery IP: 127.0.0.1 Size: 10.12 KB Result: Accepted -----------------------------------------------------
    0
  • rpvw
    There is a similar thread that may help: Exim filter to rewrite 'From' address on certain incoming mail
    0
  • amjad.q
    Hello, I want to rewrite header "from" to match actual sender for any incoming email, not just for specific domain The email pass from the check as email@spam-domain.com[/EMAIL] so it should be show in the email it's from that email, not another email In the source of email we have X-Sender is email@spam-domain.com and from email@mydomain.com, but the user doesn't see the X-Sender which is the real sender, so we have to rewrite from to be match the real sender
    0
  • cPanelMichael
    Thanks for your replay, Yes SpamAssassin, SPF and DKIM both of them are enable The email pass from the check as email@spam-domain.com[/EMAIL] but in the email show me it's from email@mydomain.com[/EMAIL]

    Hello, That's for outgoing email from your domain name. You'd need to enable SpamAssassin and the following options under the "ACL Options" tab in "WHM >> Exim Configuration Manager >> Basic Editor" if you wanted to verify SPF and DKIM records for incoming email: Allow DKIM verification for incoming messages Reject DKIM failures Thank you.
    0
  • amjad.q
    Hello , I'm using SPF and DKIM to check the incoming emails too, option of SpamAssassin , Allow DKIM verification for incoming messages and Reject DKIM failures are enable The email pass from check of SPF and DKIM as email@spam-domain.com[/EMAIL], you can check the details as below
    ----------------------------------------------------- Event: success success Sender User: myaccount Sender Domain: mydomain.com From Address: email@spam-domain.com Sender: email@mydomain.com Sent Time: xxxxxxxx Sender Host: spam-server.com Sender IP: xxxxx Authentication: forwarder Spam Score: 3.6 Recipient: email@mydomain.com Delivered To: email@mydomain.com Delivery User: myaccount Delivery Domain: mydomain.com Router: virtual_user Transport: dovecot_virtual_delivery_no_batch Out Time: xxxxxxx ID: xxxxxxxxx Delivery Host: localhost Delivery IP: 127.0.0.1 Size: 10.12 KB Result: Accepted -----------------------------------------------------
    so he pass the email form the check as email@spam-domain.com[/EMAIL] but in header of email show it's from email@mydomain.com[/EMAIL], you can check the source of email as above show
    0
  • cPanelMichael
    Hello, Could you open a support ticket using the link in my signature so we can take a closer look? Thank you.
    0
  • amjad.q
    Hello, Thanks for your reply, I have already opened ticket ( ticket number 9066107 ) They did not give a solution for this issue, the told me that (We are limited in how we can help you with spoofed emails like this except make suggestions. In this case, as a courtesy I have verified that all the major cPanel features for combating incoming unsolicited email are on and all the RBL blacklists are in use. ) I wish if you can addition any help to have solution for this issue Thank you .
    0
  • cPanelMichael
    Hello, If the sender is passing DKIM and SPF verification, then it suggests abuse of the domain name for SPAM purposes. In such cases, you may want to consider reporting the issue to the administrator of the remote mail server, or blocking email from the mail server IP address used for sending. Thank you.
    0
  • amjad.q
    Hello, Thanks for your reply Blocking his IP or his hosting isn't solution he will use new server ,I must have solution to protect my server from fraud like this way What about if we can to use a filter in SpamAssassin or script for Exim to check the "X-Sender" if doesn't match the "From:" ignores the email !
    0
  • cPanelMichael
    Hello, To update, it looks like you may have found an alternate solution (using the HEADER_FROM_DIFFERENT_DOMAINS SpamAssassin option) per ticket number 9066107. Feel free to update this thread once the ticket is closed to let us know how it works. Thank you.
    0

Please sign in to leave a comment.