Skip to main content

cPanel blocking incoming e-mail before EXIM rewrite or router

Comments

7 comments

  • cPRex Jurassic Moderator
    Hey there! I don't believe there is a good way to bypass the cPanel handling of the mail completely, as one option for unrouted mail has to be selected.
    0
  • jasgot
    Thanks. I thought rewrite acts at the time of smtp rcpt and then send back through exim with the new info? So, in the rewrite section, this: *.@domain1.com $1@domain2.com Ffrs should happen before cPanel gets involved?
    0
  • cPRex Jurassic Moderator
    I confirmed with the team there isn't a way to stop those checks. However, in the cPanel >> Default Address, there is an option to forward the unrouted mail to another location, or you can pipe it to a program for further processing. Would one of those options work well for you instead?
    0
  • jasgot
    After using exim -d -bt to watch for the fail, I see it is failing at virtual_aliases in exim.conf
    I confirmed with the team there isn't a way to stop those checks. However, in the cPanel >> Default Address, there is an option to forward the unrouted mail to another location, or you can pipe it to a program for further processing. Would one of those options work well for you instead?

    I suppose piping it to a script may work. It just seems easier to maintain if it were a router and transport.
    0
  • jasgot
    New information and new issue. The problem was that I was editing the exim.conf and using basic editor save button to save, recompile, and restart. I am now using the advanced editor and it partially works. I can rewrite the to: address all day long, but I cannot rewrite the From: address at all. Is cPanel preventing the From: address from being rewritten? Usinf Exim -brw show exactly what I want, but it looks like cPanel is ignoring it for the From and Reply to.
    0
  • cPRex Jurassic Moderator
    There wouldn't be anything preventing that rewrite that I am aware of. It might be time to submit a ticket so we can check this out.
    0
  • jasgot
    Ha! I found the problem. In the Exim.Conf file I found this: # discover_sender_information is not included # because from_rewrites are not enabled Now to enable them!
    0

Please sign in to leave a comment.