The Perfect Setup - Ubuntu 6.06 LTS Server

Discussion in 'HOWTO-Related Questions' started by tommytomato, Jun 9, 2007.

  1. tommytomato

    tommytomato New Member

    Hi all when running the commands

    Code:
    apt-get install binutils cpp cpp-4.0 fetchmail flex gcc gcc-4.0 libarchive-zip-perl libc6-dev libcompress-zlib-perl libdb4.3-dev libpcre3 libpopt-dev linux-kernel-headers lynx m4 make ncftp nmap openssl perl perl-modules unzip zip zlib1g-dev autoconf automake1.9 libtool bison autotools-dev g++
    I get this,

    Code:
    Couldn't find package zliblg-dev
    I took the following package out and it installed, is zliblg-dev needed :confused: how do i install it, I edited the sources.list like it said on the forum when i did a search for ncftp

    TT
     
  2. tommytomato

    tommytomato New Member

    allso when running

    Code:
    chmod 666 /var/lib/named/dev/null /var/lib/named/dev/random
    from the section

    I get the following error

    Code:
    chmod: cannot access '/var/lib/named/dev/random' : No such file or 
    directory
    I'm following this step by step

    TT
     
    Last edited: Jun 9, 2007
  3. chuckl

    chuckl New Member

    That is zlib1g-dev - zed ell eye bee one gee, not ell gee.

    Regarding your second error, just prior to that the instructions
    mkdir /var/lib/named/dev
    create the /var/lib/named/dev folder, then the mknod instructions create the null and random devices in that folder. I suggest you check if they exist. If not, repeat until they do.
     
  4. tommytomato

    tommytomato New Member

    Sorry I dont get what you mean :rolleyes:

    not sure if i under stand you

    TT
     
  5. tommytomato

    tommytomato New Member

    my system seems to have ramdom

    worked for me

    I think theres a typo on that page

    cant seem to copy and paste my command line from Putty to post to here, I'm using a GUI Ubuntu system

    TT
     
    Last edited: Jun 9, 2007
  6. chuckl

    chuckl New Member

    To install zlib1g-dev, simply type the following when logged in as root

    apt-get install zlib1g-dev

    where the fifth character of the name is the number 1 (one) not lowercase L (ell).

    Typo on the page? Not on my copy of the Internet. 'ramdom' is useless to you, it must be 'random' , so recreate them.
     
  7. tommytomato

    tommytomato New Member

    Ok I went and did this all again, I dont seem to have any errors this time round.

    So were do i go next, I haven't install ispconf

    How can i test the mail server, is it possable to test it using another PC on my next work using Evolution :confused:

    I see mutt it not installed, I dont know of any other way to test the mail server.

    TT
     
  8. falko

    falko Super Moderator Howtoforge Staff

    Create a mail account, either with ISPConfig, or if you don't want to install ISPConfig, like this: http://www.howtoforge.com/forums/showthread.php?t=2
    Afterwards you can test with Evolution (sending/receiving).
     
  9. tommytomato

    tommytomato New Member

    Thank you falko

    I'll get onto to it soon some time tonight, I have to go to work now

    thanks for the help

    TT
     
  10. tommytomato

    tommytomato New Member

    Cool, I dont have to start work till later

    So I gave it ago, but I think some thing is wrong

    /etc/postfix/local-host-names I dont seem to have that file :confused:

    or this file /etc/postfix/virtusertable

    Code:
    root@rockinghamgateway:/etc/postfix# ls
    dynamicmaps.cf  main.cf  master.cf  postfix-files  postfix-script  post-install  prng_exch  sasl  ssl

    Here is what I typed in on the command line

    Code:
    root@rockinghamgateway:~# useradd -d /home/tommytomato -g users tommytomato
    root@rockinghamgateway:~# passwd tommytomato
    Enter new UNIX password: 
    Retype new UNIX password: 
    passwd: password updated successfully
    root@rockinghamgateway:~# postconf -e 'virtual_maps = hash:/etc/postfix/virtusertable'
    root@rockinghamgateway:~# postconf -e 'mydestination = /etc/postfix/local-host-names'
    root@rockinghamgateway:~# postmap /etc/postfix/virtusertable
    postmap: fatal: open /etc/postfix/virtusertable: No such file or directory
    
    Post fix seem to start ok

    Code:
    root@rockinghamgateway:~# /etc/init.d/postfix restart
     * Stopping Postfix Mail Transport Agent postfix                                                      [ ok ] 
     * Starting Postfix Mail Transport Agent postfix                                                      [ ok ] 
    root@rockinghamgateway:~# 
    
    Have I missed some thing along the way :confused:

    Evolution gives me this error

    TT
     
    Last edited: Jun 11, 2007
  11. falko

    falko Super Moderator Howtoforge Staff

    You must create both files, as shown in http://www.howtoforge.com/forums/showthread.php?t=2 .
    In /etc/postfix/local-host-names, you must list your domains, and in /etc/postfix/virtusertable, you fill in the email addresses for which the server should be able to receive emails.
     
  12. tommytomato

    tommytomato New Member

    Lucky I allmost gave up for the night and gone to watch Red Warf

    I created those two files and added the stuff needed.

    Should I run though that again. :confused:

    Question I already added the user in would it matter by adding it again :confused:

    TT
     
  13. tommytomato

    tommytomato New Member

    Well anyway I'm trying it again

    I ran the command

    Code:
    postmap /etc/postfix/virtusertable
    And I get this message

    Code:
    postmap: fatal: open /etc/postfix/virtusertable: No such file or directory
    Now the file is there with 0644 as the permissons

    TT
     
  14. falko

    falko Super Moderator Howtoforge Staff

    Did you create /etc/postfix/virtusertable (e.g. with a text editor such as vi)?
    What's the output of
    Code:
    ls -la /etc/postfix
    ?
     
  15. tommytomato

    tommytomato New Member

    I created the file using Winscp3

    Code:
    root@rockinghamgateway:~# ls -la /etc/postfix
    total 92
    drwxr-xr-x  4 root root  4096 2007-06-11 20:20 .
    drwxr-xr-x 69 root root  4096 2007-06-12 07:17 ..
    -rw-r--r--  1 root root   318 2007-06-10 14:49 dynamicmaps.cf
    -rw-r--r--  1 root root    53 2007-06-11 20:09 local-host-names
    -rw-r--r--  1 root root  1752 2007-06-11 20:20 main.cf
    -rw-r--r--  1 root root  4011 2007-06-10 14:49 master.cf
    -rw-r--r--  1 root root 17562 2006-06-08 16:22 postfix-files
    -rwxr-xr-x  1 root root  6836 2006-06-08 16:22 postfix-script
    -rwxr-xr-x  1 root root 22018 2006-06-08 16:22 post-install
    -rw-------  1 root root  1024 2007-06-10 15:03 prng_exch
    drwxr-xr-x  2 root root  4096 2007-06-10 14:52 sasl
    drwxr-xr-x  2 root root  4096 2007-06-10 14:57 ssl
    -rw-r--r--  1 root root    80 2007-06-11 20:10 virtusertable 
    TT
     
  16. falko

    falko Super Moderator Howtoforge Staff

    I hope you saved virtusertable with Unix linebreaks, not Windows linebreaks? If you edit the file on Windows, you must use an editor that allows you to save files with Unix linebreaks.
    Does the postmap command work now?
     
  17. tommytomato

    tommytomato New Member

    So you saying I should create the file using vi instead of a windows base program.

    I'll give it another go

    TT
     
  18. tommytomato

    tommytomato New Member

    Yes the command
    Code:
    postmap /etc/postfix/virtusertable
    vi wouldn't let me save the file, but vim did ;)

    So where do i go now :confused:

    TT
     
    Last edited: Jun 12, 2007
  19. tommytomato

    tommytomato New Member

    Ok here is what i've done

    I sent an email to the admin account on the server, it has recive the mail by the looks of it
    I now have a /home/admin/Maildir

    When using Evolution to contect I recive this message

    Now when i followed the 2nd step you pointed me too I added a user called tommytomato, I sent an email to the so call address and that bonced back, Evolution mail gives me this message on the bottom

    From: Mail Delivery System <[email protected]>

    So I'm not sure on whats going on there, but I think its the way the user was added, admin was added when I did the install and the tommytomato was added when I typed in

    Code:
    useradd -d /home/tommytomato -g users tommytomato
    TT
     
  20. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    ls -la /home/tommytomato
    ?

    I can ping rockinghamgateway.com. Is 58.7.0.171 the correct IP address?
     

Share This Page