[Asterisk-Users] Question with email notification
Trevor Peirce
tpeirce at digitalcon.ca
Mon Mar 7 19:47:21 MST 2005
J P Edmund wrote:
> I cannot figure out how to configure the box to set the "from" address
> to a correct domain, as my outgoing isp will not pass mail from
> root at asterisk1.local, as I expect it wouldn't.
You can pass an argument to sendmail to accomplish this.
mailcmd=/usr/sbin/sendmail -t -fsrc at address.com
serveremail=src at address.com
note there is no space between -f and src at address.com (I'm not sure if
this really matters or not).
The sendmail arg will make sure bounces go to src at address.com, and
serveremail will make sure your From address is displayed nicely to the
recipient.
More information about the asterisk-users
mailing list