LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-16-2004, 03:56 AM   #1
@ngelot
Member
 
Registered: Oct 2004
Posts: 84

Rep: Reputation: 15
Problems with sendmail...


I would like to use sendmail for my forms and e-mail on my webpage.

I'm using Debian (no GUI) with apache 1.3.

I don't think it's the form that is the problem, because I can't send mail at all. All mails ($ mail anyone@anyone.net) sent by me as a normal user are put in dead.letter.

When running sendmailconfig (all Yes) I get this error-message:
Code:
WARNING: local host name (debian) is not qualified; fix $j in config file
When searching on this error-message I found out that my system did't have a "real" name. Debian and localhost is not "qualified".

I've tried to edit the $j in sendmail.cf with no luck, and after running sendmailconfig (all Yes) the $j is back to default.

Q1. How do I give my system a "real name" that sendmail will accept?

Q2. If not - how do I configure sendmail so that I can send mail?

Please help!

Regards,

:-Joachim
 
Old 11-16-2004, 12:33 PM   #2
@ngelot
Member
 
Registered: Oct 2004
Posts: 84

Original Poster
Rep: Reputation: 15
I figured it out

I figured it out by my self, and sendmail will now send mail using the mail command.

After sending nothing happens, and the reciver dosen't get any mail - even if the log say the message was sent.

After a while checked log with: sendmail -bp and it returned:

Deferred: Connection refused by 'anyserver.com'

What can I do about this?

I did't have any relay.domains in /etc/mail (as sendmailconfig told me) so I made one with:

myserver.com
localhost

It' still don't work....

@ngelot
 
Old 11-16-2004, 02:04 PM   #3
jon3k
Member
 
Registered: Jun 2003
Posts: 52

Rep: Reputation: 15
Check your /etc/hosts file, make sure thats setup correctly first of all.

You don't need a relay-domains file at all.

Try this, telnet to the remote mail server using port 25 (telnet X.X.X.X 25)

Then issue the following commands:
EHLO 127.0.0.1
MAIL FROM:you@host.com
RCPT TO:valid_address@remote_host.com
DATA
Test message!
.

(Don't forget the period, that signals EOF and spools the message).

Basically ou're just manually attempting to relay mail to the remote host. If you can't do it this way, no amount of work on your end will correct it.
 
Old 11-16-2004, 06:50 PM   #4
@ngelot
Member
 
Registered: Oct 2004
Posts: 84

Original Poster
Rep: Reputation: 15
OK - this is it:

Startet telnet from other comp on network - got in using port 25.

Code:
$ ehlo 127.0.0.1
250 angelot.homeftp.org Hello ti231120a080-2149.bb.online.no [80.212.64.102], pleased to meet you
250-ENHANCHEDSTATUSCODES
250-PIPELINING
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIBERBY
250-HELP
then:

Code:
$mail from: admin@angelot.homeftp.org
250 2.1.0 admin@angelot.homeftp.org... Sender OK
then:

Code:
$rcpt to: joachim@obur.no
550 5.7.1 joachim@obur.no... Relaying denied. Proper authentication required.
then:

Code:
$data
503 5.0.0 Need RCPT (recipient]
Well - that's it. The rest won't work...

Does this tell you anything? All I get out of it is that relaying is denied, and that I need 'proper authentication'...

Can you help me further?

@ngelot
 
Old 11-17-2004, 03:06 AM   #5
@ngelot
Member
 
Registered: Oct 2004
Posts: 84

Original Poster
Rep: Reputation: 15
This is my /etc/hosts

Code:
127.0.0.1    angelot.homeftp.org    debian    localhost
::1        ip6-localhost    ip6-loopback
fe00::0    ip6-localnet
ff00::0    ip6-mcastprefix
ff02::1    ip6-allnodes
ff02::2    ip6-allrouters
ff02::3    ip6-allhosts
Is it correct?

@ngelot
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sendmail problems stouffej Red Hat 4 02-04-2005 10:39 PM
sendmail problems bdoster Linux - Networking 2 10-29-2004 01:24 PM
problems with sendmail baczer Slackware 0 07-23-2004 01:20 PM
problems with sendmail JLDixon Linux - Software 8 03-13-2004 01:57 PM
Sendmail Problems wolfwitch Linux - General 2 11-11-2003 09:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration