• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Problems with mail

N

Nunners

Guest
Ok, let me first explain the setup, cos it's not straight forward...

Our Plesk server has the main domain noahsarkdaynurseries.co.uk. The users on the domain are setup as forwarding accounts, and forward to addresses on a secondary domain nadn.co.uk. That domain is actually hosted by a mailserver within out network, and has a firewall setup so that it only receives email from the plesk server (IP address blocking). This server then spam checks again, and forwards it onto our Exchange server, again on the local domain. Spam checking is turned on on the plesk server, as indeed it is on the local mailserver - it carries out a double check, and actually works really well!

Since around lunchtime today, we're not getting any emails through and I can't work out why. Sending one from outside of the network comes back with the error:
Hi. This is the qmail-send program at yahoo.com.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<[email protected]>:
212.241.217.87 does not like recipient.
Remote host said: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1) Giving up on 212.241.217.87.

That was sent from yahoo's webmail client, and is fairly good at checking things.

I've checked all connectivity, and indeed turned on the mailbox for the above account, and it starts receiving into the mailbox, but just using the mailforwarding doesn't work.

Can anyone suggest why? Nothing has changed, as far as I know, and there's nothing to suggest a problem in the logs...

Any help or suggestions will be gratefully received...

Thanks
James
 
Getting this drilled down a little further. It would seem that for some reason the domain is not in the /var/qmail/control/rcpthosts file. When adding it, you get a bounce back:
Sorry. Although I'm listed as a best-preference MX or A for that host, it isn't in my control/locals file, so I don't treat it as local. (#5.4.6)

I'm therefore guessing that somehow the domain has been "wiped" from qmail, and I may need to reset the whole domain. Does anyone know how to go about that, without having to delete the whole lot and start again?!!!

Thanks
Nunners
 
Hello,

If you get the bounce message with such error when send mail to a domain hosted on the Parallels Plesk Panel server, then make sure that the Mail service for this domain is enabled and the domain name is listed in $QMAIL_ROOT_D/control/virtualdomains and $QMAIL_ROOT_D/control/rcpthosts files.
If not, use $PRODUCT_ROOT_D/admin/sbin/mchk utility to rebuild Qmail configuration.

Please, see the following article for more information:

http://kb.odin.com/en/168

When you see the error "I'm listed as a best-preference MX or A for that host, it isn't in my control/locals file", it may happen because of several reasons:

- domain really does not exist in Plesk, but domain's DNS points to your server as domain's MX,
- domain exists but domain.com > Mail > Disable option was chosen in the Plesk interface,
- domain exists and domain was added to above files but qmail failed to restart after it (qmail reads these files during start only),
- domain exists but domain was not added to the above files because of some failure during domain creation or the files were modified manually. Please, check the following article for the resolution of the problem:

http://kb.odin.com/article_22_1380_en.html

Thank you
 
Thanks for your reply, and I wish I'd read it before taking the advice of the hosting company... which was the quickest fix would be to remove the domain and start again, which when there's 5 databases and quite a lot within the website that needs reinstalling after, wasn't the best option for me!

I'll remember your fix though if it happens in future!

Thanks
Nunners
 
Back
Top