|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > BSD Help > sendmail problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|