Monday, May 10, 2010

Acrosric Poem For Canada

install Postfix on our Debian

Postfix mail server is a lightweight versatile and easy configuration . I made this howto to help the novice user in its first configuration this mail server.

First install the demon-mail:

apt - get install postfix courier-pop
After the installation will start debconf for configuration of server. I post pictures. For optimal configuration, you must choose the option that will appear in the image:







At the last screen in the text box will default to the hostname of the machine where you are installing postfix. You can safely leave. After the installation is completed.

The next step is to edit the configuration file of Postfix.

nano / etc / postfix / main.cf

You must add the mydestination domain name and email add at the end of the file the line: home_mailbox = Maildir /

By way of example, my file is:




# 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 (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 
readme_directory = no 
# TLS parameters 
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem 
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.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 = vs6517.vserver4free.de 
alias_maps = hash:/etc/aliases 
alias_database = hash:/etc/aliases 
myorigin = /etc/mailname 
mydestination = vs6517.vserver4free.de, localhost.vserver4free.de, , localhost, gioiadelcolle.eu 
relayhost = 
mynetworks = 127.0.0.0/8 [:: Ffff: 127.0.0.0] / 104 [:: 1] / 128 = 0
mailbox_size_limit
recipient_delimiter = + = all
inet_interfaces
home_mailbox = Maildir /

Now the time to add the user. To the point:

piero useradd-m-G users, postfix-s / bin / bash

And then we create the password: passwd

piero piero

Clearly, the user is in my case. (My email is piero@gioiadelcolle.eu). Now enter the command



id piero

you return something like:

piero vs6517 @: ~ $ id uid = 1001
piero (piero) gid = 1001 (piero) groups = 1001 (Piero), 100 (users), 109 (postfix)

Now add the user to the domain:
userdb "piero@gioiadelcolle.eu" set home = / home / piero / mail = / home / piero / Maildir uid = 1001 gid = 1001

Beware values \u200b\u200bgid , uid and clearly the name of your user. This line is my example.
Now create a password of your mailbox:

userdbpw changes with:

makeuserdb

Open the file:
nano / etc / courier / authdaemonrc

and change the line must be authmodulelist
authmodulelist = "authuserdb"


Save and close and restart demons:


/ etc / init.d / postfix restart
/ etc / init.d / courier-authdaemon

restart / etc / init.d / courier-pop restart
As a final step in your log in user you have created:
at - piero


and give the command

maildirmake Maildir

Ok. Now you have a working mail box. I remind you that the domain must be associated with the IP of the server that runs the mail daemon.
























0 comments:

Post a Comment