changing Sendmail from address (apache) to other depending on the virtual host
I have a server with many virtual domains.
Several of these have forms and alert emails which are sent via php and sendmail. Currently these all have headers of the form: Code:
Return-Path: <apache@xxx.com> Ive tried adding relevant domains to the trusted domains list, and using php with the -f feature , eg PHP Code:
Ive also looked into using the generics table, but as the actual sender of the email is always apache, it looks like I could only rewrite that to one other address, is that correct? Several hours on google has me going round in circles, can anyone point the way? Thanks! |
If you were using Postfix, "virtual-alias-maps" might do the trick.
|
Sadly I'm not using Postfix, and it's not very likely that this situation will change.. Anyone have an idea for sendmail?
|
Postfix has its own sendmail compatible interface - you probably won't know the difference.
Depending on your distro, if Postfix is installed it will install the sendmail interface too. |
OK I will look into this... the mail server is live with over 100 active users so I will have to be very careful not to interrupt anyones service, its a shame there doesnt seem to be another way to do this!, will report back when Ive done some study, thanks!
|
All times are GMT -5. The time now is 06:19 PM. |