Configuration mailx

santiago69 Messages postés 485 Statut Membre -  
TOm|TOm Messages postés 32 Statut Membre -
Salut a tous,
J'essaye d'envoyer un mail en ligne de commande.
sudo du -sBG / | mailx -v -s 'disk usage' [email protected]

Grace a l'option verbose, j'optiens le resultat suivant :
LOG: MAIN
  <= [email protected] U=santiago P=local S=1819
delivering 1Juxmv-0007pu-4Q
R: nonlocal for [email protected]
LOG: MAIN
  ** [email protected] R=nonlocal: Mailing to remote domains not supported
santiago@ks354286:~$ LOG: MAIN
  <= <> R=1Juxmv-0007pu-4Q U=Debian-exim P=local S=2664
delivering 1Juxmv-0007pw-5A
R: system_aliases for [email protected]
R: userforward for [email protected]
R: procmail for [email protected]
R: maildrop for [email protected]
R: local_user for [email protected]
T: appendfile for [email protected]
LOG: MAIN
  Completed
LOG: MAIN
  => santiago <[email protected]> R=local_user T=mail_spool
LOG: MAIN
  Completed

En ligne 6, on lit : Mailing to remote domains not supported
Faut il configurer quelquechose pour que ce soit possible ?

Merci d'avance
Santiago

--

Il y a 10 types de personnes dans le monde
Ceux qui comprennent le binaire et les autres.

3 réponses

TOm|TOm
 
Salut !

As tu installé le paquet ssmtp comme précisé dans la doc ?
0
santiago69 Messages postés 485 Statut Membre 209
 
Merci TOm|TOm.
Je pense effectivement qu'il me manque le paquet ssmtp mais voila ce qu'il me propose a l'installation :
santiago@ks354286:~$ sudo aptitude install ssmtp
Reading package lists... Done
Building dependency tree... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
Building tag database... Done
The following packages are BROKEN:
  exim4 exim4-config
The following packages will be automatically REMOVED:
  exim4-daemon-light
The following NEW packages will be installed:
  ssmtp
The following packages will be REMOVED:
  exim4-daemon-light
0 packages upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
Need to get 44.0kB of archives. After unpacking 893kB will be freed.
The following packages have unmet dependencies:
  exim4-config: Conflicts: ssmtp but 2.61-11.1 is to be installed.
  exim4: Depends: exim4-daemon-light but it is not installable or
                  exim4-daemon-heavy but it is not installable or
                  exim4-daemon-custom which is a virtual package.
Resolving dependencies...
The following actions will resolve these dependencies:

Remove the following packages:
exim4
exim4-base
exim4-config

Score is 71

Accept this solution? [Y/n/q/?]


Dois je vraiment supprimer tous les paquets exim4 ?

0
santiago69 Messages postés 485 Statut Membre 209
 
Bon j'ai fini par accepter l'installation de ssmtp et donc la désinstallation d'exim4
Maintenant j'ai des nouvelles erreurs lors de l'envoi d'un message :
santiago@ks354286:~$ sudo du -sBG / | mailx -v -s 'disk usage' [email protected]
[<-] 220 ns0.ovh.net ssl0.ovh.net. You connect to mail66.ha.ovh.net ESMTP
[->] HELO ks354286.kimsufi.com
[<-] 250 You are: 91.121.101.111:ks354286.kimsufi.com
[->] MAIL FROM:<[email protected]>
[<-] 250 ok
[->] RCPT TO:<[email protected]>
[<-] 553 sorry, that domain isn't allowed to be relayed thru this MTA (#5.7.1)
send-mail: RCPT TO:<[email protected]> (553 sorry, that domain isn't allowed to be relayed thru this MTA (#5.7.1))
Can't send mail: sendmail process failed with error code 1


Merci de votre aide
0
TOm|TOm Messages postés 32 Statut Membre 2
 
Ca devrait pouvoir t'aider

https://docs.ovh.com/fr/
0