Skip to main content

Redirect incorrect email

Comments

2 comments

  • cPanelLauren
    I'm not sure I understand what you mean by
    however what I want to do is a little more unusual and capture any email sent to a unknown subdomain and redirect it to a script: bob@somedomain.com.EMAILDIRECT.MYDOMAIN.COM

    You're saying you want to redirect any domain to a subdomain of somedomain.com.emaildirect.mydomain.com? Would this be outbound mail?
    0
  • Aardman
    Hi, thanks for the reply, Its incoming mail only. For a background to this I am developing a system which packages registered clients email and sends them on to the recipient in a secured manner. The system needs to capture emails sent to my sub domain however the email address needs to be a catchall. I can get the catchall to work and send to a script however, the problem I am having is the email addresses comprises of someone elses email address pre-pended to my sub domain. so for example: somename@mysubdomain.mydomain.com forwards to catchall correctly BUT: somename@theirdomain.com.mysubdomain.mydomain.com or someothername@theirdomain2.org.mysubdomain.mydomain.com both fail to forward to the catchall, with a bounce back message that the domain does not exist or has incorrect dns entry.
    0

Please sign in to leave a comment.