Re: cron and sendmail

Posted by RENOO on 2010/8/6 7:23:08
Thank you very much for your answer.

Sorry if I haven't been clear. I'd like my server to be able to send mail automatcally, when performing cron task.
Actually, cron mail output are stocked in the "queue"

]# mailq
                /var/spool/mqueue (5 requests)
-----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient-----------
o767AQ1R030498       21 Fri Aug  6 09:10 <Ocean@localhost.localdomain>
                 (host map: lookup (free.fr): deferred)
                                         <rlaxxx@free.fr>
o766wpcc029884       83 Fri Aug  6 08:58 <Ocean@localhost.localdomain>
                 (host map: lookup (free.fr): deferred)
                                         <rlaxxx@free.fr>
o75HV01q024615    10638 Thu Aug  5 19:31 <Ocean@localhost.localdomain>
                 (host map: lookup (free.fr): deferred)
                                         <rlaxxx@free.fr>
o75F8RuQ019385       73 Thu Aug  5 17:08 <Ocean@localhost.localdomain>
                 (host map: lookup (free.fr): deferred)
                                         <rlaxxx@free.fr>
o75EtZO0018960       83 Thu Aug  5 16:55 <Ocean@localhost.localdomain>
                 (host map: lookup (free.fr): deferred)
                                         <rlaxxx@free.fr>
                Total requests: 5


I had a look to the link you've put. But unforunatly, I don't know where to start.
Given want I need (cron sending mail to MAILTO=rlaxxx@free.fr ) shall I

1- Configure SMTP parameters somewhere on my machine ?
2- Configure sendmail : using m4, using webmin ?
3 - Configure postfix ? ( by the way which MTA am I using now ?snedmail postfix ? Which one do you recommand ?)
4- Do I need to configure domaine name somewhere ?

That's enough, I am lost

This Post was from: https://www.centos.org/newbb/viewtopic.php?forum=41&topic_id=27482&post_id=112939