• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Urgent: Need help with postfix mail delivery for local domains on external servers

M

mirage

Guest
It appears that any email entered on a webform, send to a user in that domain is in fact bounced and send to the bouce address.

In the CP, I have mail hosting disabled for these domains. But for some reason, the postfix configurations appears to consider these domains local and attempts to deliver mail on the same machine. Ergo, the mail fails and messages are bounced to the admin.

Question:
How do I get postfix to deliver mail for local domains which is hosted externally?

Thanks J
 
Thanks - but as I mentioned - I do have email turned off for these domains.

The fix was this (although it feels wrong to me):

While I had email turned off, I had set the catchall address. Switch that to reject, caused the messages to be delivered. Seems wrong.

I'd say that with email hosting turned 'on' + a catchall address should attempt to deliver to catchall or bounce. With email hosting turned off, nothing should be checked locally and all delivery handling should be deferred to the remote server identified by the MX's.

Cheers,
j
 
In case of mail service for domain is switched off the domain name should not persists in your virtual_domains
You can check it with postmap -s /var/spool/postfix/plesk/virtual_domains or postmap -s /var/lib/plesk/mail/postfix/virtual_domains depending on your OS. (see /etc/postfix/main.cf for exactly path)

If the domain name persists in virtual_domains, then postfix will treat it as "local"
 
In case of mail service for domain is switched off the domain name should not persists in your virtual_domains
You can check it with postmap -s /var/spool/postfix/plesk/virtual_domains or postmap -s /var/lib/plesk/mail/postfix/virtual_domains depending on your OS. (see /etc/postfix/main.cf for exactly path)

If the domain name persists in virtual_domains, then postfix will treat it as "local"


Hi,

Ok, and how to remove the domain from there in that case? The service is switched off and domain still in postmap!

Thanks.
 
Can't you just edit the file in question manually and remove the domains if needed from the file?
 
Back
Top