Install postfix dovecot debian etch
Postfix is an attempt to provide an alternative to the widely-used Sendmail program. Postfix attempts to be fast, easy to administer, and hopefully secure, while at the same time being sendmail compatible enough to not upset your users. Dovecot is an excellent choice for both small and large installations. And as of version 2. SquirrelMail is a standards-based webmail package written in PHP. It has very few requirements and is very easy to configure and install.
SquirrelMail has all the functionality you would want from an email client, including strong MIME support, address books, and folder manipulation. During installation, postfix will ask for few questions like name of server and answer those questions by entering your domain name and select Internet site for postfix. Before we proceed we need to make some changes with dovecot configuration file.
Double check the following entries in the file if the values are entered properly. Now, you can use your outlook express to test whether your new mail server is working or not. Just enter username: with password in outlook.
Remember you will NOT be able to send email outside your network, you will be only be able to send within your domain or local network. However, you should have no problems in receiving your email from outlook. Inorder to send email external email you will need to configure SASL authentication as described below. If your relay server is kept open, then spammers could use your mail server to send spam.
It is very essential to protect your mail server from misuse. On the Dovecot side you also need to specify the dovecot authentication daemon socket. In this case we specify an absolute pathname. Refer to this postfix manual here. Now, rename previous auth default to auth default2.
If you dont rename this then dovecot server will give you error like multiple instances of auth default. Test whether your mail server works or not with your outlook express.
Configure a user with a user name without domain and make sure that you select my server requires authentication. Under settings select same as incoming mail server. Note: 1. If you dont enable My server requires authentication in outlook you cannot send emails to external recipients and you get relay access denied error.
Do not use root login to login to your mail server. Dont forget to create a new user before you authenticate using outlook. Ever wondered how to forward your mails especially if you are a webmaster managing number of sites. You might need to forward any email sent to your primary email address. Its that easy. Just create a. Insert list of emails addresses separated by commas, where you want to get forwarded. Just Delete. Before installing Squirrel Web Mail you need to make sure you have installed apache2 with php support.
By default all settings are preloaded. Now we want to setup to run under apache. In regards to the section on editing dovecot.
I followed this tutorial exactly. Any ideas? I have the same issue like Amras Here search for Postfix smtp-auth block and make the following change:. Test if the mail server is running properly by adding a new user account to the system and use telnet or netcat command to connect to the SMTP server and send a new mail to the new added user, as illustrated in the below excerpts.
Users will manage their emails via Rainloop Webmail client. After Rainloop Webmail client has been installed in the system, navigate to your domain IP address and login to Rainloop admin web interface with the following default credentials:.
Navigate to Domains menu, hit on Add Domain button and add your domain name settings as shown in the below screenshot. To add a new user issue useradd command with -m flag in order to create the user home directory. But, first make sure you configure the Maildir path variable for every user with the following command. All mails redirected or destined to root account will be forwarded to your mail user as shown in the below image.
You have successfully installed and configured a mail server at your premises in order for local users to communicate via e-mails. TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! If you like what you are reading, please consider buying us a coffee or 2 as a token of appreciation. We are thankful for your never ending support.
Pretty nice guide. Thank you a lot. Have a question or suggestion? Please leave a comment to start the discussion. Please keep in mind that all comments are moderated and your email address will NOT be published. Save my name, email, and website in this browser for the next time I comment. All users will be managed through Dovecot.
Dovecot supports various user databases — for the needs of Alice, Bob and Charly the passwd-file method fits best. As the name suggests, it uses a simple text file which is formatted similar to the system's passwd 5 file. In this file all virtual users will be listed in the following form:. I recommend to use a dedicated vmail user and place him in the standard mail group:.
Time to create the user file. All passwords in this file should be stored as a crypted hash. You can create such a hash with the dovecotpw tool:. For security reasons and because Dovecot will complain otherwise nobody except root should be able to open this file:. The config is pretty straight forward. First it is made sure that only the system account dedicated to the virtual mail user is allowed to access the IMAP server.
Then the mail storage format Maildir and path to the mail folder is set up. Later the protocol lda block defines the behavior for accepting incoming mails from postfix via the LDA protocol. Nothing fancy here. The third part finally configures the authentication mechanism as described in the previous section.
0コメント