Relay access denied servers with no email running

Discussion in 'ISPConfig 3 Priority Support' started by Stelios, Nov 29, 2020.

  1. Stelios

    Stelios Active Member HowtoForge Supporter

    Hi all,

    On a multi-server setup the servers that are not running email (web + db + dns) are not able to send email to my admin account so I can monitor easier any problems. I have to view the /var/mail/root to check the emails.
    I would like to get all emails that going to root to my [email protected]. The mydomain.com is hosted in a mail server withing the multi-server setup.
    Do I need to just add my local subnet 10.0.0.0/16 under mynetworks or something else is recommended?

    At the time being all emails are rejecting with a Relay access denied

    Thanks
     
  2. florian030

    florian030 ISPConfig Developer ISPConfig Developer

    you can use /etc/aliases to send mails for root to a different mail.
    Code:
    root: [email protected]
    run newaliases when you change this file.
     
    ahrasis likes this.
  3. Stelios

    Stelios Active Member HowtoForge Supporter

    Thanks Florian; do I still need to allow my subnet via mynetworks section of main.cf?
     
  4. Stelios

    Stelios Active Member HowtoForge Supporter

    It still doesn't work with aliases. It bounces back the emails.

    Relay access denied (in reply to RCPT TO command))
     
  5. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Yes.
     
  6. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    That message is from your destination server? If so, it means it is not configured to accept mail for that domain. You could use mynetworks to get around that, but it shouldn't be necessary, as the server hosting mail for the domain will accept unauthenticated mail for it. Does mail to [email protected] work from anywhere?
     
  7. Stelios

    Stelios Active Member HowtoForge Supporter

    Yes the [email protected] works from anywhere.
    The relay access denied bounce back to the server who tried to send (web server- never reach the email server)
     
  8. Stelios

    Stelios Active Member HowtoForge Supporter

    Just to add that the email server that [email protected] exist has my local subnet under mynetworks but doesn't get the email.
     
  9. Stelios

    Stelios Active Member HowtoForge Supporter

    An update; it works only if I put the public IP of the web server to the main.cf of the email server.
     
    ahrasis likes this.

Share This Page