[CentOS] mutt execution by daemon

Jose Maria Terry Jimenez jtj at tssystems.net
Sat Jan 2 08:42:40 UTC 2010


El 02/01/10 9:08, Joseph L. Casale escribió:
>> Hello
>>
>> I'm doing this way, i run an script from cron. Sending several
>> attachments to several addresses with a text in the email's body.
>>
>> In the script called by cron put:
>>
>> EDITOR=touch mutt -s "Here the subject" -F /home/user/.muttrc -i
>> /usr/local/bin/body_text.txt -a /tmp/attachment1 -a /tmp/attachement2 -b
>> address1 at someplace.com address2 at someserver.com
>> addressN at anyserver.com</dev/null
>>
>> And .muttrc:
>>
>> set from=sender_email at somesite.com
>> set envelope_from=yes
>> set realname="Sender's Name"
>>
>> Hope this helps you
>> Best
>>      
> Hi,
> That's similar to what I am doing, but "user" has a local mailbox, correct?
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>    
Hello

Well, the user can receive mail locally if another mails using his name 
in the host. ie if user_one does "mail user_two" then the user can write 
mail to "user_two" but i don't know how to prevent this. The users 
hasn't other kind of mailbox.

Do you mean this?

Remember i run from user's cron and i specify the shell, mailto, path... 
to be used there... I think it would work even if i set the shell to 
/bin/false to that user. Is this what you mean?

Best,
Jose Maria

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Scanned with Copfilter Version 0.84beta3a (ProxSMTP 1.6)
AntiVirus: ClamAV 0.95.2/10248 - Fri Jan  1 23:09:50 2010
by Markus Madlener @ http://www.copfilter.org



More information about the CentOS mailing list