HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   The Perfect Server - Ubuntu 10.04 [ISPConfig 3]-configuration (http://www.howtoforge.com/forums/showthread.php?t=46293)

Happy 2nd June 2010 05:28

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

falko 3rd June 2010 14:18

If you want system users, you should use the tutorial for ISPConfig 2: http://www.howtoforge.com/perfect-se...nx-ispconfig-2

Happy 3rd June 2010 23:16

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

falko 4th June 2010 12:35

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

Happy 7th June 2010 03:18

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

falko 7th June 2010 13:55

Quote:

Originally Posted by Happy (Post 230413)
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

Happy 8th June 2010 06:09

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

Happy 8th June 2010 21:46

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 [::]: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
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

Happy 9th June 2010 04:58

Quote:

Originally Posted by Happy (Post 230706)
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 [::]: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
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?

falko 9th June 2010 14:25

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


All times are GMT +2. The time now is 09:20.

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