The Perfect Server - Ubuntu 10.04 [ISPConfig 3]-configuration

Discussion in 'Installation/Configuration' started by Happy, Jun 2, 2010.

  1. Happy

    Happy New Member

    I only need system users. At what point can I stop as I do not need webmail or any other bells whistles-just pop3 email and smtp. I tried installing just peices of The Perfect Server - Ubuntu 10.04 [ISPConfig 3] but apparently I missed something or answered a question wrong and can neither send nor receive mail. I have not problem starting over from scratch
  2. falko

    falko Super Moderator ISPConfig Developer

  3. Happy

    Happy New Member

    I assume I can use the same download Ubuntu 10.04 that I used for The Perfect Server -Unbuntu 10.04 ISPConfig 3? At what point in the configuration can I stop just to use system users? I guess I am asking what parts do I need to install to make this work for system users?

    As always Thanks
  4. falko

    falko Super Moderator ISPConfig Developer

    The first two pages of the tutorials are identical, but then the setups start to differ.
  5. Happy

    Happy New Member

    ok got base install done. (looks like the 2 installs are the same up to page 41 (where base install is basically done))I am assuming just to have system users, I need only install MySQL, Postfix and Courier and I am done, correct? I don't require or need DNS,FTP Web or any other services. If this is correct then I just need to add users via the command line if this is correct as well can u give me the commands

    Last edited: Jun 15, 2010
  6. falko

    falko Super Moderator ISPConfig Developer

  7. Happy

    Happy New Member

    ok followed the directions below and get the following error

    postmap /etc/postfix/virtusertable
    postmap: fatal: open /etc/postfix/virtusertable: No such file or directory

    I also notice that the user I created does not have a home drive nor a maildir folder. However the user ID was created

    How do I create the following files


    First you have to tell Postfix to deliver emails to a user's Maildir:

    postconf -e 'home_mailbox = Maildir/'
    postconf -e 'mailbox_command ='
    /etc/init.d/postfix restart

    Then you have to create a system user and a password:

    useradd -d /home/sample_user -g users sample_user
    passwd sample_userThen run

    postconf -e 'virtual_maps = hash:/etc/postfix/virtusertable'
    postconf -e 'mydestination = /etc/postfix/local-host-names'/etc/postfix/local-host-names should contain all domains that you want to accept emails for, e.g.:

    localhost looks like this:

    [email protected] sample_user
    [email protected] sample_user
    [email protected] sample_userEmails for [email protected], [email protected] and [email protected] will now arrive in the mailbox of sample_user.

    Everytime you change /etc/postfix/virtusertable you have to run the following command:

    postmap /etc/postfix/virtusertableNow restart Postfix:

    /etc/init.d/postfix restart
    Last edited: Jun 8, 2010
  8. Happy

    Happy New Member

    Here is the output of netstat -tap

    [email protected]:~# netstat -tap
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 *:mysql *:* LISTEN 6404/mysqld
    tcp 0 0 *:webmin *:* LISTEN 9552/perl
    tcp 0 0 *:ssh *:* LISTEN 792/sshd
    tcp 0 0 *:smtp *:* LISTEN 8591/master
    tcp 0 0 ESTABLISHED 9925/0
    tcp6 0 0 [::]:pop3 [::]:* LISTEN 8215/couriertcpd
    tcp6 0 0 [::]:imap2 [::]:* LISTEN 8312/couriertcpd
    tcp6 0 0 [::]:ssh [::]:* LISTEN 792/sshd
    tcp6 0 0 [::]:smtp [::]:* LISTEN 8591/master
    tcp6 0 0 [::]:imaps [::]:* LISTEN 8445/couriertcpd
    tcp6 0 0 [::]:pop3s [::]:* LISTEN 8478/couriertcpd

    postconf [email protected]:~# postconf -n
    alias_database = hash:/etc/aliases
    alias_maps = hash:/etc/aliases
    append_dot_mydomain = no
    biff = no
    broken_sasl_auth_clients = yes
    config_directory = /etc/postfix
    home_mailbox = Maildir/
    inet_interfaces = all
    inet_protocols = all
    mailbox_command =
    mailbox_size_limit = 0
    mydestination = /etc/postfix/local-host-names
    myhostname =
    mynetworks = [::ffff:]/104 [::1]/128
    myorigin = /etc/mailname
    readme_directory = no
    recipient_delimiter = +
    relayhost =
    smtp_tls_note_starttls_offer = yes
    smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
    smtp_use_tls = yes
    smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
    smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_authenticated_header = yes
    smtpd_sasl_local_domain =
    smtpd_sasl_security_options = noanonymous
    smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
    smtpd_tls_auth_only = no
    smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
    smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
    smtpd_tls_loglevel = 1
    smtpd_tls_received_header = yes
    smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
    smtpd_tls_session_cache_timeout = 3600s
    smtpd_use_tls = yes
    tls_random_source = dev:/dev/urandom
    [email protected]:~#n
  9. Happy

    Happy New Member

    I aslo notice no home directory or maildir directory for a user I created to see if all was good. Upon check some other directories I also found that the following files did not exist

    Do I need to reinstall postfix?
  10. falko

    falko Super Moderator ISPConfig Developer

    You can create/modify the files with a text editor, e.g. vi:
    vi /etc/postfix/virtusertable
    vi /etc/postfix/local-host-names
  11. Happy

    Happy New Member

    Why did no home directory or maildir folder get created when I created a new user? Was this because these files did not exist?
  12. falko

    falko Super Moderator ISPConfig Developer

    Maildir is created automatically when the first email for that account arrives.
    To create the homedir when you create a user, take a look at
    man useradd
    , especially at the -d and -m switches.
  13. Happy

    Happy New Member

    Thanks a bunch it all looks correct now:)
  14. Happy

    Happy New Member

    I don't allow root to ssh in to my mail server. I log in with another admin ID and do sudo su. However, anytime I try to run the commands below I get and error about not being able to edit a read only file.

    vi /etc/postfix/virtusertable

    /etc/init.d/postfix restart

    The only workaround I have found is to add my admin user ID to the root group or to allow root to ssh and run the commands. When lookink at the file system it shows root as the owner of the files I believe
  15. till

    till Super Moderator Staff Member ISPConfig Developer

    This thraed is about ispconfig 3, at least the title says this, but in a ispconfig 3 system there is never a file /etc/postfix/virtusertable as the postfix setup is based on mysql tables. So which kind of setup and which software do you use?
  16. Happy

    Happy New Member

    I ended up using The_Perfect_Server_-_Ubuntu_Lucid_Lynx_(Ubuntu_10_04)_[ISPConfig_2] I started out with the ISPConfig3, but ran into issues. I was trying to provide more functionality. I only needed system users not virtual. I am only serveing up mail for one domain
  17. morrocod

    morrocod New Member

    restore data


    I'm new on this forum but I read from a long time the tutorials on your site.

    I had a server with ubuntu 10.4 with ispconfig 3. I want to reinstall the entire site but right now I have a few sites installed with email addresses, etc.

    How I can reinstall the server but I don't want to lose the data?

    Anybody can help my with some ideas?

    thank you.

  18. morrocod

    morrocod New Member

    anybody can help me with some ideas?

  19. falko

    falko Super Moderator ISPConfig Developer

    The only method I can think of is make a backup of your data, then reinstall the system and restore your backup.
  20. bahar2509

    bahar2509 New Member

    I've been tryin' install ISPConfig 3 in Server. Everything run well except, when i was trying to access my ISPconfig address my DNS address e.g. it shows Error the page can't be displayed, while if I used as the example in the tutorial it was OK. Please help me!

Share This Page