0% found this document useful (0 votes)
58 views19 pages

Server Mail - Wiki Ubuntu-It

This page contains 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.

Uploaded by

papu0011
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views19 pages

Server Mail - Wiki Ubuntu-It

This page contains 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.

Uploaded by

papu0011
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 19

ServerMail - Wiki Ubuntu-it

http://wiki.ubuntu-it.org/ServerMail

ServerMail

Index 1. Introduzine 2. Installation 3. Will configure Mysql 4. Postfix Configuration 5. Yaa will configure autoresponder 6. Configure Dovecot 7. Antivirus and Antispam 1. Configure Amavis 2. Configure Spamassassin 8. Configuarare WebMail 9. Installation 10. Restart servrizi 11. More Resources

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 user mailuser 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 arj zoo 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

1 of 19

2/22/2011 4:57 PM

ServerMail - Wiki Ubuntu-it

http://wiki.ubuntu-it.org/ServerMail

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. 1. Create the file / etc / maildb.sql. Enter the following:

2 of 19

2/22/2011 4:57 PM

ServerMail - Wiki Ubuntu-it

http://wiki.ubuntu-it.org/ServerMail

3 of 19

2/22/2011 4:57 PM

ServerMail - Wiki Ubuntu-it

http://wiki.ubuntu-it.org/ServerMail

4 of 19

2/22/2011 4:57 PM

ServerMail - Wiki Ubuntu-it

http://wiki.ubuntu-it.org/ServerMail

5 of 19

2/22/2011 4:57 PM

ServerMail - Wiki Ubuntu-it

http://wiki.ubuntu-it.org/ServerMail

6 of 19

2/22/2011 4:57 PM

ServerMail - Wiki Ubuntu-it

http://wiki.ubuntu-it.org/ServerMail

7 of 19

2/22/2011 4:57 PM

ServerMail - Wiki Ubuntu-it

http://wiki.ubuntu-it.org/ServerMail

2. Import the db created. In a terminal type:

1. Create the user and group to manage all In a terminal type:

2. Edit the file / etc / postfix / main.cf . Add or change the following lines to suit your needs:

8 of 19

2/22/2011 4:57 PM

ServerMail - Wiki Ubuntu-it

http://wiki.ubuntu-it.org/ServerMail

9 of 19

2/22/2011 4:57 PM

ServerMail - Wiki Ubuntu-it

http://wiki.ubuntu-it.org/ServerMail

3. Edit the file / etc / postfix / master.cf . Add or change the following lines:

10 of 19

2/22/2011 4:57 PM

ServerMail - Wiki Ubuntu-it

http://wiki.ubuntu-it.org/ServerMail

4. Create the file / etc / postfix / mysql_domains.cf . Enter the following:

5. Create the file / etc / postfix / mysql_mailbox.cf . Enter the following:

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

11 of 19

2/22/2011 4:57 PM

ServerMail - Wiki Ubuntu-it

http://wiki.ubuntu-it.org/ServerMail

Enter the following:

7. Create the file / etc / postfix / mysql_transport.cf . Enter the following:

8. Create the file / etc / postfix / mysql_vacation.cf . Enter the following:

9. 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:

10. Create the file / etc / postfix / sender_canonical . This file is used to create an alias for root system that sends email. Enter the following:

11. In a terminal type:

1. In a terminal type:
12 of 19

2/22/2011 4:57 PM

ServerMail - Wiki Ubuntu-it

http://wiki.ubuntu-it.org/ServerMail

2. Edit the file / usr/local/yaa-0.3.1/conf/yaa.conf . Enter or change the following lines:

13 of 19

2/22/2011 4:57 PM

ServerMail - Wiki Ubuntu-it

http://wiki.ubuntu-it.org/ServerMail

1. Edit the file / etc / dovecot / dovecot.conf . Add or change the following lines:

14 of 19

2/22/2011 4:57 PM

ServerMail - Wiki Ubuntu-it

http://wiki.ubuntu-it.org/ServerMail

15 of 19

2/22/2011 4:57 PM

ServerMail - Wiki Ubuntu-it

http://wiki.ubuntu-it.org/ServerMail

2. Edit the file / etc / dovecot / dovecot-sql.conf . Add or change the following lines:

3. Create the file / mail / dovecot-trash.conf . Enter the following:

4. Create the file / mail / globalsieverc . Enter the following:

5. In a terminal type:

16 of 19

2/22/2011 4:57 PM

ServerMail - Wiki Ubuntu-it

http://wiki.ubuntu-it.org/ServerMail

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

1. Edit the file / etc/amavis/conf.d/50-user Add or change the following lines:

2. Edit the file / etc/amavis/conf.d/20-debian_defaults Add or change the following lines:

17 of 19

2/22/2011 4:57 PM

ServerMail - Wiki Ubuntu-it

http://wiki.ubuntu-it.org/ServerMail

3. Edit the file / etc/amavis/conf.d/15-content_filter_mode Add or change the following lines:

4. In a terminal type:

1. Edit the file / etc / spamassassin / local.cf . 2. In a terminal type:

Mofificare or add the following lines:

Install packages: postfix postfix-mysql dovecot-imapd dovecot-pop3d amavisd-new

18 of 19

2/22/2011 4:57 PM

ServerMail - Wiki Ubuntu-it

http://wiki.ubuntu-it.org/ServerMail

spamassassin clamav-daemon lha arj zoo nomarch cpio lzop cabextract pax unrar-free

1. In a terminal type:

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

19 of 19

2/22/2011 4:57 PM

You might also like