|
Home > Archive > Unix Shell > February 2006 > cron: Looking for something like MAILFROM
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
cron: Looking for something like MAILFROM
|
|
| Jan Schubert 2006-02-09, 6:02 pm |
| I'm wondering if there is something like MAILFROM (according to the
MAILTO environmnet variable) to change the FROM address when cron is
sending mails.
Is there any other way to change the domain part of the sender when
sending mails through cron directly (without using pipes and without
having root access to the box)?
Could MAILTO to be used to pipe the mails through a command (f.i.
'mailx -r').
TiA,
Jan
--
Lasst uns mehr Freiheit wagen! /"\ ASCII ribbon campaign
- Angela Merkel, 30.11.2005 \ / against HTML
X in eMail and news
/ \
| |
| Hajo Ehlers 2006-02-09, 6:02 pm |
| Your question is not quite clear
Do mean : If a cronjab creates output to stdout & stderr - can i change
the FROM address used by cron ?
or do you mean: I have a cronjob with does sends email and i would like
to change the domain part ?
Hajo
| |
| Jan Schubert 2006-02-10, 7:49 am |
| Hajo Ehlers wrote:
> Do mean : If a cronjab creates output to stdout & stderr - can i change
> the FROM address used by cron ?
Yes, the output is mailed to the user or to $MAILTO, how can I cahnge
the from address used in this mail?
> or do you mean: I have a cronjob with does sends email and i would like
> to change the domain part ?
Also yes, I'd like to change especialy the domain part in FROM used
sending the mail.
Thx a lot,
Jan
--
Lasst uns mehr Freiheit wagen! /"\ ASCII ribbon campaign
- Angela Merkel, 30.11.2005 \ / against HTML
X in eMail and news
/ \
| |
| Bruce Barnett 2006-02-10, 7:49 am |
| Jan Schubert <usenet_2005@nurfuerspam.de> writes:
> Hajo Ehlers wrote:
>
> Yes, the output is mailed to the user or to $MAILTO, how can I cahnge
> the from address used in this mail?
It depends on your mail software. With sendmail, as i recall,
1) You create the mail headers yourself
2) You pipe it to "sendmail -t"
3) You have be to be in the "trusted" sendmail users list
Ft/etc/mail/trusted-users <-in your sendmail.cf file
--
Sending unsolicited commercial e-mail to this account incurs a fee of
$500 per message, and acknowledges the legality of this contract.
| |
| Jan Schubert 2006-02-10, 7:49 am |
| Bruce Barnett wrote:
> It depends on your mail software. With sendmail, as i recall,
> 1) You create the mail headers yourself
> 2) You pipe it to "sendmail -t"
> 3) You have be to be in the "trusted" sendmail users list
>
> Ft/etc/mail/trusted-users <-in your sendmail.cf file
I'm pretty sure I could do anything if I only had root access to the
box. Thats why I asked in my OP for solution without it...
TiA,
Jan
--
Lasst uns mehr Freiheit wagen! /"\ ASCII ribbon campaign
- Angela Merkel, 30.11.2005 \ / against HTML
X in eMail and news
/ \
| |
| Bruce Barnett 2006-02-11, 7:52 am |
| Jan Schubert <usenet_2005@nurfuerspam.de> writes:
> Bruce Barnett wrote:
>
> I'm pretty sure I could do anything if I only had root access to the
> box. Thats why I asked in my OP for solution without it...
Only the 3rd step needs root access.
You can still do it, but I think the mail headers will show
that you changed the From address.
--
Sending unsolicited commercial e-mail to this account incurs a fee of
$500 per message, and acknowledges the legality of this contract.
|
|
|
|
|