I changed the hostname of my server last week. Since I have stopped the old hostname I can't recieve any mails.
However, I changed the hostname in all configurations, e.g. /etc/postfix/main.cf and the global linux hostname.
Which config I could have forgotten? And is there any possibility the restore the refused mails?
Here is the error, /var/log/mail.log
Feb 18 17:08:12 server7 postfix/smtp: 35E6479C246: to=<web15_info@OLD-HOSTNAME>, orig_to=<MY-MAIL-ADDRESS>, relay=none, delay=0.01, delays=0.01/0/0/0, dsn=5.4.6, status=bounced (mail for OLD-HOSTNAME loops back to myself)
Feb 18 17:08:12 server7 postfix/qmgr: 35E6479C246: removed
And that's the error mail the sender gets back:
Technical details of permanent failure:
YOUR-SERVER tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 554 554 5.7.1 <MY-MAIL-ADDRESS>: Relay access denied (state 14).
Thanks for help!