Submitted by SteveHeinsch on Tue, 04/03/2012 - 12:38
On cPanel, there is an option to send email to a script instead of an email address. Is this possible with virtualmin? In the specific email account, I tried to set up a forward to "|/path/to/script.php" but it won't allow that as it isn't a valid email address. Is there any way around that or a way to accomplish this functionality within VM?
Thanks, Steve
Status:
Active
Comments
Submitted by andreychek on Tue, 04/03/2012 - 12:44 Comment #1
Howdy -- if you go into Edit Mail Aliases, and create a new alias, click on the "Advanced Mode" option at the top.
From there, you can select the "Feed to program" option, which will allow you to pipe your email to a file.
Submitted by SteveHeinsch on Tue, 04/03/2012 - 12:56 Comment #2
When I enter "|/home/account_name/public_html/forward.php" without the quotes I get the following error: Failed to save alias : '' is not a valid program or does not exist
I entered a description
Left "mailbox" ticked and entered the name of the email account there
Selected "Feed to Program" and entered the above as the command.
Any ideas on that? Thanks, Steve
Submitted by andreychek on Tue, 04/03/2012 - 13:01 Comment #3
The pipe is actually implied, try entering just the program path:
/home/account_name/public_html/forward.php