BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old June 24th, 2003, 12:50 PM
achandak achandak is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 22 achandak User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy sendmail problem

Hi,

I am having some problems with sendmail.....

> sendmail mail@domain.com ---- doesnt work
/etc/sendmail.cf: line 0: cannot open: No such file or directory

> /usr/sbin/sendmail mail@domain.com ----- doesnt work
(it doesnt send out the mail)

> /usr/sbin/sendmail -v mail@domain.com ------ only this works.

Here's the content of /etc/mail/mailer.conf file:
# $FreeBSD: src/etc/mail/mailer.conf,v 1.2 1999/12/29 18:24:06 peter Exp $
#
# Execute the "real" sendmail program, named /usr/libexec/sendmail/sendmail
#
sendmail /usr/libexec/sendmail/sendmail
send-mail /usr/libexec/sendmail/sendmail
mailq /usr/libexec/sendmail/sendmail
newaliases /usr/libexec/sendmail/sendmail

Can someone help me in figuring out what the problem is??

(I am a complete newbie to BSD )

Amit

Reply With Quote
  #2  
Old June 26th, 2003, 12:34 AM
munkfish's Avatar
munkfish munkfish is offline
funky munky
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2001
Location: UK
Posts: 1,446 munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 18 h 33 m
Reputation Power: 10
The sendmail binary generally runs in the background waiting for messages to process - as such you don't run the 'sendmail' binary from the commandline unless for example you're trying to debug a problem with the sendmail configuration.

To just send a message from the commandline, just do:

mail mail@domain.com

and you should be prompted for the subject (hit enter to end subject) and the message (hit ctrl-d or just enter a single '.' on it's own to end the message).

An example:

[6:33:12] munk@users /home/munk# mail example@example.com
Subject: test mail
test
.
EOT

You can then check the mail was sent successfully by typing:

tail /var/log/maillog

and you should see an entry for the mail you just sent.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > sendmail problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway