
18th January 2008, 16:50
|
|
Junior Member
|
|
Join Date: Jan 2008
Location: amiens - france
Posts: 5
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
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.
|

18th January 2008, 17:48
|
|
Senior Member
|
|
Join Date: Apr 2006
Posts: 115
Thanks: 2
Thanked 8 Times in 7 Posts
|
|
what does it say when you run
hostname
?
|

18th January 2008, 18:48
|
|
Junior Member
|
|
Join Date: Jan 2008
Location: amiens - france
Posts: 5
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
# 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.
|

19th January 2008, 14:25
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
What's in /etc/mysql/my.cnf?
|
|
The Following 2 Users Say Thank You to falko For This Useful Post:
|
|

21st January 2008, 09:57
|
|
Junior Member
|
|
Join Date: Jan 2008
Location: amiens - france
Posts: 5
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
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.
|

21st January 2008, 14:57
|
|
Junior Member
|
|
Join Date: Jan 2008
Location: amiens - france
Posts: 5
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
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
|

21st January 2008, 23:44
|
|
Member
|
|
Join Date: Jan 2008
Posts: 37
Thanks: 10
Thanked 1 Time in 1 Post
|
|
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
|
|
The Following User Says Thank You to peacengell For This Useful Post:
|
|

22nd January 2008, 19:55
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
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?
|

22nd January 2008, 22:37
|
|
Member
|
|
Join Date: Jan 2008
Posts: 37
Thanks: 10
Thanked 1 Time in 1 Post
|
|
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.
|

23rd January 2008, 14:07
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
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).
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 23:49.
|
Recent comments
14 hours 37 min ago
1 day 5 min ago
1 day 54 min ago
1 day 4 hours ago
1 day 8 hours ago
1 day 9 hours ago
1 day 11 hours ago
1 day 21 hours ago
2 days 2 hours ago
2 days 3 hours ago