LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-30-2009, 11:19 AM   #1
tomsaa
LQ Newbie
 
Registered: Jan 2009
Posts: 8

Rep: Reputation: 0
Problem with sendmail.


Hi!

I have a little problem. I'm trying to get sendmail to send a mail through a smtp-relay.

I have done everything that is explained in this guide: http://cri.ch/linux/docs/sk0009.html

Did a little test to send a mail with echo "Subject: test" | sendmail -v me@domain.com (My own e-mail ofcourse)
Got this back:

WARNING: local host name (burken) is not qualified; see cf/README: WHO AM I?
me@domain.com... Connecting to [127.0.0.1] via relay...
me@domain.com... Deferred: Connection refused by [127.0.0.1]

I seems to me that it's not going through the relay-server at all.
I don't really know what i'm doing..
 
Old 01-30-2009, 11:27 AM   #2
gabsik
Member
 
Registered: Dec 2005
Location: This planet
Distribution: Debian,Xubuntu
Posts: 567

Rep: Reputation: 30
Question

Hi!
Is your domain name a FQDN ? Is it a dyndns.org domain name ? If it is , did you configure it properly to update your dynamic public ip ? Try to give some more informations !
And also looking at your warning message
Quote:
WARNING: local host name (burken) is not qualified; see cf/README: WHO AM I?
Looks like you are sending a mail to internet using only your hostname ...
Bye!

Last edited by gabsik; 01-30-2009 at 11:34 AM.
 
Old 01-30-2009, 11:55 AM   #3
tomsaa
LQ Newbie
 
Registered: Jan 2009
Posts: 8

Original Poster
Rep: Reputation: 0
I have dynamic ip so i use dyndns.org. I'm running a program that updates my ip, and that is working like it should.
I'm running Slackware 10.2 with latest sendmail-cf package.

Port 25 is blocked from my internetsupplier so i heard that using their smtp-relay should work.

Actually, i have a homepage where people can comment on pictures, when someone make a comment a message should be sent to my email. And it's that i'm trying to get to work.

Last edited by tomsaa; 01-30-2009 at 12:03 PM.
 
Old 01-30-2009, 06:08 PM   #4
gabsik
Member
 
Registered: Dec 2005
Location: This planet
Distribution: Debian,Xubuntu
Posts: 567

Rep: Reputation: 30
Quote:
Originally Posted by tomsaa View Post
Port 25 is blocked from my internetsupplier so i heard that using their smtp-relay should work..
I don't understand if you are using your isp as relayhost or dyndns (sorry!) and also what's your MTA ? Anyway why don't you use smtp.gmail.com as relayhost , it works great! If your isp blocks port 25 try using some other port like 465 , 587 , 2525 and make some iptables redirection .
Once again , what's your MTA ?
 
Old 01-31-2009, 01:27 AM   #5
tomsaa
LQ Newbie
 
Registered: Jan 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Oh, i'm using my isp as relayhost. Ehm.. isnt sendmail a MTA ? Or am i totally wrong ? I'll try changing relay to smtp.gmail.com. Could also try changing port, but how do i do that ?
 
Old 01-31-2009, 02:49 AM   #6
tomsaa
LQ Newbie
 
Registered: Jan 2009
Posts: 8

Original Poster
Rep: Reputation: 0
I changed the domainname in sendmail.cf and now i get this:

echo "Subject: test" | sendmail -v my@mailadress.com
WARNING: local host name (burken) is not qualified; see cf/README: WHO AM I?
my@mailadress.com... Connecting to [127.0.0.1] via relay...
220 my.domain.com ESMTP Sendmail 8.13.4/8.14.3; Sat, 31 Jan 2009 09:42:21 +0100
>>> EHLO burken
250-my.domain.com Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH DIGEST-MD5 CRAM-MD5
250-DELIVERBY
250 HELP
>>> MAIL From:<root@burken> SIZE=14 AUTH=root@burken
553 5.1.8 <root@burken>... Domain of sender address root@burken does not exist
root... Using cached ESMTP connection to [127.0.0.1] via relay...
>>> RSET
250 2.0.0 Reset state
>>> MAIL From:<> SIZE=1038
250 2.1.0 <>... Sender ok
>>> RCPT To:<root@burken>
>>> DATA
250 2.1.5 <root@burken>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 n0V8gLjY006396 Message accepted for delivery
root... Sent (n0V8gLjY006396 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 my.domain.com closing connection

To me the problem seems to be that the mailadress becomes root@burken. How can i change that to my real adress ?
 
  


Reply



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.mc and sendmail-cf problem. ChrisScott Linux - Software 1 11-26-2006 01:30 PM
sendmail problem lenlutz Linux - Networking 1 09-26-2003 08:56 PM
problem processing sendmail.mc to sendmail.cf ...help... lucastic Linux - Networking 1 09-21-2003 10:08 AM
Sendmail problem: sm-client permissions problem d3funct Linux - Software 0 08-12-2003 05:00 PM
Sendmail problem Catalinus Linux - Networking 1 05-20-2003 01:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:10 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