Nieuws:

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: Opzetten van mailserver (Postfix) - ehlo command not found  (gelezen 2578 keer)

jazzguitarplayer

  • Gast
Opzetten van mailserver (Postfix) - ehlo command not found
« Gepost op: 2009/03/18, 20:23:58 »
Beste linux freaks,

Ik probeer op het moment een mail server op te zetten in Ubuntu 8.04. Ik ben op het gebied van linux nog een beginner en heb daarom jullie hulp nodig.
Na het volgen van de tutorial loop ik vast bij het uitvoeren van de commando: ehlo mail.domein-naam.nl. De output hiervan is: bash: ehlo: command not found
Ik snap niet waarom ubuntu deze commando niet herkent. Als ik een telnet sessie doe krijg ik als output:

telnet mail.domein-naam.nl 25
Trying [ip adres]...
Connected to mail.domein-naam.nl.
Escape character is '^]'.


Hierna heb ik de configuratie nagelopen zonder resultaat. Tevens heb ik alles opnieuw geinstalleerd door alles te deinstalleren via apt-get remove --purge.

Tutorial:
https://help.ubuntu.com/8.04/serverguide/C/postfix.html


/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 (Ubuntu)
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

readme_directory = no

# TLS parameters
smtpd_tls_cert_file = /etc/ssl/certs/smtpd.crt
smtpd_tls_key_file = /etc/ssl/private/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_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 = mail.domein-naam.nl
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = mail.domein-naam.nl, localhost.localdomain, localhost
relayhost =
mynetworks = 127.0.0.0/8, 192.168.1/24
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
home_mailbox = Maildir/
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth-client
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_sasl_auth_enable = 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/ssl/certs/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom

« Laatst bewerkt op: 2009/03/19, 00:58:12 door jazzguitarplayer »

Offline ivo

  • Lid
  • Steunpunt: Nee
Re: Opzetten van mailserver (Postfix) - ehlo command not found
« Reactie #1 Gepost op: 2009/03/18, 21:33:02 »

Na het volgen van de tutorial loop ik vast bij het uitvoeren van de commando: ehlo mail.domein-naam.nl. De output hiervan is: bash: ehlo: command not found
Ik snap niet waarom ubuntu deze commando niet herkent.


ehlo is geen unix opdracht. Het is een opdracht binnen het SMTP protocol, dat door je e-mail client aan de mail-server wordt gegeven om zich aan te melden.

Hier staat een aardig verhaal;

http://email.about.com/cs/standards/a/smtp.htm



There are only 10 types of people in the world; those who understand binary and those who don't.

jazzguitarplayer2

  • Gast
Re: Opzetten van mailserver (Postfix) - ehlo command not found
« Reactie #2 Gepost op: 2009/03/19, 22:39:29 »
Hoi Ivo,

bedankt voor je reactie, ik heb het gelezen maar ik kom helaas hier niet mee verder. Ik krijg geen output als ik ehlo localhost 25 doe of ehlo mail.domein-naam.nl

Dit zijn de logs files van /var/log/mail.err

Mar 19 22:27:27 dc-ubuntu postfix/tlsmgr[6760]: fatal: open database /var/lib/postfix/smtp_scache.db: Permission denied
Mar 19 22:28:28 dc-ubuntu postfix/tlsmgr[6761]: fatal: open database /var/lib/postfix/smtp_scache.db: Permission denied
Mar 19 22:29:29 dc-ubuntu postfix/tlsmgr[6762]: fatal: open database /var/lib/postfix/smtp_scache.db: Permission denied
Mar 19 22:30:30 dc-ubuntu postfix/tlsmgr[6763]: fatal: open database /var/lib/postfix/smtp_scache.db: Permission denied
Mar 19 22:31:31 dc-ubuntu postfix/tlsmgr[6764]: fatal: open database /var/lib/postfix/smtp_scache.db: Permission denied
Mar 19 22:32:32 dc-ubuntu postfix/tlsmgr[6765]: fatal: open database /var/lib/postfix/smtp_scache.db: Permission denied

Overigens heb ik op smtp_scache andere rechten gegeven


root@dc-ubuntu:/var/lib/postfix# ls -lha
total 28K
drwxr-xr-x  2 postfix postfix 4.0K 2009-03-18 18:37 .
drwxr-xr-x 56 root    root    4.0K 2009-03-18 18:25 ..
-rw-------  1 postfix postfix 1.0K 2009-03-18 19:10 prng_exch
-rwxr-xr-x  1 postfix postfix 8.0K 2009-03-19 22:37 smtpd_scache.db
-rwxr-xr-x  1 dovecot postfix 8.0K 2009-03-18 19:10 smtp_scache.db


jazzguitarplayer2

  • Gast
Re: Opzetten van mailserver (Postfix) - ehlo command not found
« Reactie #3 Gepost op: 2009/03/19, 22:43:11 »
Overigens heb ik mijn configuratie iets aangepast na wat gegoogled te hebben maar helaas zonder resultaat. Kan iemand mij hierin adviseren? Ik krijg nog steeds geen uit als ik ehlo localhost 25 doe of ehlo mail.domein-naam.nl


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 (Ubuntu)
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

readme_directory = no

# TLS parameters
smtpd_tls_cert_file = /etc/ssl/certs/smtpd.crt
smtpd_tls_key_file = /etc/ssl/private/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_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 = dc-ubuntu.domein-naam.nl
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = dc-ubuntu.domein-naam.nl, domein-naam.nl, localhost.domein-naam.nl, localhost
relayhost =
mynetworks = 192.168.0.0/16
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
home_mailbox = Maildir/
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth-client
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_sasl_auth_enable = 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/ssl/certs/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom

jazzguitarplayer2

  • Gast
Re: Opzetten van mailserver (Postfix) - ehlo command not found
« Reactie #4 Gepost op: 2009/03/19, 23:59:23 »
aha nu begrijp ik je ivo. nu krijg ik alles werkend door goed in de logfiles te kijken.

ik heb de volgende commando gebruikt:

chown postfix:postfix /var/lib/postfix/smtp_scache.db -R
en daarna
chmod 666 /var/lib/postfix/smtp_scache.db -R

Mar 19 23:25:25 dc-ubuntu postfix/tlsmgr[6909]: fatal: open database /var/lib/postfix/smtp_scache.db: Permission denied
Mar 19 23:26:26 dc-ubuntu postfix/tlsmgr[6911]: fatal: open database /var/lib/postfix/smtp_scache.db: Permission denied
Mar 19 23:27:27 dc-ubuntu postfix/tlsmgr[6912]: fatal: open database /var/lib/postfix/smtp_scache.db: Permission denied
Mar 19 23:28:28 dc-ubuntu postfix/tlsmgr[6915]: fatal: open database /var/lib/postfix/smtp_scache.db: Permission denied
Mar 19 23:29:29 dc-ubuntu postfix/tlsmgr[6916]: fatal: open database /var/lib/postfix/smtp_scache.db: Permission denied
Mar 19 23:30:30 dc-ubuntu postfix/tlsmgr[6917]: fatal: open database /var/lib/postfix/smtp_scache.db: Permission denied
Mar 19 23:31:31 dc-ubuntu postfix/tlsmgr[6918]: fatal: open database /var/lib/postfix/smtp_scache.db: Permission denied
Mar 19 23:32:32 dc-ubuntu postfix/tlsmgr[6919]: fatal: open database /var/lib/postfix/smtp_scache.db: Permission denied
Mar 19 23:33:33 dc-ubuntu postfix/tlsmgr[6946]: fatal: open database /var/lib/postfix/smtp_scache.db: Permission denied
Mar 19 23:34:34 dc-ubuntu postfix/tlsmgr[7096]: fatal: open database /var/lib/postfix/smtp_scache.db: Permission denied
Mar 19 23:35:35 dc-ubuntu postfix/tlsmgr[7097]: fatal: open database /var/lib/postfix/smtp_scache.db: Permission denied
Mar 19 23:36:36 dc-ubuntu postfix/tlsmgr[7099]: fatal: open database /var/lib/postfix/smtp_scache.db: Permission denied
Mar 19 23:37:37 dc-ubuntu postfix/tlsmgr[7102]: fatal: open database /var/lib/postfix/smtp_scache.db: Permission denied
Mar 19 23:38:38 dc-ubuntu postfix/tlsmgr[7105]: fatal: open database /var/lib/postfix/smtp_scache.db: Permission denied

Dit kan gesloten worden

Offline ivo

  • Lid
  • Steunpunt: Nee
Re: Opzetten van mailserver (Postfix) - ehlo command not found
« Reactie #5 Gepost op: 2009/03/20, 20:47:32 »

Dit kan gesloten worden


Moet je zelf doen door [OPGELOST] in de topic van je eerste bericht te zetten.
There are only 10 types of people in the world; those who understand binary and those who don't.