LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-03-2006, 04:07 PM   #1
emil+
LQ Newbie
 
Registered: Feb 2006
Posts: 21

Rep: Reputation: 15
How to give sendmail the right preferences?!


Hi,

may be s.o in this forum has find a right configuration for sendmail, i'm able to send an e-mail local (on this computer), but no chance to bring it outside.

My place is behind a router and everything was initialized by "DHCP".

ISP, (my mail-server too) is written to '/.../.../cf/sendmail-slackware.mc', in that way:

'dnl# Uncomment the line below to send outgoing mail through an external
server:
define(`SMART_HOST',`mail.arcor.de')'

But the problem is that i don't know to give (my) this domain the right expression (name). Cause i haven't. So, if i try to send an e-mail to www, the same message returned:

'.. while talking to mx.arcor.de.:
>>> DATA
<<< 550 5.1.8 <thokra@nux2>: Sender address rejected: Domain not found
550 5.1.1 <my_name@arcor.de>... User unknown
<<< 554 5.5.1 Error: no valid recipients'

So "Domain not found" is the problem i think, cause ': sender <thokra@nux2>' is my local name.

All my searching in the internet has no success, the same with my experiences to set names like 'localhost, localdomain' to '/etc/mail/local-host-names'.

May be someone knows the right constellation with 'sendmail' and an 'dynamic IP-address' from an ISP.

user_tom

P.S i write this here because 'slackware-10.2' comes with 'sendmail'.
 
Old 03-03-2006, 05:16 PM   #2
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Ok I use sendmail and there seem to be 2 ways to configure it:

If you change any settings in sendmail.mc then use should compile those settings with a prog call m4. But I didn't do it that way.

What I found to work just as well is to change the settings in sendmail.cf instead.

If you open that file and search for '# "Smart" relay host (may be null)' on the line under it that begins with DS , change that to your isps smtp server. EG:

DS mail.arcor.de

This should work with most mail progs and I hope this is what you are looking for.
 
Old 03-03-2006, 06:10 PM   #3
emil+
LQ Newbie
 
Registered: Feb 2006
Posts: 21

Original Poster
Rep: Reputation: 15
... thank's for response;

so i see that it is right written to '/etc/mail/sendmail.cf';

but the problem is my name of localhost, cause nothing will be accepted outside the www.

This pc is named 'thokra@nux2' in local, 'thokra' is the username and 'nux2' the host.

And i don't know how to set the right domain.

cheers --tom
 
Old 03-03-2006, 07:04 PM   #4
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Can you print here the exact commands you are typing to sendmail please?
 
Old 03-04-2006, 03:58 AM   #5
emil+
LQ Newbie
 
Registered: Feb 2006
Posts: 21

Original Poster
Rep: Reputation: 15
Many times i try the program 'mail';

one time with a local user like:

$ mail user / root
$ Subject
...
and the e-mail take the right way,

but on the other;

$ mail duck@netscape.net
: for example
i get these messages, that it has the contact to 'AOL' or 'arcor' ISP's, but didn't fond "my" domain, as i describe it before.

Also trying directly with '$ /usr/bin/sendmail -v thokra < test.mail has no other result.

May be the problem is "DHCP", i'm sitting behind a router, although this constellation is not the newest i thought.

user_tom
 
Old 03-04-2006, 04:58 AM   #6
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
What happens when you try '/usr/bin/sendmail -v duck@netscape.net < test.mail'?

I didn't have to set up my domain at all with sendmail, only when I first set networking options during the slackware installation. Usually sendmail will reply with '250-hostname.domain Hello localhost [127.0.0.1], pleased to meet you'
 
Old 03-04-2006, 03:04 PM   #7
emil+
LQ Newbie
 
Registered: Feb 2006
Posts: 21

Original Poster
Rep: Reputation: 15
For your answer many thanks!
Sure i had set a host name during the slackware installation, that is 'nux' and 'thokra' is me the user in system.

System message with 'mail duck@netscape.net' is as follows:

" (reason: 550 5.1.8 <thokra@nux2>: Sender address rejected: Domain not found)

----- Transcript of session follows -----
... while talking to mail.arcor.de:
>>> DATA
<<< 550 5.1.8 <thokra@nux2>: Sender address rejected: Domain not found
550 5.1.1 <th_rump@yahoo.de>... User unknown
<<< 554 5.5.1 Error: no valid recipients"

And i don't know how to set the right domain, naturally 'nux2' is not a recognized name in the www.
But i think somebody may be has a similaire constellation as this home-computer.

cheers --user-tom
 
Old 03-04-2006, 03:43 PM   #8
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
'While talking to mail.arcor.de'

They won't relay for an unknown domain name it seems. Maybe an anti spam measure.

Although I have no problems sending out mail as 'dave' my login name, it may be that arcor are rejecting anything that isn't resolvable via dns

There is another setting in sendmail.cf which I have used:

SMART_HOST, smtp.blueyonder.co.uk

You could try setting this to your isps mail server address. I don't know any other settings that would affect how your domain info gets passed to the remote mail server.
 
Old 03-04-2006, 06:55 PM   #9
emil+
LQ Newbie
 
Registered: Feb 2006
Posts: 21

Original Poster
Rep: Reputation: 15
... i've found a solution with 'postfix'!

Thanks for response.

cheers --user_tom
 
  


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
Preferences Moose3565 Linux - Distributions 16 09-06-2005 03:35 PM
C++ preferences rahul_kulkarni Programming 7 05-10-2005 05:51 AM
Remove Preferences jpapa Linux - Software 0 10-22-2004 09:08 AM
Konqueror Preferences durden2.0 Linux - Software 4 08-03-2003 11:57 PM
mozilla preferences ajax73 Linux - Newbie 2 01-21-2002 01:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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