Cool that fixed it. Thanks Michael
I have no idea why everything else worked fine?
Regards
Michael Knill
On 30/9/18, 7:46 pm, "Michael Keuter" wrote:
> Am 30.09.2018 um 08:31 schrieb Michael Knill
:
>
> Hmm strange
>
> I have this and it still uses 3999 as the from
> Am 30.09.2018 um 08:31 schrieb Michael Knill
> :
>
> Hmm strange
>
> I have this and it still uses 3999 as the from user. Note this is a
> derivative of the hostname 3999-IBCBuild-CM1.
>
> echo "Backup failed for archive $FN" | mail -r "r...@ipcsolutions.com.au" -s
> "WARNING: Backup Faile
Hmm strange
I have this and it still uses 3999 as the from user. Note this is a derivative
of the hostname 3999-IBCBuild-CM1.
echo "Backup failed for archive $FN" | mail -r "r...@ipcsolutions.com.au" -s
"WARNING: Backup Failed for archive $FN" monitor...@ipcsolutions.com.au
Regards
Michael Kni
Just guessing the From is being derived from your hostname, you did not mention
how you were sending the email.
The -r argument for "mail" defines the From address, including a text name if
you wish (like my example).
I always define the From: address.
Lonnie
PS, You can delete the "stuck" em
Thanks Lonnie
Interestingly all my other mails have a from address of
r...@ipcsolutions.com.au but from my script its 3...@ipcsolutions.com.au and
being rejected by my mail server. What specifies the from address?
e.g.
Sep 30 09:32:38 3999-IBCBuild-CM1 mail.err msmtp: host=smtp.ipcsolutions.com
Hi Michael,
You probably got the one of the envelope addresses wrong.
Here is an example where I email myself a note whenever my main AstLinux box is
rebooted...
--
#!/bin/sh
. /etc/rc.conf
mail -r "REBOOT-$HOSTNAME " -s "Rebooted at '$HOSTNAME'"
m...@example.com < On Sep 29, 2018, at 6:00 PM
Sorry please ignore. Im a noob
Regards
Michael Knill
From: Michael Knill
Reply-To: AstLinux List
Date: Sunday, 30 September 2018 at 9:01 am
To: AstLinux List
Subject: [Astlinux-users] Im not very good with Linux mail
Hi group
Sorry this is probably an easy one.
I am sending mail from my tars
PS Sorry the test mail tab works fine and Asterisk and Monit can also send mail
fine.
Regards
Michael Knill
From: Michael Knill
Reply-To: AstLinux List
Date: Sunday, 30 September 2018 at 9:01 am
To: AstLinux List
Subject: [Astlinux-users] Im not very good with Linux mail
Hi group
Sorry this