A) We have to add a port on the Plesk server for passive FTP.
[[email protected] ~]# cd /etc/proftpd.d/
[[email protected] proftpd.d]# cp -pvf 50-plesk.conf 50-plesk.conf_orig
[[email protected] proftpd.d]# vi 50-plesk.conf
Add the line below in the global section-
PassivePorts 57000 58000
B) Setup a custom firewall rule in the Plesk control panel.
Log in as "root" to the server shell over SSH.
Go to Modules > Firewall > Edit Firewall Configuration.
Click Add Custom Rule.
Specify the details below:
1. Rule name - Passive FTP
2. Direction: select Incoming.
3. Action: select Allow.
4. Ports: in the Add Port input box, enter the value 57000-58000. Leave the TCP option selected, and click Add.
5. Click OK.
6. Click Activate, and then click Activate again.
1. Login onto the Qmail server.
2. Create a catchall mailbox like catchall@<domain>.com
3. Find out the domain directory with the command below-
[[email protected] ~]# ~vpopmail/bin/vdominfo <domain>.com
4. Edit the .qmail-default file as below:
[[email protected] ~]# vi /home/vpopmail/domains/<domain>.com/.qmail-default
===================================================================================
Replace the line-
| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox
With this line-
| /home/vpopmail/bin/vdelivermail '' delete
===================================================================================
5. Restart the qmail services
[[email protected] ~]# /etc/init.d/qmaild restart
1. Login onto the Qmail server
2. Create a catchall mailbox like catchall@<domain>.com
3. Find out the domain directory with the command below-
[[email protected] ~]# ~vpopmail/bin/vdominfo <domain>.com
4. Edit the .qmail-default file as below:
[[email protected] ~]# vi /home/vpopmail/domains/<domain>.com/.qmail-default
===================================================================================
Replace the line-
| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox
With this line-
| /home/vpopmail/bin/vdelivermail '' /home/vpopmail/domains/<domain>.com/catchall
===================================================================================
5. Restart the qmail services
[[email protected] ~]# /etc/init.d/qmaild restart