Hi, I`m a beginning Asterisk and Sendmail user. I am trying to setup my voicemail to send emails to a certain email address. It doesn't work, and I think I've figured out what it is. There is probably a spam-feature at my provider (that I am using as smart host in sendmail) to not accept emails coming from root@localhost.localdomain. If I start a telnet session on port 25 locally and go at it manually, an email with MAIL FROM: root@localhost.localdomain never makes it, while the exact same email with MAIL FROM: test@mydomain.com actually gwets to my inbox. How do I make it so that asterisk emails as send using user@somedomain.com instead of root@localhost.localdomain. Is it an asterisk thing or a Sendmail problem? Because my logs show that the email is send from root@localhost.localdomain. Thanks, Mike
Mojo with Horan & Company, LLC
2005-Nov-29 13:38 UTC
[Asterisk-Users] Voicemail and sendmail
It seems that in both the 1.0 line and the 1.2 line, the [general] section of voicemail.conf has an option: ; Who the e-mail notification should appear to come from serveremail=user@somedomain.com Moj Micha?l Gaudette wrote:> Hi, > > I`m a beginning Asterisk and Sendmail user. I am trying to setup my > voicemail to send emails to a certain email address. It doesn't work, and I > think I've figured out what it is. There is probably a spam-feature at my > provider (that I am using as smart host in sendmail) to not accept emails > coming from root@localhost.localdomain. > > If I start a telnet session on port 25 locally and go at it manually, an > email with MAIL FROM: root@localhost.localdomain never makes it, while the > exact same email with MAIL FROM: test@mydomain.com actually gwets to my > inbox. > > How do I make it so that asterisk emails as send using user@somedomain.com > instead of root@localhost.localdomain. Is it an asterisk thing or a > Sendmail problem? Because my logs show that the email is send from > root@localhost.localdomain. > > > Thanks, > > Mike > > _______________________________________________ > --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 >-- Mojo <mojo@horanappraisals.com> Office Manger, Horan & Company, LLC (907) 747-6666 x112
You can also modify the passwd file in /etc to put a friendly name on the SMTP envelope instead of "root" b/c some spam filters will block even if the email address is ok but the sender is "root" Best practice is to run non-root though. I have an "Asterisk" user and an "Asterisk" group. If you modify your passwd file appropriately after setting your Asterisk account you can get very friendly names like "Company XYZ phone system" -----Original Message----- From: Mojo with Horan & Company, LLC [mailto:mojo@horanappraisals.com] Sent: Tuesday, November 29, 2005 1:39 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] Voicemail and sendmail It seems that in both the 1.0 line and the 1.2 line, the [general] section of voicemail.conf has an option: ; Who the e-mail notification should appear to come from serveremail=user@somedomain.com Moj Micha?l Gaudette wrote:> Hi, > > I`m a beginning Asterisk and Sendmail user. I am trying to setup my > voicemail to send emails to a certain email address. It doesn't work, andI> think I've figured out what it is. There is probably a spam-feature at my > provider (that I am using as smart host in sendmail) to not accept emails > coming from root@localhost.localdomain. > > If I start a telnet session on port 25 locally and go at it manually, an > email with MAIL FROM: root@localhost.localdomain never makes it, while the > exact same email with MAIL FROM: test@mydomain.com actually gwets to my > inbox. > > How do I make it so that asterisk emails as send using user@somedomain.com > instead of root@localhost.localdomain. Is it an asterisk thing or a > Sendmail problem? Because my logs show that the email is send from > root@localhost.localdomain. > > > Thanks, > > Mike > > _______________________________________________ > --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 >-- Mojo <mojo@horanappraisals.com> Office Manger, Horan & Company, LLC (907) 747-6666 x112 _______________________________________________ --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
Thanks Colin. That makes sense, but how do I modify this? I am no Linux expert, but the passwd file doesn?t seem to conatain any SMTP configuration. When you said "run non-root", you meant Asterisk or Sendmail running as non-root? Mike ---------------------------------------------------------------------------- ---- You can also modify the passwd file in /etc to put a friendly name on the SMTP envelope instead of "root" b/c some spam filters will block even if the email address is ok but the sender is "root" Best practice is to run non-root though. I have an "Asterisk" user and an "Asterisk" group. If you modify your passwd file appropriately after setting your Asterisk account you can get very friendly names like "Company XYZ phone system"
Hi, I think you must sp?cify a full qualified domain name. The destination mail server try to resolve your Linux Box domain name , and he can't because of you domain name "localhost.localdomain" If you haven't a domain name you can create a dyndns.org domain linked with you linux public IP. Specify you domain name in you Linux box in the file "/etc/host" (must by root) like this: ######################################################## # Do not remove the following line, or various program # that require network functionality will fail. 127.0.0.1 localhost.localdomain localhost 0.0.0.0 test.dyndns.org AsteriskBox <== change this line ######################################################## test.dyndns.org is the domain name that point to your public IP AsteriskBox is the name of your linux box If you have a static IP you can replace 0.0.0.0. you can try to send mail via linux console: echo "test mail" | mail -s "MAIL TEST 1" put_your_mail@destination.com Sorry for my bad english,,, but i think you can decrypt Fred ----- Original Message ----- From: "Micha?l Gaudette" <michael.gaudette@virtutel.ca> To: <asterisk-users@lists.digium.com> Sent: Tuesday, November 29, 2005 9:25 PM Subject: [Asterisk-Users] Voicemail and sendmail Hi, I`m a beginning Asterisk and Sendmail user. I am trying to setup my voicemail to send emails to a certain email address. It doesn't work, and I think I've figured out what it is. There is probably a spam-feature at my provider (that I am using as smart host in sendmail) to not accept emails coming from root@localhost.localdomain. If I start a telnet session on port 25 locally and go at it manually, an email with MAIL FROM: root@localhost.localdomain never makes it, while the exact same email with MAIL FROM: test@mydomain.com actually gwets to my inbox. How do I make it so that asterisk emails as send using user@somedomain.com instead of root@localhost.localdomain. Is it an asterisk thing or a Sendmail problem? Because my logs show that the email is send from root@localhost.localdomain. Thanks, Mike _______________________________________________ --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
On Nov 29, 2005, at 12:25 PM, Micha?l Gaudette wrote:> Hi, > > I`m a beginning Asterisk and Sendmail user. I am trying to setup my > voicemail to send emails to a certain email address. It doesn't work, > and I > think I've figured out what it is. There is probably a spam-feature > at my > provider (that I am using as smart host in sendmail) to not accept > emails > coming from root@localhost.localdomain. > > If I start a telnet session on port 25 locally and go at it manually, > an > email with MAIL FROM: root@localhost.localdomain never makes it, while > the > exact same email with MAIL FROM: test@mydomain.com actually gwets to my > inbox. > > How do I make it so that asterisk emails as send using > user@somedomain.com > instead of root@localhost.localdomain. Is it an asterisk thing or a > Sendmail problem? Because my logs show that the email is send from > root@localhost.localdomain. >I am also a Asterisk newb, but I think I might have seen this setting in the voicemail.conf file? or maybe it's just referenced and I'm wrong... Marty
On Tue, Nov 29, 2005 at 03:25:19PM -0500, Micha?l Gaudette wrote:> Hi, > > I`m a beginning Asterisk and Sendmail user.Note that the "sendmail" need not be sendmail. It can be basically ant mail transfer agent (MTA). Postfix, exim and maybe qmail will do s well.> I am trying to setup my > voicemail to send emails to a certain email address. It doesn't work, and I > think I've figured out what it is. There is probably a spam-feature at my > provider (that I am using as smart host in sendmail) to not accept emails > coming from root@localhost.localdomain.You can configure your MTA to add a domain name if the sender name contains a username alone. It shoukd then help you with other mail messages sent from this system. E.g: the outputs of cron jobs. -- Tzafrir Cohen | tzafrir@jbr.cohens.org.il | VIM is http://tzafrir.org.il | | a Mutt's tzafrir@cohens.org.il | | best ICQ# 16849755 | | friend