How to catch outgoing email when using a SMART_HOST relay
Our organization has a website where users can send messages via a Contact Us page.those messages are sent to various recipients. The webserver uses sendmail, but is configures to use the company's Exchange server as the SMART_HOST email relay. Therefore, messages sent from the webpage app (jsp) never route through the local sendmail. I conclude this because I have a bcc-milter which saves a copy of all email to a mail folder and none of the webpape app emails go to this folder.
What can I do to route messages through the local Sendmail server first so Spamassassin can catch and remove the endless stream of messages about Casinos and SEO services? |
Quote:
|
I did try that and it sort-of works. However, there's a problem. I do this (sendmail and mailx):
Code:
mail -r joe@xmail.com -s "contact me" contactus < msg.txt Code:
contactus: contactus@mydom.org Code:
To: joe@xmail.com; contactus@webserver.hprs.local |
Quote:
Code:
account portal { How to change the sender's email address with sendmail? |
Quote:
Also, I'd look into the web-code itself, to see how it's sending mail, to see if things can be tweaked there, which may be an easier solution. You might be able to set things there, which would affect only one form/function/page, rather than your entire sendmail server. |
All times are GMT -5. The time now is 08:54 AM. |