Thank you once again.
Not I didn't not modify anything in my sendmail configuration before.
Now, as you mentionned, I modified my /etc/mail/sendmail.mc and wrote
dnl define(`SMART_HOST', `smtp.free.fr')dnl
It seems the command make went well :
[root@rio ~]# make -C /etc/mail
make: Entering directory `/etc/mail'
make: Leaving directory `/etc/mail'
But still when I tried to send a mail :
Ocean@rio:~$ echo hello | mail -s test firstname.lastname@example.org
(I have changed the outgoing adress this time )
[root@rio ~]# mailq
/var/spool/mqueue (1 request)
-----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient-----------
o78Fo4HS016111 6 Sun Aug 8 17:50 <Ocean@localhost.localdomain>
(host map: lookup (yahoo.fr): deferred)
Total requests: 1
the mail do not leave the queue.
I had a look at the following page : map lookup
I don't understand everything but I can run the following command (see at the end of the page)
sendmail -v -d8.32 -qIo78Fo4HS016111
Running /var/spool/mqueue/o78Fo4HS016111 (sequence 1 of 1)
dns_getcanonname: trying yahoo.fr. (AAAA)
NO: errno=0, h_errno=4
dns_getcanonname: trying yahoo.fr. (A)
<email@example.com>... Connecting to mx2.mail.eu.yahoo.com. via esmtp...
220 mta1013.mail.ukl.yahoo.com ESMTP YSmtp service ready
>>> EHLO localhost.localdomain
>>> MAIL From:<Ocean@localhost.localdomain> SIZE=564
250 sender <firstname.lastname@example.org> ok
>>> RCPT To:<email@example.com>
250 recipient <firstname.lastname@example.org> ok
354 go ahead
250 ok dirdel
<email@example.com>... Sent (ok dirdel)
Closing connection to mx2.mail.eu.yahoo.com.
And the mail arrives at destination. Great !
Does this help ?
This Post was from: https://www.centos.org/newbb/viewtopic.php?forum=41&topic_id=27482&post_id=113061