Voicemail to e-mail

dbaddour

Member
Joined
Oct 16, 2008
Messages
330
Reaction score
2
Hi all,
We recently moved from hosting our Exchange to external host (Microsoft online services). Prior to this our Voicemail to e-mail worked flowless and everyone was very impressed.
But now i cannot get it to work, I tried many suggestions online without any success. used Postfix, sendmail without any success. we do have a relay server, even using its IP did not resolve the problem.

Anyone have hints on how to procceed with this using the above services please.

Cheers
 
check your firewall

Check the logs and rules. Maybe you have a rule blocking port 25.

Can you ping the destination? Maybe the email is being tagged as spam. Maybe the destination needs to have the hostname of the piaf server.
 
Hi MrBostn,

The firewall on this server is disable.
On your second comment would you please have little more details. All of our e-mails are hosted with Microsoftonline.
 
Is your piaf box inside or outside your network firewall?

If inside-then check your network firewall. If outside-never mind.
Also MS online may need the IP and/or hostname of the piaf box for security/authentication.
In webmin, check the logs in the sendmail or poxfix location. If emails are in the queue that may give you a hint on the issue.
 
Hi again,

Still fighting with this issue: when i send a test e-mail:
root@xxxpbx:~ $ echo "Subject: test" | /usr/lib/sendmail -v myname@xxxxx.com
myname@xxxxx.com... Connecting to [127.0.0.1] via relay...
220 xxxxpbx.local ESMTP Sendmail 8.13.8/8.13.8; Wed, 29 Jun 2011 13:39:59 -0300
>>> EHLO xxxxpbx.local
250-xxxpbx.local Hello xxxpbx.xzxx.local [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
>>> MAIL From:<[email protected]> SIZE=14
250 2.1.0 <[email protected]>... Sender ok
>>> RCPT To:<myname@xxxx.com>
>>> DATA
250 2.1.5 <myname@xxxx.com>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 p5TGdx9K016700 Message accepted for delivery
myname@xxxx.com... Sent (p5TGdx9K016700 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 xxxpbx.local closing connection
 
It looks like your server is accepting your test e-mail. Have you checked the mail queue once the message is sent?

Use mailq and see if the message is sitting in the queue or if it has actually been sent.

As others have suggested, check the logs - see /var/log/maillog .
 
From the mail log that what i got.. Iptables on the pbx is off:

root@halipbx:~ $ mailq
/var/spool/mqueue (4 requests)
-----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient-----------
p5THDbue017306 1429 Wed Jun 29 14:13 MAILER-DAEMON
(Deferred: Connection refused by xxxpbx.domain.local.)
<[email protected]>
p5TGoYcg017022 1429 Wed Jun 29 13:50 MAILER-DAEMON
(Deferred: Connection refused by xxxpbx.domain.local.)
<[email protected]>
p5TGSoDk016215 1429 Wed Jun 29 13:28 MAILER-DAEMON
(Deferred: Connection refused by xxxpbx.domain.local.)
<[email protected]>
p5TGdx9K016702 1429 Wed Jun 29 13:39 MAILER-DAEMON
(Deferred: Connection refused by xxxpbx.domain.local.)
<[email protected]>
Total requests: 4
 
Can you verify that the machine xxxpbx.domain.local. is actually a separate machine? Your mail is being held on xxxpbx.local because xxxpbx.domain.local is refusing the connection.

You need to tell it that xxxpbx.local is allowed to relay.

If there isn't a separate machine, it would appear you have a potential configuration issue with sendmail.
 
the xxxpbx.domain.local is the local Asterisk/PBX machine.
I changed the .domain.local to the name of the machine which is xxxpbx.local

Now i got that error:
root@xxxpbx:~ $ mailq
No local mailer defined
QueueDirectory (Q) option must be set

Status of the sendmail is running
 
root@halipbx:~ $ /etc/init.d/sendmail stop
Shutting down sm-client: [ OK ]
Shutting down sendmail: [FAILED]
root@halipbx:~ $ /etc/init.d/sendmail start
Starting sendmail: 554 5.0.0 No local mailer defined
554 5.0.0 QueueDirectory (Q) option must be set
[FAILED]
Starting sm-client: [ OK ]
 
the xxxpbx.domain.local is the local Asterisk/PBX machine.
I changed the .domain.local to the name of the machine which is xxxpbx.local

Where did you change this?

What do you have in /etc/hosts and /etc/sysconfig/network ?

EDIT: Is /etc/mail/sendmail.cf present? It should be around 58K in size.
 
that what i have in
root@halipbx:~ $ more /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 halipbx.domain.local halipbx.local halipbx.domain.com localhost
::1 localhost6.localdomain6 localhost6


root@halipbx:~ $ more /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=halipbx.local

But the /etc/mail/sendmail.cf is 0 in size... HHMMMM
 
You have to have sendmail.cf in order for sendmail to work properly. :) The other files look fine.

That's probably been your biggest issue all this time.

How familiar are you with the process of generating sendmail.cf using the m4 processor?
 
i tried to run it but i got this:

root@halipbx:/etc/mail $ m4 sendmail.mc > sendmail.cf
sendmail.mc:10: m4: cannot open `/usr/share/sendmail-cf/m4/cf.m4': No such file or directory
 
Run...

Code:
 yum install sendmail-cf m4
... and try again.
 
That what got me: (i have already done it, installed with the same error and nothing in .cf)

root@halipbx:~ $ yum install sendmail m4
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* Webmin: download.webmin.com
* addons: mirror.science.uottawa.ca
* base: mirror.science.uottawa.ca
* extras: mirror.science.uottawa.ca
* updates: mirror.science.uottawa.ca
Excluding Packages from CentOS-5 - Addons
Finished
Excluding Packages from CentOS-5 - Base
Finished
Excluding Packages from CentOS-5 - Extras
Finished
Excluding Packages from CentOS-5 - Updates
Finished
Setting up Install Process
Package sendmail-8.13.8-8.el5.i386 already installed and latest version
Package m4-1.4.5-3.el5.1.i386 already installed and latest version
Nothing to do
 
The clue is that /usr/share/sendmail-cf/m4/cf.m4 seems to be missing. Verify that it exists. The easiest thing to do is probably remove those two packages and re-install them.

Code:
 yum remove sendmail-cf m4
yum install sendmail-cf m4
... and see if that resolves it.

Lastly, it sounds like your installation may be incomplete. Those packages exist on our production server and the m4 package exists in a recent test build, but not sendmail-cf.
 
Randy,

I have followed these instructions at the same time as i done previously still when i attempt the install of the sendmail.cf i got this :
Setting up Install Process
No package sendmail.cf available.
Nothing to do

hmmmm
 
The package name should be sendmail-cf (with a dash) and not sendmail.cf (with a period).
 
ok done, i have installed the sendmail-cf and m4 and verify they exist in /usr/share/sendmail-cf/m4/cf.m4

i started sendmail and is ok, i tried to send an -mail with the same error we have at the begining with that thread.

root@halipbx:~ $ echo "Subject: test" | /usr/lib/sendmail -v myname@domain .com
myname@domain.com... Connecting to [127.0.0.1] via relay...
220 halipbx.domain.local ESMTP Sendmail 8.13.8/8.13.8; Wed, 29 Jun 2011 23:14:14 -0300
>>> EHLO halipbx.domain.local
250-halipbx.domain.local Hello halipbx.domain.local [127.0.0.1], pleased to meet y ou
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
>>> MAIL From:<[email protected]> SIZE=14
250 2.1.0 <[email protected]>... Sender ok
>>> RCPT To:<myname@domain.com>
>>> DATA
250 2.1.5 <my name@domain.com>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 p5U2EEnt005116 Message accepted for delivery
myname@domain.com... Sent (p5U2EEnt005116 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 halipbx.domain.local closing connection


root@halipbx:~ $ mailq
/var/spool/mqueue is empty
Total requests: 0
 

Members online

No members online now.

Forum statistics

Threads
26,687
Messages
174,410
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top