• 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

Forwarded to devs the "catch-all" in mail settings is written to postfix aliases even if mail is disabled

mr-wolf

Silver Pleskian
Plesk Guru
TITLE:
the "catch-all" in mail settings is written to postfix aliases even if mail is disabled
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE:
Plesk 17.5.3 / Ubuntu 16.0.4 LTS
PROBLEM DESCRIPTION:
When a "catch-all address" is entered in mail settings it will be written to aliases even if mail is not activated or if "reject" is chosen.
This happens after migrating the non-mail enabled to another server.

This comes to a conflict when postfix is also configured to relay mail foreign to Plesk.
https://talk.plesk.com/threads/afte...il-enabled-although-it-was-turned-off.342628/
STEPS TO REPRODUCE:
Enter e-mail address in Mail Settings => Forward to address:
Disable mail for that domain.
Migrate the domain to another server

Configure postfix to relay domains

grep client.nl /etc/postfix/transport
Code:
client.nl               smtp:remote.client.nl:25
.client.nl              smtp:remote.client.nl:25
grep client.nl /etc/postfix/relay_domains
Code:
client.nl            OK
Code:
postmap /etc/postfix/relay_domains
postmap /etc/postfix/transport
egrep 'postfix/(transport|relay_domains)' /etc/postfix/main.cf
Code:
relay_domains = $mydestination, hash:/etc/postfix/relay_domains
transport_maps = hash:/var/spool/postfix/plesk/transport, hash:/etc/postfix/transport
ACTUAL RESULT:
It will translate all mail for client.nl to the address in the disabled mail account and then relay that translated address.​
EXPECTED RESULT:
It should not configure postfix if mail is disabled in Plesk​
ANY ADDITIONAL INFORMATION:
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM:
Confirm bug
 
Last edited:
From developer:

This issue could be reproduced only in the case when the additional external configuration of Postfix is present and a domain is present in both Postfix databases (Plesk and manual). The issue cannot be reproduced when the domain was configured only using Plesk.
So, I cannot confirm a bug in our products.
 
I should recheck this and post a separate issue, but it does this too if I explicitly tell the migration tool to NOT transfer the mail.
 
Hello Mr-wolf,

If you mean checkbox "Migrate mail messages" or according options for config.ini file then they are disable transferring of mail messages only. All mail business objects like mail box, settings, mail lists and etc will be transferred to the target server always. Another words this checkbox disable the rsync command that copy files with messages to the target server.
It is impossible to disable migration of a some part of business objects using Plesk Migrator.
 
Back
Top