Re: [FreeBSD][Newb] How I use sendmail to send mail?
People, I got sendmail working to send mail. I started with this: http://www.google.com/search?q=bsd+sendmail+configuration >From there I found 2 excellent links which answered all my questions: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/sendmail.html http://www.technoids.org/freebsdsendmailfaqs.html It's easy to configure sendmail so it is only a sender, not a receiver of mail: In /etc/rc.conf put this: sendmail_enable="NO"# Run the sendmail inbound daemon (YES/NO). And from the faq link this was useful since it told me how to start sendmail: 5. How do I start sendmail? # cd /etc/mail # make start 6. How do I stop sendmail? # cd /etc/mail # make stop After I started sendmail I waited a bit and then sure enough, I found the e-mail I was looking for in my yahoo account. -b ___ You snooze, you lose. Get messages ASAP with AutoCheck in the all-new Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/newmail_html.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: [FreeBSD][Newb] How I use sendmail to send mail?
Well I checked this file: ll /usr/share/sendmail/cf/README -r--r--r-- 1 root wheel 183289 Nov 4 2004 /usr/share/sendmail/cf/README It's about 50 pages long. I'm worried that I'd miss something if I try to understand all of it. I need something more dumbed down. Here is what I want: 1. I want to send mail 2. I don't want to receive mail from the outside 3. I do want to receive mail from the box itself. Actually 3 is not a hard requirement. Help anyone? -b Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games. http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: [FreeBSD][Newb] How I use sendmail to send mail?
ok, I'll look at that readme. And I nosed around on the box for clues about sendmail.cf It looks like the previous sysadmin ignored sendmail.cf I see this: bash jake oracle /etc/mail 14 $ pwd /etc/mail bash jake oracle /etc/mail 15 $ bash jake oracle /etc/mail 15 $ bash jake oracle /etc/mail 15 $ ls -latr total 582 -rw-r--r-- 1 root wheel569 Nov 4 2004 virtusertable.sample -r--r--r-- 1 root wheel 40449 Nov 4 2004 submit.cf -rw-r--r-- 1 root wheel 57796 Nov 4 2004 sendmail.cf -rw-r--r-- 1 root wheel243 Nov 4 2004 mailertable.sample -rw-r--r-- 1 root wheel400 Nov 4 2004 mailer.conf -r--r--r-- 1 root wheel 5588 Nov 4 2004 helpfile -r--r--r-- 1 root wheel 40449 Nov 4 2004 freebsd.submit.cf -rw-r--r-- 1 root wheel 57796 Nov 4 2004 freebsd.cf -rw-r--r-- 1 root wheel 1606 Nov 4 2004 aliases -rw-r--r-- 1 root wheel407 Nov 4 2004 access.sample -rw-r--r-- 1 root wheel 2896 Nov 4 2004 README -rw-r--r-- 1 root wheel 6809 Nov 4 2004 Makefile -rw-r- 1 root wheel 65536 Oct 31 2005 aliases.db -rw-r--r-- 1 root wheel421 Aug 21 2006 motel411.sh -rw-r--r-- 1 root wheel 40400 Aug 21 2006 motel411.com.submit.cf -rw-r--r-- 1 root wheel 57747 Aug 21 2006 motel411.com.cf -r--r--r-- 1 root wheel894 Aug 21 2006 motel411.com.submit.mc -rw-r--r-- 1 root wheel 4113 Aug 21 2006 motel411.com.mc -r--r--r-- 1 root wheel894 Aug 21 2006 freebsd.submit.mc -rw-r--r-- 1 root wheel 4113 Aug 21 2006 freebsd.mc -rw-r--r-- 1 root wheel 52 Aug 21 2006 local-host-names -rw-r--r-- 1 root wheel267 Aug 21 2006 virtusertable drwxr-xr-x 2 root wheel 1024 Aug 21 2006 ./ -rw-r- 1 root wheel 65536 Aug 21 2006 virtusertable.db drwxr-xr-x 17 root wheel 2048 Nov 11 2006 ../ bash jake oracle /etc/mail 16 $ bash jake oracle /etc/mail 16 $ bash jake oracle /etc/mail 16 $ It looks like administrative activity was happening on Aug 21 2006 I looked at motel411.sh... bash jake oracle /etc/mail 16 $ bash jake oracle /etc/mail 16 $ cat motel411.sh #! /bin/sh cp freebsd.mc motel411.com.mc /usr/bin/m4 -D_CF_DIR_=/usr/share/sendmail/cf/ /usr/share/sendmail/cf/m4/cf.m4 motel411.com.mc > motel411.com.cf cp freebsd.submit.mc motel411.com.submit.mc /usr/bin/m4 -D_CF_DIR_=/usr/share/sendmail/cf/ /usr/share/sendmail/cf/m4/cf.m4 motel411.com.submit.mc > motel411.com.submit.cf /usr/sbin/makemap hash virtusertable.db < virtusertable chmod 0640 virtusertable.db bash jake oracle /etc/mail 17 $ bash jake oracle /etc/mail 17 $ bash jake oracle /etc/mail 17 $ I'll search google for info about these files: freebsd.mc freebsd.submit.mc virtusertable virtusertable.db And I'll read that readme: /usr/share/sendmail/cf/readme -b --- Doug Hardie <[EMAIL PROTECTED]> wrote: > > On Jun 10, 2007, at 21:25, Bjorn Boulder wrote: > > > Doug, Mats > > > > Your advice is on the money; thanks. > > > > I see this: > > > > Jun 10 05:43:40 jake sendmail[15068]: > l5AAhekD015068: > > [EMAIL PROTECTED], ctladdr=oracle > > (1004/1005), > > delay=00:00:00, xdelay=00:00:00, mailer=relay, > > pri=30062, > > relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, > > stat=Deferred: Connection > > refused by [127.0.0.1] > > > > Your tip along with that given by Mats suggests > that > > I need to learn about /etc/mail/sendmail.cf > > > > It appears that the box cannot send mail to > itself: > > > > Jun 10 03:05:44 jake sendmail[14546]: > l5A84ObZ014546: > > to=postmaster, > > delay=00:00:00, xdelay=00:00:00, mailer=relay, > > pri=154501, > > relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: > > Connection refused by > > [127.0.0.1] > > > > Jun 10 03:05:44 jake sendmail[14546]: > l5485I55093939: > > to=root, > > ctladdr=root (0/0), delay=6+00:00:26, > xdelay=00:00:00, > > mailer=relay, > > pri=691450, relay=[127.0.0.1], dsn=4.0.0, > > stat=Deferred: Connection > > refused by [127.0.0.1] > > > > Jun 10 03:05:44 jake sendmail[14546]: > l5485I55093939: > > l5A84Oba014546: > > sender notify: Cannot send message for 5 days > > > > Jun 10 03:05:44 jake sendmail[14546]: > l5A84Oba014546: > > to=root, > > delay=00:00:00, xdelay=00:00:00, mailer=relay, > > pri=152806, > > relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: > > Connection refused by > > [127.0.0.1] > > > > Currently, my main assumption is that > > /etc/mail/sendmail.cf > > is the primary administrative interface for > e-mail. > > That is correct, but you don't want to directly mess > with > sendmail.cf. You really want to use the mc file and &
Re: [FreeBSD][Newb] How I use sendmail to send mail?
Doug, Mats Your advice is on the money; thanks. I see this: Jun 10 05:43:40 jake sendmail[15068]: l5AAhekD015068: [EMAIL PROTECTED], ctladdr=oracle (1004/1005), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30062, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1] Your tip along with that given by Mats suggests that I need to learn about /etc/mail/sendmail.cf It appears that the box cannot send mail to itself: Jun 10 03:05:44 jake sendmail[14546]: l5A84ObZ014546: to=postmaster, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=154501, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1] Jun 10 03:05:44 jake sendmail[14546]: l5485I55093939: to=root, ctladdr=root (0/0), delay=6+00:00:26, xdelay=00:00:00, mailer=relay, pri=691450, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1] Jun 10 03:05:44 jake sendmail[14546]: l5485I55093939: l5A84Oba014546: sender notify: Cannot send message for 5 days Jun 10 03:05:44 jake sendmail[14546]: l5A84Oba014546: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=152806, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1] Currently, my main assumption is that /etc/mail/sendmail.cf is the primary administrative interface for e-mail. I'll nose around via google. -b No need to miss a message. Get email on-the-go with Yahoo! Mail for Mobile. Get started. http://mobile.yahoo.com/mail ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
[FreeBSD][Newb] How I use sendmail to send mail?
People, I need help with sendmail on my FreeBSD box running: FreeBSD 5.3 Specifically, I need help using sendmail to send mail. I inherited this FreeBSD box from a guy who left for another gig. The box appears to be stable. It's been up since Nov 2006 and is running a couple of simple web sites. The web sites work okay. We want to put up a 3rd site which needs to send mail to people who register. I'm assuming that I need to get sendmail working. That is, I need it to send mail. It does not need to receive mail because we are using google apps to receive all of our mail from the outside. It was easy to setup: -Follow directions here: http://google.com/a/ -Update the MX records for our domains When I try using sendmail I run this simple test: 1. create a text file, sendme.txt: From: [EMAIL PROTECTED] Subject: test mail Hi Bjorn Bye Bjorn 2. Run shell command: /usr/sbin/sendmail [EMAIL PROTECTED] < sendme.txt Result: The mail is not delivered. I'd welcome any tips for configuring sendmail to send mail. -b Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. http://tv.yahoo.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"