IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Unix Discussion :

problèmes permissions mail postfix


Sujet :

Unix

  1. #1
    Membre du Club
    Profil pro
    Inscrit en
    Juillet 2010
    Messages
    116
    Détails du profil
    Informations personnelles :
    Localisation : France, Alpes Maritimes (Provence Alpes Côte d'Azur)

    Informations forums :
    Inscription : Juillet 2010
    Messages : 116
    Points : 48
    Points
    48
    Par défaut problèmes permissions mail postfix
    Bonjour à tous
    je cherche à résoudre un problème de serveur de messagerie, je tourne depuis plusieurs heures sur internet à la recherche d'une solution ou d'une explication sans succès.

    Je suis sur une Debian Lenny, j'ai installé Postfix en MTA, Procmail en MDA et j'utilise Evolution en MUA.
    Le but de mon stage est tout d'abord de pouvoir envoyé et recevoir des mails en Maildir sur l'unique utilisateur Unix, jusque la tout a fonctionné sans problèmes !!
    Par la suite je dois créer des boites aux lettres virtuels ainsi que des utilisateurs virtuels et la je galère sérieusement.
    J'ai beaucoup de messages d'erreur concernant les permissions et je dois avouer qu'avant de faire des chmod et chown dans tous les sens je préfère essayer de comprendre .
    Je poste mes différents fichier de con et de log, si quelqu'un a une idée, c cool.

    Mon fichier main.cf
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
     
    command_directoty = /usr/sbin
    daemon_directory = /usr/lib/postfix
    program_directory = /usr/libexec/postfix
    queue_directory = /var/spool/postfix
    mail_spool_directory = /var/spool/mail
     
    setgid_group = postdrop
    mail_owner = postfix
     
    #default_privs = nobody
    #smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
     
    smtpd_banner = myhostname
    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
    myhostname = mail.monsite.net
    mydomain = monsite.net
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    myorigin = /etc/mailname
    mydestination = mydomain, mail.monsite.net, monsite.org, localhost, localhost.loc$
    relayhost =
    mynetworks = 85.xxx.xxx.xxx 192.168.34.0/24 127.0.0.0/8 [::ffff:127.0.0.0]/104 
    home_mailbox = Maildir/
    mailbox_command = procmail -a "$EXTENSION"
    mailbox_size_limit = 64000000
    recipient_delimiter = +
    inet_interfaces = all
     
    virtual_mailbox_domains = /etc/postfix/virtual_domains.cf
    virtual_mailbox_base = /var/mail/vhosts
    virtual_mailbox_maps = hash:/etc/postfix/virtual_emplacement
    virtual_mailbox_limit = 51200000
    virtual_minimum_uid = 100
    virtual_uid_maps = static:5000
    virtual_gid_maps = static:5000
    virtual_transport = virtual
     
     
    #protocole smtpd
     
    smtpd_use_tls = yes
    smtpd_helo_requied = yes
    smtpd_tls_auth_only = yes
    smtpd_tls_key_file = /etc/postfix/tls/monsite.key
    smtpd_tls_cert_file = /etc/postfix/tls/monsite.crt
    smtpd_tls_security = may
    smtpd_tls_loglevel = 2
    smtpd_tls_received_header = yes
    smtpd_tls_session_cache_timeout = 3600s
    smtpd_tls_ask_ccert = yes
    smtpd_tls_req_ccert = no
    smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
    tls_random_source = dev:/dev/urandom
     
     
    #MODE DE TRANSPORT
     
    default_transport = smtp
    inet_protocols = ipv4
    Mon fichier /var/log/mail.info
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
     
    Jul 26 11:15:01 mail postfix/sendmail[4378]: fatal: chdir /var/spool/postfix: Permission denied
    Jul 26 11:15:44 mail postfix/master[4460]: fatal: open lock file /var/lib/postfix/master.lock: cannot open file: Permission denied
    Jul 26 11:16:10 mail postfix/postfix-script[4497]: warning: not owned by root: /var/spool/postfix
    Jul 26 11:18:23 mail postfix/master[4702]: fatal: open lock file /var/lib/postfix/master.lock: cannot open file: Permission denied
    Jul 26 11:20:01 mail postfix/sendmail[4742]: fatal: chdir /var/spool/postfix: Permission denied
    Jul 26 11:25:01 mail postfix/sendmail[4747]: fatal: chdir /var/spool/postfix: Permission denied
    Jul 26 11:30:01 mail postfix/sendmail[4752]: fatal: chdir /var/spool/postfix: Permission denied
    Jul 26 11:35:01 mail postfix/sendmail[4757]: fatal: chdir /var/spool/postfix: Permission denied
    Jul 26 11:40:01 mail postfix/sendmail[4773]: fatal: chdir /var/spool/postfix: Permission denied
    Jul 26 11:45:01 mail postfix/sendmail[4778]: fatal: chdir /var/spool/postfix: Permission denied
    Jul 26 11:46:01 mail postfix/master[4858]: fatal: open lock file /var/lib/postfix/master.lock: cannot open file: Permission denied
    Jul 26 11:50:01 mail postfix/sendmail[4869]: fatal: chdir /var/spool/postfix: Permission denied
    Si vous souhaitez d'autre élément n'hésitez pas je le fait de-suite.
    Merci d'avance

  2. #2
    Invité
    Invité(e)
    Par défaut
    Salut,


    Jul 26 11:16:10 mail postfix/postfix-script[4497]: warning: not owned by root: /var/spool/postfix
    Comment as-tu installé postfix? package ou à partir de sources?
    Dernière modification par Invité ; 26/07/2010 à 14h41.

  3. #3
    Membre du Club
    Profil pro
    Inscrit en
    Juillet 2010
    Messages
    116
    Détails du profil
    Informations personnelles :
    Localisation : France, Alpes Maritimes (Provence Alpes Côte d'Azur)

    Informations forums :
    Inscription : Juillet 2010
    Messages : 116
    Points : 48
    Points
    48
    Par défaut
    Merci beaucoup pour ta réponse Mygale1978
    j'ai installé Postfix à partir d'une source à l'aide de apt-get j'ai vraiment l'impression qu'il y a un problème de droit, mais je n'arrive pas à savoir lequel,
    je poste mes droits, peut être que quelqu'un aura une révélation.

    Merci de votre aide .

    mail:/var# ls -al

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
     
    total 84
     
    drwxr-x--- 18 root root   4096 jui 20 10:46 .
    drwxr-xr-x 21 root root   4096 jun 15 12:49 ..
    drwxr-xr-x  2 root root   4096 déc 16  2008 agentx
    drwxr-xr-x  2 root root   4096 jui 21 09:18 backups
    drwxr-xr-x 15 root root   4096 jui 20 14:21 cache
    drwxr-xr-x  2 root root   4096 oct 22  2008 crash
    drwxr-xr-x  2 root root   4096 jun 15 13:37 games
    drwxr-xr-x 50 root root   4096 jui 20 14:21 lib
    drwxrwsr-x  2 root staff  4096 jan 25 04:41 local
    drwxrwxrwt  3 root root   4096 jui 26 10:25 lock
    drwxr-xr-x 15 root root   4096 jui 26 10:25 log
    drwx------  2 root root  16384 jun 15 12:46 lost+found
    drwxrwsrwx  3 root mail   4096 jui 26 09:20 mail
    drwxr-xr-x  2 root root   4096 jun 15 12:47 opt
    drwxr-xr-x 15 root root   4096 jui 26 10:28 run
    drwxr-x---  8 root root   4096 jun 17 14:37 spool
    drwxrwxrwt  2 root root   4096 jun 17 10:49 tmp
    drwxr-xr-x  3 root root   4096 jun 16 15:45 www

    mail:/var/lib# ls -al

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
     
    total 200
     
    drwxr-xr-x 50 root     root     4096 jui 20 14:21 .
    drwxr-x--- 18 root     root     4096 jui 20 10:46 ..
    drwxr-xr-x  2 root     root     4096 jun 15 14:04 alsa
    drwxr-xr-x  4 root     root     4096 jui 20 14:22 apt
    drwxr-xr-x  2 root     root     4096 jui  9 13:58 aptitude
    drwxr-xr-x  2 root     root     4096 jun 15 13:21 aspell
    drwxr-xr-x  3 root     root     4096 jui 20 14:21 cacti
    drwxr-xr-x  2 bin      bin      4096 jui  2 10:36 courier
    drwxr-xr-x  2 root     root     4096 jun 15 13:43 dbus
    drwxr-xr-x  7 root     root     4096 jun 15 13:38 defoma
    drwxr-xr-x  2 root     root     4096 jun 15 15:47 dhcp3
    drwxr-xr-x  5 root     root     4096 jun 15 13:21 dictionaries-common
    drwxr-xr-x  7 root     root     4096 jui 20 14:22 dpkg
    drwxr-xr-x  2 root     root     4096 jun 17 10:54 exim4
    drwxr-xr-x  2 root     root     4096 jun 15 13:39 gcj-4.3
    drwxr-xr-x  4 root     root     4096 jun 15 13:20 gconf
    drwxrwx--T  2 root     gdm      4096 jun 24 14:04 gdm
    drwxr-xr-x  2 root     root     4096 jan  7  2009 hal
    drwxr-xr-x  3 root     root     4096 jun 15 13:26 iceweasel
    drwxr-xr-x  2 root     root     4096 jun 15 12:49 initramfs-tools
    drwxr-xr-x  2 root     root     4096 aoû 12  2008 initscripts
    drwxr-xr-x  2 root     root     4096 sep 25  2008 insserv
    drwxrwsr-x  2 libuuid  libuuid  4096 jun 15 12:47 libuuid
    drwxr-xr-x  2 root     root     4096 jun 16 09:24 logrotate
    drwxr-xr-x  6 root     root     4096 jui 15 09:06 menu-xdg
    drwxr-xr-x  2 root     root     4096 jan 25 04:41 misc
    drwxr-xr-x  2 root     root     4096 jui 26 09:05 mlocate
    drwxr-xr-x  4 mysql    mysql    4096 jui 26 10:28 mysql
    drwxr-xr-x  2 root     root     4096 jun  5 19:44 mysql-cluster
    drwxr-xr-x  2 root     root     4096 jan 14  2009 NetworkManager
    drwxr-xr-x  5 statd    root     4096 jui 26 10:25 nfs
    drwx-wx-wt  2 root     root     4096 jui 26 09:39 php5
    drwxr-xr-x  2 root     root     4096 jun 16 15:26 phpmyadmin
    drwxr-xr-x  2 postfix  postfix  4096 jun 18 22:29 postfix
    mail:/var/lib/postfix# ls -al

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
     
    total 32
     
    drwxr-xr-x  2 postfix postfix 4096 jun 18 22:29 .
    drwxr-xr-x 50 root    root    4096 jui 20 14:21 ..
    -rwxr-xr-x  1 postfix postfix   17 jui 26 09:42 master.lock
    -rw-------  1 postfix postfix 1024 jui 26 09:42 prng_exch
    -rw-------  1 postfix postfix 8192 jui 26 09:42 smtpd_scache.db
    -rw-------  1 postfix postfix 8192 jui 26 09:42 smtp_scache.db

Discussions similaires

  1. problème redirection mail postfix
    Par roulitto dans le forum Applications et environnements graphiques
    Réponses: 0
    Dernier message: 07/02/2011, 16h33
  2. problème reception mail postfix
    Par farwest14 dans le forum Réseau
    Réponses: 17
    Dernier message: 31/01/2011, 09h35
  3. Serveur mail (postfix-courier) problème pop avec thunderbird
    Par jantallus dans le forum Serveurs (Apache, IIS,...)
    Réponses: 3
    Dernier message: 30/11/2009, 13h03
  4. Réponses: 3
    Dernier message: 27/04/2006, 15h21

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo