Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SendMail - Sending as Apache

Status
Not open for further replies.

theguru97321

IS-IT--Management
Feb 3, 2003
216
US
I've set up a send emails. I've added Apache as a trusted user. I want to send the email from APACHE, but masq as user@domain.com. But every time I send a msg to a secure mail server, it says it rejects email from localhost.localdomain. I can not find anywhere in config to change that.
 
Apache donsn't have anything to do with sending mail. If you are providing webmail, then all apache does is serve the pages and the script hands the mail off to sendmail. The first thing you need to do is open /etc/mail/local-host-names with a text editor and add yourdomain.com to the list. Then you need to open /etc/mail/access and add this line:

yourdomain.com RELAY

Save it and create access.db:

makemap hash /etc/mail/access.db < /etc/mail/access

If your prompt on the command line is showing localhost, that is what will show up in the headers when you send mail from that machine. If you want to change it, type:

hostname whateveryouwant

That should do it.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top