Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3604898
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T21:03:22+00:00 2026-05-18T21:03:22+00:00

I have a dedicated server with MediaTemple. I’m searching for an efficient way to

  • 0

I have a dedicated server with MediaTemple. I’m searching for an efficient way to create email aliases programmatically in PHP.

The server has Plesk installed so I originally thought I could use the Plesk CLI to create an email alias that piped to a PHP script, but the only method I’ve found with the CLI is to create an email account.

My ideal situation is:

PHP script progammatically creates an email alias that forwards to a PHP script that handles email piping.

What I would like to know is some of the accepted methods of doing this. For instance facebook allows you to create a facebook email account alias that you can use to update your status and post photos by just sending an email to that account.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T21:03:23+00:00Added an answer on May 18, 2026 at 9:03 pm

    I’ve done this, but not with Plesk.

    You should be able to add aliases to your /etc/aliases file, then you might need to run newaliases as a user with the correct privileges (I’ve done this as root; maybe you could cron it).

    The alias would look something like this:

    aliasname: "|/path/to/mailhandler.php"
    

    mailhandler.php needs to be +x (chmod), and should probably start with #!/usr/bin/env php; from there you can read from the php://stdin stream and parse the headers and/or body to do what you need.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create website thumbnails (screenshots) using php. I have a dedicated server
So I have access to a dedicated server and want to finally create my
I have a plesk panel and root dedicated server on 1and1. I'm using custom
I have a dedicated server running Cent OS with a Parallel PLESK panel. I
We have a dedicated server for hosing our email, we'll say the IP address
I have one dedicated server which has the whole Lamp-Stack, SVN and Hudson installed.
I have a dedicated server that hosts a number of websites currently running PHP
I have a php app which worked perfectly on a dedicated server. Once i
I have a domain. And I have a dedicated windows server. It has svn
I have an PHP website on a RHEL5/CentOS dedicated server. The website is located

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.