Hello,
I took these steps : commando.txt · GitHub
but still I get a failng message that dovecot is not configured right.
What did I do wrong here ?
Hello,
I took these steps : commando.txt · GitHub
but still I get a failng message that dovecot is not configured right.
What did I do wrong here ?
Please give me the exact name of the lab – I’m not sure which lab you’re doing here.
the exact name is : 14 - Linux Postfix Mail Server of the Kodekloud engineer course.
Level 2 linux
hmm
Confusing discussion
One says to disable the line mode = 0660
and the other says to enable that line.
oke
I have uncomment that part and still the failing message.
Yes,
It fails still when I do this :
xFusionCorp Industries has planned to set up a common email server in Stork DC.
After several meetings and recommendations they have decided to use postfix as their mail transfer agent and dovecot as an IMAP/POP3 server. We would like you to perform the following steps:
1. Install and configure postfix on Stork DC mail server.
2. Create an email account ```[email protected]``` identified by ```ksH85UJjhb.```
3. Set its mail directory to /home/kirsty/Maildir.
4. Install and configure dovecot on the same server.
Solution:
ssh groot@stmail01
sudo su
yum install postfix -y
Uncomment/Edit/Add below configuration on ```/etc/postfix/main.conf```:
myhostname = stmail01.stratos.xfusioncorp.com
mydomain = stratos.xfusioncorp.com
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mynetworks = 172.16.238.0/24, 127.0.0.0/8
home_mailbox = Maildir/
# inet_interfaces = localhost
systemctl start postfix
systemctl status postfix
useradd kirsty
passwd kirsty
yum install dovecot -y
Uncomment/Edit/Add below configuration on ```/etc/dovecot.conf```:
protocols = imap pop3
Uncomment/Edit/Add below configuration on ```/etc/dovecot/conf.d/10-mail.conf```:
mail_location = maildir:~/Maildir
Uncomment/Edit/Add below configuration on ```/etc/dovecot/conf.d/10-auth.conf```:
disable_plaintext_auth = yes
auth_mechanisms = plain login
Uncomment/Edit/Add below configuration on ```/etc/dovecot/conf.d/10-master.conf```:
service auth {
unix_listener auth-userdb {
mode = 0660
user = postfix
group = postfix
}
}
systecmtl start dovecot
systemctl status dovecot
Optional postfix testing:
telnet stmail01 25
Connected to stmail01.
Escape character is '^]'.
220 mail.stratos.xfusioncorp.com
EHLO localhost
250 mail.stratos.xfusioncorp.com
mail from:[email protected]
250 2.1.0 Ok
rcpt to:[email protected]
250 2.1.0 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
This is a test email.
250 2.0.0 O
quit
then:
su - kirsty
cat /home/kirsty/Maildir/new/172XXXXXXX
Optional dovecot testing:
telnet stmail01 110
Connected to stmail01.
Escape character is '^]'.
+OK Dovecot ready.
user kirsty
+OK
pass ksH85UJjhb
+OK Logged in.
so if someone has a idea how to make this work please
This is bugging me for some months
Hi @rwobben ,
Did you get a chance to try again? The team has pushed some fixes. Before trying, please check the solution I sent you.
Regards,
Sorry
I solved this challenge already with my own solution.
Great to hear you were able to complete the task using your own solution.