Re: cron and sendmail

Posted by RENOO on 2010/8/8 16:10:56
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 rlaxxx@yahoo.fr

(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)
                                         <rlaxxx@yahoo.fr>
                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(yahoo.fr, trymx=1)
dns_getcanonname: trying yahoo.fr. (AAAA)
        NO: errno=0, h_errno=4
dns_getcanonname: trying yahoo.fr. (A)
        YES
dns_getcanonname: yahoo.fr
getmxrr(yahoo.fr., droplocalhost=1)
<rlaborbe@yahoo.fr>... Connecting to mx2.mail.eu.yahoo.com. via esmtp...
220 mta1013.mail.ukl.yahoo.com ESMTP YSmtp service ready
>>> EHLO localhost.localdomain
250-mta1013.mail.ukl.yahoo.com
250-8BITMIME
250-SIZE 41943040
250 PIPELINING
>>> MAIL From:<Ocean@localhost.localdomain> SIZE=564
250 sender <ocean@localhost.localdomain> ok
>>> RCPT To:<rlaxxx@yahoo.fr>
>>> DATA
250 recipient <rlaxxx@yahoo.fr> ok
354 go ahead
>>> .
250 ok dirdel
<rlaxxx@yahoo.fr>... Sent (ok dirdel)
Closing connection to mx2.mail.eu.yahoo.com.
>>> QUIT
221 mta1013.mail.ukl.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