[nycbug-talk] CLI mailing from FreeBSD 6.0 Release Question

Okan Demirmen okan
Thu Mar 2 01:27:14 EST 2006


On Thu 2006.03.02 at 01:15 -0500, Kevin Reiter wrote:
> Nikolai N. Fetissov wrote:
> > On Wed, March 1, 2006 10:09 pm, Kevin Reiter wrote:
> >> Hey all,
> >>
> >> I'm trying to script an automagic e-mail alert thingy, and it works
> >> except when actually sending the e-mail.  Here's the part of the script
> >> that kicks off the e-mail:
> >>
> >> mutt -s "Home IP Update" alerts at unixfun.net < temp_ip.log
> >>
> >> I then check my e-mail, and nada.  When I check the current procs, I see
> >> this (and it runs until I kill it):
> >>
> >> kevin at chronos$ ps wax | grep unixfun.net
> >> 78000  ??  Ss     0:00.00 sendmail: ./k2228Lt9077998 mx.unixfun.net.:
> >> user open (sendmail)
> >>
> >> When I check /var/log/maillog, I see this:
> >>
> >> Mar  1 22:01:29 chronos sm-mta[78102]: k221Q93t043799:
> >> to=<alerts at unixfun.net>, ctladdr=<kevin at chronos.unixfun.net>
> >> (1001/1001), delay=01:35:20, xdelay=00:00:00, mailer=esmtp, pri=390508,
> >> relay=mx.unixfun.net., dsn=4.0.0, stat=Deferred: Operation timed out
> >> with mx.unixfun.net.
> >> Mar  1 22:01:29 chronos sm-mta[78102]: k221LZJc043754:
> >> to=<alerts at unixfun.net>, ctladdr=<kevin at chronos.unixfun.net>
> >> (1001/1001), delay=01:39:54, xdelay=00:00:00, mailer=esmtp, pri=390508,
> >> relay=mx.unixfun.net., dsn=4.0.0, stat=Deferred: Operation timed out
> >> with mx.unixfun.net.
> >>
> >> I was originally using the built-in "mail" command:
> >>
> >> cat temp_ip.log | mail -v -s "Home IP Update" alerts at unixfun.net
> >>
> >> but that wasn't working either.
> >>
> >> This box is only running the standard (non-configured) sendmail.
> >>
> >> Is there a setting I need to configure somewhere for the outgoing mail
> >> server (using either mutt or mail)?
> >>
> >> Thanks,
> >> Kev
> >>
> > 
> > might it be that you are on the optonline network
> > and port 25 out is blocked at the isp?
> 
> I'm trying to use mail.optonline.net as my SMTP server, which is what 
> they (OptOnline) want us to use.

add:
define(`SMART_HOST', `mail.optonline.net')dnl

to your mc and rebuild your cf:
m4 /usr/share/sendmail/m4/cf.m4 your.mc > your.cf

> After some digging and a few helpful suggestions from David Lawson, I'm 
> hacking my /etc/mail/freebsd.mc file to see if that does the trick.  I 
> really don't feel like going through the trouble of installing 
> qmail/exim/postfix just to be able to send mail once a day to myself of 
> an IP address change..
> 
> Kev
> _______________________________________________
> % NYC*BUG talk mailing list
> http://lists.nycbug.org/mailman/listinfo/talk
> %Be sure to check out our Jobs and NYCBUG-announce lists
> %We meet the first Wednesday of the month



More information about the talk mailing list