Quote:
Originally Posted by Mackhand
I cannot seem to find the right documentation needed for this. I want to setup a single server (Redhat 6.5) that can relay emails to the outside. We have applications that send emails to customers when jobs are done, all they do is send a message to smtp.company.com which is defined in DNS. I want to setup one single server that can send these emails to the outside. I have sendmail setup but so far all I can do is send mail internally as root@servername. I would need the from address to be donotreply@domain.com.
|
You don't say how you're sending the emails, but if they're coming from a script and it's using mail/mailx to do the actual mailing, have you read their man pages? The "-r" flag will set the "FROM" address. What you're asking for with Sendmail is the genericstable feature:
http://www.tldp.org/HOWTO/Sendmail-A...Rewrite-3.html
http://www.sendmail.com/sm/open_sour.../features.html
...which may (or may not), be overkill. And, since you're using RHEL 6.5, have you contacted Red Hat support, since you're paying for it with your subscription?? They have documents in their knowledgebase, which you're also paying for access to....