Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 2nd June 2010, 05:28
Happy Happy is offline
Member
 
Join Date: Jun 2007
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
Default The Perfect Server - Ubuntu 10.04 [ISPConfig 3]-configuration

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
Reply With Quote
Sponsored Links
  #2  
Old 3rd June 2010, 14:18
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

If you want system users, you should use the tutorial for ISPConfig 2: http://www.howtoforge.com/perfect-se...nx-ispconfig-2
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 3rd June 2010, 23:16
Happy Happy is offline
Member
 
Join Date: Jun 2007
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
  #4  
Old 4th June 2010, 12:35
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

The first two pages of the tutorials are identical, but then the setups start to differ.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 7th June 2010, 03:18
Happy Happy is offline
Member
 
Join Date: Jun 2007
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
Post

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

Thanks

Last edited by Happy; 15th June 2010 at 15:10.
Reply With Quote
  #6  
Old 7th June 2010, 13:55
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

Quote:
Originally Posted by Happy View Post
I am assuming just to have system users, I need only install MySQL, Postfix and Courier and I am done, correct?
That's right. Take a look here: http://www.howtoforge.com/forums/showthread.php?t=2
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 8th June 2010, 06:09
Happy Happy is offline
Member
 
Join Date: Jun 2007
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

etc/postfix/virtusertable'
/etc/postfix/local-host-names

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
your.server.name
localhost.your.server.name
example.com
yourdomain.com/etc/postfix/virtusertable looks like this:



info@yourdomain.com sample_user
thomas@example.com sample_user
webmaster@yourdomain.com sample_userEmails for info@yourdomain.com, thomas@example.com and webmaster@yourdomain.com 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 by Happy; 8th June 2010 at 17:54.
Reply With Quote
  #8  
Old 8th June 2010, 21:46
Happy Happy is offline
Member
 
Join Date: Jun 2007
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Here is the output of netstat -tap

root@mail:~# 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 mail.server.net:ssh 192.168.1.117:2812 ESTABLISHED 9925/0
tcp6 0 0 [::]op3 [::]:* 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 [::]op3s [::]:* LISTEN 8478/couriertcpd
and

postconf -root@mail:~# 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 = mail.server.net
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/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
root@mail:~#n
Reply With Quote
  #9  
Old 9th June 2010, 04:58
Happy Happy is offline
Member
 
Join Date: Jun 2007
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Happy View Post
Here is the output of netstat -tap

root@mail:~# 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 mail.server.net:ssh 192.168.1.117:2812 ESTABLISHED 9925/0
tcp6 0 0 [::]op3 [::]:* 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 [::]op3s [::]:* LISTEN 8478/couriertcpd
and

postconf -root@mail:~# 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 = mail.server.net
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/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
root@mail:~#n
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
/etc/postfix/local-host-names
/etc/postfix/virtusertable
/etc/virtusertable.db

Do I need to reinstall postfix?
Reply With Quote
  #10  
Old 9th June 2010, 14:25
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
 
Default

You can create/modify the files with a text editor, e.g. vi:
Code:
vi /etc/postfix/virtusertable
Code:
vi /etc/postfix/local-host-names
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu 10.04 - client denied by server configuration muucest Installation/Configuration 3 2nd September 2014 23:35
The Perfect Server - Ubuntu Jaunty Jackalope (Ubuntu 9.04) [ISPConfig 2] AsDsL HOWTO-Related Questions 5 10th May 2009 18:06
Perfect Server Ubuntu 8.10 vs. 8.04 LTS atjensen11 HOWTO-Related Questions 1 13th April 2009 11:07
The Perfect Server - Ubuntu 8.10 [ISPConfig 3] - minus ISPConfig theRick HOWTO-Related Questions 3 13th April 2009 11:03
The Perfect Setup - Ubuntu 6.10 Server Question n74jw HOWTO-Related Questions 5 27th January 2008 12:14


All times are GMT +2. The time now is 13:57.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.