LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Problem with sendmail. (https://www.linuxquestions.org/questions/linux-server-73/problem-with-sendmail-701054/)

tomsaa 01-30-2009 11:19 AM

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..

gabsik 01-30-2009 11:27 AM

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!

tomsaa 01-30-2009 11:55 AM

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.

gabsik 01-30-2009 06:08 PM

Quote:

Originally Posted by tomsaa (Post 3426489)
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 ? :)

tomsaa 01-31-2009 01:27 AM

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 ?

tomsaa 01-31-2009 02:49 AM

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 ?


All times are GMT -5. The time now is 08:39 PM.