HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

cron job emails

 
arumon
Occasional Advisor

cron job emails

Hi friends,

I am facing issue with cron job emails because domain name registration.
I am having a perl script which executed by crontab each hour for email some text file as a normal user on my hpux server. As my server name is not registred on the DNS, firewalls are blocking the email address (from). Is there any option that i can change the from address on the script or on the crontab level?

Please help.

Thanks and Regards,
Arumon
1 REPLY
Bill Hassell
Honored Contributor

Re: cron job emails

You can configure /etc/mail/sendmail.cf to use masquerading. The macro name is DM and you'll see comments in the sendmail.cf file about using masquerading. Once you change sendmail.cf, be sure to restart sendmail:

/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start


Bill Hassell, sysadmin