No Local mail please

  • Hi,


    I am using i-mscp for web hosting only. (i-MSCP 1.0.3.0, I know, very old, I should and will upgrade, but I'm sure this issue is more a postifx config issue than i-mscp... )
    I do not want to serve any mail.
    How do I go about excepting/forwarding mail for domains that I have configured.
    In the domain settings for the domain in question I have set "-1 disabled"
    I have in my postfix set a relay host to a known working MX.
    For a hosted website eg. domain123.tld (as an example) I have a wordpress site using phpmailer, the form sends mail to info@domain123.tld which is (for example) hosted with gmail.
    The issue is that mail is trying to be delivered locally (unknown user: "info@domain123.tld").
    How do I tell it NOT to accept local mail?

  • I've have resolved the issue.
    I'll reply to my own question for someone's benefit.
    I simply removed the domain from the /etc/postfix/imscp/domains
    and rebuilt the db file with postmap /etc/postfix/imscp/domains.
    I made sure I added to /etc/postfix/main.cf
    relayhost = mx.of.server.to.relay.to
    and restart posfix

  • You should upgrade as soon as possible, also because of security reasons :)