Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 18th January 2008, 16:50
daniel80 daniel80 is offline
Junior Member
 
Join Date: Jan 2008
Location: amiens - france
Posts: 5
Thanks: 2
Thanked 1 Time in 1 Post
Send a message via MSN to daniel80
Default The Perfect Setup - Debian Etch (Debian 4.0) some trouble

firstly, sorry for my english, i am a frenchie.
i do the howto step by step, at the end of page 4,i had that
tcp 0 0 localhost:mysql *:* LISTEN 2723/mysqld
instead of
tcp 0 0 *:mysql *:* LISTEN 2723/mysqld

the step before i don't find bind-address = 127.0.0.1
but something about socket-please what is wrong here?

many thanks

Last edited by daniel80; 18th January 2008 at 16:57.
Reply With Quote
The Following User Says Thank You to daniel80 For This Useful Post:
adamassasda291 (28th June 2013)
Sponsored Links
  #2  
Old 18th January 2008, 17:48
unclecameron unclecameron is offline
Senior Member
 
Join Date: Apr 2006
Posts: 115
Thanks: 2
Thanked 8 Times in 7 Posts
Default

what does it say when you run

hostname

?
Reply With Quote
  #3  
Old 18th January 2008, 18:48
daniel80 daniel80 is offline
Junior Member
 
Join Date: Jan 2008
Location: amiens - france
Posts: 5
Thanks: 2
Thanked 1 Time in 1 Post
Send a message via MSN to daniel80
Default

# hostname
or #hostname -f
return
servtel.daniel80.net
it's my server domaine

thanks
daniel

Last edited by daniel80; 18th January 2008 at 19:06.
Reply With Quote
  #4  
Old 19th January 2008, 14:25
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

What's in /etc/mysql/my.cnf?
__________________
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
The Following 2 Users Say Thank You to falko For This Useful Post:
adamassasda291 (19th May 2013), daniel80 (21st January 2008)
  #5  
Old 21st January 2008, 09:57
daniel80 daniel80 is offline
Junior Member
 
Join Date: Jan 2008
Location: amiens - france
Posts: 5
Thanks: 2
Thanked 1 Time in 1 Post
Send a message via MSN to daniel80
Default

the content is:

first a lot of line beginning by #
and
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock
# Here is entries for some specific programs
# The following values assume you have at least 32M ram
# This was formally known as [safe_mysqld]. Both versions are currently parsed.
[mysqld_safe]
socket = /var/run/mysqld/mysqld.sock
nice = 0
[mysqld]
#
# * Basic Settings
#
user = mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
"/etc/mysql/my.cnf" 140 lines, 3638 characters

Many thanks for your replies.

my config p3 766mhz 128 mo ram 100mbps disk 8go ide
i use putty to configure just a the beginning of step 5 of the howto .

Last edited by daniel80; 21st January 2008 at 10:10.
Reply With Quote
  #6  
Old 21st January 2008, 14:57
daniel80 daniel80 is offline
Junior Member
 
Join Date: Jan 2008
Location: amiens - france
Posts: 5
Thanks: 2
Thanked 1 Time in 1 Post
Send a message via MSN to daniel80
Default

I relocated the server since the beginning by following step by step your howto
Now it works
I am sorry to have you bored

Many thanks
Reply With Quote
  #7  
Old 21st January 2008, 23:44
peacengell peacengell is offline
Member
 
Join Date: Jan 2008
Posts: 37
Thanks: 10
Thanked 2 Times in 2 Posts
Smile hi thanks for the tut (i have some problem till page 5)

The Perfect Setup - Debian Etch (Debian 4.0) - Page 5
till page 4 everythings works perfect
but on page 5 the problem ocur for me
i have a toshiba laptop and vista install then i install vmware and install debian 4.0 etch rc 1
and i use putty to administer it just for learning purpose cose i'm fed up using win S***t Vista
so i learning linux and i found debian good ilike it hihi...
the problem i use all on the tut but till here i stuk
11 Postfix With SMTP-AUTH And TLS

In order to install Postfix with SMTP-AUTH and TLS do the following steps:

apt-get install postfix libsasl2 sasl2-bin libsasl2-modules libdb3-util procmail

You will be asked two questions. Answer as follows:

General type of configuration? <-- Internet Site
Mail name? <-- server1.example.com

Then run

dpkg-reconfigure postfix

Again, you'll be asked some questions:

General type of configuration? <-- Internet Site
Where should mail for root go <-- [blank]
Mail name? <-- server1.example.com
Other destinations to accept mail for? (blank for none) <-- server1.example.com, localhost.example.com, localhost.localdomain, localhost
Force synchronous updates on mail queue? <-- No
Local networks? <-- 127.0.0.0/8
Use procmail for local delivery? <-- Yes
Mailbox size limit <-- 0
Local address extension character? <-- +
Internet protocols to use? <-- all
Remove ads

Next, do this:

postconf -e 'smtpd_sasl_local_domain ='
postconf -e 'smtpd_sasl_auth_enable = yes'
postconf -e 'smtpd_sasl_security_options = noanonymous'
postconf -e 'broken_sasl_auth_clients = yes'
postconf -e 'smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination'
postconf -e 'inet_interfaces = all'
echo 'pwcheck_method: saslauthd' >> /etc/postfix/sasl/smtpd.conf
echo 'mech_list: plain login' >> /etc/postfix/sasl/smtpd.conf

Afterwards we create the certificates for TLS:

mkdir /etc/postfix/ssl
cd /etc/postfix/ssl/
openssl genrsa -des3 -rand /etc/hosts -out smtpd.key 1024

chmod 600 smtpd.key
openssl req -new -key smtpd.key -out smtpd.csr

openssl x509 -req -days 3650 -in smtpd.csr -signkey smtpd.key -out smtpd.crt

openssl rsa -in smtpd.key -out smtpd.key.unencrypted

mv -f smtpd.key.unencrypted smtpd.key
openssl req -new -x509 -extensions v3_ca -keyout cakey.pem -out cacert.pem -days 3650

Next we configure Postfix for TLS:

postconf -e 'smtpd_tls_auth_only = no'
postconf -e 'smtp_use_tls = yes'
postconf -e 'smtpd_use_tls = yes'
postconf -e 'smtp_tls_note_starttls_offer = yes'
postconf -e 'smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key'
postconf -e 'smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt'
postconf -e 'smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem'
postconf -e 'smtpd_tls_loglevel = 1'
postconf -e 'smtpd_tls_received_header = yes'
postconf -e 'smtpd_tls_session_cache_timeout = 3600s'
postconf -e 'tls_random_source = dev:/dev/urandom'
postconf -e 'myhostname = server1.example.com'

The file /etc/postfix/main.cf should now look like this:

cat /etc/postfix/main.cf

# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

# TLS parameters
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = server1.example.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = server1.example.com, localhost.example.com, localhost.localdomain, localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom

Restart Postfix:

/etc/init.d/postfix restart

Authentication will be done by saslauthd. We have to change a few things to make it work properly. Because Postfix runs chrooted in /var/spool/postfix we have to do the following:

mkdir -p /var/spool/postfix/var/run/saslauthd

Now we have to edit /etc/default/saslauthd in order to activate saslauthd. Set START to yes and change the line OPTIONS="-c" to OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd -r":

vi /etc/default/saslauthd

#
# Settings for saslauthd daemon
#

# Should saslauthd run automatically on startup? (default: no)
START=yes

# Which authentication mechanisms should saslauthd use? (default: pam)
#
# Available options in this Debian package:
# getpwent -- use the getpwent() library function
# kerberos5 -- use Kerberos 5
# pam -- use PAM
# rimap -- use a remote IMAP server
# shadow -- use the local shadow password file
# sasldb -- use the local sasldb database file
# ldap -- use LDAP (configuration is in /etc/saslauthd.conf)
#
# Only one option may be used at a time. See the saslauthd man page
# for more information.
#
# Example: MECHANISMS="pam"
MECHANISMS="pam"

# Additional options for this mechanism. (default: none)
# See the saslauthd man page for information about mech-specific options.
MECH_OPTIONS=""

# How many saslauthd processes should we run? (default: 5)
# A value of 0 will fork a new process for each connection.
THREADS=5

# Other options (default: -c)
# See the saslauthd man page for information about these options.
#
# Example for postfix users: "-c -m /var/spool/postfix/var/run/saslauthd"
# Note: See /usr/share/doc/sasl2-bin/README.Debian
OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd -r"

Now start saslauthd:

/etc/init.d/saslauthd start

To see if SMTP-AUTH and TLS work properly now run the following command:

telnet localhost 25

ehlo localhost(i get this)

server:/etc/postfix/ssl# /etc/init.d/saslauthd start
server:/etc/postfix/ssl# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.

ehlo localhost



and it's stay on this doing nothing
when i type quit (do nothing )
what is the problem ....... anyone can help me
thanks to anyone help thanks a lot
and why it does this ......
help thanks
Reply With Quote
The Following User Says Thank You to peacengell For This Useful Post:
adamassasda291 (25th June 2013)
  #8  
Old 22nd January 2008, 19:55
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by peacengell
and it's stay on this doing nothing
when i type quit (do nothing )
what is the problem ....... anyone can help me
thanks to anyone help thanks a lot
and why it does this ......
help thanks
Any errors in your mail log? What's in /etc/mailname?
__________________
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
The Following User Says Thank You to falko For This Useful Post:
adamassasda291 (28th June 2013)
  #9  
Old 22nd January 2008, 22:37
peacengell peacengell is offline
Member
 
Join Date: Jan 2008
Posts: 37
Thanks: 10
Thanked 2 Times in 2 Posts
Default here what i have in /etc/mailname

server:/# cat /etc/mailname
server.peacengell.org
server:/#

and uname -a
server:/# uname -a
Linux server.peacengell.org 2.6.18-5-686 #1 SMP Mon Dec 24 16:41:07 UTC 2007 i686 GNU/Linux
server:/#

Last edited by peacengell; 22nd January 2008 at 22:40.
Reply With Quote
The Following User Says Thank You to peacengell For This Useful Post:
adamassasda291 (21st June 2013)
  #10  
Old 23rd January 2008, 14:07
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

Code:
mh1:~# dig server.peacengell.org

; <<>> DiG 9.3.4 <<>> server.peacengell.org
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 36029
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;server.peacengell.org.         IN      A

;; AUTHORITY SECTION:
org.                    0       IN      SOA     a0.org.afilias-nst.info. noc.afilias-nst.info. 2008013237 1800 900 604800 86400

;; Query time: 47 msec
;; SERVER: 213.191.92.84#53(213.191.92.84)
;; WHEN: Wed Jan 23 14:07:14 2008
;; MSG SIZE  rcvd: 102

mh1:~#
Please create an A record for server.peacengell.org (or add server.peacengell.org to /etc/hosts).
__________________
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
The Following User Says Thank You to falko For This Useful Post:
adamassasda291 (25th June 2013)
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
Perfect setup Debian Etch ISPConfig - DNS Server kdclaver Installation/Configuration 16 28th December 2007 01:39
The Perfect Xen 3.1.0 Setup For Debian Etch (i386) ko0nz HOWTO-Related Questions 8 13th November 2007 20:48
The Perfect Setup - Debian Etch (Debian 4.0) mysql question paul55 HOWTO-Related Questions 9 4th November 2007 11:28
The Perfect Setup - Debian Etch: smart_host bidevi Server Operation 14 18th August 2007 19:11
Do you have The Perfect Setup - Debian Etch ? Dekalb Installation/Configuration 2 2nd June 2007 00:16


All times are GMT +2. The time now is 23:53.


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