Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SOLVED Not receiving certified e-mails properly

Discussion in 'E-mail Discussion' started by bonny3, May 22, 2018.

  1. bonny3

    bonny3 Member

    Joined:
    Apr 11, 2018
    Messages:
    5
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    italy
    cPanel Access Level:
    Root Administrator
    Hi,
    I have a problem, I can not receive PEC (Italian certified e-mail)
    in the "ordinary" e-mails of my server
    I would like to know if there is any setting in EXIM to receive this type of e-mail
    no error is displayed when sending from a PEC mail.

    Thanks
    Best Regards
    Alessandro
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,367
    Likes Received:
    1,855
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello Alessandro,

    Can you let us know the output to /var/log/exim_mainlog for one of these emails? Here's an example of a command you can run:

    Code:
    exigrep SUBJECT /var/log/exim_mainlog
    Replace "SUBJECT" with the subject of one of the affected messages.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. bonny3

    bonny3 Member

    Joined:
    Apr 11, 2018
    Messages:
    5
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    italy
    cPanel Access Level:
    Root Administrator
    here is my log:

    Code:
    2018-05-23 16:53:05 1fLV8T-0006R2-Qg H=pecmail01-156.it.net (mail.example.com) [151.1.194.156]:56110 Warning: Message has been scanned: no virus or other harmful content was found
    2018-05-23 16:53:05 1fLV8T-0006R2-Qg <= ottica---mila2@example.net H=pecmail01-156.it.net (mail.example.com) [151.1.194.156]:56110 P=esmtp S=16143 id=6DFE68E1.003B851C.8D7C9DFB.17A50A12.posta-certificata@example.com T="POSTA CERTIFICATA: Test" for info@occ---lando.it
    2018-05-23 16:53:05 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1fLV8T-0006R2-Qg
    2018-05-23 16:53:05 1fLV8T-0006R2-Qg cancelled by system filter: This message has been rejected because it has\na potentially executable attachment "postacert.eml"\nThis form of attachment has been used by\nrecent viruses or other malware.\nIf you meant to send this file then please\npackage it up as a zip file and resend it.
    2018-05-23 16:53:05 cwd=/var/spool/exim 7 args: /usr/sbin/exim -t -oem -oi -f <> -E1fLV8T-0006R2-Qg
    2018-05-23 16:53:06 1fLV8T-0006SJ-W8 <= <> R=1fLV8T-0006R2-Qg U=mailnull P=local S=17661 T="Mail delivery failed: returning message to sender" for ottica---mila2@example.net
    2018-05-23 16:53:06 1fLV8T-0006R2-Qg Completed
    2018-05-23 16:53:06 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1fLV8T-0006SJ-W8
    2018-05-23 16:53:06 1fLV8T-0006SJ-W8 => ottica---mila2@example.net R=send_via_sendgrid T=sendgrid_smtp H=smtp.sendgrid.net [159.122.219.43] X=TLSv1.2:AES128-GCM-SHA256:128 CV=yes A=sendgrid_login C="250 Ok: queued as Znx7SMKCSreybbZ9oafd-Q"
    2018-05-23 16:53:06 1fLV8T-0006SJ-W8 Completed 
    
     
    #3 bonny3, May 23, 2018
    Last edited by a moderator: May 23, 2018
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,367
    Likes Received:
    1,855
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello @bonny3,

    It looks like the message was rejected because it included a .EML attachment. These messages are rejected by default for increased security. If you'd like to allow these attachments, we document how to do so at:

    How to Customize the Exim System Filter File - cPanel Knowledge Base - cPanel Documentation

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. bonny3

    bonny3 Member

    Joined:
    Apr 11, 2018
    Messages:
    5
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    italy
    cPanel Access Level:
    Root Administrator
    It works!
    Thank you so much!
    I would just like to inform you that the "PEC" in Italy is mandatory for all companies
    It would be wise to set Default, remove the .EML files from the filters

    Thanks
    Best Regards
    Alessandro
     
    cPanelMichael likes this.
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,367
    Likes Received:
    1,855
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello Alessandro,

    You're very welcome.

    While .EML attachments are legitimate in specific cases like the one you mentioned, it's disabled by default because of it's widespread use for malicious purposes.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. bonny3

    bonny3 Member

    Joined:
    Apr 11, 2018
    Messages:
    5
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    italy
    cPanel Access Level:
    Root Administrator
    Hi,
    I have a new Problem,
    has been updated yesterday cpanel,
    the file, cpanel_exim_system_filter
    has been modified by putting back .eml
    so I have the problem that whenever Cpanel is updated,
    I lose the changes on the cpanel_exim_system_filter file
    How can I avoid this problem?

    Thanks
    Best Regards
    Alessandro
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,367
    Likes Received:
    1,855
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. bonny3

    bonny3 Member

    Joined:
    Apr 11, 2018
    Messages:
    5
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    italy
    cPanel Access Level:
    Root Administrator
    I Michael,
    ok now I've created a new file
    and changed the path in the Exim Configuration Manager
    Thanks so much !
    :)
     
    cPanelMichael likes this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice