S
szlampy
Guest
I am running Plesk 9.3.0 witht the postfix mail client on CentOS Linux.
I am trying to get a mail account to forward/redirect mail to script.
I don't really want to break the plesk control panels for managing the server.
The panels won't simply allow you to enter the pipe command (e.g. "|/usr/bin/perl /path/to/script") as an alias into the control panels as they have some email verification/normalization scripts running on the form input.
I am not 100% sure but from my investigations it appears that Parallels have configured Postfix to handle aliases from the MySQL DB called PSA via the mail, mail_aliases, mail_redir tables.
So I have set-up an aliases via the panels to forward the mail address I want handled by a script ([email protected]) to forward to another address ([email protected]) and that all works as expected.
Then I logged into the DB and manually modified the entry in the DB so that the address being forwarded too ([email protected]) is changed to the pipe command to run the script ("|/usr/bin/perl /path/to/script").
Unfortunately mail being sent to [email protected] is still being forwarded to [email protected] and NOT "|/usr/bin/perl /path/to/script" as expected.
I can therefore presume that this is happening because there's a script that updates the Postfix aliases from the DB once the data has been inputed, and manually editing the DB isn't triggering this script. That is why the old configuration is still being used.
The remedies as I see it now, are as follows:
a) Trigger the script that updates the Postfix aliases. (I've tried the obvious "postfix reload")
b) Disable/Change the verification on the plesk panels so that the script will now accept email addresses and scripts as valid entries for forwarding mail too.
SO... I'm after either the location/name of the script that updates the postfix aliases from plesk, or the location/name of the script that checks the input from the plesk panels. I partially suspect it may even be the same script.
Can anyone help me here?
I am trying to get a mail account to forward/redirect mail to script.
I don't really want to break the plesk control panels for managing the server.
The panels won't simply allow you to enter the pipe command (e.g. "|/usr/bin/perl /path/to/script") as an alias into the control panels as they have some email verification/normalization scripts running on the form input.
I am not 100% sure but from my investigations it appears that Parallels have configured Postfix to handle aliases from the MySQL DB called PSA via the mail, mail_aliases, mail_redir tables.
So I have set-up an aliases via the panels to forward the mail address I want handled by a script ([email protected]) to forward to another address ([email protected]) and that all works as expected.
Then I logged into the DB and manually modified the entry in the DB so that the address being forwarded too ([email protected]) is changed to the pipe command to run the script ("|/usr/bin/perl /path/to/script").
Unfortunately mail being sent to [email protected] is still being forwarded to [email protected] and NOT "|/usr/bin/perl /path/to/script" as expected.
I can therefore presume that this is happening because there's a script that updates the Postfix aliases from the DB once the data has been inputed, and manually editing the DB isn't triggering this script. That is why the old configuration is still being used.
The remedies as I see it now, are as follows:
a) Trigger the script that updates the Postfix aliases. (I've tried the obvious "postfix reload")
b) Disable/Change the verification on the plesk panels so that the script will now accept email addresses and scripts as valid entries for forwarding mail too.
SO... I'm after either the location/name of the script that updates the postfix aliases from plesk, or the location/name of the script that checks the input from the plesk panels. I partially suspect it may even be the same script.
Can anyone help me here?