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 mass create email aliases?

Discussion in 'Plesk for Linux - 8.x and Older' started by ninja, Sep 5, 2008.

  1. ninja

    ninja Guest

    0
     
    Hello all,

    For a single mail account .... how can I mass create a bunch of mail aliases ... rather than typing in 200+ from the pleask web interface one by one?

    I have an old /etc/aliases file on another linux box where I have all the aliases listed.

    thanks


    Also ... is there anyway to maybe synchronise a /etc/aliases file from a local linux box running sendmail into plesk. This may allow me to still maintain all my aliases locally and somehow synchronise aliases between my local sendmail aliases file and Plesk box. I'll settle for the bulk import though ...
     
  2. breun

    breun Golden Pleskian

    29
     
    Joined:
    Jun 28, 2005
    Messages:
    1,647
    Likes Received:
    0
  3. ninja

    ninja Guest

    0
     
    thanks for the info. Used the command line to add 100's of aliases .... got rid of a mail catch-all rule for a domain that was accepting any email address etc ... mainly spam.

    Is there anyone out there that has written scripts / automation to work with the command lines when trying to sync aliases or email accounts with other servers?

    ie. When adding/deleting aliases on Local linux box, script (perl or otherwise) logs into plesk box and does the same using the command line?
     
  4. breun

    breun Golden Pleskian

    29
     
    Joined:
    Jun 28, 2005
    Messages:
    1,647
    Likes Received:
    0
    You could write a script that adds the alias on the local box and adds the alias on the Plesk box via Plesk's RPC API or SSH.
     
Loading...