I have run into what can only be described as a farce but one that is outside my control and which I need fixed. I am informed that my cell phone service provider, Bell Canada, will not allow any email messages from a user id 'root' to pass through their email to sms text gateway. Now, I send alerts out from cron and other system monitoring software and these all go out as root at host.domain.tld. Is there any way to configure the outgoing address to be something else? Or do I have to rename the root user to get around this nonsensical, and utterly useless, restriction imposed by my provider? -- *** E-Mail is NOT a SECURE channel *** James B. Byrne mailto:ByrneJB at Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3
On 01/29/2013 04:03 PM, James B. Byrne wrote:> I have run into what can only be described as a farce but one that is > outside my control and which I need fixed. > > I am informed that my cell phone service provider, Bell Canada, will > not allow any email messages from a user id 'root' to pass through > their email to sms text gateway. Now, I send alerts out from cron and > other system monitoring software and these all go out as > root at host.domain.tld. > > Is there any way to configure the outgoing address to be something > else? Or do I have to rename the root user to get around this > nonsensical, and utterly useless, restriction imposed by my provider? > >vi /etc/aliases Edit entry at bottom of file: # Person who should get root's mail #root: marc Execute newaliases as root or sudo
On Tue, Jan 29, 2013 at 4:03 PM, James B. Byrne <byrnejb at harte-lyne.ca> wrote:> I have run into what can only be described as a farce but one that is > outside my control and which I need fixed. > > I am informed that my cell phone service provider, Bell Canada, will > not allow any email messages from a user id 'root' to pass through > their email to sms text gateway. Now, I send alerts out from cron and > other system monitoring software and these all go out as > root at host.domain.tld. > > Is there any way to configure the outgoing address to be something > else? Or do I have to rename the root user to get around this > nonsensical, and utterly useless, restriction imposed by my provider?First, are you sure that the @host.domain.tld is really included for root? If you are relying on sendmail's 'MASQUERATE_AS', you have to make sure that you remove root from the EXPOSED_USER default setting. Otherwise see 'man 5 crontab' for how to set MAILFROM, or if you are mailing in a script, construct the headers yourself and use 'sendmail -t' to use them instead of using the unix user as the sender. -- Les Mikesell lesmikesell at gmail.com
On 01/29/2013 02:03 PM, James B. Byrne wrote:> Is there any way to configure the outgoing address to be something > else? Or do I have to rename the root user to get around this > nonsensical, and utterly useless, restriction imposed by my provider?http://www.postfix.org/ADDRESS_REWRITING_README.html#remote
On Tue, January 29, 2013 17:37, lists-centos wrote:> > James -- Look at the MAILFROM bit in crontab(5). > > > - Richard >That worked on CentOS-6 but does not on CentOS-5. I have rearranged things to run the tests solely from CentOS-6 boxes and using MAILFROM has circumvented the problem. Bell Canada is still 'working on a solution'. Thanks, -- *** E-Mail is NOT a SECURE channel *** James B. Byrne mailto:ByrneJB at Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3