Server Mail - Wiki Ubuntu-It

Embed Size (px)

Citation preview

  • 8/3/2019 Server Mail - Wiki Ubuntu-It

    1/19

    Index

    Introduzine1.

    Installation2.

    Will configure

    Mysql

    3.

    Postfix

    Configuration

    4.

    Yaa will

    configure

    autoresponder

    5.

    Configure

    Dovecot

    6.

    Antivirus and

    Antispam

    Configure

    Amavis

    1.

    Configure

    Spamassassin

    2.

    7.

    Configuarare

    WebMail

    8.

    Installation9.

    Restart servrizi10.

    More

    Resources

    11.

    ServerMail

    On this page there are some useful instructions on how to use

    Postfi + Horde + Dovecot + Mysql .

    You will learn how to create a complete mail server

    management with virtual domains and users to share and

    Ubuntu Server 4.10 .

    This guide will be the name of the db maildb with usermailuser and password 1234 . This will create a mail user

    admin passwd with Padmini and domain prova.it . The

    server is configured with a partition / mail a separate,

    Install packages:

    postfix

    postfix-mysql

    dovecot-imapd

    dovecot-pop3d

    amavisd-new

    spamassassin

    clamav-daemon

    lha

    arjzoo

    nomarch

    cpio

    lzop

    cabextract

    pax

    unrar-free

    apt-get install libio-lockedfile libmldbm-perl-perl libnet-perl libcarp-clan-perl libdbi-perl

    libdbd-mysql-perl libnet-server-perl libio-stringy-perl

    verMail - Wiki Ubuntu-it http://wiki.ubuntu-it.org/ServerMail

    19 2/22/2011 4:57 PM

  • 8/3/2019 Server Mail - Wiki Ubuntu-It

    2/19

    The first thing to do is create a db that will contain the tables needed for the operation of

    the system. To facilitate the work will create a file with SQL statements necessary.

    Create the file / etc / maildb.sql.

    Enter the following:

    1.

    verMail - Wiki Ubuntu-it http://wiki.ubuntu-it.org/ServerMail

    19 2/22/2011 4:57 PM

  • 8/3/2019 Server Mail - Wiki Ubuntu-It

    3/19

    verMail - Wiki Ubuntu-it http://wiki.ubuntu-it.org/ServerMail

    19 2/22/2011 4:57 PM

  • 8/3/2019 Server Mail - Wiki Ubuntu-It

    4/19

    verMail - Wiki Ubuntu-it http://wiki.ubuntu-it.org/ServerMail

    19 2/22/2011 4:57 PM

  • 8/3/2019 Server Mail - Wiki Ubuntu-It

    5/19

    verMail - Wiki Ubuntu-it http://wiki.ubuntu-it.org/ServerMail

    19 2/22/2011 4:57 PM

  • 8/3/2019 Server Mail - Wiki Ubuntu-It

    6/19

    verMail - Wiki Ubuntu-it http://wiki.ubuntu-it.org/ServerMail

    19 2/22/2011 4:57 PM

  • 8/3/2019 Server Mail - Wiki Ubuntu-It

    7/19

    verMail - Wiki Ubuntu-it http://wiki.ubuntu-it.org/ServerMail

    19 2/22/2011 4:57 PM

  • 8/3/2019 Server Mail - Wiki Ubuntu-It

    8/19

    Import the db created.

    In a terminal type:

    2.

    Create the user and group to manage all

    In a terminal type:

    1.

    Edit the file / etc / postfix / main.cf .

    Add or change the following lines to suit your needs:

    2.

    verMail - Wiki Ubuntu-it http://wiki.ubuntu-it.org/ServerMail

    19 2/22/2011 4:57 PM

  • 8/3/2019 Server Mail - Wiki Ubuntu-It

    9/19

    verMail - Wiki Ubuntu-it http://wiki.ubuntu-it.org/ServerMail

    19 2/22/2011 4:57 PM

  • 8/3/2019 Server Mail - Wiki Ubuntu-It

    10/19

    Edit the file / etc / postfix / master.cf .

    Add or change the following lines:

    3.

    verMail - Wiki Ubuntu-it http://wiki.ubuntu-it.org/ServerMail

    f 19 2/22/2011 4:57 PM

  • 8/3/2019 Server Mail - Wiki Ubuntu-It

    11/19

    Create the file / etc / postfix / mysql_domains.cf .

    Enter the following:

    4.

    Create the file / etc / postfix / mysql_mailbox.cf .

    Enter the following:

    5.

    Create the file / etc / postfix / mysql_alias.cf .6.

    verMail - Wiki Ubuntu-it http://wiki.ubuntu-it.org/ServerMail

    f 19 2/22/2011 4:57 PM

  • 8/3/2019 Server Mail - Wiki Ubuntu-It

    12/19

    Enter the following:

    Create the file / etc / postfix / mysql_transport.cf .

    Enter the following:

    7.

    Create the file / etc / postfix / mysql_vacation.cf .

    Enter the following:

    8.

    Create the file / etc / postfix / recipient_canonical . This file is

    used to create an alias for the root user receiving the email system.

    Enter the following:

    9.

    Create the file / etc / postfix / sender_canonical . This file is used to

    create an alias for root system that sends email.

    Enter the following:

    10.

    In a terminal type:11.

    In a terminal type:1.

    verMail - Wiki Ubuntu-it http://wiki.ubuntu-it.org/ServerMail

    f 19 2/22/2011 4:57 PM

  • 8/3/2019 Server Mail - Wiki Ubuntu-It

    13/19

    Edit the file / usr/local/yaa-0.3.1/conf/yaa.conf .

    Enter or change the following lines:

    2.

    verMail - Wiki Ubuntu-it http://wiki.ubuntu-it.org/ServerMail

    f 19 2/22/2011 4:57 PM

  • 8/3/2019 Server Mail - Wiki Ubuntu-It

    14/19

    Edit the file / etc / dovecot / dovecot.conf .

    Add or change the following lines:

    1.

    verMail - Wiki Ubuntu-it http://wiki.ubuntu-it.org/ServerMail

    f 19 2/22/2011 4:57 PM

  • 8/3/2019 Server Mail - Wiki Ubuntu-It

    15/19

    verMail - Wiki Ubuntu-it http://wiki.ubuntu-it.org/ServerMail

    f 19 2/22/2011 4:57 PM

  • 8/3/2019 Server Mail - Wiki Ubuntu-It

    16/19

    Edit the file / etc / dovecot / dovecot-sql.conf .

    Add or change the following lines:

    2.

    Create the file / mail / dovecot-trash.conf .

    Enter the following:

    3.

    Create the file / mail / globalsieverc .

    Enter the following:

    4.

    In a terminal type:5.

    verMail - Wiki Ubuntu-it http://wiki.ubuntu-it.org/ServerMail

    f 19 2/22/2011 4:57 PM

  • 8/3/2019 Server Mail - Wiki Ubuntu-It

    17/19

    In this section configure the software for two protegerre our email from spam and viruses

    Edit the file / etc/amavis/conf.d/50-user

    Add or change the following lines:

    1.

    Edit the file / etc/amavis/conf.d/20-debian_defaults

    Add or change the following lines:

    2.

    verMail - Wiki Ubuntu-it http://wiki.ubuntu-it.org/ServerMail

    f 19 2/22/2011 4:57 PM

  • 8/3/2019 Server Mail - Wiki Ubuntu-It

    18/19

    Edit the file / etc/amavis/conf.d/15-content_filter_mode

    Add or change the following lines:

    3.

    In a terminal type:4.

    Edit the file / etc / spamassassin / local.cf .1.

    In a terminal type:

    Mofificare or add the following lines:

    2.

    Install packages:

    postfix

    postfix-mysql

    dovecot-imapd

    dovecot-pop3d

    amavisd-new

    verMail - Wiki Ubuntu-it http://wiki.ubuntu-it.org/ServerMail

    f 19 2/22/2011 4:57 PM

  • 8/3/2019 Server Mail - Wiki Ubuntu-It

    19/19

    spamassassin

    clamav-daemon

    lha

    arj

    zoo

    nomarch

    cpio

    lzop

    cabextract

    pax

    unrar-free

    In a terminal type:1.

    http://workaround.org/ispmail ;

    http://ubuntu.no.sapo.pt/horde3_eng.html ;

    http://www.howtoforge.com/autoresponders_for_virtual_postfix_users

    CategoryNuoviDocumenti

    2005 - 2010 Canonical Ltd. Ubuntu and Canonical are registered trademarks of

    Canonical Ltd.

    This work is published under a Creative Commons license

    verMail - Wiki Ubuntu-it http://wiki.ubuntu-it.org/ServerMail