[Asterisk-Users] Sendmail with exchange

34 views
Skip to first unread message

Jordan Novak

unread,
Feb 10, 2006, 4:42:14 PM2/10/06
to asteris...@lists.digium.com

I am using Asterisk to send Voicemail out as Email. I am running into a
problem I believe to be caused by the exchange server requiring SMTP
authentication. I cannot get the sys admin's to turn it off. Does anyone
know enough about sendmail to help me. I am assuming that the default
mail client is sendmail. It will also send to other non-SMTP
authenticated servers. Your help is much appreciated.

Jordan Novak
_______________________________________________
--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

kevin ling

unread,
Feb 10, 2006, 7:45:23 PM2/10/06
to Asterisk Users Mailing List - Non-Commercial Discussion
Hi,

Can you make some test to send voicemail to other mail account? (e.g,
@yahoo.com, @hotmail.com...). If it's work. I think not a SMTP authetication
problem. Or you can check the asterisk maillog first.

Kevin

Steve Totaro

unread,
Feb 10, 2006, 11:09:28 PM2/10/06
to Asterisk Users Mailing List - Non-Commercial Discussion
They should be willing to turn on relaying for your specific IP or host.
Since I have Comcast cable, I am on a lot of blacklists (they blacklist
all of Comcast's home users subnets).

To get around this, and I am sure there is a much simpler way
(eliminating Exchange), I allow my Exchange server to relay from one
specific host. There is no authentication required coming from this
specific host.

This still doesn't solve the blacklist problem but I use a service
called www.dnsexit.com which has email relay as one of their services.
They are not on any blacklists (that I am aware of)and the reason why I
make the hop to Exchange is because they have an easy how-to with
pictures :-) on their website for authentication from Exchange.

I followed their instructions and have checked my logs, I am not an open
relay and only use about 500 relays a day average.

I pay $50/yr for 600 relays which is fine for now. Here are their
prices.

Pricing
Fully refundable within 30 days of the payment if service is not
satisfied.
150 relays per day - $14.95/year
300 relays per day - $26.95/year
450 relays per day - $38.95/year
600 relays per day - $49.95/year
900 relays per day - $79.95/year
1200 relays per day - $107.95/year
1500 relays per day - $139.95/year
2000 relays per day - $179.95/year

Rock solid delivery and have not had any bounced blacklist emails. Not
sure if the prices are good but I like the service they provide and may
look at somem of the other services they have if I ever need them.

I have no affiliation with this company.

Thanks,
Steve Totaro
http://www.asteriskhelpdesk.com

Peter Bowyer

unread,
Feb 11, 2006, 3:29:31 AM2/11/06
to Asterisk Users Mailing List - Non-Commercial Discussion
On 10/02/06, Jordan Novak <jno...@logisticshealth.com> wrote:
>
> I am using Asterisk to send Voicemail out as Email. I am running into a
> problem I believe to be caused by the exchange server requiring SMTP
> authentication. I cannot get the sys admin's to turn it off. Does anyone
> know enough about sendmail to help me. I am assuming that the default
> mail client is sendmail. It will also send to other non-SMTP
> authenticated servers. Your help is much appreciated.

Install MSMTP as your local MTA (replacing sendmail). Configure
Asterisk to use the local MTA, and configure MSMTP to forward to the
Exchange server with authentication.

http://msmtp.sourceforge.net/

Peter
--
Peter Bowyer
Email: pe...@bowyer.org
Tel: +44 1296 768003
VoIP: sip:pe...@bowyer.org
VoIP: *50487...@sipbroker.com
FWD: **275*5048707000
VoipTalk: **473*5048707000

Tzafrir Cohen

unread,
Feb 11, 2006, 5:30:51 AM2/11/06
to asteris...@lists.digium.com
On Sat, Feb 11, 2006 at 08:29:31AM +0000, Peter Bowyer wrote:
> On 10/02/06, Jordan Novak <jno...@logisticshealth.com> wrote:
> >
> > I am using Asterisk to send Voicemail out as Email. I am running into a
> > problem I believe to be caused by the exchange server requiring SMTP
> > authentication. I cannot get the sys admin's to turn it off. Does anyone
> > know enough about sendmail to help me.

Have you RTFMed?

http://sendmail.org/ has, under the section "Primary Sources for
Information":

please read the FAQ[1], as well as Compiling[2] and Configuration[3]
before asking any questions.

[1] http://sendmail.org/faq/
[2] http://sendmail.org/compiling.html
[3] http://sendmail.org/m4/readme.html

Under the Configuration link, the table of contents refers you to a page
about SMTP authentication:
http://sendmail.org/m4/smtp_auth.html

The relevant parts of it are the parts where sendmail is a SMTP client
to another SMTP server (the MS-Exchange server, in this case).

> > I am assuming that the default
> > mail client is sendmail. It will also send to other non-SMTP
> > authenticated servers. Your help is much appreciated.

BTW: you really don't have to use sendmail. You can use just about any
other mailer that provider a /usr/sbin/sendmail program . postfix, exim
and qmail will also do. I personally prefer postfix. Generally stick to
the default one of your distro if you don't have a good reason to change
it, as it will probably be the most maitained.

>
> Install MSMTP as your local MTA (replacing sendmail). Configure
> Asterisk to use the local MTA, and configure MSMTP to forward to the
> Exchange server with authentication.
>
> http://msmtp.sourceforge.net/

The problem with msmtp and similar programs (ssmtp, nullmailer) is that
they don't queue. Thus if there was a temporary problem at the network
or the recieving side, the message is lost.

And frankly, you may not want every message from the crond to end over
remotely.

--
Tzafrir Cohen | tza...@jbr.cohens.org.il | VIM is
http://tzafrir.org.il | | a Mutt's
tza...@cohens.org.il | | best
ICQ# 16849755 | | friend

Sean Cook

unread,
Feb 11, 2006, 1:44:47 PM2/11/06
to Asterisk Users Mailing List - Non-Commercial Discussion
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The only way you would need authenticated SMTP is for relaying. My
suggestion would be to not set up sendmail to use a smart host but have
it act as an internet mail server. It will lookup the mx records and
make the sending determinations based on the domain it is sending to.

The exchange server should accept (with out authentication) anything
that it is addressed to a locally hosted domain.

Sean

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFD7jCfy9wPyZpnL2URAgXyAKCjBI0l9NDP+4q2eyfvEN6WBGHuxACeJK2d
A1DmW/JxcGO1bRsRwUyZ1Eg=
=c0j/
-----END PGP SIGNATURE-----

Michiel van Baak

unread,
Feb 11, 2006, 7:02:28 PM2/11/06
to asteris...@lists.digium.com
On 13:44, Sat 11 Feb 06, Sean Cook wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> The only way you would need authenticated SMTP is for relaying. My
> suggestion would be to not set up sendmail to use a smart host but have
> it act as an internet mail server. It will lookup the mx records and
> make the sending determinations based on the domain it is sending to.

Actually this is only true when your ip is a static one that
you can list as provider ip.
A lot of blacklists put all the cable and dsl enduser ip's
somewhere under "dynamic or domestic use"
A lot of mailservers will block this.

Sorry for being totally unrelated to asterisk, but this has
been a big issue for several of my clients asterisk boxes.

>
> The exchange server should accept (with out authentication) anything
> that it is addressed to a locally hosted domain.

When it's internal this should work. Otherwise, see my point
above

--
Michiel van Baak
http://michiel.vanbaak.info
mic...@vanbaak.info
GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7E0B9A2D

"Why is it drug addicts and computer afficionados are both called users?"

Tzafrir Cohen

unread,
Feb 11, 2006, 7:34:18 PM2/11/06
to asteris...@lists.digium.com
On Sat, Feb 11, 2006 at 12:30:51PM +0200, Tzafrir Cohen wrote:
> On Sat, Feb 11, 2006 at 08:29:31AM +0000, Peter Bowyer wrote:

> > Install MSMTP as your local MTA (replacing sendmail). Configure
> > Asterisk to use the local MTA, and configure MSMTP to forward to the
> > Exchange server with authentication.
> >
> > http://msmtp.sourceforge.net/
>
> The problem with msmtp and similar programs (ssmtp, nullmailer) is that
> they don't queue. Thus if there was a temporary problem at the network
> or the recieving side, the message is lost.

But now when I think about it, why won't asterisk queue the mail? The
message itself is stored in the mailbox. So Asterisk only needs to
remember where it is stored.

Basically:

If the sendmail command returns an error, The voicemail app knowss it
need to be queued. So it remembers the path to the message and the
details of the message in a queue.

Every once in a while there is an attempt to re-end messages in that
"queue".

If someone checks the messages in the mailbox, any waiting messages
should be invalidated.


Anybody feels like trying to see if this is close to implementable?

Reply all
Reply to author
Forward
0 new messages