Linux Postfix and Dovecot installation failed

Hi Guys,

I’m unable to complete the Linux task that requests you to install PostFix and Dovecot.

It seems like there were other guys facing the same issue because I found several posts (in this very same forum) experiencing the same issue I have.

I’ve installed Postfix and Dovecot. I made the required configurations. The services are up and running.
I can send emails on Postfix using the command line. I can retrive emails from Dovecot Pop3 using the command line.

Could you please take a look into my screenshots and provide me some guidance to complete this task? - I dont know where else to look for :pensive:

Thank you!

Postfix Configuration /etc/postfix/main.cf - (The red arrows shows the changes I made to the config file)




I can confirm that the Postfix service is up and running:

I send an email from the command line using Postfix:

Email was received succesfully:

I made sure that Postfix config was reloaded and also that the service is up and running after a restart:

I installed Dovecot and I made sure the service is up and running:

I applied the following configurations to Dovecot files:

File: /etc/dovecot/dovecot.conf
– I uncommented the line –
protocols = imap pop3 lmtp submission

File: /etc/dovecot/conf.d/10-mail.conf
– I uncommented the line –
mail_location = maildir:~/Maildir

/etc/dovecot/conf.d/10-auth.conf
– I uncommented the line –
disable_plaintext_auth = yes

– I Added the word “login” to the following line –
auth_mechanisms = plain login

File: /etc/dovecot/conf.d/10-master.conf
– I uncommented the lines and added the word “postfix” –
#mode = 0600
user = postfix
group = postfix

I could retrieve email from Dovecot using the command line - (I run a couple of tests):


Here is the error assertion I received for this Task:

I solved it Guys :sweat_smile:

For those of you who may be stuck on this task, my error was that I forgot to uncomment the line “Mode = 0666” on the file: /dovecot/conf.d/10-master.conf

Mode = 0666
User = postfix
Group = postfix

4 Likes

i just did this and it didnt work

Could you please verify that the rest of your configurations match the configurations from my screenshots?

Did you try sending an email (smtp postfix validation test) from the command line?

Did you try retrieving en email (pop3 dovecot validation test) from the command line?

Thanks a lot , i was stuck here. It worked for me !

1 Like

Hello there !
I have done kind of the same thing, same steps in this video : https://youtu.be/kdcUfw5vJKY?si=6ZCSQPZd20_K-653 but didn’t work for me, but found another quicky way …

After doing all the steps in the video, except the testing using telnet command .

What i did is i monitored previous failing tasks to see the validation process, and i understand, that a validation mail is being sent, but the validation is not waiting for the mail to be received, so it fails before even the mail gets created under user_home/Maildir/new/ .

So, I copied the content of the validation mail, and used telnet to make a kind of validation mail so the process works and it is working actually !

the validation mail looks like this :



Return-Path: <[email protected]>
X-Original-To: [email protected]
Delivered-To: [email protected]
Received: by stmail01.stratos.xfusioncorp.com (Postfix, from userid 1002)
        id 64EA96A8F572; Fri, 20 Sep 2024 23:01:43 +0000 (UTC)
Date: Fri, 20 Sep 2024 23:01:43 +0000
To: [email protected]
Subject: Welcome
User-Agent: s-nail v14.9.22
Message-Id: <[email protected]>
From: [email protected]

Welcome to xFusionCorp Industries

you can send this using telnet or send any mail and then update it using vim …

1 Like

jorge.salinas.jsf below solution worked for me too:

Mode = 0666
User = postfix
Group = postfix,

Thanks

1 Like

Im glad to hear that :grinning: