Précédent   Forum des professionnels en informatique > Systèmes > Linux > Distributions
Distributions Vos questions sur les distributions Linux ou Unix
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
Vieux 12/09/2009, 21h25   #1
Membre habitué
 
Inscription : janvier 2008
Messages : 358
Détails du profil
Informations forums :
Inscription : janvier 2008
Messages : 358
Points : 102
Points : 102
Par défaut Serveur mail sous debian lenny

Bonjour je souhaite installer un serveur mail sous mon lenny.

C'est à dire que je souhaite envoyer et recevoir des mails avec mon adresse

moi@monDomaineQuiTueToutDuSlip.com.

Bon alors je me suis un peu renseigné j'ai cherché pas mal de tutoriel et étant un noob, je cherche un tutoriel assez simple.

J'ai trouvé ceci
http://www.sos-dedie.com/2008/10/30/...cation-userdb/

Bon ça date de 2008 ce n'est pas vieux mais au niveau du fichier de config je n'ai pas la même chose et cela m'embête.

Par exemple sur son tutoriel il a

virtual_maps = hash:/etc/postfix/virtual_adresse

virtual_mailbox_base = /home/vmail

Et moi je n'ai pas cela dans mon fichier de configuration, d'ailleurs je vous paste mon fichier de configuration, si je peux avoir des conseils :
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
 
# 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 = ***
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = ******
mydestination = *****, ****, , localhost
relayhost = 
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
Voilà je ne sais pas si je dois rajouter ces lignes (virtual_mailbox...) dans le fichier ou pas ...

ou bien si vous avez un tutoriel plus d'actualité ou encore plus simple(on sait jamais :p)

Merci de vos conseils car je suis un peu perdu...
saturn1 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 13/09/2009, 15h53   #2
Rédacteur
 
Avatar de gege2061
 
Inscription : juin 2004
Messages : 5 855
Détails du profil
Informations personnelles :
Âge : 28
Localisation : France, Indre et Loire (Centre)

Informations forums :
Inscription : juin 2004
Messages : 5 855
Points : 8 306
Points : 8 306
Bonjour,

Si ça peux t'aider, voici mon fichier de configuration fonctionnel (debian lenny) :
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# 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 = mail.mondomaine.fr
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = mondomaine.fr, localhost
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
 
smtpd_recipient_restrictions = permit_mynetworks,
        reject_invalid_hostname,
        reject_unknown_recipient_domain,
        reject_unauth_destination,
        reject_rbl_client sbl.spamhaus.org
 
smtpd_helo_restrictions = reject_invalid_helo_hostname,
        reject_non_fqdn_helo_hostname,
        reject_unknown_helo_hostname
 
smtpd_client_restrictions = reject_rbl_client dnsbl.sorbs.net
 
home_mailbox = Maildir/
mailbox_command =
Pour plus d'information sur les options :
__________________
gege2061's blog
gege2061 est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +1. Il est actuellement 15h06.


 
 
 
 
Partenaires

Hébergement Web