[Asterisk-Users] Re: problems with emailing voicemail
Steve Jones
sjones at ftdata.com
Mon Mar 20 08:29:26 MST 2006
Maybe I am misunderstanding what you did here, but I just want to make sure... First, in the "network' file, the goal was to change the hostname from "localhost.localdomain" reference to a real hostname that would be accepted, so that the file would look more like:
NETWORKING=yes
HOSTNAME=asterisk.mydomain.com
And the other poster was recommeding that the hosts file, should be setup to point the loopback address to that name as well, such as adding (or modifying the existing 127.0.0.1 line to look like:
127.0.0.1 asterisk.mydomain.com
Another thing to do, would be to go to your /etc/mail/access file [vi /etc/mail/access] ahd make sure, or add your localhost as a trusted machine for sendmail.. From this link http://www.linuxhomenetworking.com/linux-hn/sendmail.htm I am reading/recommending that you put lines such as these in your "access" file:
localhost.localdomain RELAY
localhost RELAY
127.0.0.1 RELAY
If your "access" file isn't in the /etc/mail directory, you may have to do a "locate access" to find it.. "locate" will only work if you have sometime in the past run an "updatedb" to build the hard drive's index for the locate to work on it...
Hope this helps..
-Steve
________________________________
From: hugolivude [mailto:hugolivude at gmail.com]
Sent: Mon 3/20/2006 10:14 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] Re: problems with emailing voicemail
Guys,
Thanks again for all your help. I've updated /etc/sysconfig/network and /etc/hosts as per your suggestions:
/etc/sysconfig/network:
NETWORKING=yes
HOSTNAME=localhost.localdomain
127.0.0.1 <my external, static IP address> asterisk localhost
/etc/hosts:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
127.0.0.1 <my external, static IP address> asterisk localhost
But still no luck. I've also noticed a problem when I boot the server. Sendmail along with a number of other processes generate an errror message. They're all pretty much the same error message and same line number so here's an example:
etc/rc.d/rc.sysinit error line 3: 127.0.0.1 command not found
FWIW, I've included the first part of my etc/rc.d/rc.sysinit below.
I'm stumped. This was working before, what could have possibly happened? Any other ideas on how to fix it before I go and re-install RedHat??
Thanks,
Hugh
#!/bin/bash
#
# /etc/rc.d/rc.sysinit - run once at boot time
#
# Taken in part from Miquel van Smoorenburg's bcheckrc.
#
# Rerun ourselves through initlog
if [ -z "$IN_INITLOG" -a -x /sbin/initlog ]; then
exec /sbin/initlog $INITLOG_ARGS -r /etc/rc.d/rc.sysinit
fi
# If we're using devfs, start devfsd now - we need the old device names
[ -e /dev/.devfsd -a -x /sbin/devfsd ] && /sbin/devfsd /dev
HOSTNAME=`/bin/hostname`
if [ -f /etc/sysconfig/network ]; then
. /etc/sysconfig/network
else
NETWORKING=no
fi
if [ -z "$HOSTNAME" -o "$HOSTNAME" = "(none)" ]; then
HOSTNAME=localhost
fi
. /etc/init.d/functions
# Start the graphical boot, if necessary
if [ "$BOOTUP" = "graphical" ]; then
if [ -x /usr/bin/rhgb ]; then
/usr/bin/rhgb
else
export BOOTUP=color
fi
fi
last=0
for i in `LC_ALL=C grep '^[0-9]*.*respawn:/sbin/mingetty' /etc/inittab | sed 's/^.* tty\([0-9][0-9]*\).*/\1/g'`; do
> /dev/tty$i
last=$i
done
if [ $last -gt 0 ]; then
> /dev/tty$((last+1))
> /dev/tty$((last+2))
fi
if [ "`/sbin/consoletype`" = "vt" -a -x /sbin/setsysfont ]; then
echo -n "Setting default font ($SYSFONT): "
/sbin/setsysfont
if [ $? -eq 0 ]; then
success
else
failure
fi
echo ; echo
fi
On 3/17/06, Colin Anderson <ColinA at landmarkmasterbuilder.com> wrote:
if you are using Sendmail, then you have to add a trusted user to /etc/sendmail.cf in the format:
Tuser
So if the user you run Asterisk under is called "asterisk" then you add Tasterisk to sendmail.cf. Restart Sendmail. Then in voicemail.conf you can set the email address to whatever you want, it's at the top of the config file, I believe.
-----Original Message-----
From: hugolivude [mailto:hugolivude at gmail.com]
Sent: Friday, March 17, 2006 10:49 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] Re: problems with emailing voicemail
Wow, Thanks so much for all your help. I tried Steve's suggestion using tail and found:
from=<root at localhost.localdomain >, ...
stat=Deferred: 450 <root at localhost.localdomain>: Sender address rejected: Domain not found
So it looks like the sender email is no longer acceptable. This worked fine b4, so perhaps the ISP taking care of the callees email has changed its policy? Anyway, I could use a hand on how to fix this. How do I get Asterisk to use a valid email address rather than root at localhost.localdomain?
Many Thanks,
Hugh
On 3/17/06, Steve Jones <sjones at ftdata.com> wrote:
Do a "tail -f /var/log/maillog" which will give you a real-time view of your mail server activity, then while that's running, leave yourself a voicemail.
________________________________
From: Tony Mountifield [mailto:tony at softins.clara.co.uk]
Sent: Fri 3/17/2006 10:13 AM
To: asterisk-users at lists.digium.com
Subject: [Asterisk-Users] Re: problems with emailing voicemail
In article <c471e4e30603170705t5e596848laf5a0a490b178b12 at mail.gmail.com >,
hugolivude <hugolivude at gmail.com> wrote:
>
> I'm running a 1.1 version of Asterisk (a stable build from back in Oct-05)
> running on RedHat 9.0 . Everything's been great but a couple of days ago, we
> all stopped receiving emails of our voicemail. There's been no changes to
> our configuration
>
> I bet I'm expereiencing a Linux problem rather than an Asterisk problem, but
> because I know only as much Linux as required to get Asterisk going, I'm
> hoping someone can steer me in the right direction!
>
> Any suggestions where/how to troubleshoot?
The first place to look would be in /var/log/maillog on the box.
Look particularly around the time when a voicemail should have been sent.
Cheers
Tony
--
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 13118 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20060320/bdcf46c3/attachment.bin
More information about the asterisk-users
mailing list