1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can I create exim email accounts manually?

Discussion in 'E-mail Discussions' started by ArbuZz, Apr 23, 2007.

  1. ArbuZz

    ArbuZz Member

    Joined:
    Mar 27, 2007
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    We need to create a number of email accounts from a list of already existing logins and passwords. In other words people are migrating from other mail server and do not want to change their mail client parameters (logins, passwords, POP/SMTP servers). Logins are totally different from Usernames, and naturally different from cpanels standard user naming - user@domain. Is this task accomplishable, either trough cpanel or right from console? Where do I have to search? Where do I have to start? I do not have any experience with exim.

    Any help or advice appreciated :)
     
  2. chirpy

    chirpy Super Moderator

    Joined:
    Jun 15, 2002
    Messages:
    13,499
    Likes Received:
    14
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You're probably going to have difficulty doing that as courier-imap (the default pop3/imap daemon) is configured to use the cPanel authentication method where user credentials are held in /home/username/etc/domain.com/passwd using the username@domain.com method.
     
  3. ArbuZz

    ArbuZz Member

    Joined:
    Mar 27, 2007
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    No way to reconfigure it??
     
  4. norelidd

    norelidd Member

    Joined:
    Jan 15, 2007
    Messages:
    170
    Likes Received:
    0
    Trophy Points:
    16
    there probably is a way to reconfigure it, but it probably would not be worth maintaining that reconfiguration against cpanel updates.

    It would be better in the long run to do it manually now
     
  5. ArbuZz

    ArbuZz Member

    Joined:
    Mar 27, 2007
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    So do you mean it can be done, or it can't be. I think I misunderstood yor last statement.
     
  6. DaveUsedToWorkHere

    Joined:
    Dec 28, 2001
    Messages:
    742
    Likes Received:
    1
    Trophy Points:
    18
    You can use /scripts/addpop to add email accounts from the command line. They will login with the default mail server in the domain's dns zone and the username and password supplied to the script.
     
  7. ArbuZz

    ArbuZz Member

    Joined:
    Mar 27, 2007
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    Thank you for your answer!

    But what if I have multiple domains hosted on the same server, let's say one of the domains is sally.com and I want to create an account bob@sally.com, with username - "dillan" and password "bobby"?

    Note the difference in username, login and cPanels way to identify mail users?

    Is it accomplishable?
     
    #7 ArbuZz, Apr 28, 2007
    Last edited: Apr 28, 2007
  8. freedman

    freedman Member

    Joined:
    Feb 13, 2005
    Messages:
    312
    Likes Received:
    1
    Trophy Points:
    18
    NO..

    bob@sally.com is the USER "bob" which is stored in the password file:
    /home/sally/etc/sally.com/passwd

    exim, to differentiate this 'bob' from the system user 'bob' (perhaps representing bob.com's hosting account) or from another domains 'bob' (perhaps bob@someotherdomain.com), it needs the @domain.com to know which password file to authenticate against.

    So, you *could* have "dillan@sally.com" as a user, and then have "bob@sally.com" forward to "dillan@sally.com"

    then, the dillan person would have a single mailbox, but could potentially receive email to "bob@sally.com" and "dillan@sally.com" and would login using "dillan@sally.com" passowrd "bobby".

    in this case, "bob@sally.com" is NOT a valid username, because it's not a mailbox, it's just a forward.
     
    #8 freedman, Apr 30, 2007
    Last edited: Nov 13, 2007
  9. SoftDux

    SoftDux Member

    Joined:
    May 27, 2006
    Messages:
    986
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Johannesburg, South Africa
    How would I import a list of email accounts + passwords, from an excel spreadsheet?
     
  10. freedman

    freedman Member

    Joined:
    Feb 13, 2005
    Messages:
    312
    Likes Received:
    1
    Trophy Points:
    18
    /scripts/addpop

    it takes 2 arguments, the full email address and the password.

    it will figure out which account owns it and what domain it goes to and add it for you.

    if you're adding a whole bunch of them, you'll get faster results by modifying the script and enumerate the last bit of code over your list, otherwise, the addpop script will spend a lot of time figuring out who owns the domain for every item on the list.
     
  11. SoftDux

    SoftDux Member

    Joined:
    May 27, 2006
    Messages:
    986
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Johannesburg, South Africa
    Ok, that script literally only takes info from the commandline, how do I use it, to loop through a list with 500+ entries, in the format of "user1@domain.com" in the first colum & "password1" in the second column?

    All users will belong to one domain only, and the passwords are all different, but already assigned on the client's current network.
     
  12. shaun

    shaun Member

    Joined:
    Nov 9, 2001
    Messages:
    704
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    San Clemente, Ca
  13. shaun

    shaun Member

    Joined:
    Nov 9, 2001
    Messages:
    704
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    San Clemente, Ca
    oh, ya if your db's delimiter is just a space just change the begginig to

    while read email pass;
     

Share This Page