Thanks for reading, I need certain shell scripts to email me after they are done running. I've installed ssmtp to forward to my internal SMTP server. I have a working ssmtp config on a Gentoo system that works just fine, but on CentOS it's not working. Here's a bounce message: Date: Thu, 13 Jul 2006 13:33:22 -0700 From: Mail Delivery Subsystem <MAILER-DAEMON at backups.amgt.com> To: <root at backups.amgt.com> Subject: Returned mail: see transcript for details Auto-Submitted: auto-generated (failure) [-- Attachment #1 --] [-- Type: text/plain, Encoding: 7bit, Size: 0.3K --] The original message was received at Thu, 13 Jul 2006 13:33:22 -0700 from backups.amgt.com [127.0.0.1] ----- The following addresses had permanent fatal errors ----- <admins at amgt.com> ----- Transcript of session follows ----- 550 5.1.2 <admins at amgt.com>... Host unknown (Name server: amgt.com: no data +known) [-- Attachment #2 --] [-- Type: message/delivery-status, Encoding: 7bit, Size: 0.3K --] -N +- 2/3: Mail Delivery Subsys Returned mail: see transcript for de -- (11%) DNS does work, and I have an MX record to my internal SMTP server, even though the ssmtp doesn't use DNS/MX records to forward email. I've also tried turning sendmail on/off as well. Where else should I look?? A typical command I'm using to email from the shell is this: mail -s "Test de Backups" foo at bar.com < /dev/null ... Any help, most appreciated! Thanks! Mark Schoonover IS Manager American Geotechnical V: 858-450-4040 - F: 714-685-3909 - C: 858-472-3816
On Thu, 2006-07-13 at 18:37 -0700, Mark Schoonover wrote:> Thanks for reading, > > I need certain shell scripts to email me after they are done > running. I've installed ssmtp to forward to my internal SMTP server. I have > a working ssmtp config on a Gentoo system that works just fine, but on > CentOS it's not working. Here's a bounce message: > > Date: Thu, 13 Jul 2006 13:33:22 -0700 > From: Mail Delivery Subsystem <MAILER-DAEMON at backups.amgt.com> > To: <root at backups.amgt.com> > Subject: Returned mail: see transcript for details > Auto-Submitted: auto-generated (failure) > > [-- Attachment #1 --] > [-- Type: text/plain, Encoding: 7bit, Size: 0.3K --] > > The original message was received at Thu, 13 Jul 2006 13:33:22 -0700 > from backups.amgt.com [127.0.0.1] > > ----- The following addresses had permanent fatal errors ----- > <admins at amgt.com> > > ----- Transcript of session follows ----- > 550 5.1.2 <admins at amgt.com>... Host unknown (Name server: amgt.com: no data > +known) > > [-- Attachment #2 --] > [-- Type: message/delivery-status, Encoding: 7bit, Size: 0.3K --] > -N +- 2/3: Mail Delivery Subsys Returned mail: see transcript for de -- > (11%) > > DNS does work, and I have an MX record to my internal SMTP server, even > though the ssmtp doesn't use DNS/MX records to forward email. I've also > tried turning sendmail on/off as well. Where else should I look?? A typical > command I'm using to email from the shell is this: mail -s "Test de Backups" > foo at bar.com < /dev/null ... > > Any help, most appreciated!I know very little about this, but in my little niche, I found I had to update sendmail.cf to not be restricted to localhost. In /etc/sendmail, I updated sendmail.mc: # pwd /etc/mail # diff sendmail.mc.bak sendmail.mc 105c105 < DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl ---> dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl# Then ran make -C /etc/mail as shown in the .mc and .cf files. This allowed intranet mail to work here.> > Thanks! > > Mark Schoonover > <snip sig stuff>HTH -- Bill -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://lists.centos.org/pipermail/centos/attachments/20060713/e2583145/attachment-0002.sig>
Mark Schoonover wrote:> > ----- Transcript of session follows ----- > 550 5.1.2 <admins at amgt.com>... Host unknown (Name server: amgt.com: no data > +known) >is sendmail aware of your actual manchine hostname and howto handle emails for this domain ? -- Karanbir Singh : http://www.karan.org/ : 2522219 at icq
Karanbir Singh wrote:> Mark Schoonover wrote: >> >> ----- Transcript of session follows ----- >> 550 5.1.2 <admins at amgt.com>... Host unknown (Name server: amgt.com: >> no data +known) >> > > is sendmail aware of your actual manchine hostname and howto handle > emails for this domain ?Beats me, I'm a qmail guy, not sendmail. The part I'm confused about is ssmtp should handle things w/o an MTA running... Thanks! Mark
Thanks Guillermo. The thing is, I can send test emails outside my domain no problem. I can't send emails to my internal smtp server from any CentOS system on my internal network. I discovered that I didn't have an MX record in tinydns for my internal network, so I added that. After testing, no changes - any email that's destined to any address to my domain bounces with the error message listed below. I'm not a sendmail person, would rather do without it, but I don't think I can simply remove it from CentOS. I could install postfix, or qmail and see how that works, but it's serious overkill for sending simple emails internally... Had hopes ssmtp would work, but that doesn't either. Works on Gentoo systems, just not CentOS. A hair puller that's for sure, but I'll keep banging on it until it works. Thanks for all the ideas, if anyone can think of anything else, I'll try it! Mark -----Original Message----- From: Guillermo Garron [mailto:guillermo.fedora at gmail.com] Sent: Saturday, July 15, 2006 7:48 PM To: CentOS mailing list Subject: Re: [CentOS] Emailing from Command Line Hi, maybe you should try using an externa smtp to send you the emails. And use sendmail as a client of that other smtp, your ISP smtp. after having that configured you could try to send emails somewhere else, @ yahoo.com <http://yahoo.com> or @ gmail.com <http://gmail.com> as suggested here. regards, Guillermo Garron On 7/14/06, Karanbir Singh < mail-lists at karan.org <mailto:mail-lists at karan.org> > wrote: Mark Schoonover wrote:> Karanbir Singh wrote: >> Mark Schoonover wrote: >>> ----- Transcript of session follows ----- >>> 550 5.1.2 < admins at amgt.com <mailto:admins at amgt.com> >... Host unknown(Name server: amgt.com <http://amgt.com> :>>> no data +known) >>> >> is sendmail aware of your actual manchine hostname and howto handle >> emails for this domain ? > > Beats me, I'm a qmail guy, not sendmail. The part I'm confused about is > ssmtp should handle things w/o an MTA running...sendmail on the local machine should know what the hostname is. its possible that ssmtp isnt where the problem is but the smtp hander on the Rx end of things. Try sending emails elsewhere ? to an @ gmail.com <http://gmail.com> maybe ? Alternatively, have you tried nut ? it should be available in most repo's. Does a fairly good job of sending emails from the command line ( and is what I tend to use ) -- Karanbir Singh : http://www.karan.org/ <http://www.karan.org/> : 2522219 at icq _______________________________________________ CentOS mailing list CentOS at centos.org <mailto:CentOS at centos.org> http://lists.centos.org/mailman/listinfo/centos <http://lists.centos.org/mailman/listinfo/centos> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20060715/3d55f7d8/attachment-0002.html>