Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Load mod_sendmail to Apache/httpd on CentOS 6.5
- Location : /etc/httpd/conf/httpd.conf
- LoadModule sendmail_module modules/mod_sendmail.so
- ######################################################
- Location : /etc/httpd/conf.d/sendmail.conf
- <Location /sendmail>
- # protect against open relay
- Order Deny,Allow
- Allow from all
- #Allow from 127.0.0.1
- # simple configuration
- SetHandler sendmail
- SendmailName /usr/sbin/sendmail
- SendmailArguments -t -i
- </Location>
- #########################################################
- Test it with curl :
- curl -X POST -d "Skuska http web service rest API" -H "Content-Type: text/plain" \
- -H "To: ja@ja.sk" -H "Cc: ja@ja.sk" -H "From: ja@ja.sk" \
- -H "Subject: Skuska Mail WS 222" http://localhost/sendmail
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement