1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

how to write a postfix-like alias with QMail ?

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by kadoudal, Mar 22, 2009.

  1. kadoudal

    kadoudal Regular Pleskian

    27
    23%
    Joined:
    Nov 20, 2007
    Messages:
    244
    Likes Received:
    0
    I know.. some people will answer : switch to Postfix !.... but I read about issues w Postfix & 9.0, so I am not ready to switch over, not being a mail server guru...

    so I need to write a QMail alias similar to this Postfix one ::
    POSTFIX
    foo: "|/path/to/my_mailhandler.rb --url http://my.domain --key secret --project foo"

    to execute the ruby script located at /path/to/my_mailhandler.rb passing 3 parameters (url, key, project), so I ggogled a little bit, but so many results ! no easy for mail server newbie...

    1- cannot be done via the Plesk Console (I guess ?)

    2- I need to create a .qmail file in the folder /var/qmail/alias , which name xxxx.qmail ? is the name related to a specific email address or can it be named foo.qmail or whatever name I choose ?

    3- can I write the same alias ?
    foo: "|/path/to/my_mailhandler.rb --url http://my.domain --key secret --project foo"

    4- is there any recommendation regarding the path to my_mailhandler.rb ?

    5- once done I guess I should restart the qmail server ?

    thanks for giving me the keys to open this door ... ;-))

    erwin von breizh
     
Loading...