Mandriva

Le mail local sous linux

Main.Images/mail.png

Linux hérite pour beaucoup des fonctionalités de Unix. Un des aspects particulier de cet héritage est la gestion du mail.
J'ai tranféré mon blog vers la KB, ici : http://club.mandriva.com/xwiki/bin/KB/AdminMailLocal

Blog Home

yoho - LeMailLocalSousLinux
Modêye a mostrer 1.68 last modified by yoho on 06/11/2006 at 09:49

Comintaires (44)

Netk5_Alban | 14.09.2005 at 08:38 AM
Lors du redémarrage, le message suivant s'affiche

Starting postfix: /usr/sbin/postconf: warning: My hostname toto is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf postalias: warning: My hostname toto is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf /usr/sbin/postconf: warning: My hostname toto is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf

comment obtenir un nom de domaine valide quand on n'a pas vocation à être serveur, et qu'on n'a pas de nom de domaine précis ? Typiquement, sur un portable…


yoho | 14.09.2005 at 01:00 PM
On peut mettre ce que l'on veut comme nom de domaine pour sa machine, tout comme nom d'hôte, ça n'a pas d'importance puisque de toute façon, il s'agit de mail local qui ne partira jamais sur l'internet. Donc tu peux choisir de donner un nom à ta machine du style : nomdemachine.example.com (et ne met pas de nom si on te demande le nom "zeroconf" : inutile).

dans /etc/postfix/main.cf, rajouter ces deux lignes qui empêcheront postfix de délivrer du mail sur l'internet, quel que soit les conditions du réseau :

inet_interfaces = localhost
mynetworks_style = host
(Je vais rajouter cela dans le blog d'ailleurs)

yoho | 16.09.2005 at 04:57 PM
Aujourd'hui, les images marchent pas… j'utilise mal les balises ?

XWikiGuest | 17.09.2005 at 09:42 AM
yoho, quand t'auras 2 minutes, si tu pouvais nous expliquer comment configurer postfix pour envoyer le rapport à une adresse genre [email protected] (si c'est faisable), merci !

Titpom | 17.09.2005 at 09:43 AM
Oups, j'avais pas vu que j'étais pas loggé…

yoho | 21.09.2005 at 03:38 AM
Alors ça, c'est le mail internet et non pas local. J'ai volontairement restreint le sujet de ce blog au mail local, mais j'en ferais un pour le mail "vers l'extérieur" plus tard : j'en profiterais pour dévoiler un truc peu connu sous Mandriva : les drakwizards.

babeloo | 28.09.2005 at 08:23 PM
Bonjour,

Super cette explication : vraiment très utile. Je tentais vainement de configurer ma messagerie interne avec drakwizard et j'obtenais toujours le même message d'erreur : "echec : réinstallez drakwizard en changeant les paramètres". Comme message d'erreur pas explicite.... Mais en suivant votre explication, nettement plus fastoche ! J'attends avec impatience la configuration de thunderbird pour la messagerie interne. Encore merci Cordialement


XWikiGuest | 30.09.2005 at 11:49 PM
Hummm… en fait je n'ai pas thunderbird ;) mais je vais bien pouvoir faire un effort. En gros, j'ai mis cans le paragraphe ce qu'il fallait faire de mémoire : utiliser un compte "movemail".

Juergen_HARMS | 02.10.2005 at 12:02 PM
Thank you for the initiative to create this page, very useful!

Comments on reading local mail with Thunderbird (while waiting for the screenshots to be added: I created a new account in Thunderbird:

  • type: Movemail
  • account name: Local (my choice)
  • server name: local host (automatically set by Thunderbird)
  • user name: harms (automatically set by Thunderbird
  • other settings: your choice, similar to your other accounts
It works!

jeansagi | 02.10.2005 at 01:30 PM
English | Spanish translation please.

J.


Juergen_HARMS | 02.10.2005 at 01:33 PM
Sorry, I do not know how to edit my comment, I did not note one important issue: Thunderbird needs to be able to create /var/spool/mail/.lock. The only feasible solution is the suggestion to make /var/spool/mail world writeable. Works, but is far from elegant.

And a question: there is also an /etc/aliases file. Which one does take precedance over the other?


Juergen_HARMS | 02.10.2005 at 10:01 PM
Very short and very quick and dirty summary:

Subject:


"Local mail", postfix configuration for channeling local mail for root to an effectively configured user

Each user has a "Local" mailbox, a file at /var/spool/mail/. Normally, everything is configured correctly - with one exception: local mail for root. Without corrections, mail for root would arrive in a local mailbox for the user "postfix" and remain there unread.

Correction 1:


Make sure that mail for root arrives in the local mailbox of a real user (note: such mail is sent, for instance, when certain error messages are issued)

Edit your /etc/postfix/aliases file, make sure that the line root: postfix is replaced by a line root: (i.e. the name of a really existing user, who is meant to receive any mail sent to the user "root". The article mentions two other lines that need to be configured - I found that they already exist in out-of-the-box 10.2

The other instructions figuring in the article illustrate (a) how to make this configuration effective without rebooting the system (i.e. the "service postfix restart" command) and (b) how to verify that everything works correctly.

Correction 2:


Make mail deposited in your local mailbox be picked up by kmail or by Thunderbird.

kmail Screenshot more or less self-explaining: an account "local" is created, select as its locking method "FCNTL" or "Aucun" (I guess - I do not use kmail - in English that will be "None") - none is OK if you only expect to receive local mail very occasionally. FCNTL uses file locking, but the access rights to /var/spool/mail need to grant write access to everybody (dangerous) - the same problem as with Thunderbird.

Discussion (comments)


The file /etc/postfix/main.cf must contain the lines

inet interfac = localhost mynetworks_style = (for use the address you configured for your network interface - nothing if you use zeroconf)

Hope that helps and is not too sloppy.


yoho | 04.10.2005 at 12:38 PM
grrr, c'est moi anonymous en fait, désolé.

yoho | 04.10.2005 at 12:42 PM
I think they are linked together don't they ? (hard or soft). However, I'm using mdv 2006 and there's no /etc/aliases, so I guess it's only there for sendmail compatibility.

yoho | 04.10.2005 at 12:45 PM
Thanks for this little summary/translation. I shouldn't have put this article into my blogs, but into the knowledge base. This way, it could be translated. I'll do it as soon as I find where I can put this article.

gaston_dupont_641 | 12.01.2006 at 04:27 PM
IMPOSSIBLE D'IMPRIMER AVEC UNE cANON I350. cANON NE VEUX PAS ME DOONER LES DRIVERS EN VOYANT LA BALLE DANS LE CLAN LINUX? a BESOIN D'AIDE!

XWikiGuest | 12.01.2006 at 04:27 PM

XWikiGuest | 12.01.2006 at 04:27 PM

XWikiGuest | 12.01.2006 at 04:27 PM

XWikiGuest | 12.01.2006 at 04:27 PM

XWikiGuest | 12.01.2006 at 04:27 PM

XWikiGuest | 12.01.2006 at 04:27 PM


XWikiGuest | 18.10.2006 at 12:21 PM

XWikiGuest | 18.10.2006 at 12:21 PM

XWikiGuest | 18.10.2006 at 12:21 PM

XWikiGuest | 18.10.2006 at 12:21 PM

XWikiGuest | 18.10.2006 at 12:21 PM

XWikiGuest | 18.10.2006 at 12:21 PM

XWikiGuest | 18.10.2006 at 12:21 PM

XWikiGuest | 18.10.2006 at 12:21 PM

XWikiGuest | 18.10.2006 at 12:21 PM

XWikiGuest | 18.10.2006 at 12:21 PM

XWikiGuest | 18.10.2006 at 12:21 PM

XWikiGuest | 18.10.2006 at 12:21 PM

XWikiGuest | 18.10.2006 at 12:21 PM

XWikiGuest | 18.10.2006 at 12:21 PM

XWikiGuest | 18.10.2006 at 12:21 PM

XWikiGuest | 18.10.2006 at 12:21 PM

XWikiGuest | 18.10.2006 at 12:21 PM

XWikiGuest | 18.10.2006 at 12:21 PM

XWikiGuest | 18.10.2006 at 12:21 PM

XWikiGuest | 18.10.2006 at 12:21 PM

XWikiGuest | 18.10.2006 at 12:21 PM


Ahiveu: yoho on 2005/09/13 01:39
(c) Mandriva 2007
18888888