Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Mail Server


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
asterisk-users at ics-...
Guest





PostPosted: Thu Mar 13, 2008 4:04 pm    Post subject: [asterisk-users] Mail Server Reply with quote

I need to setup a small mail server on a local network. It only needs SMTP ability as it's just so Asterisk can send out emails. The machine has sendmail installed. My primary mail server seems to be rejecting the messages. Some research says something isn't configured properly. What do I have to do so the outside world accepts emails from my Asterisk box? It is behind a NAT.
----------
Mike Hammett
Intelligent Computing Solutions
http://www.ics-il.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080313/ecd53c9b/attachment.htm
Back to top
sprior at geekster.com
Guest





PostPosted: Thu Mar 13, 2008 4:23 pm    Post subject: [asterisk-users] Mail Server Reply with quote

Mike Hammett wrote:
Quote:
I need to setup a small mail server on a local network. It only needs
SMTP ability as it's just so Asterisk can send out emails. The machine
has sendmail installed. My primary mail server seems to be rejecting
the messages. Some research says something isn't configured properly.
What do I have to do so the outside world accepts emails from my
Asterisk box? It is behind a NAT.

On the mail server machine add the IP address or name of the asterisk
box to /etc/mail/relay-domains and restart sendmail.

Steve
Back to top
erikerik at gmail.com
Guest





PostPosted: Thu Mar 13, 2008 4:25 pm    Post subject: [asterisk-users] Mail Server Reply with quote

On Thu, Mar 13, 2008 at 4:04 PM, Mike Hammett <asterisk-users at ics-il.net> wrote:
Quote:

I need to setup a small mail server on a local network. It only needs SMTP
ability as it's just so Asterisk can send out emails. The machine has
sendmail installed. My primary mail server seems to be rejecting the
messages. Some research says something isn't configured properly. What do
I have to do so the outside world accepts emails from my Asterisk box? It
is behind a NAT.

Does your ISP provide an SMTP server you can use? If so, it's usually
easiest to set that up as a "smarthost" and tell sendmail to send
through that server. If this isn't an option, you need to make sure
that your asterisk server has a valid publicly-available DNS record
(and reverse DNS). That's most likely the reason the remote server is
rejecting these emails.

-erik
Back to top
john.mason.jr at cox.net
Guest





PostPosted: Thu Mar 13, 2008 4:41 pm    Post subject: [asterisk-users] Mail Server Reply with quote

Mike Hammett wrote:
Quote:
I need to setup a small mail server on a local network. It only needs
SMTP ability as it's just so Asterisk can send out emails. The machine
has sendmail installed. My primary mail server seems to be rejecting
the messages. Some research says something isn't configured properly.
What do I have to do so the outside world accepts emails from my
Asterisk box? It is behind a NAT.


----------
Mike Hammett
Intelligent Computing Solutions
http://www.ics-il.com

I would look at the log file or use wireshark to capture the
conversation. As I recall sendmail has logs in /var/log/maillog


A couple of things to look for;

1. Firewall blocking port 25

2. Relaying denied based on domain name or ip address

3. DNS setup incorrectly



John
Back to top
asterisk-users at ics-...
Guest





PostPosted: Thu Mar 13, 2008 5:13 pm    Post subject: [asterisk-users] Mail Server Reply with quote

Through help from people on the lists and then further investigation based on those results, here is what I did.

1) I set the office to a statically assigned IP instead of from the pool.
2) I made an A entry on one of my domains aiur.ics-il.net (where aiur is the machine name).
3) I added aiur.ics-il.net directly after 127.0.0.1 in the /etc/hosts file (copied below).
4) I set the from email address (serveremail) in /etc/asterisk/voicemail.conf to something at the domain I created (voicemail at aiur.ics-il.net).
5) Presto!

[root at Aiur ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 aiur.ics-il.net Aiur localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
----------
Mike Hammett
Intelligent Computing Solutions
http://www.ics-il.com


----- Original Message -----
From: Mike Hammett
To: Asterisk Users Mailing List - Non-Commercial Discussion
Sent: Thursday, March 13, 2008 4:04 PM
Subject: [asterisk-users] Mail Server


I need to setup a small mail server on a local network. It only needs SMTP ability as it's just so Asterisk can send out emails. The machine has sendmail installed. My primary mail server seems to be rejecting the messages. Some research says something isn't configured properly. What do I have to do so the outside world accepts emails from my Asterisk box? It is behind a NAT.


----------
Mike Hammett
Intelligent Computing Solutions
http://www.ics-il.com




------------------------------------------------------------------------------


_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080313/3b1c1a50/attachment.htm
Back to top
asterisk-users at ics-...
Guest





PostPosted: Thu Mar 13, 2008 5:15 pm    Post subject: [asterisk-users] Mail Server Reply with quote

I am the ISP. Wink

I'll have to look into that smarthost deal as there is no reverse DNS at
this time (my upstream's server times out).
----------
Mike Hammett
Intelligent Computing Solutions
http://www.ics-il.com


----- Original Message -----
From: "Erik Anderson" <erikerik at gmail.com>
To: "Asterisk Users Mailing List - Non-Commercial Discussion"
<asterisk-users at lists.digium.com>
Sent: Thursday, March 13, 2008 4:25 PM
Subject: Re: [asterisk-users] Mail Server


Quote:
On Thu, Mar 13, 2008 at 4:04 PM, Mike Hammett <asterisk-users at ics-il.net>
wrote:
Quote:

I need to setup a small mail server on a local network. It only needs
SMTP
ability as it's just so Asterisk can send out emails. The machine has
sendmail installed. My primary mail server seems to be rejecting the
messages. Some research says something isn't configured properly. What
do
I have to do so the outside world accepts emails from my Asterisk box?
It
is behind a NAT.

Does your ISP provide an SMTP server you can use? If so, it's usually
easiest to set that up as a "smarthost" and tell sendmail to send
through that server. If this isn't an option, you need to make sure
that your asterisk server has a valid publicly-available DNS record
(and reverse DNS). That's most likely the reason the remote server is
rejecting these emails.

-erik

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
joakimsen at gmail.com
Guest





PostPosted: Fri Mar 14, 2008 1:25 am    Post subject: [asterisk-users] Mail Server Reply with quote

tail /var/log/mail or /var/log/maillog

On Thu, Mar 13, 2008 at 5:04 PM, Mike Hammett <asterisk-users at ics-il.net> wrote:
Quote:


I need to setup a small mail server on a local network. It only needs SMTP
ability as it's just so Asterisk can send out emails. The machine has
sendmail installed. My primary mail server seems to be rejecting the
messages. Some research says something isn't configured properly. What do
I have to do so the outside world accepts emails from my Asterisk box? It
is behind a NAT.


----------
Mike Hammett
Intelligent Computing Solutions
http://www.ics-il.com


_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
g.stewart at horwits.c...
Guest





PostPosted: Fri Mar 14, 2008 6:54 am    Post subject: [asterisk-users] Mail Server Reply with quote

On Fri, 14 Mar 2008 13:06:27 +0200, "love U.all"
<the.love.4all at hotmail.com> wrote:

Quote:
ur mail erver isn authorized to redirect mails say for example to hotmail
coz msn deal with it as spam

MSN and hotmail are not a reference in anything related to Internet e-mail.
Unless, that is, you're considering how *not* to form a mail body and how
*not* to deal with junk mail.

--
Godwin Stewart - Horwich IT services
Back to top
asteriskbr99 at gmail.com
Guest





PostPosted: Fri Mar 14, 2008 8:52 am    Post subject: [asterisk-users] Mail Server Reply with quote

How would you relay on Google Apps, as Google requires SSL or TLS
authentication?

How can I configure sendmail to do this?
Actually, sendmail is trying to send email directly, and I get the response
below. I?ll now try Mike Hammett?s solution.

Thanks,

Felipe Trevisan



*Message contents*

The original message was received at Thu, 13 Mar 2008 23:49:31 -0300
from trixbox1.localdomain [127.0.0.1]

----- The following addresses had permanent fatal errors -----
<fetrevisan at gmail.com>
(reason: 550-5.7.1 [201.6.192.115] The IP you're using to send
email is not authorized
)

----- Transcript of session follows -----
... while talking to gmail-smtp-in.l.google.com.:
Quote:
Quote:
Quote:
DATA
<<< 550-5.7.1 [201.6.192.115] The IP you're using to send email is not
authorized
<<< 550-5.7.1 to send email directly to our servers. Please use
<<< 550 5.7.1 the SMTP relay at your service provider instead. a44si4966479rne.2
554 5.0.0 Service unavailable

*Failed delivery status* *Final recipient* fetrevisan at gmail.com *Reason
for failure* 550-5.7.1 [201.6.192.115] The IP you're using to send email is
not authorized *Remote mail server* gmail-smtp-in.l.google.com *Reporting
mail server* trixbox1.localdomain


On Thu, Mar 13, 2008 at 7:13 PM, Mike Hammett <asterisk-users at ics-il.net>
wrote:

Quote:
Through help from people on the lists and then further investigation
based on those results, here is what I did.

1) I set the office to a statically assigned IP instead of from the pool.
2) I made an A entry on one of my domains aiur.ics-il.net (where aiur is
the machine name).
3) I added aiur.ics-il.net directly after 127.0.0.1 in the /etc/hosts
file (copied below).
4) I set the from email address (serveremail) in
/etc/asterisk/voicemail.conf to something at the domain I created (
voicemail at aiur.ics-il.net).
5) Presto!

[root at Aiur ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 aiur.ics-il.net Aiur localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6


----------
Mike Hammett
Intelligent Computing Solutions
http://www.ics-il.com



----- Original Message -----
*From:* Mike Hammett <asterisk-users at ics-il.net>
*To:* Asterisk Users Mailing List - Non-Commercial Discussion<asterisk-users at lists.digium.com>
*Sent:* Thursday, March 13, 2008 4:04 PM
*Subject:* [asterisk-users] Mail Server

I need to setup a small mail server on a local network. It only needs
SMTP ability as it's just so Asterisk can send out emails. The machine has
sendmail installed. My primary mail server seems to be rejecting the
messages. Some research says something isn't configured properly. What do
I have to do so the outside world accepts emails from my Asterisk box? It
is behind a NAT.


----------
Mike Hammett
Intelligent Computing Solutions
http://www.ics-il.com



------------------------------

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users


_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080314/55b39d8d/attachment.htm
Back to top
pylinuxian at gmail.com
Guest





PostPosted: Sun Mar 16, 2008 4:48 pm    Post subject: [asterisk-users] Mail Server Reply with quote

well, maybe ou're on the wrong list (talkin sendmail in an asterisk list
!!!) you're better in sendmail's list.

anyway, you need to modify sendmail.cf file, just a few tweaks & it will be
ok. you will need a smarthost, what is a smarthost ? thats an smtp server
that is allowed to send mail to the world, without it you can't send mail, &
this smarthost will be your isp's smtp server & noone else's unless you know
a lot of ppl around. otherwise your mails will get nowhere.

if you need an sendmail.cf file example i can paste it for you here.
also dovecot.conf will be valuable for you.
hope this helps.

On Fri, Mar 14, 2008 at 1:52 PM, Felipe Trevisan <asteriskbr99 at gmail.com>
wrote:

Quote:
How would you relay on Google Apps, as Google requires SSL or TLS
authentication?

How can I configure sendmail to do this?


Actually, sendmail is trying to send email directly, and I get the
response below. I?ll now try Mike Hammett?s solution.

Thanks,

Felipe Trevisan



*Message contents*

The original message was received at Thu, 13 Mar 2008 23:49:31 -0300
from trixbox1.localdomain [127.0.0.1]

----- The following addresses had permanent fatal errors -----

<fetrevisan at gmail.com>
(reason: 550-5.7.1 [201.6.192.115] The IP you're using to send email is not authorized
)

----- Transcript of session follows -----

... while talking to gmail-smtp-in.l.google.com.:
Quote:
Quote:
Quote:
DATA
<<< 550-5.7.1 [201.6.192.115] The IP you're using to send email is not authorized

<<< 550-5.7.1 to send email directly to our servers. Please use
<<< 550 5.7.1 the SMTP relay at your service provider instead. a44si4966479rne.2
554 5.0.0 Service unavailable

*Failed delivery status* *Final recipient* fetrevisan at gmail.com *Reason
for failure* 550-5.7.1 [201.6.192.115] The IP you're using to send email
is not authorized *Remote mail server* gmail-smtp-in.l.google.com *Reporting
mail server* trixbox1.localdomain



On Thu, Mar 13, 2008 at 7:13 PM, Mike Hammett <asterisk-users at ics-il.net>
wrote:

Quote:
Through help from people on the lists and then further investigation
based on those results, here is what I did.

1) I set the office to a statically assigned IP instead of from the
pool.
2) I made an A entry on one of my domains aiur.ics-il.net (where aiur
is the machine name).
3) I added aiur.ics-il.net directly after 127.0.0.1 in the /etc/hosts
file (copied below).
4) I set the from email address (serveremail) in
/etc/asterisk/voicemail.conf to something at the domain I created (
voicemail at aiur.ics-il.net).
5) Presto!

[root at Aiur ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 aiur.ics-il.net Aiur localhost.localdomain
localhost
::1 localhost6.localdomain6 localhost6


----------
Mike Hammett
Intelligent Computing Solutions
http://www.ics-il.com



----- Original Message -----
*From:* Mike Hammett <asterisk-users at ics-il.net>
*To:* Asterisk Users Mailing List - Non-Commercial Discussion<asterisk-users at lists.digium.com>
*Sent:* Thursday, March 13, 2008 4:04 PM
*Subject:* [asterisk-users] Mail Server

I need to setup a small mail server on a local network. It only needs
SMTP ability as it's just so Asterisk can send out emails. The machine has
sendmail installed. My primary mail server seems to be rejecting the
messages. Some research says something isn't configured properly. What do
I have to do so the outside world accepts emails from my Asterisk box? It
is behind a NAT.


----------
Mike Hammett
Intelligent Computing Solutions
http://www.ics-il.com



------------------------------

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users


_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users



_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080316/e11e0270/attachment.htm
Back to top
asteriskal at gmail.com
Guest





PostPosted: Wed Mar 19, 2008 10:16 pm    Post subject: [asterisk-users] Mail Server Reply with quote

Or maybe you can show him some links Wink
Try this for send mail:
http://docs.snake.de/smtp-auth.html

this is very common these days and to make it more fun each mailserver
(provider) has their own criteria to decide if your email is spam or not.
to give you and example:
make sure you are using static public IP address for outgoing mails, have a
PTR record for that IP and also A record for the fqn that those mails are
coming from.
For smtp auth you need to have saslauth in place and most recent sendmails
are compile with saslauth these days.
I did not have 100% success with smtp and sasl and i believe that was caused
due to have different TLS versions.
anyway that link should put you in the right direction and if anyone else
has a better/easier mta that handles smarthost and auth flawlessly, please
comment.
On Sun, Mar 16, 2008 at 3:48 PM, linuxian iandsd <pylinuxian at gmail.com>
wrote:

Quote:
well, maybe ou're on the wrong list (talkin sendmail in an asterisk list
!!!) you're better in sendmail's list.

anyway, you need to modify sendmail.cf file, just a few tweaks & it will
be ok. you will need a smarthost, what is a smarthost ? thats an smtp
server that is allowed to send mail to the world, without it you can't send
mail, & this smarthost will be your isp's smtp server & noone else's unless
you know a lot of ppl around. otherwise your mails will get nowhere.

if you need an sendmail.cf file example i can paste it for you here.
also dovecot.conf will be valuable for you.


hope this helps.


On Fri, Mar 14, 2008 at 1:52 PM, Felipe Trevisan <asteriskbr99 at gmail.com>
wrote:

Quote:
How would you relay on Google Apps, as Google requires SSL or TLS
authentication?

How can I configure sendmail to do this?


Actually, sendmail is trying to send email directly, and I get the
response below. I?ll now try Mike Hammett?s solution.

Thanks,

Felipe Trevisan



*Message contents*

The original message was received at Thu, 13 Mar 2008 23:49:31 -0300
from trixbox1.localdomain [127.0.0.1]

----- The following addresses had permanent fatal errors -----


<fetrevisan at gmail.com>
(reason: 550-5.7.1 [201.6.192.115] The IP you're using to send email is not authorized

)

----- Transcript of session follows -----

... while talking to gmail-smtp-in.l.google.com.:
Quote:
Quote:
Quote:
DATA
<<< 550-5.7.1 [201.6.192.115] The IP you're using to send email is not authorized


<<< 550-5.7.1 to send email directly to our servers. Please use
<<< 550 5.7.1 the SMTP relay at your service provider instead. a44si4966479rne.2
554 5.0.0 Service unavailable

*Failed delivery status* *Final recipient* fetrevisan at gmail.com *Reason
for failure* 550-5.7.1 [201.6.192.115] The IP you're using to send email
is not authorized *Remote mail server* gmail-smtp-in.l.google.com *Reporting
mail server* trixbox1.localdomain



On Thu, Mar 13, 2008 at 7:13 PM, Mike Hammett <asterisk-users at ics-il.net>
wrote:

Quote:
Through help from people on the lists and then further investigation
based on those results, here is what I did.

1) I set the office to a statically assigned IP instead of from the
pool.
2) I made an A entry on one of my domains aiur.ics-il.net (where aiur
is the machine name).
3) I added aiur.ics-il.net directly after 127.0.0.1 in the /etc/hosts
file (copied below).
4) I set the from email address (serveremail) in
/etc/asterisk/voicemail.conf to something at the domain I created (
voicemail at aiur.ics-il.net).
5) Presto!

[root at Aiur ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 aiur.ics-il.net Aiur localhost.localdomain
localhost
::1 localhost6.localdomain6 localhost6


----------
Mike Hammett
Intelligent Computing Solutions
http://www.ics-il.com



----- Original Message -----
*From:* Mike Hammett <asterisk-users at ics-il.net>
*To:* Asterisk Users Mailing List - Non-Commercial Discussion<asterisk-users at lists.digium.com>
*Sent:* Thursday, March 13, 2008 4:04 PM
*Subject:* [asterisk-users] Mail Server

I need to setup a small mail server on a local network. It only needs
SMTP ability as it's just so Asterisk can send out emails. The machine has
sendmail installed. My primary mail server seems to be rejecting the
messages. Some research says something isn't configured properly. What do
I have to do so the outside world accepts emails from my Asterisk box? It
is behind a NAT.


----------
Mike Hammett
Intelligent Computing Solutions
http://www.ics-il.com



------------------------------

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users


_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users



_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users



_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080319/acd64fcb/attachment.htm
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services