Starting Nmap 6.00 ( http://nmap.org ) at 2014-09-08 04:15 CEST Nmap scan report for localhost (127.0.0.1) Host is up (0.00023s latency). Other addresses for localhost (not scanned): 127.0.0.1 Not shown: 1991 closed ports PORT STATE SERVICE 22/tcp open ssh 25/tcp open smtp 53/tcp open domain 111/tcp open rpcbind 389/tcp open ldap 53/udp open domain 67/udp open|filtered dhcps 111/udp open rpcbind 682/udp open|filtered xfr
Nmap done: 1 IP address (1 host up) scanned in 1.30 seconds
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: ssl-cert Suggested packages: postfix-mysql postfix-pgsql postfix-ldap postfix-pcre sasl2-bin dovecot-common resolvconf postfix-cdb ufw postfix-doc openssl-blacklist The following packages will be REMOVED: exim4 exim4-base exim4-config exim4-daemon-light The following NEW packages will be installed: postfix ssl-cert 0 upgraded, 2 newly installed, 4 to remove and 37 not upgraded. Need to get 1,715 kB of archives. After this operation, 35.8 kB of additional disk space will be used. Do you want to continue [Y/n]?
Get:1 http://ftp.belnet.be/debian/ wheezy/main ssl-cert all 1.0.32 [19.5 kB] Get:2 http://http.debian.net/debian/ wheezy-backports/main postfix amd64 2.11.1- 1~bpo70+1 [1,695 kB] Fetched 1,715 kB in 21s (79.0 kB/s) Preconfiguring packages ... (Reading database ... 29602 files and directories currently installed.) Removing exim4 ... Selecting previously unselected package ssl-cert. (Reading database ... 29599 files and directories currently installed.) Unpacking ssl-cert (from .../ssl-cert_1.0.32_all.deb) ... Processing triggers for man-db ... dpkg: exim4-config: dependency problems, but removing anyway as you requested: exim4-base depends on exim4-config (>= 4.30) | exim4-config-2; however: Package exim4-config is to be removed. Package exim4-config-2 is not installed. Package exim4-config which provides exim4-config-2 is to be removed. exim4-base depends on exim4-config (>= 4.30) | exim4-config-2; however: Package exim4-config is to be removed. Package exim4-config-2 is not installed. Package exim4-config which provides exim4-config-2 is to be removed.
[%]
(Reading database ... 29608 files and directories currently installed.) Removing exim4-config ... dpkg: exim4-daemon-light: dependency problems, but removing anyway as you reques ted: bsd-mailx depends on default-mta | mail-transport-agent; however: Package default-mta is not installed. Package exim4-daemon-light which provides default-mta is to be removed. Package mail-transport-agent is not installed. Package exim4-daemon-light which provides mail-transport-agent is to be remove d. bsd-mailx depends on default-mta | mail-transport-agent; however: Package default-mta is not installed. Package exim4-daemon-light which provides default-mta is to be removed. Package mail-transport-agent is not installed. Package exim4-daemon-light which provides mail-transport-agent is to be remove d.
Removing exim4-daemon-light ... [ ok ] Stopping MTA: exim4_listener. Processing triggers for man-db ... Selecting previously unselected package postfix. (Reading database ... 29547 files and directories currently installed.) Unpacking postfix (from .../postfix_2.11.1-1~bpo70+1_amd64.deb) ... Processing triggers for man-db ... Setting up ssl-cert (1.0.32) ... hostname: Name or service not known make-ssl-cert: Could not get FQDN, using "MAIL.mydomain.lab". make-ssl-cert: You may want to fix your /etc/hosts and/or DNS setup and run make-ssl-cert: make-ssl-cert generate-default-snakeoil --force-overwrite make-ssl-cert: again. Setting up postfix (2.11.1-1~bpo70+1) ... Adding group `postfix' (GID 110) ... Done. Adding system user `postfix' (UID 107) ... Adding new user `postfix' (UID 107) with group `postfix' ... Not creating home directory `/var/spool/postfix'. Creating /etc/postfix/dynamicmaps.cf [5]
Adding tcp map entry to /etc/postfix/dynamicmaps.cf Adding sqlite map entry to /etc/postfix/dynamicmaps.cf Adding group `postdrop' (GID 111) ... Done.
Postfix was not set up. Start with cp /usr/share/postfix/main.cf.debian /etc/postfix/main.cf . If you need to make changes, edit /etc/postfix/main.cf (and others) as needed. To view Postfix conf values, see postconf(1).
After modifying main.cf, be sure to run '/etc/init.d/postfix reloa
(Reading database ... 29738 files and directories currently instal Removing exim4-base ... Processing triggers for man-db ... root@MAIL:~#
# See /usr/share/postfix/main.cf.dist for 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
Ve"'!a"n% en aan(assn%en )an *et $onf%&"ate+estan,
$6origin 7 1et)1$!iln!$e (e eerste regel v!n 1et)1$!iln!$e +ordt !!n.ien !ls de do$ein/n!$e +!!rvoor de $!ilserver $!ils .!l verst-ren2 (it is in ons gev!l -iter!!rd $6do$!in2l!b
[8]
s$tpd9b!nner 7 :$6*ostn!$e "SMTP :$!il9n!$e ((ebi!n1;<=) Melding die je te .ien rijgt !ls je een verbinding $!en $et de $!ilserver vi! telnet2 biff 7 no
!ppend9dot9$6do$!in 7 no Met de.e p!r!$eter +ordt bep!!ld of *et do$ein !l d!n niet $oet toegevoegd +orden n! de *ostn!$e v!n de server2
el!69+!rning9ti$e 7 %* Bep!!lt de tijd die +ordt ge+!)*t voor!leer !!n de .ender te l!ten +eten d!t een beri)*t in de >-e-e blijft st!!n2 (it !n oo gedis!bled +orden door een n-l+!!rde $ee te geven2
5ierbij !n je een )o$$!ndo $eegegeven +!!r$ee de $!il $oet !fgeleverd +orden bij de ontv!nger v!n de $!il2 (ef!-lt +ordt er niets $eegegeven $et de.e optie2 (it beteent d!t *et pro)es voor *et !fleveren v!n de $!il (lo)!l)? +ordt -itgevoerd $et *et -serid v!n de ontv!nger v!n de $!il2 "en -it.ondering *ierop is *et verst-ren v!n $!il n!!r de -ser root2 (oord!t er een !li!s $oet $eegegeven +orden voor de.e -ser +ordt de $!il !fgeleverd $et *et -serid v!n de !li!s en vor$t dit d-s geen beveiligingsproblee$2
Mail:~# postconf e mydestination = mydomain.lab, mail.mydomain.lab,localhost.mydomain.lab, localhost
Voor de beste$$ingen $eegegeven n! @$6destin!tionA +orden de $!ils lo!!l !fge*!ndeld en !fgeleverd in de $!ildir v!n de beste$$eling door de lo)!l de!$on2
$6do$!in 7 $6do$!in2l!b
Mail:~# postconf e mydomain = mydomain.lab
(e n!!$ +!!r$ee *et do$ein geend is in (<S2
$6*ostn!$e 7 $!il2$6do$!in2l!b [B]
Mail:~# postconf e myhostname = mail.mydomain.lab
(e f-ll6/>-!lified do$!in n!$e +!!r$ee de (MT&) server geend is in (<S? n!!$ $eegegeven in de MC/re)ord2
$6net+ors 7 1B22182D2D118
Mail:~# postconf e mynetworks = 172.16.0.0/16, 10.0.0.0/8, 192.168.x.y/24
Eijst v!n net+eren die $!il -nnen verst-ren vi! de postfi# MT&2
*o$e9$!ilbo# 7 M!ildir1 Mail:~# postconf e home_mailbox = Maildir/
Fe iest voor *et $!ildir/for$!!t
!li!s9$!ps 7 *!s*:1et)1!li!ses
Mail:~# postconf e alias_maps = hash:/etc/aliases
!li!s9d!t!b!se 7 *!s*:1et)1!li!ses
Mail:~# postconf e alias_database = hash:/etc/aliases
Eo!tie +!!r de gegevens o$trent !li!ses opgesl!gen +orden? dit +ordt voor!fgeg!!n door @*!s*:A2 *!s*: geeft +eer op +ele $!nier gebr-ier en !li!s ges)*eiden +orden2 4n dit gev!l is dit d-s door een . 2
/. Postfx sta"ten
Mail:~# invoke-rc.d postfix start (of service postfix start)
3aste" 5et postfi# $!ster/pro)ess d!t postfi# de!$ons opst!rt? indien nodig2 Voor!l de!$ons voor *et ver.enden en ontv!ngen v!n $!ils? .o+el lo!!l !ls over *et net+er
43%" (e.e de!$on +!)*t op ino$ende en -itg!!nde $!ils en .orgt ervoor d!t .e bij de j-iste pro)essen tere)*t o$en .od!t .e ver+ert -nnen +orden2
[G]
($'&( Pro)es d!t +!)*t tot +!nneer er ino$ende $!ils !fgeleverd +orden in de $!ildrop/ dire)tor6 en .e doorgeeft !!n de )le!n-p de!$on2
0e!'e ("o$essen 'o3en n a$te +- *et ont)an%en )an 3a!s2 M4(, Ver+ert HHn $!il per )onne)tie en geeft de.e door !!n de )le!n-p/de!$on2
$!ean&( Ver+ert ino$ende $!ils door de.e in de in)o$ing >-e-e te pl!!tsen? d!!rn! +ordt de >-e-e/$!n!ger *ierv!n op de *oogte gebr!)*t2
t")a! "e1"te (e!$on die onder )ontrole v!n de $!ster/ de!$on dr!!it? *ij *!ndelt een bep!!ld !!nt!l ino$ende en -itg!!nde )onne)ties !f2 I!nneer *et $!#i$!!l !!nt!l )onne)ties bereit is? st!rt de $!ster een volgende trivi!l/re+rite de!$on2 3a!,"o( M!ils die ver+ert +erden door send$!il/de!$on $!!r nog niet door de pi)-p/de!$on ver+ert +erden0 +orden in de $!ildrop/>-e-e gepl!!tst2 4n de.e >-e-e -nnen oo $!ils gepl!!tst +orden !ls postfi# niet !)tief is2 I!nneer postfi# +ordt opgest!rt +orden de.e $!ils verder ver+ert2 (ost,"o( $!!t een file !!n in de $!ildrop/dire)tor6 en pl!!tst de $!il/in*o-d in de.e dire)tor62
Eventuele Foutmelding bij het opstarten van postfix : Bij *et opst!rten v!n postfi# !n .i)* een fo-t$elding voordoen in /var/log/mail.log $et betreing tot *et openen v!n de !li!ses/ d!t!b!se2 (Sep 21 2D:18:DD M!il postfi#1s$tpd[3D21]: f!t!l: open d!t!b!se 1et)1!li!ses2db: <o s-)* file or dire)tor6) oplossing : M!il:JK r$ /f 1et)1!li!ses2db M!il:JK ne+!li!ses ($!!t opnie-+ de file 1et)1!li!ses2db !!n) M!il:JK invoe/r)2d postfi# rest!rt
[L]
5es!&t : bij *et opst!rten v!n postfi# +orden 3 de!$ons opgest!rt? dit +ijst op de $od-l!ire str-)t--r2 M postfi# (!ls -ser root) M pi)-p (!ls -ser postfi#) M >$gr (!ls -ser postfi#)
/. 6e+"&'e"s aan3a'en
Aan3a'en )an ,e (7NIX) %e+"&'e"s en *o3e,"e$to"es root@MAIL:~# adduser jan Adding user `jan' ... Adding new group `jan' (1001) ... Adding new user `jan' (1001) with group `jan' ... Creating home directory `/home/jan' ... Copying files from `/etc/skel' ... Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully Changing the user information for jan Enter the new value, or press ENTER for the default Full Name []: Room Number []: Work Phone []: Home Phone []: Other []: Is the information correct? [Y/n] y
root@MAIL:~# adduser piet Adding user `piet' ... Adding new group `piet' (1002) ... Adding new user `piet' (1002) with group `piet' ... The home directory `/home/piet' already exists. Not copying from `/etc/skel'. Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully Changing the user information for piet Enter the new value, or press ENTER for the default Full Name []: Room Number []: Work Phone []: Home Phone []: Other []: Is the information correct? [Y/n] y
root@MAIL:~# adduser joris Adding user `joris' ... Adding new group `joris' (1003) ... Adding new user `joris' (1003) with group `joris' ... Creating home directory `/home/joris' ... Copying files from `/etc/skel' ... [1D]
Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully Changing the user information for joris Enter the new value, or press ENTER for the default Full Name []: Room Number []: Work Phone []: Home Phone []: Other []: Is the information correct? [Y/n] y
root@MAIL:~# adduser korneel Adding user `korneel' ... Adding new group `korneel' (1004) ... Adding new user `korneel' (1004) with group `korneel' ... Creating home directory `/home/korneel' ... Copying files from `/etc/skel' ... Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully Changing the user information for korneel Enter the new value, or press ENTER for the default Full Name []: Room Number []: Work Phone []: Home Phone []: Other []: Is the information correct? [Y/n] y root@MAIL:~#
Belet de $!ilgebr-iers d!t .e -nnen inloggen op de server door een v!lse s*ell in te stellen in /etc/passwd.
root@MAIL:~# man newusers NEWUSERS(8) System Management Commands NEWUSERS(8) NAME newusers - update and create new users in batch
SYNOPSIS newusers [options] [file]
DESCRIPTION The newusers command reads a file (or the standard input by default) and uses this information to update a set of existing users or to create new users. Each line is in the same format as the standard password file (see passwd(5)) with the exceptions explained below:
It can be the name of a new user or the name of an existing user (or an user created before by newusers). In case of an existing user, the user's information will be changed, otherwise a new user will be created.
M!! lo!!l een )onne)tie op poort 25 v!n de server (lo)!l*ost) 1B22182D21) vi! een telnet/sessie en probeer een $!il te verst-ren n!!r gebr-ier piet2
root@MAIL:~# telnet localhost 25
Trying ::1... Connected to localhost. Escape character is '^]'. 220 Mail.mydomain.lab ESMTP Postfix (Debian/GNU) mail from:root@localhost 250 2.1.0 Ok rcpt to:jan@mydomain.lab 451 4.3.0 <jan@mydomain.lab>: Temporary lookup failure
5et is d-idelij d!t de gebr-ier j!n door *et s6stee$ niet gevonden !n +orden2 (!!ro$ voer je *et )o$$!ndo newaliases -it o$ de !li!ssen opnie-+ te inde#eren2
root@MAIL:~# newaliases
*ttp:11+++2postfi#2org1!li!ses252*t$l Normally, the aliases(5) table is specified as a text file that serves as input to the postalias(1) command. The result, an indexed file in dbm or db format, is used for fast lookup by the mail system. Execute the command newaliases in order to rebuild the indexed file after changing the Postfix alias database.
root@MAIL:~# telnet localhost 25
Trying ::1... Connected to localhost. Escape character is '^]'. 220 Mail.mydomain.lab ESMTP Postfix (Debian/GNU) mail from:jan@mydomain.lab 250 2.1.0 Ok rcpt to:piet@mydomain.lab 250 2.1.5 Ok data 354 End data with <CR><LF>.<CR><LF> subject:mail 1
Eerste mail
. 250 2.0.0 Ok: queued as 1CC95A81
Blijb!!r +ordt de gebr-ier piet n- +el *erend en de $!il o$t in de >-e-e tere)*t2 [13]
root@MAIL:~# telnet localhost 25
Trying ::1... Connected to localhost. Escape character is '^]'. 220 Mail.mydomain.lab ESMTP Postfix (Debian/GNU) ehlo s01 250-s01.mydomain.lab 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN mail from:root@localhost 250 2.1.0 Ok rcpt to:jan@mydomain.local 454 4.7.1 <jan@mydomain.local>: Relay access denied
"en gebr-ier piet in een !nder do$ein +ordt pro$pt ge+eigerd2 (Nie eerder @$6destin!tionA)
root@MAIL:~# cd /home/piet/Maildir/new/ root@MAIL:/home/piet/Maildir/new/#
Return-Path: <jan@mydomain.lab> X-Original-To: piet@mydomain.lab Delivered-To: piet@mydomain.lab Received: from localhost (localhost [IPv6:::1]) by s01.mydomain.lab (Postfix) with SMTP id 2841EA7D for <piet@mydomain.lab>; Mon, 8 Sep 2014 05:45:55 +0200 (CEST) subject: mail 1 Message-Id: <20140908034609.2841EA7D@s01.mydomain.lab> Date: Mon, 8 Sep 2014 05:45:55 +0200 (CEST) From: jan@mydomain.lab
Eerste mail root@MAIL:/home/piet/Maildir/new/#
&ls je in de *o$edire)tor6 v!n de ge!ddresseerde piet /home/piet/Maildir g!!t ijen? .ie je d!t er een $!ilbo# +erd !!nge$!!t en d!t in de dire)tor6 new $!il is toegeo$en2 "le $!il +ordt !f.onderlij opgesl!gen in een testbest!nd2
[1%]
;. Ma! ont)an%en 3et (o(<3a(
I!!r postfi# een MT&(1M(&) is? +!!r$ee je e$!il -nt verst-ren? dien je voor *et ontv!ngen v!n e$!il een !f.onderlije POP(3)14M&P Pservi)e op te .etten2 http://www.postfix.org/addon.html#pop POP/IMAP servers For howto documents, see Howtos and FAQs. (ove)ot s6ste$ i$ple$ents 4M&P !nd POP? !nd s-pports TES2 perdition s6ste$ is ! s$!rt POP14M&P ("ox= t*!t )onne)ts -sers to t*e Qrig*tQ POP14M&P server2 C6r-s 4M&P s6ste$ i$ple$ents 4M&P? POP3? !nd ,POP? l!ter versions !lso s-pport TES2 T*is soft+!re i$ple$ents its o+n priv!te $!il d!t!b!se s6ste$2 <ot for beginners2 v$!il !d$in ! set of P5P !nd P"RE s)ripts for !d$inistering virt-!l do$!ins on ! pop to!ster t*!t -ses Postfi#? Postfi# virt-!l or Co-rier 4M&P? !nd MSSTE2 Co-rier/4$!p s6ste$ provides POP3 !nd 4M&P? !nd s-pports !))ess over SSE2 T*is soft+!re s-pports t*e $!ildir/st6le $!ilbo# for$!t onl6 (one $ess!ge per file? s!$e for$!t !s >$!il)2 Tpopper s6ste$ s-pports POP3? TES (SSE)? !nd -ses t*e tr!dition!l =<4C/st6le $!ilbo# for$!t ($-ltiple $ess!ges per file? e!)* $ess!ge st!rts +it* QUro$ sender d!te222Q)2
root@mail:~# apt-get -t wheezy-backports install dovecot-pop3d dovecot- imapd Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: dovecot-core Suggested packages: ntp dovecot-gssapi dovecot-sieve dovecot-pgsql dovecot-mysql dovecot- sqlite dovecot-ldap dovecot-lmtpd dovecot-managesieved dovecot-solr The following NEW packages will be installed: dovecot-core dovecot-imapd dovecot-pop3d 0 upgraded, 3 newly installed, 0 to remove and 37 not upgraded. Need to get 4,655 kB of archives. After this operation, 8,595 kB of additional disk space will be used. Do you want to continue [Y/n]?
Creating config file /etc/dovecot/dovecot.conf with new version
Creating config file /etc/dovecot/dovecot-dict-sql.conf.ext with new version
Creating config file /etc/dovecot/dovecot-sql.conf.ext with new version
Creating config file /etc/dovecot/conf.d/10-auth.conf with new version
Creating config file /etc/dovecot/conf.d/10-director.conf with new version
Creating config file /etc/dovecot/conf.d/10-logging.conf with new version
Creating config file /etc/dovecot/conf.d/10-mail.conf with new version
Creating config file /etc/dovecot/conf.d/10-master.conf with new version
Creating config file /etc/dovecot/conf.d/10-ssl.conf with new version
Creating config file /etc/dovecot/conf.d/10-tcpwrapper.conf with new version
Creating config file /etc/dovecot/conf.d/15-lda.conf with new version
Creating config file /etc/dovecot/conf.d/15-mailboxes.conf with new version
Creating config file /etc/dovecot/conf.d/90-acl.conf with new version
Creating config file /etc/dovecot/conf.d/90-plugin.conf with new version
Creating config file /etc/dovecot/conf.d/90-quota.conf with new version
Creating config file /etc/dovecot/conf.d/auth-checkpassword.conf.ext with new version
[18]
Creating config file /etc/dovecot/conf.d/auth-deny.conf.ext with new version
Creating config file /etc/dovecot/conf.d/auth-master.conf.ext with new version
Creating config file /etc/dovecot/conf.d/auth-passwdfile.conf.ext with new version
Creating config file /etc/dovecot/conf.d/auth-sql.conf.ext with new version
Creating config file /etc/dovecot/conf.d/auth-static.conf.ext with new version
Creating config file /etc/dovecot/conf.d/auth-system.conf.ext with new version
Creating config file /etc/dovecot/conf.d/auth-vpopmail.conf.ext with new version [ ok ] Starting IMAP/POP3 mail server: dovecot. Setting up dovecot-imapd (1:2.2.9-1~bpo70+1) ...
Creating config file /etc/dovecot/conf.d/20-imap.conf with new version Setting up dovecot-pop3d (1:2.2.9-1~bpo70+1) ...
Creating config file /etc/dovecot/conf.d/20-pop3.conf with new version Processing triggers for dovecot-core ... [ ok ] Restarting IMAP/POP3 mail server: dovecot. [ ok ] Starting IMAP/POP3 mail server: dovecot.
[1B]
root@mail:~# nano /etc/dovecot/dovecot.conf
KK (ove)ot )onfig-r!tion file K Most of t*e !)t-!l )onfig-r!tion gets in)l-ded belo+2 T*e filen!$es !re first sorted b6 t*eir &SC44 v!l-e !nd p!rsed in t*!t order2 T*e DD/prefi#es in filen!$es !re intended to $!e it e!sier to -nderst!nd t*e ordering2 9n$!&,e $onf.,<>.$onf ?. Ma! ont)an%en 3et (o(<3a(. test )a te!net
M!! lo!!l een )onne)tie op poort 11D (POP) v!n de server (lo)!l*ost) 1B22182D21) vi! een telnet/sessie en probeer $!il te ontv!ngen voor gebr-ier piet2
root@mail:~# telnet localhost 110
Trying ::1... Connected to localhost. Escape character is '^]'. +OK Dovecot ready. user piet +OK pass piet Connection closed by foreign host. root@S01:~#
<! *et opgeven v!n *et p!s+oord +ordt de verbinding $et de pop/server $eteen !fgesloten .onder d-idelije fo-t$elding2
[1G]
,ij d!!ro$ *et s6stee$logboe n! o$ enige d-idelij*eid te rijgen o$trent de $ogelije oor.!!
session=<rLJUaoYCPAAAAAAAAAAAAAAAAAAAAAAB> Sep 8 06:40:16 S01 dovecot: pop3(piet): Error: open(/var/mail/piet) failed: Permission denied (euid=1002(piet) egid=1002(piet) missing +w perm: /var/mail, we're not in group 8(mail), dir owned by 0:8 mode=0775) Sep 8 06:40:16 S01 dovecot: pop3(piet): Error: Failed to autocreate mailbox INBOX:
Internal error occurred. Refer to server log for more information. [2014- 09-08 06:40:16] Sep 8 06:40:16 S01 dovecot: pop3(piet): Error: Couldn't open INBOX: Internal error occurred. Refer to server log for more information. [2014- 09-08 06:40:16] Sep 8 06:40:16 S01 dovecot: pop3(piet): Fatal: master: service(pop3): child 19155 killed with signal 11 (core dumps disabled) Sep 8 06:40:16 S01 kernel: [18831.273589] pop3[19155]: segfault at 60 ip
00007fdf0f90f8a0 sp 00007fffdcd26698 error 4 in libdovecot-storage.so.0.0.0
[7fdf0f841000+110000] root@mail:~ #
(e fo-t$elding ver+ijst n!!r *et p!d voor de $!ilbo# /var/mail/piet. (it o$t *ele$!!l niet overeen $et de ingestelde lo!tie in postfi#2 *ttp:11+ii22dove)ot2org1M!ilEo)!tion *ttp:11+ii22dove)ot2org1B!si)Config-r!tion Mail Location Set the mail_location in conf.d/10-mail.conf as determined by the instructions in FindMailLocation. ,ij *et )onfig-r!tiebest!nd voor de $!illo!tie in dove)ot n!: root@mail:~# nano /etc/dovecot/conf.d/10-mail.conf
## Mailbox locations and namespaces ##
# Location for users' mailboxes. The default is empty, which means that Dovecot # tries to find the mailboxes automatically. This won't work if the user # doesn't yet have any mail, so you should explicitly tell Dovecot the full [1L]
# location. # # If you're using mbox, giving a path to the INBOX file (eg. /var/mail/%u) # isn't enough. You'll also need to tell Dovecot where the other mailboxes are # kept. This is called the "root mail directory", and it must be the first # path given in the mail_location setting. # # There are a few special variables you can use, eg.: # # %u - username # %n - user part in user@domain, same as %u if there's no domain # %d - domain part in user@domain, empty if there's no domain # %h - home directory # # See doc/wiki/Variables.txt for full list. Some examples: # mail_location = maildir:~/Maildir # mail_location = mbox:~/mail:INBOX=/var/mail/%u # mail_location = mbox:/var/mail/%d/%1n/%n:INDEX=/var/indexes/%d/%1n/%n # # <doc/wiki/MailLocation.txt> # # mail_location = mbox:~/mail:INBOX=/var/mail/%u
5erst!rt de dove)ot/servi)e n! de nodige !!np!ssingen:
root@mail:~# service dovecot restart [ ok ] Restarting IMAP/POP3 mail server: dovecot.
M!! opnie-+ de )onne)tie op poort 11D v!n de server (lo)!l*ost) 1B22182D21) vi! een telnet/sessie en probeer $!il te ontv!ngen voor gebr-ier piet2
root@mail:~# telnet localhost 110 Trying ::1... Connected to localhost. Escape character is '^]'. +OK Dovecot ready. user piet +OK pass piet +OK Logged in. list +OK 1 messages: 1 427 . retr 1 +OK 427 octets Return-Path: <jan@mydomain.lab> X-Original-To: piet@mydomain.lab Delivered-To: piet@mydomain.lab Received: from localhost (localhost [IPv6:::1]) by s01.mydomain.lab (Postfix) with SMTP id 2841EA7D for <piet@mydomain.lab>; Mon, 8 Sep 2014 05:45:55 +0200 (CEST) subject: mail 1 Message-Id: <20140908034609.2841EA7D@s01.mydomain.lab> [2D]
Probeer n- *et.elfde op poort 1%3 (4M&P) en probeer de $!il te le.en voor gebr-ier piet2
root@mail:~# telnet localhost 143 Trying ::1... Connected to localhost. Escape character is '^]'. * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE
IDLE STARTTLS AUTH=PLAIN] Dovecot ready. a1 LOGIN piet piet a1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE