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

Mail Accounts: mail Utility

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by halliday, Jul 2, 2010.

  1. halliday

    halliday Basic Pleskian

    23
    23%
    Joined:
    Nov 16, 2008
    Messages:
    39
    Likes Received:
    0
    Hi

    I have used the following command to create a mail account (via ssh as root) :

    ./mail --create <new-email> -passwd <password> -mailbox false -manage-spamfilter true -redirect true -rediraddr <detination-email>

    The new email account is created. But email redirection stopped working, for the new mail account and the previously set up ones.

    My question is: Have I missed anything that actually caused this problem?

    For example, should one change file permissions some where?

    I would be grateful if someone could advise me on this.

    Many thanks in advance
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,534
    Likes Received:
    1,239
    Location:
    Novosibirsk, Russia
    Affiliate:
    https://plesk.com/?a_aid=59ae552b0731c
    What is OS and Plesk version there?
     
  3. halliday

    halliday Basic Pleskian

    23
    23%
    Joined:
    Nov 16, 2008
    Messages:
    39
    Likes Received:
    0
    Thank you for answering:

    Linux 2.6.18-028stab069.6
    Plesk 9.3.0

    I have upgraded to Plesk 9.5.2 since then.

    I must add that there was an extra part of the script:

    ./autoresponder --create c2213 -mail <new-email> -status true -redirect <another_email> -replyto admin@example.com -format html -text "text here"


    The "text here" part contained persian charachters.

    As I said previousy, the email account was actuall created But email redirection stopped working, for the new mail account and the previously set up ones.

    The auutoresonse message was empty.

    I wonder if the above command had anything to do with it?

    Thank you for your help!
     
  4. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,534
    Likes Received:
    1,239
    Location:
    Novosibirsk, Russia
    Affiliate:
    https://plesk.com/?a_aid=59ae552b0731c
    Sorry, I have asked OS version but not kernel version. Do you have CentOS, openSUSE, Debian or what?
     
  5. halliday

    halliday Basic Pleskian

    23
    23%
    Joined:
    Nov 16, 2008
    Messages:
    39
    Likes Received:
    0
    It is CentOS.

    My apologies for misunderstanding the question!
     
  6. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,534
    Likes Received:
    1,239
    Location:
    Novosibirsk, Russia
    Affiliate:
    https://plesk.com/?a_aid=59ae552b0731c
    Ok, thank you. I have forwarded it to developers for the further investigation. I will keep you updated with results in this thread.
     
  7. halliday

    halliday Basic Pleskian

    23
    23%
    Joined:
    Nov 16, 2008
    Messages:
    39
    Likes Received:
    0
    Thank you.

    While we're on the subject of "Mail Accounts: mail Utility":

    1. is there a way to create multiple accounts in one go, i.e. not having to create them individually?

    2. is it possible to have one "autoresonse" to several mail accounts.

    To amend the same response message for hundreds of accounts is incredibly long!


    I have searched the forum, 'knowledgebase' and google, to no avail.
    The 'Documentation' doesn't have an answer either.

    Would greatly appreciate an answer or pointing me in the right direction.

    Thanks a lot!
     
  8. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,534
    Likes Received:
    1,239
    Location:
    Novosibirsk, Russia
    Affiliate:
    https://plesk.com/?a_aid=59ae552b0731c
  9. halliday

    halliday Basic Pleskian

    23
    23%
    Joined:
    Nov 16, 2008
    Messages:
    39
    Likes Received:
    0
    Thank you very much, IgorG.

    I will study the API. I really hope it is not too difficult to implement.
     
  10. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,534
    Likes Received:
    1,239
    Location:
    Novosibirsk, Russia
    Affiliate:
    https://plesk.com/?a_aid=59ae552b0731c
    Possible you have not switched-on autoresponder handler:

    ./autoresponder --on <new-email>

    After what all is ok.

    It was checked on Plesk 9.5.2 CentOS 5x86 because you have already upgraded Plesk 9.3.0 -> 9.5.2
     
  11. halliday

    halliday Basic Pleskian

    23
    23%
    Joined:
    Nov 16, 2008
    Messages:
    39
    Likes Received:
    0
    Thank you for the answer.

    Was it the autoresponder, not being on, that caused the problem?

    I doubt it. I actally did swtich the autoresponder on manually (i.e. via Plesk), but the problem persisted.

    Now, with Plesk 5, I have tried to create a mail account, with autoresponder, etc.
    It has worked and, more importantly, it did not cause problemsto forwarding, as happened in the previous case.

    I honestly think that the most propable cause was a damaged file (or files) or some broken handlers, that happened at the same tme.

    --

    The only remaining point, please, is how to input non-latin characters in the autoresponse message?

    It still does not work from the command line. The message is blank.

    I would appreciate solving thas last problem.
     
  12. breun

    breun Golden Pleskian

    29
     
    Joined:
    Jun 28, 2005
    Messages:
    1,647
    Likes Received:
    0
    I know the difference, but did you know Plesk doesn't? The Plesk web interface says 'Operating system' and then prints the kernel version on its dashboard.
     
  13. halliday

    halliday Basic Pleskian

    23
    23%
    Joined:
    Nov 16, 2008
    Messages:
    39
    Likes Received:
    0
    Hello,

    I am getting the following error message when switching autoresponder on:-
    ---
    ./autoresponder --on new@example.com

    mailmng: Unable to open file /usr/local/psa/handlers/info/90-autoresponder-zThMu3/hook: No such file or directory

    System error 2: No such file or directory

    SUCCESS: Switching all autoresponders 'on' on mail ' new@example.com' is completed
    ---

    Yet, it works; the autoresponder is actually switched on.

    It has only started since yesterday.

    Any idea as to why it ish happening?
     
  14. halliday

    halliday Basic Pleskian

    23
    23%
    Joined:
    Nov 16, 2008
    Messages:
    39
    Likes Received:
    0
    Hello,

    Just to conclude this thread:-

    The situation got worse, with numerous error messages. Evnetually nothing worked from inside Plesk. One important table in the database was corrupted and in the end Plesk stopped loading altogether.

    My webhost blamed it on my use of CLI commands. I didn't think that was the case, because one only used commands described by Plesk, and I thougt it was safe.

    Anyway, the container had to be rebuilt again. I am back to Plesk 9.3 and things seem to be working okay now.

    If anyone knows how to create an autoresponder, with non-latin characters, using Putty or any other telnet client, please share that info with me.

    Thank you!
     
Loading...