Outbound SMTP with Asterisk


#1

Is there anyway to set the outbound SMTP server for asterisk to use to email voicemails?

Thanks.


#2

yes. go to /etc/mail/sendmail.cf and set the “smart host” (DS field) to the name of your mail server…


#3

I edited that line, but obviously my linux lack of experience with sendmail means something else is wrong because the upstream mail server has:
Wed 2006-02-22 10:52:08: SSL negotiation successful (TLS 1.0, 1024 bit key exchange, 128 bit RC4 encryption)
Wed 2006-02-22 10:52:08: <-- EHLO localhost.localdomain
Wed 2006-02-22 10:52:08: Performing IP lookup (localhost.localdomain)
Wed 2006-02-22 10:52:08: * Error: Name server reports domain name unknown
Wed 2006-02-22 10:52:08: ---- End IP lookup results

which means I need to set something in a file to change it from localhost.localdomain.

Any help is appreciated.

Thanks


#4

go to /etc/sysconfig/network and set the hostname there. restart the network (reboot will do it if you don’t know how, i don’t remember the specific command…)


#5

has to be hiding somewhere else as well, because I changed it there, but the mail server still sees it as localhost.localdomain


#6

probably also /etc/hosts.